---
title: "Rainwater Harvesting Calculator: Yield, First Flush Diverter Sizing, and the Contamination Math Most Guides Skip"
canonical: "https://theyieldgrid.com/rainwater-harvesting-calculator/"
model_id: "tyg-795"
model_version: "1.0.0"
last_reviewed: "2026-08-25T01:29:41"
reviewed_by: "Umer Hayiat"
---

# Rainwater Harvesting Calculator: Yield, First Flush Diverter Sizing, and the Contamination Math Most Guides Skip

> Canonical calculator: [https://theyieldgrid.com/rainwater-harvesting-calculator/](https://theyieldgrid.com/rainwater-harvesting-calculator/)

## What this calculator does

Home - Free Gardening Calculators & Tools - Rainwater Harvesting Calculator: Yield, First Flush Diverter Sizing, and the Contamination Math Most Guides Skip Every rainstorm begins with a lie. The first water that rolls off your roof is not clean water waiting to be stored. It is a concentrated wash of bird droppings, insect bodies, atmospheric particulates, and roofing chemical residue that has been accumulating since the last rain event. Pipe it directly into a cistern and that contamination does not dilute harmlessly. It spoils the entire stored volume. This physical reality is why the first flush diverter is not optional equipment. It is the single structural requirement that separates a functional rainwater harvesting system from an expensive bacteria incubator.

## Inputs

| Input | ID | Type | Unit | Range or choices | Required |
|---|---|---|---|---|---|
| Roof Catchment Area * | `rwcatch_area` | number | ft | 1 to 100000 | Yes |
| Expected Rainfall * | `rwcatch_rain` | number | e.g. 2.5 in | 0.01 to 100 | Yes |
| Roof Material * | `rwcatch_material` | select |  | Select roof material… = ``; Metal Roof (Runoff Coefficient: 0.95) = `metal`; Asphalt Shingle (Runoff Coefficient: 0.85) = `asphalt` | Yes |
| Cistern / Tank Capacity * | `rwcatch_cistern` | number | gallons | 1 to 1000000 | Yes |

## Outputs

| Output ID | Default state |
|---|---|
| `rwcatch_area_err` | Required |
| `rwcatch_rain_err` | Required |
| `rwcatch_material_err` | Required |
| `rwcatch_cistern_err` | Required |
| `rwcatch_results` | Rainwater Harvesting Results 0 gallons net yield Gross Yield — gal Before runoff losses First Flush Volume — gal Must be diverted & discarded Usable Storage Input — gal After first flush removal Tank Fill % — % Tank Capacity Used 0% 0% ⚠ 90% overflow risk 100% 4-Inch PVC First Flush Diverter Pipe Length — linear feet of 4″ Schedule 40 PVC This is the pipe length required to physically capture and isolate the contaminated “bird poop soup” first flush before clean water enters your cistern. Warnin |
| `rwcatch_out_primary` | 0 |
| `rwcatch_out_gross` | — |
| `rwcatch_out_flush` | — |
| `rwcatch_out_storage` | — |
| `rwcatch_out_pct` | — |
| `rwcatch_tankstatus` |  |
| `rwcatch_out_pvc` | — |
| `rwcatch_warnings_box` | Warnings & Standards |

## Formula and method

Our tool converts your roof's contamination volume into the exact linear feet of PVC pipe needed. Show the calculation steps Step 1: Gross Yield Gross Yield (gal) = Roof Catchment Area (sq ft) x Rainfall (in) x 0.623 The 0.623 conversion factor comes from the physical relationship between square feet, inches of depth, and US gallons. One inch of rain falling on one square foot of horizontal surface equals 0.623 US gallons. This is a fixed unit conversion, not an empirical estimate. Step 2: Net Yield Net Yield (gal) = Gross Yield x Runoff Coefficient Runoff coefficients: Metal roof = 0.95, Asphalt Shingle = 0.85. These values reflect losses from evaporation during the rainfall event, absorption by the roofing material surface, splash losses at the eave line, and minor retention in gutter troughs. The coefficients used here align with those cited by Texas A&M AgriLife Extension and are consistent with widely adopted state-level rainwater harvesting guidance. Step 3: First Flush Volume First Flush Volume (gal) = Roof Catchment Area (sq ft) x 0.01 This computes to 1 gallon per 100 square feet of roof area. This is the minimum diversion standard. The formula captures the volume of water required to wash the accumulated contamination layer off the roof surface before the remaining runoff is considered suitable for collection. Some state guidelines specify a higher rate for roofs adjacent to trees or with heavy bird activity. Step 4: Usable Storage Input Usable Storage Input (gal) = Net Yield – First Flush Volume This is the volume that actually enters the cistern after the first flush is diverted. It cannot be negative; if first flush volume exceeds net yield (possible in very small rain events on very large roofs), the storage input is zero and no water enters the tank. Step 5: 4-Inch PVC Standpipe Length PVC Length (ft) = First Flush Volume (gal) / 0.653 A 4-inch Schedule 40 PVC pipe holds 0.653 US gallons per linear foot of pipe. Dividing the first flush volume by this rate gives the minimum pipe length needed to physically contain the diverted water in the standpipe. The pipe must be capped at the bottom (with a slow-drain ball valve or drip orifice) and connected to a tee fitting that routes clean overflow into the cistern supply line. Rounding Rules: All gallon outputs are rounded to the nearest whole gallon. PVC pipe length is rounded to the nearest tenth of a foot. Always round PVC pipe up in practice, never down. Assumptions and Limits Roof area is the horizontal projected footprint, not the sloped surface area. This distinction matters on steep-pitch roofs and cannot be corrected by the calculator automatically. Runoff coefficients of 0.95 (metal) and 0.85 (asphalt) are representative midpoints. Actual coefficients vary by roof age, surface condition, pitch angle, and event intensity. A severely weathered asphalt roof may perform closer to 0.75. The first flush standard of 0.01 gal/sq ft (1 gal per 100 sq ft) is a minimum. Roofs with heavy bird traffic, overhanging trees, or adjacent pollution sources may require a higher diversion rate. The calculation does not account for gutter losses, downspout leakage, or evaporation between rain events and collection. The 0.623 conversion factor is exact for US customary units. Metric inputs will produce incorrect results; convert to sq ft and inches before entering values. This tool does not model water quality. Net yield calculations say nothing about microbial counts, turbidity, pH, or chemical content of collected water. These require laboratory testing. Storage overflow behavior is flagged but not modeled in detail. The calculator shows that overflow will occur; it does not design the overflow outlet, splash pad, or drainage path. PVC pipe volume assumes Schedule 40 (standard wall). Schedule 80 or other wall thicknesses have different interior diameters and hold slightly less volume per foot.

## Verified worked examples

### Example 1: Off-Grid Cabin, Metal Roof, Single Storm Event

Roof Catchment Area: 600 sq ft Expected Rainfall: 1.0 inch Roof Material: Metal (runoff coefficient 0.95) Cistern Capacity: 275 gallons Gross Yield = 600 x 1.0 x 0.623 = 373.8 gal Net Yield = 373.8 x 0.95 = 355.1 gal First Flush Volume = 600 x 0.01 = 6.0 gal Usable Storage Input = 355.1 – 6.0 = 349.1 gal 4-inch PVC Length = 6.0 / 0.653 = 9.2 linear ft Result: A single 1-inch rain event delivers 349 gallons to the cistern, which exceeds the 275-gallon tank capacity by 74 gallons. The system will overflow unless a second 275-gallon IBC tote is added or an overflow outlet is engineered. The first flush diverter requires a 9.2-ft standpipe of 4-inch Schedule 40 PVC.

### Example 2: Suburban Ranch House, Asphalt Shingle, 2-Inch Rain Event

Roof Catchment Area: 1,800 sq ft Expected Rainfall: 2.0 inches Roof Material: Asphalt Shingle (runoff coefficient 0.85) Cistern Capacity: 1,500 gallons Gross Yield = 1,800 x 2.0 x 0.623 = 2,242.8 gal Net Yield = 2,242.8 x 0.85 = 1,906.4 gal First Flush Volume = 1,800 x 0.01 = 18.0 gal Usable Storage Input = 1,906.4 – 18.0 = 1,888.4 gal 4-inch PVC Length = 18.0 / 0.653 = 27.6 linear ft Result: Even after applying the lower asphalt shingle runoff coefficient, a 2-inch storm delivers nearly 1,888 gallons to storage, far exceeding the 1,500-gallon cistern. An additional 275-gallon IBC tote would still leave roughly 113 gallons without a home. For this catchment size, a 2,000-gallon or larger tank is the practical minimum for a 2-inch storm. The first flush diverter standpipe must be at least 27.6 ft. For an asphalt shingle system intended for any potable use, activated carbon filtration and UV sterilization are required downstream of the cistern.

### Example 3: Medium Homestead, Metal Roof, Low-Intensity Event

Roof Catchment Area: 1,200 sq ft Expected Rainfall: 0.5 inches Roof Material: Metal (runoff coefficient 0.95) Cistern Capacity: 500 gallons Gross Yield = 1,200 x 0.5 x 0.623 = 373.8 gal Net Yield = 373.8 x 0.95 = 355.1 gal First Flush Volume = 1,200 x 0.01 = 12.0 gal Usable Storage Input = 355.1 – 12.0 = 343.1 gal 4-inch PVC Length = 12.0 / 0.653 = 18.4 linear ft Result: A half-inch event on a 1,200 sq ft metal roof delivers 343 gallons into a 500-gallon cistern, filling it to roughly 69%. This is a well-matched system for moderate rainfall. The first flush diverter standpipe must be at least 18.4 ft. An 18.5-ft or 19-ft cut is recommended after accounting for fitting connections at the cap and tee.

## Assumptions

Our tool converts your roof's contamination volume into the exact linear feet of PVC pipe needed. Show the calculation steps Step 1: Gross Yield Gross Yield (gal) = Roof Catchment Area (sq ft) x Rainfall (in) x 0.623 The 0.623 conversion factor comes from the physical relationship between square feet, inches of depth, and US gallons. One inch of rain falling on one square foot of horizontal surface equals 0.623 US gallons. This is a fixed unit conversion, not an empirical estimate. Step 2: Net Yield Net Yield (gal) = Gross Yield x Runoff Coefficient Runoff coefficients: Metal roof = 0.95, Asphalt Shingle = 0.85. These values reflect losses from evaporation during the rainfall event, absorption by the roofing material surface, splash losses at the eave line, and minor retention in gutter troughs. The coefficients used here align with those cited by Texas A&M AgriLife Extension and are consistent with widely adopted state-level rainwater harvesting guidance. Step 3: First Flush Volume First Flush Volume (gal) = Roof Catchment Area (sq ft) x 0.01 This computes to 1 gallon per 100 square feet of roof area. This is the minimum diversion standard. The formula captures the volume of water required to wash the accumulated contamination layer off the roof surface before the remaining runoff is considered suitable for collection. Some state guidelines specify a higher rate for roofs adjacent to trees or with heavy bird activity. Step 4: Usable Storage Input Usable Storage Input (gal) = Net Yield – First Flush Volume This is the volume that actually enters the cistern after the first flush is diverted. It cannot be negative; if first flush volume exceeds net yield (possible in very small rain events on very large roofs), the storage input is zero and no water enters the tank. Step 5: 4-Inch PVC Standpipe Length PVC Length (ft) = First Flush Volume (gal) / 0.653 A 4-inch Schedule 40 PVC pipe holds 0.653 US gallons per linear foot of pipe. Dividing the first flush volume by this rate gives the minimum pipe length needed to physically contain the diverted water in the standpipe. The pipe must be capped at the bottom (with a slow-drain ball valve or drip orifice) and connected to a tee fitting that routes clean overflow into the cistern supply line. Rounding Rules: All gallon outputs are rounded to the nearest whole gallon. PVC pipe length is rounded to the nearest tenth of a foot. Always round PVC pipe up in practice, never down. Assumptions and Limits Roof area is the horizontal projected footprint, not the sloped surface area. This distinction matters on steep-pitch roofs and cannot be corrected by the calculator automatically. Runoff coefficients of 0.95 (metal) and 0.85 (asphalt) are representative midpoints. Actual coefficients vary by roof age, surface condition, pitch angle, and event intensity. A severely weathered asphalt roof may perform closer to 0.75. The first flush standard of 0.01 gal/sq ft (1 gal per 100 sq ft) is a minimum. Roofs with heavy bird traffic, overhanging trees, or adjacent pollution sources may require a higher diversion rate. The calculation does not account for gutter losses, downspout leakage, or evaporation between rain events and collection. The 0.623 conversion factor is exact for US customary units. Metric inputs will produce incorrect results; convert to sq ft and inches before entering values. This tool does not model water quality. Net yield calculations say nothing about microbial counts, turbidity, pH, or chemical content of collected water. These require laboratory testing. Storage overflow behavior is flagged but not modeled in detail. The calculator shows that overflow will occur; it does not design the overflow outlet, splash pad, or drainage path. PVC pipe volume assumes Schedule 40 (standard wall). Schedule 80 or other wall thicknesses have different interior diameters and hold slightly less volume per foot. Roof area is the horizontal projected footprint, not the sloped surface area. This distinction matters on steep-pitch roofs and cannot be corrected by the calculator automatically. Runoff coefficients of 0.95 (metal) and 0.85 (asphalt) are representative midpoints. Actual coefficients vary by roof age, surface condition, pitch angle, and event intensity. A severely weathered asphalt roof may perform closer to 0.75. The first flush standard of 0.01 gal/sq ft (1 gal per 100 sq ft) is a minimum. Roofs with heavy bird traffic, overhanging trees, or adjacent pollution sources may require a higher diversion rate. The calculation does not account for gutter losses, downspout leakage, or evaporation between rain events and collection. The 0.623 conversion factor is exact for US customary units. Metric inputs will produce incorrect results; convert to sq ft and inches before entering values. This tool does not model water quality. Net yield calculations say nothing about microbial counts, turbidity, pH, or chemical content of collected water. These require laboratory testing. Storage overflow behavior is flagged but not modeled in detail. The calculator shows that overflow will occur; it does not design the overflow outlet, splash pad, or drainage path. PVC pipe volume assumes Schedule 40 (standard wall). Schedule 80 or other wall thicknesses have different interior diameters and hold slightly less volume per foot. Critical Warnings “Bird Poop Soup” contamination is not a metaphor. The first flush of any roof carries a concentrated load of bird feces, insect remains, dust, pollen, atmospheric particulates, and roofing material residue. Piping this directly into a cistern does not dilute the contamination across the stored volume. It makes the entire stored volume unsafe. The first flush diverter is not a convenience accessory; it is the structural barrier between potable collection and a contaminated tank. The calculator mandates diverter sizing on every result, regardless of roof type or event size. Asphalt shingles leach chemical compounds into runoff. Asphalt shingles contain petroleum-derived compounds and may leach polycyclic aromatic hydrocarbons (PAHs) into roof runoff, particularly from new shingles or in high-temperature conditions. Systems using asphalt shingle roofs should not be considered for potable water collection without activated carbon filtration, UV sterilization, and laboratory water quality confirmation. The calculator flags this condition automatically when asphalt shingle is selected. Tank overflow without a managed outlet is a site hazard. When net yield exceeds cistern capacity, the excess water must go somewhere. An uncontrolled overflow can saturate foundation soils, create erosion channels, or create standing water conditions. Design overflow outlets before building the system. If you are managing site drainage alongside water collection, the French drain calculator can help size a proper overflow discharge path away from the structure. First flush pipe length must never be rounded down. A diverter standpipe that is 2 feet short of the computed minimum fails to capture the full first flush volume. The resulting contamination passes directly into the cistern supply line. Always cut pipe to the computed length or longer. Minimum Standards First flush diverter minimum: 1 gallon per 100 sq ft of roof catchment area. This is consistent with Texas A&M AgriLife Extension guidelines and is the baseline used by most state rainwater harvesting programs. First flush standpipe material: 4-inch Schedule 40 PVC is the standard residential diverter pipe. The internal volume of 0.653 gallons per foot is the basis for all pipe length calculations in this tool. Downstream filtration for potable use: at minimum, a leaf-eater or first-defense downspout screen at the collection point, a settling tank or sediment pre-filter, and a UV sterilization unit after the cistern. Activated carbon is required for asphalt shingle systems. For gravity-fed end uses such as drip irrigation directly from the collected tank, the gravity-fed drip irrigation calculator can help you match flow rate to emitter requirements without a pump. Cistern sizing rule of thumb: size the tank to hold at least the net yield from your largest expected design storm, with managed overflow capacity. Do not rely on the first flush diverter to reduce tank load meaningfully. First flush volumes are small relative to net yield on any roof larger than a few hundred square feet. Competitor Trap Most rainwater harvesting guides online present the roof-to-cistern yield calculation and stop there. They show you a number in gallons and leave you to assume that number flows cleanly into your tank. The first flush step is either omitted entirely, mentioned as an optional suggestion, or buried in a footnote. This is a meaningful gap. A homesteader who builds a 1,000-gallon cistern based on a gross yield figure, pipes the downspout directly to the tank inlet, and collects water through a summer and fall season may store hundreds of gallons of contaminated water without any visible sign that the water is unsafe. The contamination is not visible. The math to prevent it takes 30 seconds. The calculator on this page runs that math automatically on every result and treats the first flush diverter as a non-negotiable output, not a footnote. Understanding how friction losses propagate through the PVC pipe network after the diverter is a related design step covered by the PVC friction loss calculator . First flush diverter minimum: 1 gallon per 100 sq ft of roof catchment area. This is consistent with Texas A&M AgriLife Extension guidelines and is the baseline used by most state rainwater harvesting programs. First flush standpipe material: 4-inch Schedule 40 PVC is the standard residential diverter pipe. The internal volume of 0.653 gallons per foot is the basis for all pipe length calculations in this tool. Downstream filtration for potable use: at minimum, a leaf-eater or first-defense downspout screen at the collection point, a settling tank or sediment pre-filter, and a UV sterilization unit after the cistern. Activated carbon is required for asphalt shingle systems. For gravity-fed end uses such as drip irrigation directly from the collected tank, the gravity-fed drip irrigation calculator can help you match flow rate to emitter requirements without a pump. Cistern sizing rule of thumb: size the tank to hold at least the net yield from your largest expected design storm, with managed overflow capacity. Do not rely on the first flush diverter to reduce tank load meaningfully. First flush volumes are small relative to net yield on any roof larger than a few hundred square feet. No. State and local requirements vary. Texas, Arizona, California, and several other states have their own rainwater harvesting regulations that may specify different minimum diversion volumes, storage setback distances, or permitted end uses. The 1 gal per 100 sq ft figure is a widely cited baseline from extension service guidance, not a universal legal minimum. Always verify requirements with your local authority before building a system intended for potable use.

## Limitations and safety

Roof area is the horizontal projected footprint, not the sloped surface area. This distinction matters on steep-pitch roofs and cannot be corrected by the calculator automatically. Runoff coefficients of 0.95 (metal) and 0.85 (asphalt) are representative midpoints. Actual coefficients vary by roof age, surface condition, pitch angle, and event intensity. A severely weathered asphalt roof may perform closer to 0.75. The first flush standard of 0.01 gal/sq ft (1 gal per 100 sq ft) is a minimum. Roofs with heavy bird traffic, overhanging trees, or adjacent pollution sources may require a higher diversion rate. The calculation does not account for gutter losses, downspout leakage, or evaporation between rain events and collection. The 0.623 conversion factor is exact for US customary units. Metric inputs will produce incorrect results; convert to sq ft and inches before entering values. This tool does not model water quality. Net yield calculations say nothing about microbial counts, turbidity, pH, or chemical content of collected water. These require laboratory testing. Storage overflow behavior is flagged but not modeled in detail. The calculator shows that overflow will occur; it does not design the overflow outlet, splash pad, or drainage path. PVC pipe volume assumes Schedule 40 (standard wall). Schedule 80 or other wall thicknesses have different interior diameters and hold slightly less volume per foot. Critical Warnings “Bird Poop Soup” contamination is not a metaphor. The first flush of any roof carries a concentrated load of bird feces, insect remains, dust, pollen, atmospheric particulates, and roofing material residue. Piping this directly into a cistern does not dilute the contamination across the stored volume. It makes the entire stored volume unsafe. The first flush diverter is not a convenience accessory; it is the structural barrier between potable collection and a contaminated tank. The calculator mandates diverter sizing on every result, regardless of roof type or event size. Asphalt shingles leach chemical compounds into runoff. Asphalt shingles contain petroleum-derived compounds and may leach polycyclic aromatic hydrocarbons (PAHs) into roof runoff, particularly from new shingles or in high-temperature conditions. Systems using asphalt shingle roofs should not be considered for potable water collection without activated carbon filtration, UV sterilization, and laboratory water quality confirmation. The calculator flags this condition automatically when asphalt shingle is selected. Tank overflow without a managed outlet is a site hazard. When net yield exceeds cistern capacity, the excess water must go somewhere. An uncontrolled overflow can saturate foundation soils, create erosion channels, or create standing water conditions. Design overflow outlets before building the system. If you are managing site drainage alongside water collection, the French drain calculator can help size a proper overflow discharge path away from the structure. First flush pipe length must never be rounded down. A diverter standpipe that is 2 feet short of the computed minimum fails to capture the full first flush volume. The resulting contamination passes directly into the cistern supply line. Always cut pipe to the computed length or longer. Minimum Standards First flush diverter minimum: 1 gallon per 100 sq ft of roof catchment area. This is consistent with Texas A&M AgriLife Extension guidelines and is the baseline used by most state rainwater harvesting programs. First flush standpipe material: 4-inch Schedule 40 PVC is the standard residential diverter pipe. The internal volume of 0.653 gallons per foot is the basis for all pipe length calculations in this tool. Downstream filtration for potable use: at minimum, a leaf-eater or first-defense downspout screen at the collection point, a settling tank or sediment pre-filter, and a UV sterilization unit after the cistern. Activated carbon is required for asphalt shingle systems. For gravity-fed end uses such as drip irrigation directly from the collected tank, the gravity-fed drip irrigation calculator can help you match flow rate to emitter requirements without a pump. Cistern sizing rule of thumb: size the tank to hold at least the net yield from your largest expected design storm, with managed overflow capacity. Do not rely on the first flush diverter to reduce tank load meaningfully. First flush volumes are small relative to net yield on any roof larger than a few hundred square feet. Competitor Trap Most rainwater harvesting guides online present the roof-to-cistern yield calculation and stop there. They show you a number in gallons and leave you to assume that number flows cleanly into your tank. The first flush step is either omitted entirely, mentioned as an optional suggestion, or buried in a footnote. This is a meaningful gap. A homesteader who builds a 1,000-gallon cistern based on a gross yield figure, pipes the downspout directly to the tank inlet, and collects water through a summer and fall season may store hundreds of gallons of contaminated water without any visible sign that the water is unsafe. The contamination is not visible. The math to prevent it takes 30 seconds. The calculator on this page runs that math automatically on every result and treats the first flush diverter as a non-negotiable output, not a footnote. Understanding how friction losses propagate through the PVC pipe network after the diverter is a related design step covered by the PVC friction loss calculator .

## Related calculators

- [Calculators & Tools](https://theyieldgrid.com/category/garden-calculators/)
- [rainwater collection calculator](https://theyieldgrid.com/rainwater-collection-calculator/)
- [pipe volume calculator](https://theyieldgrid.com/pipe-volume-calculator/)
- [French drain calculator](https://theyieldgrid.com/french-drain-calculator/)
- [gravity-fed drip irrigation calculator](https://theyieldgrid.com/gravity-fed-drip-irrigation-calculator/)
- [PVC friction loss calculator](https://theyieldgrid.com/pvc-friction-loss-calculator/)
- [soil infiltration rate](https://theyieldgrid.com/soil-infiltration-rate-calculator/)
- [hose flow rate calculator](https://theyieldgrid.com/hose-flow-rate-calculator/)
- [well pressure tank calculator](https://theyieldgrid.com/well-pressure-tank-calculator/)
- [sump pump calculator](https://theyieldgrid.com/sump-pump-calculator/)
- [Prev Previous](https://theyieldgrid.com/active-ingredient-per-acre-calculator/)
- [Next Next](https://theyieldgrid.com/manure-nitrogen-availability-calculator/)

## Provenance

- Model ID: `tyg-795`
- Model version: `1.0.0`
- Reviewed by: Umer Hayiat
- Page modified: 2026-08-25T01:29:41
- Runtime SHA-256: `5dbc53aa50583331916333428b64fd0ae62f3b8cd5bfd9321b61c7792f533c30`

This Markdown document is a machine-readable mirror. The canonical interactive calculator is the HTML page linked above.
