DigitHelm

Pipe Flow Calculator | Darcy-Weisbach

Calculate fluid flow rate, velocity, and pressure drop in pipes using the Darcy-Weisbach equation.

What Is the Pipe Flow Calculator | Darcy-Weisbach?

This pipe flow calculator performs full Darcy-Weisbach analysis: Reynolds number, flow regime classification, friction factor (64/Re for laminar, Swamee-Jain for turbulent), head loss, and pressure drop. It includes 5 fluid presets and 6 pipe material roughness presets, with a custom option for any fluid.

  • 5 fluid presets: Water 20°C, Water 60°C, Air 20°C, Hydraulic Oil, Glycerin, with density and viscosity pre-filled.
  • 6 pipe materials: Steel, PVC/Smooth, Cast Iron, Galvanized Steel, Copper/Brass, Concrete, with roughness ε pre-filled.
  • Flow regime: Colour-coded badge: Laminar (Re < 2300), Transitional, or Turbulent (Re > 4000).
  • Swamee-Jain equation: Explicit approximation to the Colebrook-White equation, accurate to ±2% for 10⁻⁶ ≤ ε/D ≤ 10⁻².
  • All key outputs: Re, friction factor, flow rate, head loss, pressure drop in kPa.

Formula

Re = ρvD/μ  ·  h_f = f·(L/D)·v²/(2g)  ·  ΔP = ρ·g·h_f
Swamee-Jain (turbulent): f = 0.25 / [log₁₀(ε/(3.7D) + 5.74/Re⁰·⁹)]²  ·  Laminar: f = 64/Re
ParameterFormulaUnits
Reynolds Number ReρvD/μdimensionless
Darcy Friction Factor f64/Re (laminar) or Swamee-Jain (turbulent)dimensionless
Head Loss h_ff × (L/D) × v²/(2g)m
Pressure Drop ΔPρ × g × h_fPa (÷1000 = kPa)
Flow Rate QA × v = π(D/2)² × vm³/s

How to Use

  1. 1Select a fluid preset or choose Custom to enter density and dynamic viscosity.
  2. 2Select a pipe material preset or choose Custom roughness to enter ε directly.
  3. 3Enter the inner pipe diameter in mm, pipe length in m, and flow velocity in m/s.
  4. 4Press Enter or click Calculate.
  5. 5Read the flow regime badge, Reynolds number, friction factor, head loss, pressure drop, and flow rate.
  6. 6Click Clear to reset all fields.

Example Calculation

Water in a 50 mm steel pipe at 2 m/s

Fluid: Water 20°C (ρ=998.2 kg/m³, μ=0.001002 Pa·s) Material: Steel (ε=0.046 mm) D = 50 mm = 0.05 m, L = 100 m, v = 2 m/s Re = 998.2 × 2 × 0.05 / 0.001002 = 99,621 → Turbulent Swamee-Jain: arg = 0.046/(3.7×50) + 5.74/99621^0.9 f ≈ 0.01847 h_f = 0.01847 × (100/0.05) × (4/19.62) = 7.52 m ΔP = 998.2 × 9.81 × 7.52 = 73.6 kPa Q = π×0.025² × 2 = 3.93 L/s

Darcy-Weisbach vs Hazen-Williams

Darcy-Weisbach is the physically rigorous method, valid for any fluid, any velocity, any pipe material. The Hazen-Williams formula is an empirical shortcut valid only for water, turbulent flow, and limited velocity/diameter ranges. For engineering calculations, always prefer Darcy-Weisbach. The Swamee-Jain explicit approximation avoids the iterative Colebrook-White equation while maintaining accuracy within 2%.

Understanding Pipe Flow | Darcy-Weisbach

The Darcy-Weisbach Equation

The Darcy-Weisbach equation h_f = f(L/D)(v²/2g) is the fundamental equation of pipe flow. Head loss h_f is the energy (expressed as height of fluid) lost to friction per unit length of pipe. The Darcy friction factor f depends on the Reynolds number and relative pipe roughness ε/D, captured in the Moody diagram or the Colebrook-White equation.

Reynolds Number and Flow Regimes

The Reynolds number Re = ρvD/μ is the ratio of inertial to viscous forces. Below 2300 flow is laminar, smooth, parallel streamlines with parabolic velocity profile, f = 64/Re. Above 4000 flow is turbulent, chaotic mixing, higher friction. Between 2300 and 4000 is the transitional regime, which is unpredictable, engineers design to stay in one regime.

RegimeRe rangeFriction factor
LaminarRe < 2300f = 64/Re (exact)
Transitional2300 < Re < 4000Interpolated, avoid in design
TurbulentRe > 4000Swamee-Jain / Moody diagram

Pipe Roughness and Material

  • Drawn tubing / PVC / HDPE: ε ≈ 0.0015 mm, very smooth, low friction
  • Commercial / welded steel: ε ≈ 0.046 mm, standard industrial pipe
  • Cast iron (older): ε ≈ 0.26 mm, significant roughness in turbulent flow
  • Concrete: ε ≈ 0.9–9 mm depending on surface finish
  • Rough surfaces increase f significantly at high Re, increasing head loss and pumping energy

Frequently Asked Questions

What is the Darcy-Weisbach equation?

h_f = f × (L/D) × v²/(2g) is the fundamental equation of pipe hydraulics. h_f is head loss in metres, f is the dimensionless Darcy friction factor, L is pipe length (m), D is internal diameter (m), v is mean flow velocity (m/s), and g = 9.81 m/s². The equivalent pressure drop is ΔP = ρ × g × h_f in Pascals. Unlike the empirical Hazen-Williams formula, Darcy-Weisbach is dimensionally rigorous and valid for any fluid, any temperature, and any flow regime, laminar or turbulent.

  • Head loss scales with L/D, longer pipes and smaller diameters give proportionally more loss
  • Head loss scales with v², doubling velocity quadruples head loss for the same pipe
  • Head loss is proportional to f, smooth pipes (low ε) reduce f and therefore h_f significantly
  • Pressure drop ΔP = ρgh_f, denser fluids (oil vs water) produce higher pressures for the same head

What is the Reynolds number and what does it indicate?

Re = ρvD/μ is the dimensionless ratio of inertial to viscous forces in the flow. Low Re means viscous forces dominate, the flow is orderly and laminar, with smooth parallel streamlines and a parabolic velocity profile. High Re means inertia dominates, the flow becomes chaotic and turbulent, with far higher friction losses. The transition in a smooth circular pipe occurs around Re = 2300 (laminar breakdown) and Re = 4000 (fully turbulent), with an unpredictable transitional zone between those values.

  • Re < 2300: laminar, smooth, stable, parabolic profile, f = 64/Re (exact)
  • 2300 < Re < 4000: transitional, unpredictable and unstable, avoid in engineering design
  • Re > 4000: turbulent, chaotic mixing, flatter velocity profile, higher friction losses
  • Re > 10⁶: fully rough turbulent, f depends only on ε/D, independent of Re
  • Water at 1 m/s in a 50 mm pipe: Re ≈ 50,000, solidly turbulent in practice

What is the Swamee-Jain equation and how accurate is it?

The Swamee-Jain equation is an explicit closed-form approximation to the implicit Colebrook-White equation for the Darcy friction factor: f = 0.25 / [log₁₀(ε/(3.7D) + 5.74/Re⁰·⁹)]². The Colebrook-White equation requires iterative numerical solution because f appears on both sides; Swamee-Jain gives f directly from known quantities without iteration. It is accurate to within ±2% for Re in the range 5,000 to 10⁸ and relative roughness ε/D in 10⁻⁶ to 5×10⁻², which covers virtually all practical pipeline engineering scenarios.

  • Colebrook-White (implicit): 1/√f = −2 log₁₀(ε/(3.7D) + 2.51/(Re√f)), needs iteration
  • Swamee-Jain (explicit): single formula, no iteration, ideal for calculators and spreadsheets
  • Error ≤ 2% across the valid parameter range, fully acceptable for engineering design
  • Below Re = 2300, use f = 64/Re (exact laminar formula, no approximation at all)

How does pipe diameter affect head loss?

Head loss is extremely sensitive to pipe diameter, arguably the most important relationship in pipe system design. For a fixed volumetric flow rate Q, average velocity scales as v = Q/A = 4Q/(πD²) ∝ 1/D². Substituting into Darcy-Weisbach: h_f ∝ v²/D ∝ (1/D²)²/D = 1/D⁵. This fifth-power dependence means that even modest increases in pipe diameter dramatically reduce head loss and pumping energy cost. Upsizing a pipe by one standard nominal size is often the most cost-effective design decision in a system.

  • Doubling the diameter: head loss reduced by factor 2⁵ = 32, a 97% reduction
  • Increasing diameter by 25% (e.g. 100 mm → 125 mm): head loss reduced by about 67%
  • Increasing diameter by 10%: head loss reduced by about 41%
  • Energy saving from upsizing typically pays back the higher pipe cost within 1–3 years

What is the difference between head loss and pressure drop?

Head loss h_f is expressed in metres of fluid, it represents the equivalent height the fluid would need to fall freely to recover the energy lost to friction. It is fluid-independent, making it useful for comparing pipe segments regardless of the working fluid. Pressure drop ΔP = ρ × g × h_f converts head loss to Pascals, which is what pressure gauges measure and what determines pump sizing. For the same h_f, a denser fluid produces a higher pressure drop.

  • Water (ρ ≈ 1000 kg/m³): 1 m head = 9810 Pa ≈ 0.098 bar ≈ 0.1 kgf/cm²
  • Oil (ρ ≈ 850 kg/m³): same 1 m head = only 8339 Pa, less pressure for equal head
  • Head loss is geometry and flow; pressure drop is fluid-specific
  • Pump curves are given in metres of head, use h_f directly for pump selection without converting

How do I use this for pump sizing?

Pump sizing requires calculating the total system head the pump must overcome at the design flow rate. Calculate friction head loss h_f for each pipe segment using this tool, add the elevation change (static head), and add minor losses from fittings, valves, and bends. The pump must supply head equal to or greater than this total at the target flow rate. The intersection of the system curve (total head vs flow rate) and the pump curve gives the actual operating point.

  • Total head H = static head (elevation Δz) + friction head (Σh_f) + minor losses (Σ K×v²/2g)
  • Minor loss coefficient K: 90° elbow ≈ 0.9, gate valve (fully open) ≈ 0.1, globe valve ≈ 10
  • Pump power P = ρ × g × Q × H / η_pump (centrifugal pump η typically 0.65–0.85)
  • Add 10–20% safety margin on head to account for fouling and future flow increases

What are typical fluid flow velocities in pipes?

Design velocities are chosen to balance friction losses (excessive at high velocity), pipe erosion (a concern above ~3 m/s for water with particles), settling of suspended solids (a concern below ~0.5 m/s), and system cost. Staying within recommended velocity ranges avoids noise, vibration, and wear while keeping pipe sizes and pumping costs economical.

  • Cold water supply (domestic): 0.5–2 m/s
  • Hot water supply (domestic): 0.5–1.5 m/s (lower to limit corrosion)
  • Cooling water (industrial heat exchangers): 1–3 m/s
  • Fire protection mains: 1.5–3 m/s during peak demand
  • Compressed air (distribution network): 15–25 m/s
  • Natural gas (high-pressure transmission): 10–20 m/s
  • Hydraulic oil: 2–6 m/s (pressure lines), 0.5–2 m/s (return lines)

Related Calculators