Plumbing & Drainage Calculators
From a shower pan to a storm culvert, Plumbing & Drainage Calculators handle the math of moving water. Set pipe and gutter fall, find flow and head loss, and size tanks, pools, and ponds. Plan French drains and runoff before you dig.
What Plumbing & Drainage Calculators Solve
Plumbing & Drainage Calculators answer four kinds of questions. How much should a pipe fall? How much water moves through it? How much does a container hold? Where does rain go on a site?
Each question has its own math. The sections below follow those four groups, with the codes and formulas behind each one.
Gravity Drains: Getting the Fall Right
Drain lines work on gravity. Too little fall and solids settle. The line clogs over time. Code sets a minimum slope by pipe size.
The Pipe Slope Calculator, Drainage Fall Calculator, and Soil Pipe Fall Calculator handle building drains. The Sewer Line Slope Calculator covers the line from the house to the street. Each one turns run length and slope into total drop.
| Pipe size | IPC minimum slope | As a percent |
|---|---|---|
| 2-1/2 in or less | 1/4 in per ft | 2.08% |
| 3 to 6 in | 1/8 in per ft | 1.04% |
| 8 in or larger | 1/16 in per ft | 0.52% |
These values come from IPC Table 704.1. Piping upstream of a grease interceptor needs at least 1/4 in per ft, whatever its size. The UPC starts from 1/4 in per ft and allows 1/8 in per ft for 4 in and larger pipe only with approval. Your local code decides which applies.
Here is a quick check. A 4 in building drain runs 60 ft at 1/8 in per ft. The total fall is 60 ÷ 8, or 7.5 inches. Make sure the outlet end has that much depth before you trench.
Other Surfaces That Need Fall
Pipes are not the only thing that drains. The Gutter Slope Calculator sets the drop along a roof gutter toward the downspout. The Shower Pan Slope Calculator works out floor pitch and mortar bed height toward the drain. The Pool Slope Calculator handles the floor between shallow and deep ends. The Channel Slope Calculator finds slope for open ditches and swales.
Routing Around Obstacles
A rolling offset moves a pipe sideways and up or down at the same time. The Rolling Offset Calculator finds the true offset and the travel length between fittings.
The true offset is the square root of roll squared plus set squared. Travel is the true offset times the fitting constant. For 45° fittings the constant is 1.414. A true offset of 10 in needs about 14.1 in of travel.
Pressure Pipes: Flow and Friction Loss
Supply lines, fire lines, and irrigation run full and under pressure. Here the question is how much water moves and how much pressure the pipe eats along the way.
The Gallons Per Minute Calculator and Liters per Minute Calculator find flow rate from volume and time. The Pipe Flow Calculator ties flow to pipe size and velocity. The Pump Pressure Calculator converts pump head to pressure and totals the head a pump must overcome. The Fire Flow Calculator estimates the flow a building may need for firefighting. Local fire code sets the final number.
The Hazen-Williams Equation
The Hazen Williams Equation Calculator estimates friction loss in full pipes carrying water. A common US form gives loss in psi per foot of pipe.
$$p = \frac{4.52\,Q^{1.852}}{C^{1.852}\,d^{4.87}}$$
Here Q is flow in gallons per minute. The d term is the inside diameter in inches. C is the roughness factor, where a higher value means a smoother pipe.
| Pipe material | Typical design C |
|---|---|
| PVC and polyethylene | 150 |
| Cement-lined ductile iron | 130–140 |
| Copper | 130–140 |
| Steel, fire sprinkler work | Often 120 |
| Old unlined cast iron | 100 or lower |
These are typical published values. Metal pipe loses smoothness as it corrodes, so its C value drops with age. Plastic pipe holds its value. A lower C raises friction loss sharply, because C sits in the denominator with a 1.852 power.
Hazen-Williams is meant for water at ordinary temperatures in full pipes. For other fluids or high-accuracy work, engineers use other methods.
Open Channels and Partly Full Pipes
Sewers, culverts, and ditches rarely run full. For these, the Mannings Flow Calculator is the standard tool. In US units, Manning’s equation reads as follows.
$$Q = \frac{1.49}{n}\,A\,R^{2/3}\,S^{1/2}$$
Q is flow in cubic feet per second. A is the flow area in square feet. R is the hydraulic radius, which is flow area divided by wetted perimeter. S is the slope as a decimal. The n value describes roughness, and a lower n means a smoother surface.
Typical design values are about 0.009 for plastic pipe and about 0.013 for concrete. Corrugated metal runs much rougher, near 0.024.
The Partial Pipe Flow Calculator works out area and hydraulic radius when a pipe is only partly full. The Culvert Flow Calculator estimates what a culvert can carry from its size and slope.
Volume: Tanks, Pools, and Ponds
Volume tools share one conversion. One cubic foot holds about 7.48 US gallons.
The Pool Calculator, Pond Calculator, and Tank Volume Calculator find capacity for common shapes. The Pipe Volume Calculator finds how much water sits inside a pipe run, which matters for flushing and draining.
Take a 16 ft by 32 ft pool with an average depth of 4.5 ft. That is 2,304 cubic feet. At 7.48 gallons per cubic foot, it holds about 17,200 gallons.
For pools with a deep end, use the average depth. For irregular ponds, split the shape into simpler sections and add them.
Site Water: Runoff and Soil
The Storm Water Runoff Calculator uses the rational method. It is common for small drainage areas.
$$Q = C\,i\,A$$
Q is peak runoff in cubic feet per second. C is the runoff coefficient. It is higher for pavement and lower for lawn. The i term is rainfall intensity in inches per hour, and A is the area in acres.
Say a half-acre lot uses C = 0.9 and a rainfall intensity of 4 in per hour. Peak runoff is 0.9 × 4 × 0.5, or 1.8 cubic feet per second. Local stormwater rules set the design storm and C values.
The Soil Infiltration Rate Calculator finds how fast water soaks into the ground from a percolation test. That rate decides whether a French drain or dry well can work on your site.
Trench and Pipe Installation
The French Drain Calculator estimates gravel, fabric, and pipe for a drain trench. It accounts for the space the pipe takes up inside the gravel.
The Pipe Bedding Calculator estimates the stone that supports a pipe in its trench. Good bedding keeps the pipe on grade and spreads the soil load.
The Pipe Ovality Calculator finds how far a pipe has flattened from round. It uses the largest and smallest measured diameters. Inspectors use it to check flexible pipe after backfill.
Common Mistakes
Using nominal size for flow. Friction and flow depend on inside diameter. It varies by pipe schedule and material.
Mixing units. Manning’s equation above uses feet and seconds. Hazen-Williams uses gallons per minute and inches. Keep each formula in its own units.
Allowing a belly. A drain must fall evenly along its whole length. A low spot traps waste even if the total fall is correct.
FAQs
What is the minimum slope for a 4 inch drain?
Under IPC Table 704.1, 1/8 inch per foot, or about 1%. The UPC starts at 1/4 inch per foot and allows 1/8 inch only with approval.
What slope does a 2 inch drain need?
At least 1/4 inch per foot, which is about 2%. That applies to pipe 2-1/2 inches and smaller under the IPC.
How many gallons are in a cubic foot?
About 7.48 US gallons. Multiply cubic feet by 7.48 to get gallons.
When should I use Manning’s instead of Hazen-Williams?
Use Manning’s for open channels and pipes that are not flowing full, like sewers and culverts. Use Hazen-Williams for full pipes carrying water under pressure.
What C value should I use for PVC?
A design value of 150 is typical. Some designers use 140 to stay conservative.
Can I use these results for permits?
They are for planning and checking. Drain sizing, fire flow, and stormwater design must meet local code. Confirm with your inspector or engineer.