Rainwater Harvesting Calculator
Gallons your roof harvests per rain inch, and barrels needed.
Use ToolFree calculator
Size a rain garden or swale from roof runoff and soil infiltration, with required bed area, overflow, drain time and a planting count.
Chlorova · updated for 2026
Quick samples
Click “Calculate” to see your results.
This is a storage-and-drainage sizing estimate, not a permit design. Infiltration figures are typical saturated rates by texture class, and a real percolation test on your own soil, taken at the depth you intend to dig, is the number to design with. Local rules often govern rain gardens near a septic field, a well, a property line or a slope above a road, and many municipalities require an overflow path that does not load a neighbour. Get a percolation reading, check setbacks, and have a professional design any basin over about 500 sq ft or deeper than 2 ft.
A rain garden is a shallow basin that pretends to be a wetland for one afternoon. Its size falls out of two numbers: how much roof you ask it to drink and how fast your soil drains. A thousand square feet of roof sheds over six hundred gallons in one inch of rain, and soil infiltration, not rainfall, is what decides whether the basin empties by morning or breeds mosquitoes for a week. Enter your catchment, your soil and a bed size, and it returns the area you need, the overflow and the drain time.
Capture follows a simple conversion: one inch of rain on one square foot of roof is 0.623 gallons, so runoff in gallons is catchment area times storm depth times 0.623. Storage works the same way in reverse, since one inch of water standing over a square foot of bed equals the same 0.623 gallons. Dividing runoff by depth and that factor gives the bed area a full-depth storm requires, so 800 sq ft of roof and a 5 in basin needs about 160 sq ft of garden.
Drain time is the real design test. Multiply bed area by the soil's infiltration rate in inches per hour and by 0.623 to get gallons leaving each hour, then divide stored volume by that figure. A rain garden should empty within 24 hours, and ideally far sooner, because water standing longer than a day is mosquito habitat and root rot. Where native clay fails that test, the engineered-mix line shows what a backfill of sand, compost and topsoil would buy you.
Saturated infiltration rates used by the selector, in inches per hour. Your own percolation test beats any table, and clay ground needs roughly 0.5 in per hour to function.
| Texture | Infiltration | Bed size | Notes |
|---|---|---|---|
| Sand | 2.5 | Smallest | Retain water with compost |
| Sandy loam | 1.5 | Small | Usually no amendment |
| Loam | 0.6 | Moderate | The comfortable middle |
| Silt loam | 0.3 | Large | Amend or enlarge |
| Clay loam | 0.15 | Very large | Backfill advised |
| Clay | 0.05 | Impractical | Dig out and refill |
Use it when a downspout or paved strip discharges somewhere it should not, when a soggy low spot keeps forming after every storm, when a driveway or patio needs its runoff managed on site, and when a swale along a slope is being planned rather than guessed. Pair it with the soil percolation test for your real infiltration number, the rain barrel calculator for roofs you cannot drain into a bed, and the slope terrace tool on hilly ground.
Start from the roof: multiply catchment area by storm depth and 0.623 for gallons, then divide by bed depth times the same factor. A 5 in basin needs roughly 3.1 gallons of storage per square foot. Most home downspouts land between 100 and 300 sq ft of garden.
Not in native clay, which drains far too slowly to empty a basin within a day. Either dig the garden out and refill with an engineered sand, compost and topsoil mix, or enlarge the area substantially. A percolation test tells you which of those you actually need.
Four to six inches is the practical range for a home garden, deeper only where you have a safe overflow. Too deep and the bottom stays wet while the edges dry, which stresses plants and invites mosquitoes. A shallow, wide, level basin does the same job more reliably.
Not if it drains within 24 hours, since mosquito larvae need several days of standing water. A properly sized garden is wet for a morning or two after a storm and dry afterwards. If your soil fails that test, amend the soil rather than accepting a pond.
Five feet is a common minimum on stable ground, and more on expansive clay or where a foundation is old, because the rule exists to keep added water from saturating bearing soil. Keep it at least 10 ft from a private well.
A swale is a shallow vegetated channel that moves water along a slope, while a rain garden is a basin that soaks water in on level ground. Good designs often use both, with the swale feeding the garden. Sizing here is storage-based, so a long swale needs its volume divided into segments.
Chlorova Gardening Team
Builds, checks and documents every tool we publish
Chlorova editorial review
Checked against extension-service publications
Gallons your roof harvests per rain inch, and barrels needed.
Use ToolHow many barrels and how much storage your roof can fill, sized against weekly garden demand from area and rainfall.
Use ToolConvert a percolation test timing into inches per hour drainage rate, NRCS-style class and a raised-bed root-zone verdict.
Use ToolAverage depth across a taper, cubic yards with settle allowance, bags, delivered tons and cost for terracing or filling a slope.
Use Tool