JPB Process Calcs

Moody Friction Factor

Fluid Flow and Piping · Calculator S17-02 · Verified: the solver reproduces its worked example and is covered by tests.

Darcy and Fanning friction factor from Reynolds number and relative pipe roughness.

Open the calculator

Overview

What it calculates

This calculator returns the Darcy friction factor and the Fanning factor (one quarter of Darcy) from Reynolds number and relative roughness. Re can be typed in or computed from density, viscosity, velocity and diameter. Roughness comes from a pipe material list or a custom value. The turbulent correlation is set on the Methods page: Colebrook-White solved iteratively (the default), or the explicit Chen, Swamee-Jain or Blasius forms. Below Re 2,000 it uses the laminar result f = 64/Re whatever the setting.

When to use it

Use it to supply a friction factor to a hand calculation or spreadsheet, or to check a value read off a Moody chart. The selected correlation applies across every calculator in the app that needs a friction factor, including Liquid Line Pressure Drop (Darcy-Weisbach).

Inputs that matter most

Relative roughness eps/D sets the floor. At high Re, f depends almost entirely on it. At lower Re, Re dominates. The built-in roughness values include commercial steel at 0.0018 in. (0.046 mm), internally coated steel at 0.0002 in. (0.005 mm), cast iron at 0.0102 in. (0.26 mm) and drawn tubing or PVC at 0.00006 in. (0.0015 mm). The worked example, Re of 100,000 in 4.026 in. (102 mm) ID commercial steel, gives a Darcy f of about 0.0201.

Reading the results

Darcy versus Fanning is the classic trap. The Darcy-Weisbach head loss equation uses the Darcy value. A Fanning value dropped into it understates pressure drop by a factor of four. Check which one your source equation expects. Blasius ignores roughness entirely, so it only represents smooth pipe and is usually limited to Re up to about 100,000.

Limits and common mistakes

Between Re 2,000 and 4,000 no correlation is reliable, and the calculator warns. It also warns when relative roughness exceeds 0.05 and errors at 0.5 or above. Roughness grows with corrosion, scale and age, so a new-pipe value can understate friction in an old line. Use the true inside diameter.

Equations

1f=−2log⁡10(ε/D3.7+2.51NRef)\frac{1}{\sqrt{f}} = -2\log_{10}\left(\frac{\varepsilon/D}{3.7} + \frac{2.51}{N_{Re}\sqrt{f}}\right)
Colebrook-White equation (implicit; solved numerically).

Source: Standard Gas Processing Engineering Practice

SymbolMeaningUnits (US / SI)
ffDarcy friction factor-
ε/D\varepsilon/DRelative roughness-
NReN_{Re}Reynolds number-
1f=−2log⁡10(ε/D3.7065−5.0452NRelog⁡10((ε/D)1.10982.8257+7.149NRe0.8981))\frac{1}{\sqrt{f}} = -2\log_{10}\left(\frac{\varepsilon/D}{3.7065} - \frac{5.0452}{N_{Re}}\log_{10}\left(\frac{(\varepsilon/D)^{1.1098}}{2.8257} + \frac{7.149}{N_{Re}}^{0.8981}\right)\right)
Chen (1979) explicit approximation to Colebrook-White.

Source: Chen (1979)

SymbolMeaningUnits (US / SI)
ffDarcy friction factor-
ε/D\varepsilon/DRelative roughness-
NReN_{Re}Reynolds number-

Inputs

InputSymbolDefaultTypical range or options
Reynolds number basisEnter Re directlyEnter Re directly
Compute from flow
Reynolds numberNReN_{Re}100,000
Densityρ\rho62.37 lb/ft³ (999 kg/m³)
Dynamic viscosityμ\mu1 cP (1 mPa·s)
Velocityvv7.546 ft/s (2.3 m/s)
Pipe materialCommercial steel / welded steelCommercial steel / welded steel
Drawn tubing
Cast iron
Concrete
PVC
Internally coated steel
Custom
Absolute roughnessε\varepsilon0.0018 in (0.04572 mm)
Inside diameterDD4.026 in (102.3 mm)

Outputs

Assumptions and limitations

Assumptions

Limitations

Worked example

Re = 1e5, commercial steel, NPS 4 Sch 40 (4.026 in ID)

Inputs

Reynolds number basisEnter Re directly
Reynolds number100,000
Pipe materialCommercial steel / welded steel
Inside diameter4.026 in (102.3 mm)

Expected results

Darcy friction factor0.02011
Relative roughness4.471×10-4

The prompt’s stated check value (f ≈ 0.0208 ± 2%) is ~3.3% above what Colebrook-White, Chen and Swamee-Jain all independently agree on (≈0.0201) for these inputs.

The calculator's test suite checks that the solver reproduces these results.

References

Rules of thumb

Open the calculator

Page last updated 2026-10-28.