Pipe Flow Calculator — Pressure Drop, Friction Factor & Water Hammer (Darcy-Weisbach / Colebrook-White)
Governing standard: Darcy-Weisbach· Darcy-Weisbach head-loss equation · Colebrook-White friction factor (Swamee-Jain explicit) · Joukowsky/Allievi water hammer · Crane TP-410 equivalent-length fittings
The MechanixCalc pipe flow calculator solves pressure drop, head loss and flow velocity in circular pipes using the Darcy-Weisbach equation with the Colebrook-White friction factor (Swamee-Jain explicit form). Enter the pipe diameter, length and roughness, select a fluid from the built-in library or enter custom properties, and the tool returns the Reynolds number, flow regime, Darcy friction factor, total pressure drop and hydraulic power in one pass — with an interactive Moody diagram overlaying your operating point.
Beyond the single-pipe calculation, the tool covers pump and system curve intersection (to find the true operating flow for a centrifugal pump), Joukowsky / Allievi water-hammer surge pressure (for rapid or gradual valve closure), compressible isothermal gas-flow correction, and series / parallel pipe network solving. It is built for process, HVAC and hydraulic engineers who need a quick, defensible pressure-drop number and want to export a standards-cited PDF calculation.
What this calculator does
- Darcy-Weisbach pressure drop with Colebrook-White friction factor (Swamee-Jain explicit form) — laminar (f = 64/Re), transitional blend and turbulent
- Reynolds number and automatic flow-regime classification (Laminar / Transitional / Turbulent)
- Interactive Moody diagram with the operating point overlaid on the full ε/D family of curves
- Pump & system curve intersection — locate the true operating flow rate and head for a centrifugal pump
- Water-hammer surge pressure via Joukowsky (rapid closure) and Allievi (gradual closure), with wave-speed calculation and closing-time chart
- Series and parallel pipe network solver — given total flow find ΔP, or given ΔP find flow in each branch
- Compressible isothermal gas-flow correction with Mach-number warning for Ma > 0.3
- 30+ built-in fluids and pipe materials; K-factor (minor loss) panel for valves, bends and fittings; branded PDF engineering report
Method & formulas
Darcy-Weisbach pressure drop and friction factor
The Darcy-Weisbach equation relates pressure drop to the velocity head, scaled by the Darcy friction factor f and the pipe slenderness ratio L/D. For laminar flow (Re < 2300) the friction factor is the exact analytical result f = 64/Re from the Hagen-Poiseuille solution. In the turbulent regime (Re > 4000) the Colebrook-White equation implicitly couples f to the Reynolds number and the relative roughness ε/D; MechanixCalc evaluates the Swamee-Jain explicit approximation, which agrees with Colebrook-White to within 1–2% across the full turbulent Moody chart. A linear blend spans the transitional band (2300 < Re < 4000).
Minor losses from fittings, bends and valves are added via the equivalent-length (L/D) method following Crane Technical Paper TP-410, so the effective pipe length grows by Σ(L/D)ᵢ · Dᵢ for each fitting count.
ΔP = f · (L / D) · (ρ · v² / 2)where ΔP = pressure drop (Pa); f = Darcy friction factor (−); L = pipe length (m); D = internal diameter (m); ρ = fluid density (kg/m³); v = mean flow velocity (m/s)
f = 0.25 / [log₁₀(ε/(3.7·D) + 5.74 / Re⁰·⁹)]²where ε = absolute pipe roughness (m); D = internal diameter (m); Re = Reynolds number (−). Valid for 5 × 10³ < Re < 10⁸ and 10⁻⁶ < ε/D < 10⁻².
Re = ρ · v · D / μwhere ρ = fluid density (kg/m³); v = mean flow velocity (m/s); D = internal diameter (m); μ = dynamic viscosity (Pa·s)
Pump and system curve intersection
A centrifugal pump operates at the flow rate where its head-flow (H-Q) curve intersects the system resistance curve. The system curve combines a fixed static-head component with a velocity-head component that grows as Q². MechanixCalc models the pump curve as a parabola H_pump = H₀ − k·Q² (shutoff head minus a steepness coefficient times flow squared) and solves for the intersection analytically, then plots both curves so the engineer can verify the operating point graphically.
H₀ − k · Q_op² = H_static + R_sys · Q_op² → Q_op = √((H₀ − H_static) / (k + R_sys))where H₀ = pump shutoff head (m); k = pump curve steepness (m/(m³/h)²); H_static = system static head (m); R_sys = system resistance coefficient (m/(m³/h)²); Q_op = operating flow rate (m³/h)
Water-hammer (transient pressure) surge
Rapid valve closure generates a pressure wave that travels at the acoustic wave speed a through the fluid-pipe system. If the closure time tₒ is shorter than the critical time tₒ_crit = 2L/a (the time for one full wave reflection), the full Joukowsky surge applies; longer closures use the Allievi gradual formula. The wave speed depends on the fluid bulk modulus K and the pipe wall stiffness (elastic modulus E, diameter D, wall thickness t).
a = √( K/ρ / (1 + K·D/(E·t)) )where a = wave speed (m/s); K = fluid bulk modulus (Pa); ρ = fluid density (kg/m³); D = pipe internal diameter (m); E = pipe wall elastic modulus (Pa); t = pipe wall thickness (m)
ΔP = ρ · a · v₀where ΔP = surge pressure rise (Pa); ρ = fluid density (kg/m³); a = wave speed (m/s); v₀ = initial flow velocity (m/s)
Worked example
Estimate the pressure drop for water flowing through a 10 mm internal-diameter, 5 m long smooth-bore tube at a flow rate of 1 L/min. Water properties: ρ = 1000 kg/m³, μ = 0.001 Pa·s.
Given
- Internal diameter D10 mm (0.010 m)
- Pipe length L5 m
- Flow rate Q1 L/min = 1.667 × 10⁻⁵ m³/s
- Fluid density ρ1000 kg/m³
- Dynamic viscosity μ0.001 Pa·s
Result
- Flow regimeLaminar (Re = 2122)
- Darcy friction factor f0.0302
- Pressure drop ΔP≈ 340 Pa (0.0034 bar)
- Head loss h_L≈ 0.035 m (= ΔP / ρg)
- Compute the pipe cross-section area: A = π/4 × D² = π/4 × (0.010)² = 7.854 × 10⁻⁵ m².
- Find the mean flow velocity: v = Q / A = 1.667 × 10⁻⁵ / 7.854 × 10⁻⁵ = 0.2122 m/s.
- Compute the Reynolds number: Re = ρ · v · D / μ = 1000 × 0.2122 × 0.010 / 0.001 = 2122. Since Re < 2300, the flow is laminar.
- For laminar flow the Darcy friction factor is exact: f = 64 / Re = 64 / 2122 = 0.03016.
- Apply the Darcy-Weisbach equation: ΔP = f · (L/D) · (ρ · v² / 2) = 0.03016 × (5 / 0.010) × (1000 × 0.2122² / 2) = 0.03016 × 500 × 22.51 = 339 Pa.
- Cross-check with the Hagen-Poiseuille formula: ΔP = 128 · μ · L · Q / (π · D⁴) = 128 × 0.001 × 5 × 1.667 × 10⁻⁵ / (π × (0.010)⁴) = 1.067 × 10⁻⁵ / 3.142 × 10⁻⁸ ≈ 340 Pa. ✓
Illustrative example — verify with your own pipe geometry, fluid properties and fitting losses. The calculator includes minor losses from valves and bends via equivalent-length or K-factor methods.
Frequently asked questions
Which standard does this pipe flow calculator use?
The core pressure-drop calculation uses the Darcy-Weisbach equation with the Colebrook-White friction factor (evaluated via the Swamee-Jain explicit approximation). Minor losses follow the equivalent-length method from Crane Technical Paper TP-410. Water-hammer surge uses the Joukowsky equation for rapid closure and the Allievi formula for gradual closure. The governing equations and references are listed in the generated PDF report.
How does it handle laminar vs turbulent flow?
The tool determines the flow regime from the Reynolds number (Re = ρvD/μ). For Re < 2300 it applies the exact laminar result f = 64/Re (Hagen-Poiseuille). For Re > 4000 it uses the Swamee-Jain approximation to the Colebrook-White equation, which accounts for both the Reynolds number and the relative pipe roughness ε/D. A linear blend handles the transitional band (2300 < Re < 4000). The regime label — Laminar, Transitional or Turbulent — is displayed on every result.
Can it size a pump or find the operating point on the system curve?
Yes. The Pump & System Curve panel lets you enter the pump shutoff head, curve steepness coefficient, static system head, and pipe resistance parameters. The tool solves for the operating flow rate and head where the pump curve intersects the system curve, and displays both curves on an interactive chart. This is the standard method for selecting or verifying a centrifugal pump duty point.
What is water hammer and how does the calculator estimate it?
Water hammer is the pressure surge that occurs when flow is suddenly stopped — for example by a fast-closing valve. The surge pressure depends on the fluid velocity, density and the acoustic wave speed in the pipe. The tool computes the wave speed from the fluid bulk modulus and the pipe wall stiffness (elastic modulus and wall thickness). For closures faster than the critical time tc_crit = 2L/a, the full instantaneous Joukowsky surge (ΔP = ρ·a·v₀) is applied; for slower closures the lower Allievi gradual formula is used.
Is the pipe flow calculator free?
You can use the full calculator during a free 30-minute preview with no account needed, and a free 14-day account trial unlocks every tool on MechanixCalc with no credit card required. The branded PDF engineering report and the ability to save and reload calculations are part of a paid plan.
Related calculators
- Pipe Stress (ASME B31)Check thermal expansion, sustained and occasional load stresses in the same pipeline.
- DN / Piping StandardsLook up NPS/DN pipe schedules, wall thicknesses and inside diameters for your pressure-drop inputs.
- Hydraulic CylindersCalculate the supply-line pressure drop that reduces the effective cylinder force.
- Hydraulic AccumulatorSize the accumulator that absorbs the water-hammer surge or smooths flow pulsations.
- Compressor SizingDetermine the compressor duty point after accounting for pipeline pressure losses.
Run the Pipe Flow on your own numbers
Free 30-minute preview — no sign-up. A free 14-day account trial unlocks every tool and the branded PDF report, no credit card required.
Start free