Colebrook Friction Factor Calculator
Fluid Mechanics
- The Darcy friction factor for pipe flow comes from the Colebrook equation, which links it to Reynolds number and relative roughness.
- The relative roughness is the roughness height over the diameter: 0.045 / 100 = 0.045 percent, and the flow is turbulent.
- The Colebrook equation is implicit, so it is solved by fixed-point iteration starting from the Haaland approximation until the factor stops changing.
- The Darcy friction factor is 0.0201 for a Reynolds number of 100,000.
Every pipe-flow calculation eventually needs the friction factor, and for turbulent flow the friction factor hides inside its own equation. The Colebrook equation, published in 1939, relates the Darcy friction factor to the Reynolds number and the pipe's relative roughness in a single implicit formula that a century of measurements still obeys - but because the factor appears on both sides, it has to be solved by iteration, which is precisely the chore this calculator takes over.
Enter the Reynolds number, the absolute roughness and the internal diameter in millimetres. For turbulent flow the calculator iterates the Colebrook equation to convergence and cross-checks with the explicit Haaland approximation; for laminar flow it returns the exact 64/Re. The relative roughness and flow regime are shown with the result, ready to feed a Darcy-Weisbach head-loss calculation.
Worked examples
Re 100,000, steel pipe
(100000 · 0.045 mm · 100 mm)
| Darcy friction factor | 0.0201 |
| Relative roughness | 0.045% |
| Flow regime | Turbulent |
| Haaland approximation | 0.0199 |
Re 1,800, laminar
(1800 · 0.01 mm · 25 mm)
| Darcy friction factor | 0.0356 |
| Relative roughness | 0.040% |
| Flow regime | Laminar |
Re 850,000, rough pipe
(850000 · 0.3 mm · 300 mm)
| Darcy friction factor | 0.0200 |
| Relative roughness | 0.100% |
| Flow regime | Turbulent |
| Haaland approximation | 0.0200 |
The Colebrook equation and iteration
The equation reads 1/sqrt(f) = -2.0 log10( eps/(3.7D) + 2.51/(Re sqrt(f)) ). The first term inside the logarithm is the roughness contribution - it dominates at high Reynolds numbers in rough pipes, where the factor stops depending on Re at all. The second is the smooth-pipe contribution, which dominates in smooth pipes and at moderate Re. The equation is a blend of the two asymptotic behaviours, which is why it fits the whole turbulent range.
Iteration is straightforward because the function is well-behaved: guess a factor, evaluate the right side, invert and square to get a better factor, and repeat. Starting from the Haaland estimate, the value settles to four decimal places within a handful of rounds; the calculator runs the loop to full convergence and reports the Haaland figure beside it, so the size of the approximation error - usually under 2 percent - is visible rather than assumed.
- 1/sqrt(f) = -2 log10( eps/3.7D + 2.51/(Re sqrt(f)) )
- Laminar (Re under 2300): f = 64/Re exactly
- Haaland explicit approximation shown for comparison
- Result feeds the Darcy-Weisbach head-loss equation
Worked examples
Example one is the textbook case: water at Re 100,000 in a 100 mm commercial steel pipe with roughness 0.045 mm. The relative roughness is 0.045 percent, iteration converges to f = 0.0201, and Haaland gives 0.0199 - agreement within a percent, and a factor right in the band every engineer expects for this duty. Example three pushes to Re 850,000 in a rougher 300 mm pipe: relative roughness 0.100 percent, and the factor is 0.0200 by both methods, the roughness term now in charge.
Example two leaves the turbulent world entirely: at Re 1800 the flow is laminar, roughness is irrelevant, and the factor is exactly 64/1800 = 0.0356 - higher than either turbulent answer, a useful reminder that laminar friction is expensive per unit of flow and that the friction factor is not a roughness property but a flow property.
| Example | Re | Roughness (mm) | Diameter (mm) | f (Colebrook) | f (Haaland) |
|---|---|---|---|---|---|
| 1 | 100,000 | 0.045 | 100 | 0.0201 | 0.0199 |
| 2 | 1,800 | 0.01 | 25 | 0.0356 | Laminar |
| 3 | 850,000 | 0.3 | 300 | 0.0200 | 0.0200 |
Laminar, transitional and turbulent regimes
Below a Reynolds number of about 2300 the flow is laminar: orderly layers, a parabolic profile, and friction set purely by viscosity through 64/Re. Between roughly 2300 and 4000 lies the transitional band, where flow flickers between states and no correlation - Colebrook included - should be trusted; designers either avoid sizing in it or take the turbulent value as a conservative bound. Above 4000 the Colebrook equation governs, with the fully rough limit approached at high Re in rough pipes.
The regime label in the result is therefore part of the answer, not decoration. A factor returned in the transitional band carries an asterisk no decimal places can remove, and the honest engineering responses are to change the duty point, accept the uncertainty explicitly, or measure. The calculator reports the regime precisely so that judgment can be applied where the mathematics runs out.
Non-Newtonian fluids - slurries, blood, polymer solutions - break the 64/Re rule and the Colebrook blend alike, because their viscosity is not a constant. This calculator assumes a Newtonian fluid with a well-defined Reynolds number; for anything else the friction problem needs rheology data before it needs iteration.
Colebrook vs Haaland and Moody chart
The Moody chart is the Colebrook equation drawn: a family of curves of factor against Reynolds number, one per relative roughness, with the laminar line and the smooth-pipe curve as boundaries. Generations of engineers read factors off it to two significant figures and designed successfully; the chart remains the best way to see the landscape - where roughness starts to matter, where the curves flatten into the fully rough zone - even though nobody should interpolate it by eye when iteration is free.
Haaland's 1983 explicit formula, 1/sqrt(f) approximately -1.8 log10( (eps/3.7D)^1.11 + 6.9/Re ), reproduces Colebrook within about 2 percent across the turbulent range and is the right tool for spreadsheets and quick checks. The calculator's approach - iterate Colebrook, display Haaland - gives the reference value and an independent witness in one result, which is how numerical work should always be presented.
From friction factor to head loss
The factor earns its keep inside the Darcy-Weisbach equation: head loss = f x (L/D) x V squared over 2g. Put the first example's 0.0201 to work in 100 metres of that 100 mm pipe carrying water at 2 m/s: the length ratio is 1000, the velocity head about 0.204 m, and the friction loss lands near 4.1 metres of head - the number the pump curve must clear before fittings, valves and static lift are added. Every percentage point of error in f walks straight through into that loss, which is why the iteration is worth doing properly.
Minor losses ride on top: each fitting contributes a K factor times the same velocity head, and in short, fitting-dense pipework they can exceed the straight-pipe friction entirely. The friction factor's domain is the straight runs; a complete system calculation adds the K inventory, checks the pump's duty point against the system curve, and confirms the Reynolds number at the actual operating flow - the one entered here - rather than at the nameplate flow nobody runs.
- Head loss = f (L/D) V2/2g
- Example: f 0.0201, 100 m of 100 mm pipe at 2 m/s gives about 4.1 m
- Add fitting K factors on the same velocity head
- Verify Re at the real duty point, not the design point
Typical roughness values
Absolute roughness is a property of the pipe wall and its condition. Drawn tubing - copper, brass, plastic - sits near 0.0015 mm and behaves as hydraulically smooth for most duties. Commercial steel and wrought iron are around 0.045 mm, the first example's value. Galvanised iron is rougher at about 0.15 mm, cast iron 0.26 mm and rising with age and tuberculation, riveted steel up to several millimetres, and concrete anywhere from 0.3 to 3 mm depending on finish.
Age is the hidden variable: a steel main that leaves the factory at 0.045 mm may operate at ten times that after a decade of corrosion and scale, which is why water utilities design with aged-roughness values and why a friction factor computed from handbook roughness for an old pipe should be treated as a floor, not an estimate. When the duty matters, the roughness is measured - by fitting the observed head loss - rather than looked up.
One final distinction prevents a common error: the Darcy factor used here is four times the Fanning friction factor used in some chemical-engineering texts. A factor of 0.005 pulled from a Fanning table and inserted into a Darcy-Weisbach calculation understates head loss fourfold. The Colebrook equation as written, and this calculator's output, are Darcy throughout - the convention of the Moody chart and of civil and mechanical practice.
Temperature enters quietly through the Reynolds number: water at 60 degrees is roughly half as viscous as water at 10 degrees, so the same pipe at the same velocity runs at twice the Reynolds number hot as cold, and its friction factor falls accordingly. Designers of heating systems who compute the factor once, at an arbitrary temperature, build a seasonal error into every head-loss figure. The Reynolds number belongs to the operating condition, and the friction factor inherits its weather.
FAQs
What friction factor does Re 100000 with 0.045 mm roughness in a 100 mm pipe give?
The Colebrook solution is f = 0.0201; the Haaland approximation gives 0.0199, within about a percent.
What is the friction factor at Re 1800?
Laminar flow: f = 64/Re = 0.0356, independent of roughness.
What friction factor does Re 850000 with relative roughness 0.100 percent give?
f = 0.0200, and Haaland agrees at 0.0200 - the pipe is operating near the fully rough limit.
What relative roughness is 0.045 mm in a 100 mm pipe?
0.045 percent of the diameter.
Below what Reynolds number is flow laminar?
In the laminar regime the flow is orderly and f = 64/Re; the worked example at Re 1800 sits in it, while Re 100,000 is firmly turbulent.
Why iterate the Colebrook equation?
Because f appears on both sides, inside the logarithm and under the square root, so no algebraic rearrangement isolates it.