
What is Rainwater Harvesting: Plumbing Code Requirements and System Design
Rainwater harvesting is collecting rain from roof surfaces, carrying it through gutters and conveyance piping, then filtering and storing it for nonpotable uses such as toilet and urinal flushing, irrigation and cooling tower makeup. The UPC calls for debris removal (UPC 1603.18) and an air gap or reduced-pressure principle backflow preventer on any potable makeup (UPC 1602.4). The IPC calls for automatic first-flush diversion (IPC 1303.4) and purple, labeled distribution piping (IPC 608.9.2).
What the codes mean by rainwater harvesting
Ask a crew what rainwater harvesting is and you will hear about everything from rain barrels to buried cisterns. The 2021 codes are tighter. The UPC defines rainwater as natural precipitation that has not been contaminated by use. It defines a rainwater catchment system, which it also calls a rainwater harvesting system, as one that collects, stores and uses that water from a rooftop or another manmade surface above ground. The storage tank, or cistern, sits at its center.
IPC 1303.2 limits collection to above-ground impervious roofs built from approved materials, with parking or walking surfaces allowed only where approved. Under the UPC, runoff from surfaces at or below grade falls under the on-site treated nonpotable water rules of Section 1506.0 instead. UPC 1602.1 lets the Authority Having Jurisdiction (AHJ) approve harvested rainwater for water closets, urinals, trap primers for floor drains and floor sinks, irrigation, industrial processes, water features and cooling tower makeup. Supply for fire protection follows the International Fire Code (IPC 1303.1.1).
How rainwater differs from graywater and reclaimed water
The codes sort water sources by what has already happened to the water, because that sets the contamination risk, the treatment needed and where it may discharge. Rainwater has never been used. Graywater has: it is the discharge from bathtubs, showers, lavatories, clothes washers and laundry trays (the UPC expressly excludes kitchen sink and dishwasher waste), and UPC 1503 sends it to subsurface or subsoil irrigation, or to a mulch basin for single-family and multi-family dwellings, never onto root crops or food crops that touch the soil. Reclaimed water is domestic wastewater that a utility has given tertiary treatment. On-site treated water is another UPC category with its own marking. The IPC files graywater under on-site nonpotable water reuse systems, a definition that expressly leaves rainwater out, and where sources are blended, IPC 1301.2 applies the strictest rule of any of them. For rainwater itself, the two model codes line up like this:
Rainwater systems under the 2021 IPC and UPC
| 2021 IPC | 2021 UPC | |
|---|---|---|
| System permitting | Permit required, with construction documents, calculations and diagrams submitted with the application (1301.4). Section 1303 applies as the jurisdiction permits, and every use must meet local laws and ordinances. CSA B805/ICC 805 is an accepted alternative. | Permit required before work starts, with complete plans approved first. Small exterior irrigation and exterior-only single-family systems are exempt. |
| Minimum filtration | 100-micron or finer filter for water closet and urinal flushing (1301.2.2). | Debris excluder plus a 100-micron filter for water closets, urinals, trap primers and drip irrigation (1603.19). |
| Water quality and testing intervals | Quality verified at the point of use to the jurisdiction's requirements. No fixed interval in Section 1303. | AHJ limits, or Table 1603.5 by default: E. coli below 100 CFU/100 mL and turbidity below 10 NTU. Inspection at Table 1601.5 frequencies unless the manufacturer requires more. |
| Permitted indoor uses | Water closet and urinal flushing addressed directly. Other uses as the jurisdiction permits. | Water closets, urinals, trap primers, clothes washing and cooling tower makeup, as the AHJ approves. |
The difference
Both codes stop flushing water at 100 microns. The UPC adds permit exemptions for small exterior systems and default water-quality numbers where the AHJ sets none.
Why is it illegal to harvest rainwater?
Under the model plumbing codes it isn't: neither the IPC nor the UPC bans it, and each gives it a full chapter on how to build it. So when a client asks whether it is illegal to harvest rainwater, or simply whether harvesting rainwater on their lot is legal, the answer turns on local rules. IPC 1301.1 makes every nonpotable use subject to the jurisdiction's laws and ordinances, and UPC 1601.1.1 lets rainwater replace potable water only where the AHJ approves or requires it. The plainest way to make rainwater harvesting illegal is to skip the permit. IPC 1301.4 requires one for every nonpotable water system, and UPC 1601.3 makes building or altering a system without one unlawful, with two exceptions:
- Exterior systems serving outdoor drip or subsurface irrigation with no more than 360 gallons of storage.
- Single-family systems with every outlet, pipe and component outside the building. Separate permits may still apply to electrical connections, tank supports or enclosures.
Key point
Two kinds of system can be designed without a registered or licensed plumbing designer: irrigation systems with no more than 360 gallons of storage, and single-family systems with every outlet, pipe and component outside the building. Every other UPC system is designed by a licensed plumbing contractor or registered design professional with listed components, its plans are approved before the permit issues, and no change to the rainwater or potable side of that site is made later without AHJ approval.
Building the collection and pre-filtration train
Gutters, conductors and leaders are sized under the storm drainage chapter and built from storm drainage materials. Collection piping is approved drainage pipe sized to IPC Section 710. Then deal with each stage in the order the water reaches it:
- Debris excluder: keeps leaves, needles and sediment out of the tank and stays accessible (UPC 1603.18). It drains itself automatically between storms, never onto the roof or into the sanitary sewer (IPC 1303.6).
- First-flush diverter (IPC 1303.4): works automatically with no manual valve, stays accessible, and discharges under the jurisdiction's storm water rules, never back onto the roof.
- Storage tank: at least 2 ft from the critical root zone of protected trees and 5 ft from lot lines adjoining private lots, seepage pits and septic tanks (IPC Table 1303.10.1). Above grade it is opaque or shaded from sunlight (UPC 1603.8). Below grade its covers carry at least 300 lb/ft², its manhole is at least 20 in across and 4 in above grade, and it is anchored so it cannot float when empty (UPC 1603.9). Under IPC 1301.9.6, a below-grade tank outside the building needs a manhole at least 24 in square or 24 in inside diameter, extending at least 4 in above ground.
- Calmed inlet and outlet (IPC 1303.10.2 and 1303.10.3): water enters with minimum turbulence so settled material stays put, and leaves at least 4 in above the tank bottom without skimming the surface.
- Vent: under IPC 1301.9.7, opening turned down, protected against insects and vermin, never tied to sanitary vents, sized from the combined inflow pipe diameter and ending at least 4 in above grade. Under UPC 1603.13, required on each tank where venting through the drainage or overflow piping is not provided or is considered insufficient, at least 1 1/2 in, ending at least 6 in above grade, turned down and carrying 3/32 in mesh.
- Overflow: no shutoff valve under either code. UPC 1603.10.1 sizes it to carry the rainwater flow entering the tank and no smaller than the combined area of the inflow pipes, and UPC 1603.10 has it discharge in accordance with the code's storm drainage provisions, protected by a backwater valve or other approved method where it discharges to the storm drainage system. IPC 1301.9.5 sizes its diameter from Table 606.5.4 and requires a cleanout on each overflow pipe, and IPC 1303.11.1 requires a backwater valve on each overflow and tank drain pipe.
- Filter: 100 microns for water closets, urinals, trap primers and drip irrigation (UPC 1603.19), with access, a pressure gauge or other service indicator, and shutoff valves immediately upstream and downstream (IPC 1303.8).
- Pump (UPC 1603.14): listed, delivering at least 15 psi residual at the highest, most remote flushing fixture or trap primer, with a pressure reducing valve where building pressure would exceed 80 psi.
Sizing ties these parts together. A rainwater harvesting calculator will estimate how many gallons a roof yields in a year, but the inspector checks pipe and overflow sizes, and those come from roof area and the design rainfall rate.
Sizing the conveyance for a 2,500 sq ft roof
Tap Next to go through it.
Step 1
Roof: 2,500 sq ft of horizontal projected area drains to one horizontal rainwater pipe laid at 1/8 in per ft.
Step 2
Design rate: unless the AHJ sets otherwise, UPC 1101.12.1 sizes primary roof drainage on a 60-minute, 100-year storm, listed by location in Appendix D Table D 101.1. Take 4 in/h.
Step 3
Read UPC Table 1103.2 in the 4 in/h column: a 4 in pipe serves only 1,880 sq ft, so it is too small. A 5 in pipe serves 3,340 sq ft and carries 139 gpm. Use 5 in.
Step 4
Overflow: it must carry the rainwater flow entering the tank and be no smaller than the combined area of the inflow pipes. A single 5 in inflow makes 5 in the minimum overflow by area, and that overflow must also carry the inflow. Size it here for 139 gpm, the flow Table 1103.2 gives for the 5 in pipe running full, which is more than this 2,500 sq ft roof sends at 4 in/h.
Step 5
First flush: these code sections set no diversion volume, only performance. Take the volume from the approved design, then prove it with the IPC 1303.15.2 diverter test.
What to take from it
Roof area and design rainfall rate drive every size the inspector checks. The first-flush rule is about automatic, accessible operation, not a fixed volume.
Protecting the potable makeup supply
When a dry spell drains the tank, potable water usually tops it up, and that connection is where a rainwater system can contaminate the public supply. UPC 1602.4 forbids any direct connection to a potable or alternate water supply. Potable or reclaimed makeup water is allowed only through an air gap or a reduced-pressure principle backflow preventer. IPC 608.7 reaches the same place, prohibiting cross connections unless approved backflow protection guards the potable supply, and flatly banning any connection between a private supply and a public one. UPC 602.2 adds that the device must be approved for the hazard and kept maintained.
Watch out
Separation does not stop at the tank. Treated nonpotable and potable pipes may share a trench only with 12 in of vertical and horizontal separation, both materials approved for use inside a building, and the potable line on top. If the materials do not qualify, the separation rises to 60 in (UPC 1601.10).
Marking, signage and testing before start-up
Every nonpotable line must be obvious to the next trade who cuts into it. Under IPC 608.9.2, rainwater distribution pipe is purple and embossed or stamped with the words "CAUTION: NONPOTABLE WATER – DO NOT DRINK", or wrapped in purple identification tape. Markings name the contents, show a flow arrow, and repeat at intervals of no more than 25 ft and at every wall, floor and roof penetration. Tape is at least 3 in wide with white or black letters on purple stating the same caution, laid on top of the pipe, fastened at least every 10 ft and run the full length. Color field length and letter height follow IPC Table 608.9.2.2:
- 3/4 to 1 1/4 in pipe: 8 in field, 0.5 in letters
- 1 1/2 to 2 in pipe: 8 in field, 0.75 in letters
- 2 1/2 to 6 in pipe: 12 in field, 1.25 in letters
- 8 to 10 in pipe: 24 in field, 2.5 in letters
- Over 10 in pipe: 32 in field, 3.5 in letters
Under the UPC, rainwater piping is marked with the words "CAUTION: NONPOTABLE RAINWATER, DO NOT DRINK" in black letters. Under IPC 1301.3, every nonpotable outlet gets a point-of-use sign reading "Nonpotable water is utilized for [application name]. CAUTION: NONPOTABLE WATER – DO NOT DRINK." in contrasting letters at least 0.5 in high, with the Figure 1301.3 do-not-drink pictograph. UPC 1603.2 allows outside hose bibbs on rainwater piping and requires them to be marked "CAUTION: NONPOTABLE RAINWATER, DO NOT DRINK" and as shown in Figure 1603.2. Tanks show their rated capacity and nonpotable contents, any opening a person could enter is marked as a confined space, and UPC openings over 12 in are lockable or otherwise secured. Commercial, industrial and institutional restrooms flushing with rainwater get a sign in 1/2 in letters. Equipment rooms get one in 1 in letters.
Testing proves the system before anyone relies on it. Under IPC 1303.15, run water into the collection system upstream of the first-flush diverter and confirm it diverts the first water, inspect every inlet and vent for insect and vermin protection, and verify water quality at the point of use. ASTM E2727 is the standard for judging whether site conditions affect raw rainwater. Under the UPC, any system partly inside a building needs an initial cross-connection test under Section 1605.3, and both the rainwater and potable piping need the valves and relief valves to shut down or drain for it.
Warning
The installer runs that cross-connection test with the AHJ present, before occupancy or activation, and final approval waits until the AHJ rules it successful (UPC 1602.5).
Frequently asked questions
Is it illegal to harvest rainwater in Texas?
The model IPC and UPC set no state-by-state rules. See the legality section above and confirm with the local AHJ.
What limits apply if harvested rainwater is treated or disinfected?
Under IPC 1301.2.1, chlorine-disinfected water may hold no more than 4 ppm of chloramines or free chlorine, tested to ASTM D1253, and ozone-treated water must not carry gas bubbles with elevated ozone at the point of use. The UPC requires no treatment for subsurface or drip irrigation, or for above-ground irrigation with up to 360 gallons of storage. Where testing cannot hold the Table 1603.5 levels, the UPC requires a treatment device meeting the applicable NSF standards.
Who is responsible for maintaining a rainwater system after handover?
Under UPC 1601.5.3 the property owner is, unless the AHJ says otherwise. For permitted systems the owner keeps a maintenance log open for inspection, and the designer supplies an operation and maintenance manual. That manual covers a system diagram, operating instructions, water quality details, how to deactivate the system, testing and inspection frequencies, and how to reach the manufacturers.
What happens to a rainwater system that is no longer used?
UPC 1601.11 requires abandonment of any rainwater system that is out of use or not maintained to the code. The abandoned system, or the abandoned part, must be disconnected from the remaining systems, drained, plugged and capped in an approved manner.
Can a rainwater storage tank be made of wood?
Yes, within limits. IPC 1301.9.2 calls for an approved tank of durable, nonabsorbent, corrosion-resistant material compatible with any disinfection used, and a wooden tank without a makeup water source needs a flexible liner. The UPC asks for solid, durable materials that resist excessive corrosion or decay and stay watertight.
Disclaimer: The information provided in this educational content has been prepared with care to reflect current regulatory requirements for continuing education. However, licensing rules and regulations can vary by state and are subject to change. While we strive for accuracy, ExpertCE cannot guarantee that all details are complete or up to date at the time of reading. For the most current and authoritative information, always refer directly to your state’s official licensing board or regulatory agency.


