Darcy Friction Factor Calculator (Colebrook, Swamee-Jain, Haaland)

The Darcy friction factor sets the pressure loss in pipe flow. It depends on the Reynolds number and the pipe's relative roughness. This calculator solves the Colebrook-White equation exactly and compares it with two popular explicit approximations.

Inputs

Results

Darcy friction factor (Colebrook)
0.02012
Swamee-Jain
0.020196
Haaland
0.019855
Fanning friction factor (f/4)
0.0050301
Regime
Turbulent

    RefENG-FLU-003
    MethodColebrook-White (iterative); Swamee-Jain; Haaland; laminar 64/Re
    UnitsSI
    Date2026-11-23

    Working

    Calculated in SI base units; inputs are converted from the units you choose.

    1. Relative roughnessε/D0.00045
    2. Colebrook-White, solved by iteration1/√f = −2 log₁₀(ε/(3.7D) + 2.51/(Re√f))f = 0.02012

    Darcy or Fanning

    Two definitions are in use. The Darcy (Moody) factor, used in civil and mechanical engineering, is four times the Fanning factor used in many chemical engineering texts. Mixing them up gives a fourfold error in pressure drop.

    Approximations

    Swamee-Jain and Haaland are explicit formulas within about 1 to 2% of Colebrook over the normal turbulent range, which made them popular before iterative solutions were easy. With a computer there is no reason not to use Colebrook itself.

    Assumptions and limits

    • Fully developed flow in a circular pipe.

    References

    • Colebrook, C. F., 1939.
    • Swamee, P. K. and Jain, A. K., J. Hydraulics Division ASCE, 1976.
    • Haaland, S. E., J. Fluids Eng., 1983.
    • Moody, L. F., Friction factors for pipe flow, 1944.

    Questions

    What is the friction factor for smooth pipe at Re = 100,000?
    About 0.018 (Darcy).
    Does roughness matter in laminar flow?
    No. In laminar flow f = 64/Re for any pipe.

    This calculator is a design aid. Check results against the governing code or standard and have critical work verified by a qualified engineer. Read the disclaimer.