Colebrook Equation: Friction Factor Formula, Solver and Examples

By editor 8 min read
Moody style chart of friction factor against Reynolds number calculated from the Colebrook equation

The Colebrook equation (Colebrook–White equation) gives the Darcy friction factor f for turbulent flow in a full pipe: 1/√f = −2 log₁₀(ε/(3.7D) + 2.51/(Re√f)), where ε is the pipe roughness, D the inside diameter and Re the Reynolds number. Because f appears on both sides, it is solved by iteration or approximated with an explicit formula such as Swamee–Jain. It applies above Re ≈ 4,000; for laminar flow (Re below 2,300) use f = 64/Re. The friction factor then goes into the Darcy–Weisbach equation to find head loss.

1/√f = −2 log10( ε/(3.7 D) + 2.51/(Re √f) )
Re > 4,000
turbulent: use Colebrook
f = 64/Re
laminar, Re < 2,300
3–5
iterations by hand
±5–10%
Moody chart accuracy

The Colebrook–White Equation Explained

SymbolMeaningUnits
fDarcy friction factor (Darcy–Weisbach, Moody)Dimensionless
εAbsolute roughness of the pipe wallSame as D (in, ft, mm, m)
DInside (hydraulic) diameterSame as ε
ε/DRelative roughnessDimensionless
ReReynolds number = V D / νDimensionless
Variables in the Colebrook equation. Wikipedia notes some sources use 3.71 instead of 3.7; Engineering ToolBox uses 3.72.

Wikipedia describes the Colebrook–White equation as an empirical equation that “expresses the Darcy friction factor f as a function of Reynolds number Re and pipe relative roughness ε/D”, fitting experimental data for turbulent flow in smooth and rough pipes. The first term inside the logarithm, ε/3.7D, dominates in rough pipes at high Reynolds numbers; the second, 2.51/(Re√f), dominates in smooth pipes. Colebrook’s contribution was a single curve that bridges the two.

The equation comes from C. F. Colebrook’s 1939 paper in the Journal of the Institution of Civil Engineers. Wikipedia notes that the 1937 Colebrook and White paper on roughened pipes is often wrongly cited as the source, partly because Colebrook credited White for the mathematical method. In 1944 Lewis Moody plotted it as the Moody chart.

Moody style chart of Darcy friction factor against Reynolds numberLog-log chart of Darcy friction factor from 0.008 to 0.1 against Reynolds number from 600 to 100 million. A straight laminar line f = 64/Re ends near Re 2300, a shaded transition band lies between 2300 and 4000, and turbulent curves from the Colebrook equation for smooth pipe and relative roughness 0.00001 to 0.05 flatten out at high Reynolds number.Friction factor vs Reynolds number from the Colebrook equationtransition1e31e41e51e61e71e80.0060.010.020.030.050.08laminar:f = 64/Resmoothε/D = 0.00001ε/D = 0.0001ε/D = 0.001ε/D = 0.01ε/D = 0.05Reynolds number, RefIndustrialBasicsindustrialbasics.com
Figure 1: Curves calculated by IndustrialBasics from the Colebrook equation; laminar line f = 64/Re (Poiseuille). Rougher pipes level off sooner and at higher friction factors.

Colebrook Equation Solver

Colebrook Equation Solver (Darcy Friction Factor)
IndustrialBasics calculator. Solves 1/√f = −2 log(ε/3.7D + 2.51/(Re√f)) by Newton’s method, and shows the Swamee–Jain and Haaland approximations. Head loss uses Darcy–Weisbach, h = f (L/D) V²/2g. Default: 4 in Schedule 40 commercial steel (ε = 0.0018 in).

How to Solve the Colebrook Equation by Hand

Engineering ToolBox notes that because the friction coefficient “is involved on both sides of the equation”, it must be solved by iteration. Fixed-point iteration works well for turbulent flow:

  1. Calculate Re and ε/D. Re = V D / ν, using consistent units.
  2. Guess 1/√f. A value of 8 (f ≈ 0.016) is a reasonable start, or use Swamee–Jain.
  3. Substitute into the right-hand side: 1/√fnew = −2 log₁₀(ε/3.7D + 2.51 × (1/√fold)/Re).
  4. Repeat until 1/√f changes by less than about 0.0001.
  5. Square and invert: f = 1/(1/√f)².
Fixed point iteration of the Colebrook equationStarting from 1 over root f equal to 8, repeated substitution into the Colebrook equation converges to a friction factor of 0.01965 within about four iterations for Reynolds number 126,000 and relative roughness 0.00048.Solving by hand: each pass of the equation gets closerStart guess1/√f = 8.00000f = 0.015625Iteration 11/√f = 7.08102f = 0.019944Iteration 21/√f = 7.13805f = 0.019626Iteration 31/√f = 7.13440f = 0.019646Iteration 41/√f = 7.13463f = 0.019645Iteration 51/√f = 7.13462f = 0.019645Air duct example: Re = 126,000, ε/D = 0.00048. Converged value f = 0.01965.IndustrialBasicsindustrialbasics.com
Figure 2: Fixed-point iteration converges quickly for turbulent flow. Newton’s method (used in the calculator) needs even fewer steps.

Worked example 1: air duct

Engineering ToolBox’s Colebrook calculator defaults to air at 6 m/s in a 315 mm duct with kinematic viscosity 15 × 10⁻⁶ m²/s, so Re = 6 × 0.315 ÷ 15 × 10⁻⁶ = 126,000. For galvanized steel (ε = 0.15 mm), ε/D = 0.15 ÷ 315 = 0.00048. Starting from 1/√f = 8, the iterations above settle at f = 0.0196.

Worked example 2: water in 4-inch steel pipe

Take 4 in Schedule 40 commercial steel (inside diameter 4.026 in, 102.3 mm, which is the 4.500 in outside diameter less two 0.237 in walls from Wikipedia’s nominal pipe size table; ε = 0.045 mm, about 0.0018 in) at Re = 200,000. ε/D = 0.000440, and Colebrook gives f = 0.0185. At 2 m/s over 100 m, Darcy–Weisbach gives a head loss of 0.0185 × (100 ÷ 0.1023) × 2² ÷ (2 × 9.807) = 3.69 m of water, about 12.1 ft or 5.2 psi.

Newton’s method and the derivative

Write x = 1/√f and F(x) = x + 2 log₁₀(ε/3.7D + 2.51x/Re). The root F(x) = 0 is the Colebrook solution. Its derivative is F′(x) = 1 + (2/ln 10) × (2.51/Re) ÷ (ε/3.7D + 2.51x/Re), and Newton’s update xn+1 = xn − F/F′ typically converges in two or three steps from a Swamee–Jain start. That is what the solver above does. In a spreadsheet, put the fixed-point formula in a cell that refers to the cell above, copy it down five rows, or use Goal Seek on F(x) = 0.

Explicit Approximations: Swamee–Jain and Haaland

Wikipedia’s Moody chart article notes that solving Colebrook by iteration is often impractical, so explicit approximations are widely used:

FormulaEquationMax error vs Colebrook (our test grid)
Swamee–Jainf = 0.25 / [log₁₀(ε/3.7D + 5.74/Re⁰·⁹)]²2.8%
Haaland (1983)1/√f = −1.8 log₁₀[(ε/3.7D)¹·¹¹ + 6.9/Re]1.3%
Laminar (Poiseuille)f = 64/ReExact for laminar flow
Equations from Wikipedia (Darcy friction factor formulae). Error checked by IndustrialBasics for Re 5,000 to 10⁸ and ε/D 0 to 0.05.

Wikipedia says the Haaland discrepancy from experimental data “is well within the accuracy of the data”, and that Moody himself put the chart’s accuracy at about ±5% for smooth pipes and ±10% for rough pipes. In practice, the uncertainty in pipe roughness is far bigger than the difference between Colebrook and a good approximation.

Pipe Roughness Values

Materialε (mm)ε (in)
Drawn copper, brass, aluminum (new)0.001 – 0.0020.00004 – 0.00008
PVC, PE and other smooth plastic pipe0.0015 – 0.0070.00006 – 0.00028
Stainless steel, turned0.0004 – 0.0060.00002 – 0.00024
Commercial steel or wrought iron0.045 – 0.090.00177 – 0.00354
Galvanized steel0.150.00591
New cast iron0.25 – 0.80.00984 – 0.0315
Worn cast iron0.8 – 1.50.0315 – 0.05906
Rusted steel0.15 – 40.00591 – 0.15748
Ordinary concrete0.3 – 10.01181 – 0.03937
Absolute roughness from Engineering ToolBox. Inch values converted by IndustrialBasics. Roughness grows as pipe corrodes or scales.

From Friction Factor to Pressure Drop

hL = f × (L / D) × V² / (2g)

The Darcy–Weisbach equation (Wikipedia) relates head loss to the friction factor, pipe length L, diameter D and average velocity V. Convert head loss in feet of water to psi with 0.433 psi per foot, or see our psi to feet of head guide for other liquids. The total head the pump must supply, and therefore its brake horsepower, depends directly on these friction losses.

Design note: Friction factor errors compound in long lines and high-velocity systems. For pressure-rated piping, steam or compressed gas, verify calculations against the applicable design code and have them checked by a qualified engineer.

Common Mistakes

  • Using Colebrook for laminar flow. Below Re 2,300 use f = 64/Re.
  • Mixing Darcy and Fanning. Fanning f is one quarter of Darcy f; Darcy–Weisbach needs the Darcy value.
  • Inconsistent units in ε/D. Both must be in the same unit.
  • Using nominal instead of inside diameter. A 4 in Schedule 40 pipe has a 4.026 in bore.
  • Natural log instead of log₁₀. Colebrook uses base-10 logarithms.

Frequently Asked Questions

What is the Colebrook equation?

An empirical equation for the Darcy friction factor f in turbulent pipe flow: 1/√f = −2 log₁₀(ε/(3.7D) + 2.51/(Re√f)). It covers smooth pipes, rough pipes and the transition between them, and is the basis of the Moody chart.

Is the Colebrook equation the same as the Colebrook–White equation?

Yes. C. F. Colebrook published it in 1939 and credited C. M. White, his co-author on the 1937 rough-pipe experiments, for the mathematical approach, so it is called both names.

Why does the Colebrook equation need iteration?

Because f appears on both sides of the equation and cannot be isolated algebraically. You guess f, put it into the right-hand side, calculate a new f, and repeat until it stops changing.

How do you solve the Colebrook equation by hand?

Start with 1/√f = 8 (or use Swamee–Jain), substitute into the right-hand side to get a new 1/√f, and repeat. For turbulent flow it usually agrees to four or five significant figures within three to five passes.

What is the derivative of the Colebrook equation?

With x = 1/√f and F(x) = x + 2 log₁₀(ε/3.7D + 2.51x/Re), the derivative is F′(x) = 1 + (2/ln 10)·(2.51/Re)/(ε/3.7D + 2.51x/Re). Newton’s method then uses xₙ₊₁ = xₙ − F/F′.

When is the Colebrook equation valid?

For turbulent flow in full pipes, Reynolds number above about 4,000. Below 2,300 flow is laminar and f = 64/Re; between 2,300 and 4,000 the friction factor is uncertain.

Is the Colebrook friction factor Darcy or Fanning?

Darcy (also called Darcy–Weisbach or Moody). The Fanning friction factor is one quarter of it.

What is a good explicit approximation?

Swamee–Jain, f = 0.25/[log₁₀(ε/3.7D + 5.74/Re⁰·⁹)]², and Haaland are the most used. Across our test grid they stayed within about 2.8% and 1.3% of Colebrook.

What roughness should I use for steel pipe?

Engineering ToolBox lists 0.045–0.09 mm (about 0.0018–0.0035 in) for commercial steel or wrought iron, and 0.15 mm (0.006 in) for galvanized steel. Old, corroded pipe can be much rougher.

How is the friction factor used?

In the Darcy–Weisbach equation: head loss h = f × (L/D) × V²/(2g). Multiply by the liquid’s weight per unit volume (or use 0.433 psi per foot for water) to get pressure drop.

Sources and Further Reading

About the author

editor

Leave a Comment