Free plumbing calculator. Calculate pipe sizes, flow rates, pressure drop, water heater sizing, and drain slope requirements. Ensure code compliance.
Results
Calculated
Result
—
Add this calculator to your website
What this calculator is for
This tool bundles five common residential plumbing calculations into one place: pipe size recommendations, flow rate, pressure drop, water heater sizing, and drain slope. Rather than looking up separate tables for each, you can switch between calculation types with the dropdown above and get an estimate based on standard plumbing-code formulas. It's aimed at homeowners planning a renovation, DIYers running new supply or drain lines, and students or apprentices checking their work against the Uniform Plumbing Code (UPC) and International Plumbing Code (IPC).
Use the Pipe Size mode when you need to know what diameter supply pipe a group of fixtures requires. Use Flow Rate or Pressure Drop when sizing or troubleshooting an existing run. Use Water Heater Sizing when replacing a water heater or planning for a new bathroom. Use Drain Slope to check that a drain run falls at the code-minimum grade. Every mode gives a starting estimate — always confirm against your local plumbing code before buying materials or scheduling an inspection, since amendments to UPC/IPC vary by jurisdiction.
The formulas
Pipe size: total fixture units (2 units per fixture, if you don't have exact values) are matched against a simplified UPC sizing table — for example, 7-12 fixture units call for a 1" supply pipe with about 15 GPM of capacity.
Flow rate: Q = A × V, where A is the pipe's cross-sectional area (π × radius², converted from inches to feet) and V is flow velocity in ft/s. The result in cubic feet per second is converted to gallons per minute by multiplying by 448.831.
Pressure drop: uses the Hazen-Williams equation, hf = 10.67 × L × Q1.852 ÷ (C1.852 × d4.87), where L is pipe length (ft), Q is flow rate (GPM), C is the pipe material's roughness coefficient, and d is inside diameter (in). Head loss in feet is converted to PSI by multiplying by 0.433.
Water heater sizing: peak-hour demand is estimated from simultaneous showers (2.5 GPM × 8 minutes each) plus 10 gallons for other fixtures, then matched to a tank size band based on occupant count.
Drain slope: minimum fall is 1/4" per foot for pipes up to 3" and 1/8" per foot for larger pipes (per UPC/IPC), multiplied by the run length to get total required drop.
Worked example: Pipe Size mode
With the default inputs — 5 fixtures, no fixture-unit override, copper pipe — the calculator estimates 2 fixture units per fixture: 5 × 2 = 10 total fixture units. Since 10 falls in the 7-12 range, the recommended pipe size is 1 inch, with an approximate maximum flow capacity of 15 GPM. Click Calculate with the defaults in place and you should see exactly this: "Total fixture units: 10 ... Recommended pipe size: 1 in ... Approx. max flow capacity at that size: 15 GPM" — matching this by-hand check.
Common mistakes and how to interpret results
Confusing fixture count with fixture units. A toilet, a shower, and a kitchen sink don't all carry the same fixture-unit load. If you know your fixtures' actual unit ratings from a plumbing table, enter that total directly rather than relying on the 2-units-per-fixture estimate.
Ignoring velocity limits. A pipe can technically carry more flow than is comfortable — velocities above 8 ft/s cause noise, water hammer, and premature erosion of fittings. The pressure-drop mode flags this automatically; treat the warning seriously even if the pressure drop number looks acceptable.
Applying supply-pipe sizing logic to drains. Supply pipes are sized for pressure and flow; drain pipes are sized for gravity flow and slope. Don't mix the pipe-size result from one mode into the drain-slope calculation — they answer different questions.
Treating the water heater estimate as exact. Peak demand assumes standard 2.5 GPM showerheads and 8-minute showers. A household with rainfall showerheads, a soaking tub, or teenagers who take 20-minute showers should size up from the suggested tank.
Frequently Asked Questions
What's a fixture unit, and why not just count fixtures?
A fixture unit is a standardized measure of the load a fixture places on the drain-waste-vent or supply system — a toilet, for instance, typically counts as more units than a bathroom sink. Counting fixtures alone ignores this, so codes use fixture-unit tables to size pipes accurately. This calculator's fixture-count option is a rough estimate (2 units per fixture); use the fixture-unit override when you have exact values from your local code.
Why does pipe material affect pressure drop but not pipe sizing?
The Hazen-Williams roughness coefficient (C) accounts for how much friction a pipe's interior surface adds as water flows through it — smoother pipes like copper and PEX (C=140) lose less pressure than rougher galvanized steel (C=120) over the same length. Fixture-unit pipe sizing tables, by contrast, are based on flow capacity requirements and are applied similarly regardless of material.
Is a bigger pipe always better for flow rate?
Not necessarily. Oversizing a pipe reduces velocity for a given flow rate, which can cause sediment to settle in drain lines or reduce hot water response time in supply lines. The goal is matching pipe size to expected demand, not maximizing diameter — that's why sizing tables exist instead of "bigger is better" rules.
Do tankless water heaters need different sizing math?
Yes — instead of a storage tank in gallons, tankless units are rated by GPM output. This calculator's water heater mode gives a tankless GPM tier alongside the tank size, based on how many fixtures might run hot water simultaneously. Always cross-check the tankless unit's rated GPM at your local groundwater temperature, since colder incoming water reduces a tankless unit's usable output.
Plumbing Calculator - Pipe Size & Flow Rate Calculator is most useful when the inputs reflect the situation you are actually planning around, not a best-case estimate. Treat the result as a decision aid: it gives you a structured way to compare assumptions, spot outliers, and decide what to verify next. For Construction work, the most important review lens is material tolerances, waste factor, span, load, site conditions, and code requirements.
Start with a baseline run using values you can defend. Then change one assumption at a time and watch which output moves the most. If one input dominates the result, spend your verification time there first. If several inputs have similar influence, use a conservative scenario and an optimistic scenario to create a practical range instead of relying on a single exact number.
Before acting on the result, compare the output with manufacturer tables, local code, and field measurements before buying materials or building. This is especially important when the calculator supports a purchase, project plan, performance target, or operational decision. The calculator can make the math consistent, but the quality of the conclusion still depends on current data, clear units, and assumptions that match your real constraints.
When the output looks surprising, slow down and inspect each input in order. A small change in one high-leverage field can move the final number more than several low-leverage fields combined. For Plumbing Calculator - Pipe Size & Flow Rate Calculator, that means you should first confirm the value with the greatest scale, then confirm the value with the greatest uncertainty, then rerun the calculator with conservative and optimistic assumptions. This sequence turns the calculator from a single answer into a practical decision range.
Review Checklist
Confirm every input uses the unit and time period requested by the calculator.
Run a low, expected, and high scenario so the answer has a useful range.
Check whether rounding or a missing decimal place changes the decision.
Update the calculation after every measurement revision, material substitution, or scope change.