Pipe Friction Loss Calculator
Calculate pressure drop, head loss, velocity, and friction factor for pipe flow using Darcy-Weisbach (Colebrook-White) or Hazen-Williams.
Friction loss is the pressure drop caused by fluid flowing through a pipe. It depends on the pipe diameter, length, internal roughness, flow velocity, and the fluid's density and viscosity. Accurately calculating friction loss is essential for sizing pumps, selecting pipe diameters, and ensuring adequate pressure at downstream equipment.
Darcy-Weisbach Method
The Darcy-Weisbach equation is the most general and theoretically rigorous approach to calculating friction losses. It works for any Newtonian fluid (water, oil, gas, refrigerants), any flow regime (laminar, transitional, turbulent), and any pipe size.
- — head loss due to friction (m)
- — Darcy friction factor (from Colebrook-White equation)
- — pipe length
- — internal diameter
- — flow velocity
- — gravitational acceleration
The friction factor f is determined iteratively using the Colebrook-White equation, which relates f to the Reynolds number and the pipe's relative roughness (ε/D). This calculator solves it automatically.
Hazen-Williams Method
The Hazen-Williams formula is an empirical equation widely used in water distribution system design. It replaces viscosity and roughness with a single C-factor (roughness coefficient), making it simpler but less general.
- — head loss due to friction (m)
- — Hazen-Williams coefficient (typically 100-150)
- — volumetric flow rate
- — internal diameter
- — pipe length
Hazen-Williams is only reliable for water near room temperature (5-25 °C) in turbulent flow through pipes larger than about 50 mm. It cannot be used for gases, oils, or refrigerants.
Which Method Should You Use?
Darcy-Weisbach is recommended as the default for general-purpose engineering calculations. It is more accurate and applicable to all fluids and flow conditions.
Hazen-Williams is appropriate when designing municipal water distribution networks, importing EPANET models, or when project specifications reference C-factors directly.
For a deeper comparison, see our blog post: Darcy-Weisbach vs Hazen-Williams.
Fittings and Equivalent Length
Pipe fittings (elbows, tees, valves, reducers) create additional pressure losses beyond straight-pipe friction. This calculator uses the equivalent length method (Crane TP-410 L/D ratios) to express each fitting as an equivalent length of straight pipe, which is then added to the total pipe length for the friction calculation.
For how to apply these losses correctly — K-factor versus equivalent length, and where each method breaks down — see: Minor losses in pipes.
Water at 20 °C (ρ = 998.2 kg/m³, μ = 1.002 mPa·s) flowing at 20 L/s through 50 m of DN 100 Schedule 40 commercial steel pipe (internal diameter 102.26 mm, roughness 0.045 mm), no fittings. The numbers below are evaluated by the same functions the calculator above runs, so entering these inputs reproduces them exactly.
- Flow area A = π·D²/4 = 0.008213 m², so the mean velocity V = Q/A = 2.435 m/s.
- Reynolds number Re = ρ·V·D/μ = 248,076 — fully turbulent.
- Relative roughness ε/D = 4.40e-4; solving the implicit Colebrook-White equation gives the Darcy friction factor f = 0.01814.
- Head loss h_f = f·(L/D)·V²/(2g) = 0.01814 × (50/0.10226) × V²/(2 × 9.80665) = 2.68 m.
- Pressure drop ΔP = ρ·g·h_f = 26.2 kPa.
Adding two standard 90° elbows (Crane L/D = 30 each) contributes an equivalent length of 6.14 m, raising the loss to 3.01 m (29.5 kPa) — the same fold-in the fittings picker above performs.
Because f comes from the implicit Colebrook-White equation rather than an explicit approximation (Churchill, Swamee-Jain, Haaland), a textbook or a Moody-chart reading worked on Colebrook-White matches to the last digit; explicit correlations typically read 0.5–2% higher.
- Steady, single-phase, fully developed flow in a full circular pipe of uniform bore. Two-phase, slurry and non-Newtonian flow are outside the method.
- Liquids are treated as incompressible. Gas presets use the density at the stated pressure and temperature — a fair approximation when the pressure drop is under ~10% of the absolute inlet pressure; beyond that the density change along the pipe matters and a compressible solve is needed.
- Darcy-Weisbach uses the Darcy friction factor (four times the Fanning factor): f = 64/Re below Re 2,000, the Colebrook-White equation solved to convergence above Re 4,000, and an interpolation across the transition band, where no correlation is reliable.
- Hazen-Williams is an empirical fit for water near 15 °C in turbulent flow; it ignores viscosity, so it is not valid for other fluids, laminar flow, or very small or very large pipes.
- Fittings are folded in as Crane TP-410 equivalent lengths (L/D × internal diameter) on a fully-turbulent basis; at low Reynolds numbers a fitting's real loss is higher than this basis predicts.
- Elevation change, pumps, valves with a flow coefficient, and branched or looped networks are not represented here — those need the full solver.
The calculator and the SimuPipe solver share the same friction-factor, Darcy-Weisbach and Hazen-Williams code. The solver's accuracy is documented case by case against textbook and standards examples on the validation page (53 published cases, including Janna, Crane TP-410 and Larock pipe-friction problems).
None of these methods are ours — check them at the source.
- Colebrook, C. F. (1939). "Turbulent flow in pipes, with particular reference to the transition region between the smooth and rough pipe laws." Journal of the Institution of Civil Engineers, 11(4), 133–156. doi:10.1680/ijoti.1939.13150
- Moody, L. F. (1944). "Friction factors for pipe flow." Transactions of the ASME, 66, 671–684.
- Crane Co. Flow of Fluids Through Valves, Fittings, and Pipe, Technical Paper No. 410 — equivalent-length fittings data and roughness values.
- Williams, G. S. and Hazen, A. (1920). Hydraulic Tables, 3rd ed., Wiley — origin of the Hazen-Williams formula.
- Rossman, L. A. (2000). EPANET 2 Users Manual, US EPA — SI form of the Hazen-Williams head-loss relation used here (10.67·L·Q^1.852/(C^1.852·D^4.8704)).
- White, F. M. Fluid Mechanics, McGraw-Hill — derivation of Darcy-Weisbach and the friction-factor regimes.
Embed this friction loss calculator on your site
Add the free SimuPipe pipe friction loss calculator to your own page or blog. Copy the code below — it includes a "Powered by SimuPipe" link back to the full tool.
Frequently Asked Questions
What is the difference between Darcy-Weisbach and Hazen-Williams?
What pipe roughness value should I use?
How do I account for fittings and valves in friction loss?
What is the difference between gauge and absolute pressure?
Can I use this calculator for gas or steam piping?
Design your pipe network with SimuPipe
SimuPipe lets you visually build pipe networks with pumps, valves, tees, and more — then simulate the entire system in one click.
