← All Engineering Tools

Engineering Calculators

Piping & Hydraulics

Complete piping and hydraulic calculations for liquid lines, fittings, pressure losses, system curves, NPSH, gravity flow, gas flow, Mach number, choked-flow screening, surge, line inventory and operating checks. Multiple input/output units and calculation history are included.

Piping hydraulics formulas and worked examples

How do you calculate pressure drop in a pipe?

Use the Darcy–Weisbach equation: ΔP = f · (L / D) · (ρ · v² / 2), where f is the Darcy friction factor, L the pipe length, D the internal diameter, ρ the fluid density and v the mean velocity.

Example: water (ρ = 1000 kg/m³) at 2 m/s in 100 m of 150 mm ID commercial steel pipe with f = 0.0175: ρv²/2 = 2000 Pa and L/D = 667, so ΔP = 0.0175 × 667 × 2000 ≈ 23.3 kPa (0.233 bar). Add fitting and valve losses separately.

How do you calculate the Reynolds number?

Re = ρ · v · D / μ. For the example above with μ = 1 mPa·s: Re = 1000 × 2 × 0.15 / 0.001 = 300 000, which is fully turbulent.

Which friction factor equation should be used?

Laminar flow (Re < 2 300) uses f = 64 / Re, independent of roughness. Between Re 2 300 and 4 000 the flow is transitional and should be avoided or checked for both cases. Turbulent flow (Re ≥ 4 000) uses the explicit Swamee–Jain approximation of the Colebrook equation: f = 0.25 / [log10(ε / 3.7D + 5.74 / Re0.9)]².

What is the difference between the Darcy and Fanning friction factors?

The Darcy factor is four times the Fanning factor (fDarcy = 4 · fFanning). Use one consistently; mixing them is a common cause of pressure-drop errors of a factor of four.

Which pipe roughness should I use for design?

Use aged or corroded roughness for the required-head (rated) case and new, clean roughness for maximum-flow, motor-power and NPSH checks, because a smoother pipe lets the pump run further out on its curve. The roughness table above lists typical values.

Important: Results are preliminary and do not replace API, ASME, IEC, ISO, project specifications, vendor guarantees, process simulation or a formal design review. Verify units and use absolute pressure for gas calculations.
Equation and unit references: SI conversion practice follows NIST guidance; pump-assessment context follows the U.S. Department of Energy MEASUR resources; ideal-gas compressor relations follow standard isentropic relations described by NASA Glenn Research Center.