Friction makes pressure fall along a pipe. The Darcy–Weisbach equation with the Swamee–Jain friction factor covers laminar and turbulent flow in water, air and other fluids.
How to use this calculator
- Choose the fluid (or enter density and viscosity).
- Enter the flow rate, inside diameter and pipe length.
- Choose the pipe material for its roughness.
Formula
Δp = f × (L/D) × ρv²/2, f (turbulent, Swamee–Jain) = 0.25 / [log10(ε/3.7D + 5.74/Re^0.9)]², f (laminar) = 64/ReStraight pipe only. Add fittings as equivalent lengths. The turbulent formula is also used in the 2300–4000 transition range, where real values are uncertain.
Worked example
2 L/s of water at 20 °C in 100 m of 50 mm commercial steel pipe: v = 1.02 m/s, Re ≈ 51 000, f ≈ 0.023, Δp ≈ 24 kPa (2.5 m head).
Frequently asked questions
Darcy or Fanning friction factor?
This uses the Darcy factor, which is four times the Fanning factor.
How accurate is Swamee–Jain?
Within about 1 % of the Colebrook equation for 5000 < Re < 10⁸ and typical roughness.
Results are for learning and preliminary design. Check critical work against the relevant codes and a qualified engineer.