Pipe Flow Calculator (Darcy-Weisbach)

Share:

Pipe flow calculator. Darcy-Weisbach head loss + Swamee-Jain (explicit Colebrook-White approximation) friction factor for turbulent flow. Reynolds + flow rate + pressure drop.

RT-ENG-009 · Engineering
Your browser is too old for this tool’s interactive features. Please update to Safari 13.1, Chrome or Edge 80, Firefox 74 or newer.

Pipe Flow

Advertisement
After results · AD-W1Responsive · Post-tool — peak engagement

How to use the pipe flow calculator

Enter flow rate

Flow rate Q in L/min (1 L/min = 0.0167 GPM). Common ranges: residential plumbing 5-30 L/min, industrial process 100-1000 L/min, large pipelines 1000-50000 L/min.

Set pipe geometry

Inner diameter (ID) in mm. Standard sizes: 15 mm (½"), 20 mm (¾"), 25 mm (1"), 50 mm (2"), 100 mm (4"). Length in meters — total run from inlet to outlet.

Set fluid properties

Water (20°C): ρ=1000, μ=0.001 Pa·s. Air (20°C): ρ=1.225, μ=0.0000181. Engine oil: ρ=870, μ=0.04. Properties vary with temperature — adjust for hot water (60°C: μ ≈ 0.00046) or hot oil.

Set roughness

Roughness ε in mm: PVC + smooth plastic 0.0015, copper 0.0015, stainless steel 0.015, drawn steel 0.045, galvanized 0.15, cast iron 0.25, concrete 1.0+. Roughness matters more at high Reynolds numbers.

Read pressure drop + head loss

Pressure drop ΔP = ρ·g·h_f, where h_f is head loss in meters of fluid column. Used for pump sizing: pump must overcome total head (elevation + pipe friction + velocity head + minor losses). For long pipelines, friction dominates; for short systems, minor losses (fittings) may exceed friction loss.

Advertisement
After how-to · AD-W2Responsive

Pipe flow — Darcy-Weisbach + Colebrook-White

Pipe flow head loss calculations are the foundation of plumbing, HVAC, process piping, hydraulic + pneumatic system design. The Darcy-Weisbach equation h_f = f·(L/D)·(v²/2g) gives the head loss along a pipe due to friction, where f is the dimensionless Darcy friction factor, L is pipe length, D is diameter, v is velocity, g is gravitational acceleration. The challenge: f depends on Reynolds number + pipe roughness in a complex way. For turbulent flow, the implicit Colebrook-White equation requires iterative solution. This calculator uses the explicit Swamee-Jain (1976) approximation which is accurate to ~1% for typical engineering applications and avoids iteration.

Flow regimes + friction factor

Laminar (Re < 2300): f = 64/Re, independent of roughness. Friction factor is large but flow is slow. Transitional (2300-4000): unstable, calculator assigns approximate value. Turbulent (Re > 4000): Colebrook-White or Swamee-Jain gives f as function of Re + relative roughness ε/D. At very high Re, f approaches a constant value depending only on ε/D ("fully rough" regime). Most engineering pipe flow is turbulent — laminar is rare except in very small pipes, very viscous fluids, or very low flow rates.

Darcy-Weisbach is the universal pipe head loss equation. Colebrook-White provides the friction factor. Swamee-Jain (1976) gives an explicit approximation that's accurate to 1% — no iteration needed.

Minor losses

Beyond friction in straight pipe, fittings cause additional head loss: elbows, tees, valves, sudden contractions/expansions, entrances/exits. These are characterized by loss coefficients K: h_minor = K·v²/(2g). Typical K values: 90° standard elbow ~0.75, gate valve fully open ~0.15, fully open ball valve ~0.05, sharp pipe entrance ~0.5, sharp pipe exit ~1.0. For complex piping systems, sum all major (friction) + minor losses. For short systems with many fittings, minor losses can exceed friction loss in straight pipe.

Practical applications

Residential plumbing: target velocities 1-3 m/s (above causes water hammer + noise; below allows debris settling). HVAC chilled water: 1.5-3 m/s. Process piping: depends on fluid + service. Fire sprinkler systems: NFPA 13 sizing with specific Hazen-Williams formula. Sewer lines: minimum velocity 0.6 m/s to prevent solids settling. Pump sizing: total head = static head (elevation) + dynamic head (friction + minor losses + velocity head).

Darcy-Weisbach, Colebrook against Swamee-Jain, and roughness by material

01

Darcy-Weisbach: h_f = f·(L/D)·(v²/2g). The universal pipe head loss equation.

02

Friction factor f: 64/Re laminar; Colebrook-White turbulent.

03

Swamee-Jain (1976) explicit approximation: ~1% accurate vs Colebrook iterative.

04

Pressure drop ΔP = ρ·g·h_f. Used for pump sizing.

05

Velocity ∝ Q/D². Doubling diameter = quartering velocity at same flow.

06

Head loss ∝ v² ≈ Q² for turbulent flow. Quadratic — small velocity changes are large losses.

07

Roughness ε: PVC 0.0015 mm, steel 0.045, cast iron 0.25 — wide variation.

08

Minor losses (fittings): K factors. For short systems, can dominate friction loss.

09

Typical water velocity: 1-3 m/s. Above causes noise + erosion; below allows settling.

10

Hazen-Williams formula: empirical alternative used in fire sprinkler + water-supply design.

📅 Research current as of 13 Sep 2026 · Sources: Swamee PK, Jain AK. Explicit equations for pipe-flow problems. Journal of the Hydraulics Division, ASCE 1976;102(5):657-664. https://doi.org/10.1061/JYCEAJ.0004; Colebrook CF. Turbulent flow in pipes, with particular reference to the transition region between the smooth and rough pipe laws. Journal of the Institution of
Standards, published formulas, and reference data are revised over time — check against a current authoritative source before relying on these figures.

Frequently asked questions

  • Darcy-Weisbach is universal, theoretically derived, works for any fluid. Hazen-Williams is empirical, water-only, simpler formula. Hazen-Williams dominant in fire sprinklers + municipal water supply (NFPA standards); Darcy-Weisbach in industrial process engineering.

  • Friction loss in straight pipe only. To include fittings: sum K values from tables, compute h_minor = K·v²/(2g), add to friction h_f. Equivalent length method: convert fittings to equivalent pipe length, add to L. Both methods give similar answers.

  • Very small pipes (microfluidics), very viscous fluids (oils, syrups, polymer melts), very slow flow. Most everyday flow (water in plumbing, air in ducts) is turbulent. For honey or molasses in pipes: laminar even at modest flow rates due to high viscosity.

  • For low Re (10⁴), 30% variation in ε changes f by ~10%. For high Re (10⁶+), variation matters more. Cast iron + concrete pipes have especially uncertain roughness — engineering judgment to add 30-50% margin. For new pipes use nominal ε; for aged pipes use 2-5× nominal due to corrosion + scaling.

  • If pressure drop < 10% of absolute pressure: Darcy-Weisbach works. Larger drops: density changes through the pipe, need iterative compressible flow analysis. Natural gas pipelines: special formulas (Panhandle, AGA, Weymouth). Steam: special handling.

  • Below 0.6-1.0 m/s: settling possible in sewer + storm pipes. Above 3-5 m/s: water hammer, noise, erosion in long-term, cavitation in suction lines. Sweet spot: 1.5-3 m/s for most water service.

  • No. All inputs stay in your browser.

  • Determines pump head + power requirement. Excess drop = more pumping energy cost. Pump power ≈ Q·ΔP/efficiency. For a 100 L/min flow at 100 kPa drop and 75% efficient pump: 100/60 × 100000 / 0.75 / 1000 = 222 W electric input. Annual cost = power × $/kWh × hours/year.

  • Use hydraulic diameter D_h = 4A/P (4× cross-section area / wetted perimeter). For rectangular ducts: D_h = 2ab/(a+b). For annular: D_h = D_outer − D_inner. Same Darcy-Weisbach equation, just substitute D_h for D.

  • Crane Technical Paper No. 410 — industry standard pipe flow handbook. Moody chart in any fluid mechanics text. Swamee + Jain (1976) original paper. Colebrook + White (1939) for the underlying equation. White, Fox + McDonald textbooks.

Method & sources

How it computes

Darcy–Weisbach head loss h_f = f·(L/D)·v²/(2g) for a full circular pipe, with v = Q/(πD²/4), Re = ρvD/μ and g = 9.81 m/s². The Darcy friction factor is f = 64/Re for Re < 2 300 and, above that, the Swamee–Jain (1976) explicit approximation to Colebrook–White: f = 0.25 / [log₁₀(ε/(3.7·D) + 5.74/Re^0.9)]². Pressure drop = ρ·g·h_f. Defaults are water at about 20 °C (ρ = 1 000 kg/m³, μ = 0.001 Pa·s) and ε = 0.045 mm for new commercial steel.

What this tool implements

  • Flow regimes: laminar below Re 2 300, transitional 2 300–4 000, turbulent above 4 000. Swamee–Jain is stated for 5 × 10³ ≤ Re ≤ 10⁸ and 10⁻⁶ ≤ ε/D ≤ 10⁻²; the tool applies it from Re 2 300 upward and flags results in the transitional band or outside that envelope as approximate.
  • Swamee–Jain reproduces the implicit Colebrook–White friction factor to within about ±1% across its stated range; Colebrook–White is itself an empirical fit to Nikuradse's and commercial-pipe data.
  • Major (wall-friction) loss only — fittings, valves, bends, entrances and exits are not included; add them as minor losses or equivalent lengths.
  • The 0.045 mm default is the Moody-chart roughness for new commercial steel; aged, corroded or scaled pipe is several times rougher, and roughness is the dominant uncertainty in turbulent flow.

Sources

  • Swamee PK, Jain AK. Explicit equations for pipe-flow problems. Journal of the Hydraulics Division, ASCE 1976;102(5):657-664. https://doi.org/10.1061/JYCEAJ.0004542
  • Colebrook CF. 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 1939;11(4):133-156. https://doi.org/10.1680/ijoti.1939.13150
  • Moody LF. Friction factors for pipe flow. Transactions of the ASME 1944;66(8):671-684. https://doi.org/10.1115/1.4018140 — the chart the explicit fit approximates and the roughness values for commercial pipe (commercial steel 0.045 mm).
  • White FM. Fluid Mechanics. 8th ed. New York: McGraw-Hill Education; 2016. Chapter 6, Viscous flow in ducts — Darcy–Weisbach, the Moody chart and the recommended roughness table.

What can make this go out of date

  • None at runtime. Roughness is a user input; the 0.045 mm default describes new commercial steel and must be raised for aged pipe.
Advertisement
Pre-footer · AD-W3 728 × 90