About the Pipe Flow Calculator
The Pipe Flow Calculator computes Reynolds number, Moody friction factor (via Swamee–Jain explicit form or Colebrook iteration), pressure drop through pipe length and fittings, and required pump shaft power. Supports both Darcy–Weisbach (universally applicable, the rigorous choice) and Hazen–Williams (empirical, water-only, ubiquitous in fire-protection and municipal-water design).
It is built for plumbing contractors sizing supply lines for a multi-fixture branch, irrigation designers selecting pump capacity against elevation rise, HVAC engineers running chilled-water loop calcs, fire-protection engineers checking the ΔP against the fire-pump curve, and brewers / homebrewers / aquarium owners trying to figure out why their flow is half what they expected.
All calculations run locally in JavaScript. Pipe specifications, fluid properties, flow rates, and elevation never leave your device. The page makes no network call after first load. Material roughness defaults (PVC, copper, steel, cast iron, HDPE) and fitting K-values are bundled in.
The tool is valid for incompressible, steady-state flow — water, oil, low-velocity air. Compressible flow above Mach ~0.3 needs isothermal or adiabatic compressible-flow methods that aren’t implemented here. Pump shaft power uses an editable efficiency (70% default); real centrifugal pumps run 50–85% depending on operating point, so consult the pump curve before sizing the motor. Aged or corroded pipes can be 5–10× rougher than new pipes; for old systems, double the bundled roughness as a planning conservatism.
Paste pump curve points (flow, head) — tool finds where pump curve intersects system curve.
Target max pressure drop and the tool sizes pipe for least cost.
How to Use the Pipe Flow Calculator
Choose a fluid and pipe material so the tool picks density, viscosity, and roughness for you. Enter diameter, length, and flow rate — results update on every keystroke. Use the Method chips to pick Darcy-Weisbach (universal) or Hazen-Williams (water-only). The Fittings panel adds minor losses; the pump-efficiency slider scales hydraulic power up to shaft power.
Reynolds Number and Flow Regimes
Reynolds number Re = ρvD/μ measures the ratio of inertial to viscous forces.
Re < 2,300 is laminar — smooth parabolic velocity profile, friction factor exactly
64/Re. Re > 4,000 is turbulent, where friction follows the
Colebrook-White equation. The 2,300–4,000 transitional zone is unstable — avoid it
in design when possible.
The Moody Chart and the Colebrook-White Equation
The Moody chart plots friction factor vs. Reynolds number for various relative roughness
values. It is the visual form of the implicit Colebrook-White relation,
1/√f = −2·log(ε/(3.7D) + 2.51/(Re√f)). This
tool solves Colebrook by Newton iteration, with the Swamee-Jain explicit approximation as
the initial guess.
Darcy-Weisbach vs. Hazen-Williams in Practice
Darcy-Weisbach ΔP = f·(L/D)·(ρv²/2) works for any
fluid, any pipe, any flow regime. Hazen-Williams is a curve-fit for water at room
temperature: hf = 10.67·L·Q1.852/(C1.852·D4.87)
in SI. The C factor rolls up roughness and viscosity into a single empirical
number per material. Hazen-Williams is faster for fire-protection and municipal-water hand
calc, but it lies for non-water fluids.
Pipe Roughness by Material and Age
- PVC, copper, HDPE: ε ≈ 0.0015 mm (smooth).
- Commercial steel (new): 0.045 mm.
- Galvanized iron: 0.15 mm.
- Cast iron: 0.26 mm.
- Concrete: 0.3–3.0 mm depending on finish.
- Aged or corroded pipes: 5–10× the new value.
Calculating Minor Losses from Fittings
Each fitting introduces a head loss hm = K·v²/(2g).
Typical K values: 90° elbow 0.9, gate valve open 0.15, globe valve open 6.0, tee through
0.6, tee branch 1.8. Minor losses dominate in short, fitting-heavy runs (residential
plumbing) and become negligible in long, straight pipelines.
Pump Sizing from Pressure Drop
Hydraulic power Phyd = ΔP·Q is the mechanical work delivered
to the fluid per second. Shaft power is Pshaft = Phyd/η.
Real pumps run 50–85% efficient depending on type and operating point relative to BEP
(best-efficiency point). The Pro pump-curve mode finds where your pump’s published curve
intersects the system curve — that’s where it will actually operate.
For non-pipe heat-transfer work, see Heat Transfer Calculator. All Math & Science tools.
Frequently Asked Questions
Darcy-Weisbach vs. Hazen-Williams — when do I use each?
Darcy-Weisbach is universally applicable across fluids and flow regimes. Hazen-Williams is an empirical water-only formula common in fire protection and municipal water design. The tool defaults to Darcy-Weisbach.
What Reynolds number means turbulent flow?
Re below 2,300 is laminar; 2,300 to 4,000 is transitional; above 4,000 is turbulent. Pipe-flow design almost always operates turbulent (Re above 10,000), where the Colebrook-White friction factor applies.
What pipe roughness should I use?
Smooth PVC roughness is about 0.0015 mm. Commercial steel is 0.045 mm. Cast iron is 0.26 mm. Aged or corroded pipes can be 5 to 10 times rougher than new pipes. The tool ships median values per material.
How accurate is the pump power calculation?
Hydraulic power (pressure times flow) is exact. Shaft power requires dividing by pump efficiency, which varies 50 to 85% depending on operating point. The tool defaults to 70%; override with your pump curve for accuracy.
Does the tool work for compressible flow?
It is valid for incompressible flow — water, oil, and low-velocity air. Compressible flow at Mach above 0.3 needs isothermal or adiabatic compressible methods not implemented here.