When we use freshwater in our home it is typically divided into — sewage water and greywater. “Sewage water comes from flushing toilets, while greywater originates from all other activities, such as taking baths, washing clothes, washing utensils, mopping the floor, and any other activities that do not involve sewage or urine,” he says.
Unlike black water, which contains sewage and toilet waste, greywater is relatively clean and can be recycled for various non-potable uses, such as irrigation, flushing toilets, and landscape watering.
These systems not only recycle water but also allow for percolation into the ground, aiding groundwater recharge and helping mitigate urban heat island effects.
If you want to use recycled greywater for flushing a simple sand filter would work.