Friction Factor Calculator (Darcy-Weisbach)

Calculate Darcy and Fanning friction factors for pipe flow. Moody chart calculation with Colebrook-White equation, Reynolds number, pipe material roughness, and head loss per meter.

m
m/s
mm
m²/s
kg/m³
Darcy Friction Factor (f)
0.018605
Turbulent flow regime
Fanning Friction Factor
0.004651
f_Fanning = f_Darcy / 4
Reynolds Number
202,390
Turbulent: Re > 4000
Relative Roughness (ε/D)
4.4291e-4
ε/D — key parameter for Moody chart
Head Loss per Meter
0.0373 m/m
h_f/L = f/D × v²/(2g) — Darcy-Weisbach
Pressure Drop per Meter
365.51 Pa/m
ΔP/L = f/D × ρv²/2

Pipe Material Roughness Reference

Materialε (mm)Relative Roughness (ε/D)
0.00151.4764e-5
0.00151.4764e-5
0.00151.4764e-5
0.0454.4291e-4
0.151.4764e-3
0.262.5591e-3
0.32.9528e-3
32.9528e-2
454.4291e-1

Velocity vs Friction Factor

Velocity (m/s)ReRegimef (Darcy)Head Loss (m/m)
0.011,012Laminar0.063240.00000
0.055,060Turb.0.038280.00005
0.110,120Turb.0.031640.00016
0.550,598Turb.0.022380.00281
1101,195Turb.0.020130.01010
2202,390Turb.0.018610.03733
3303,586Turb.0.017980.08116
5505,976Turb.0.017400.21819
8809,562Turb.0.017030.54670
101,011,952Turb.0.016890.84754

Flow Regime Indicator

Laminar
Trans.
Turbulent
▲ Re = 202,390
Planning notes, formulas, and examples

About the Friction Factor Calculator (Darcy-Weisbach)

The Darcy friction factor (f) is a dimensionless parameter used in the Darcy-Weisbach equation to calculate pressure drop and head loss in pipe flow. For laminar flow (Re < 2100), f = 64/Re. For turbulent flow, f depends on both the Reynolds number and the relative roughness ε/D, described by the implicit Colebrook-White equation.

The Moody chart is a graphical way to read friction factor against Reynolds number for different roughness values. This calculator replaces that lookup with a direct numerical estimate and also reports Darcy and Fanning factors, Reynolds number, and head loss per length.

When This Page Helps

Pipe flow calculations usually need more than a single friction number. Seeing the Reynolds number, roughness, and resulting head loss together makes it easier to size piping or compare operating conditions without switching between a chart and a worksheet.

How to Use the Inputs

  1. Enter the pipe inner diameter in meters.
  2. Enter the flow velocity in m/s.
  3. Set the surface roughness (click a pipe material or enter manually in mm).
  4. Enter the kinematic viscosity (default: water at 20°C = 1.004×10⁻⁶ m²/s).
  5. Read the Darcy friction factor, Reynolds number, and flow regime.
  6. Use the head loss and pressure drop values for pipe system design.
  7. Review the velocity table to understand how friction factor changes with flow rate.
Formula used
Reynolds Number: Re = vD/ν Laminar (Re < 2100): f = 64/Re Turbulent (Colebrook-White): 1/√f = −2 log₁₀(ε/(3.7D) + 2.51/(Re√f)) Swamee-Jain (explicit approximation): f = 0.25 / [log₁₀(ε/(3.7D) + 5.74/Re⁰·⁹)]² Darcy-Weisbach: h_f = f × (L/D) × v²/(2g) Pressure drop: ΔP = f × (L/D) × ρv²/2 Fanning factor: f_F = f_D / 4

Example Calculation

Result: f = 0.0218, Re = 202,390 (Turbulent)

4" commercial steel pipe (ε = 0.045 mm) with water at 2 m/s: Re = 2 × 0.1016 / 1.004e-6 = 202,390 (turbulent). Swamee-Jain: f = 0.0218. Head loss: 0.0047 m per meter of pipe.

Tips & Best Practices

  • For smooth pipes at high Re, f ≈ 0.316/Re^0.25 (Blasius formula) is a quick estimate.
  • Laminar flow: f is inversely proportional to Re and independent of roughness.
  • Fully rough turbulent flow: f depends only on ε/D, not on Re.
  • The Moody chart has four regions: laminar, transition, smooth turbulent, and fully rough turbulent.
  • PVC and copper pipes are effectively "hydraulically smooth" for most practical flow rates.
  • Aging and corrosion can increase roughness by 10-100× — use aged values for existing pipe systems.

Understanding the Moody Chart

The Moody chart, published by Lewis Moody in 1944, plots the Darcy friction factor versus Reynolds number for various relative roughnesses. It consolidates decades of experimental and theoretical work into a single, universally used tool. The chart reveals four distinct flow regimes: laminar (f = 64/Re), critical/transitional (unstable), smooth turbulent (f depends on Re only), and fully rough (f depends on ε/D only).

The Colebrook-White Equation

Derived in 1939, the Colebrook-White equation bridges the smooth and rough turbulent regimes with a single implicit formula. Its implicit nature was acceptable in 1939 (solved by trial-and-error or nomographs), but modern computers and explicit approximations (Swamee-Jain 1976, Haaland 1983) make iterative solution unnecessary. The Swamee-Jain approximation used here is accurate to within 1% for 5×10³ < Re < 10⁸ and 10⁻⁶ < ε/D < 5×10⁻².

Practical Engineering Significance

Friction factor is the key input for pipe system sizing — the single most common calculation in fluid engineering. A 10% error in f translates to 10% error in pressure drop, which affects pump sizing, energy costs, and system capacity. For a typical water distribution system operating millions of hours, even small accuracy improvements in friction factor calculation yield significant cost savings.

Sources & Methodology

Last updated:

Frequently Asked Questions

  • The Darcy friction factor (f_D) is 4× the Fanning friction factor (f_F). Both are correct but used in different regional and disciplinary traditions. Always verify which convention a reference or textbook uses. The Darcy-Weisbach equation uses the Darcy factor.