Fluid Mechanics

Friction Factor (Moody) Calculator

Darcy (and Fanning) friction factor from Reynolds number and relative roughness — Colebrook–White solved exactly, with the Swamee–Jain explicit fit for comparison.

1/√f = −2·log₁₀( ε/(3.7D) + 2.51/(Re√f) ) (Colebrook)

How it works

For laminar flow the Darcy friction factor is simply 64/Re. For turbulent flow it comes from the implicit Colebrook–White equation — the algebraic form of the Moody chart — which this tool solves by iteration. The explicit Swamee–Jain fit is shown alongside for comparison.

Worked example

Re = 100,000 in a 100 mm commercial-steel pipe (ε = 0.045 mm, ε/D = 0.00045). Darcy f ≈ 0.0201; Fanning f ≈ 0.0050. Swamee–Jain agrees to within a fraction of a percent.

Inputs

Frequently asked questions

Darcy or Fanning friction factor?

This tool reports the Darcy factor by default (used in ΔP = f·(L/D)·ρv²/2), and the Fanning factor — exactly one quarter of Darcy — beside it. Mixing the two is a classic factor-of-4 error, so check which your pressure-drop equation expects.

What is the Colebrook equation?

The implicit correlation behind the Moody chart, valid for turbulent flow in rough pipes. Because f appears on both sides it must be solved iteratively; this tool does that to machine precision.

When can I use Swamee–Jain instead?

The explicit Swamee–Jain equation matches Colebrook to within about 1% for 4000 < Re < 10⁸ and 10⁻⁶ < ε/D < 10⁻² — fine for hand calculations. Outside that range, use the Colebrook value.

Assumptions

References

Related Fluid Mechanics tools

Engineering unit converter · Privacy