Chemical Engineering · Fluid Mechanics
Friction factor calculator icon showing Moody chart curves of friction factor against Reynolds number

Friction factor calculator

This friction factor calculator gives the Darcy friction factor for pipe flow from the Reynolds number and the relative roughness ε/D. It solves the Colebrook-White equation exactly and compares it with the explicit Swamee-Jain, Haaland, Churchill and Serghides formulas, then plots your point on a Moody chart.

The example is Re = 100,000 and ε/D = 0.0005, roughly water at 1 to 2 m/s in a 3- to 4-inch commercial steel line. Choose “Velocity, diameter and fluid” to let the calculator work out Re and ε/D for you.

Friction factor calculator: compare the correlations

Darcy friction factor from five equations, with the percentage difference from the exact Colebrook-White solution.
Enter 0 for a hydraulically smooth pipe.
2-inch schedule 40 steel pipe = 52.5 mm.
Commercial steel 0.045 mm, drawn tubing or PVC 0.0015 mm, galvanized 0.15 mm, cast iron 0.26 mm.

Moody chart friction factor calculator

Log-log Moody diagram drawn from the Colebrook-White equation, with your ε/D curve highlighted.

How to use the friction factor calculator

If you already know the Reynolds number and the relative roughness, type them into the first card. Otherwise choose “Velocity, diameter and fluid”: the friction factor calculator computes Re = ρvD/μ and ε/D from the pipe size, the wall roughness and the fluid properties, with a unit menu on every field. The result panel shows the exact Colebrook-White friction factor, the Fanning equivalent and four explicit approximations, each with its percentage difference from Colebrook, so you can see how much accuracy a shortcut costs. It also tells you which turbulent zone you are in. The second card draws a Moody chart with your curve and operating point, which is handy for teaching and for spotting a point that sits in the wrong region.

The Colebrook-White equation in the friction factor calculator

For turbulent flow in commercial pipes, the standard reference is the Colebrook-White equation (1939), which joins the smooth-pipe law of Prandtl and von Kármán to the fully rough law of Nikuradse:

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

Because f appears on both sides, there is no closed-form solution. The friction factor calculator iterates on x = 1/√f starting from x = 7 until the change is below 10⁻¹³, which takes 5 to 15 passes. In laminar flow (Re ≤ 2300) the friction factor is f = 64/Re from the Hagen-Poiseuille solution, and roughness has no effect. The Moody chart that most students first meet is simply this equation plotted; the Moody chart article shows Moody’s original 1944 diagram.

Explicit friction factor formulas compared

Explicit approximations avoid iteration, which matters in spreadsheets, network solvers and exam answers. The friction factor calculator evaluates these four side by side:

Swamee-Jain: f = 0.25 / [log₁₀(ε/3.7D + 5.74/Re⁰·⁹)]²
Haaland: 1/√f = −1.8 · log₁₀[(ε/3.7D)¹·¹¹ + 6.9/Re]
Churchill: f = 8·[(8/Re)¹² + (A+B)⁻¹·⁵]1/12, A = [2.457·ln(1/((7/Re)⁰·⁹ + 0.27ε/D))]¹⁶, B = (37530/Re)¹⁶
Serghides: A = −2log₁₀(ε/3.7D + 12/Re), B = −2log₁₀(ε/3.7D + 2.51A/Re), C = −2log₁₀(ε/3.7D + 2.51B/Re), f = [A − (B−A)²/(C − 2B + A)]⁻²
CorrelationStated rangeTypical deviation from ColebrookBest use
Colebrook-White (1939)Turbulent, 4000 < Re < 10⁸, ε/D up to 0.05ReferenceDesign calculations, the basis of the Moody chart
Swamee-Jain (1976)5000 ≤ Re ≤ 10⁸, 10⁻⁶ ≤ ε/D ≤ 10⁻²Within about 1 %Hand calculations and pipe sizing
Haaland (1983)4000 ≤ Re ≤ 10⁸, ε/D up to 0.05Within about 1.5 %Simple, easy to invert
Churchill (1977)All Re: laminar, transitional and turbulentWithin about 1 % in turbulent flowSimulation codes that must cover every regime
Serghides (1984)Same as ColebrookBelow 0.01 %When explicit and essentially exact results are both needed

When you need a single number quickly, the friction factor calculator shows that Swamee-Jain is usually close enough. It is also the usual starting guess for the Colebrook iteration, which is how the Pressure Drop Calculator solves it. Serghides is a Steffensen-accelerated version of three fixed-point Colebrook steps, which is why it matches Colebrook almost exactly. In the friction factor calculator, Churchill is the only one of the five that also returns sensible values in laminar and transitional flow. A longer list of explicit formulas, with their sources, is in the Darcy friction factor formulae overview.

Worked example with the friction factor calculator

Take Re = 100,000 and ε/D = 0.0005, the default values. The Colebrook iteration converges to f = 0.020327, so the Fanning factor is 0.005082. Swamee-Jain gives 0.020415 (+0.43 %), Haaland 0.020067 (−1.28 %), Churchill 0.020420 (+0.46 %) and Serghides 0.020327 (0.00 %). The zone check compares f with its two limits. The smooth-pipe Colebrook value at the same Re (ε = 0) is 0.0180 and the fully rough value for this ε/D is 0.0167, so the pipe is in the transition zone (f is 13 % above the smooth-pipe value 0.0180), even though the roughness Reynolds number ε⁺ = Re·(ε/D)·√(f/8) is only 2.5. On the Moody chart in the second card the point sits on the 0.0005 curve, well left of the dashed line where the fully rough zone begins, and the fully rough limit for this ε/D is f = 0.0167.

As a textbook check, Çengel and Cimbala’s Example 8-3 (water at 15 °C, 5 cm stainless pipe, Re ≈ 134,000, ε/D = 4 × 10⁻⁵) reads f = 0.0172 from the Moody chart; the friction factor calculator gives 0.01719 from Colebrook.

Colebrook vs Swamee-Jain vs Haaland: a second worked example

A 2-inch schedule 40 commercial steel line (ε = 0.045 mm, D = 52.5 mm) has ε/D = 0.00086, so take Re = 100,000 and ε/D = 0.0009 as a typical plant case. Enter these two values in the friction factor calculator to reproduce every number below.

Colebrook-White, iterated. Write x = 1/√f and repeat xnew = −2·log₁₀(ε/D / 3.7 + 2.51·x / Re). Here ε/D / 3.7 = 0.00024324. Starting from x = 7: pass 1 gives x = 6.75569 (f = 0.021911), pass 2 gives x = 6.76850 (f = 0.021828), pass 3 gives x = 6.76782 (f = 0.021832), and from pass 4 on f stays at 0.021832 to five significant figures. Starting instead from the Swamee-Jain value saves about one pass. The Fanning factor is 0.021832 / 4 = 0.005458.

Swamee-Jain. Re⁰·⁹ = 31,623, so 5.74 / Re⁰·⁹ = 0.00018151. log₁₀(0.00024324 + 0.00018151) = log₁₀(0.00042475) = −3.37186, and f = 0.25 / (−3.37186)² = 0.021989.

Haaland. (ε/D / 3.7)¹·¹¹ = 0.000097388 and 6.9 / Re = 0.000069, so 1/√f = −1.8·log₁₀(0.000166388) = 6.80198 and f = 1 / 6.80198² = 0.021614.

MethodDarcy fDifference from ColebrookEffect on pressure drop
Colebrook-White (iterated)0.021832ReferenceReference
Swamee-Jain (explicit)0.021989+0.72 %ΔP 0.72 % high
Haaland (explicit)0.021614−1.00 %ΔP 1.00 % low

Since Darcy-Weisbach pressure drop is directly proportional to f, the percentage error carries straight into ΔP. As the friction factor calculator shows, both explicit formulas are well inside the ±5 to 10 % uncertainty of the roughness value itself, which is why either is acceptable for design; Colebrook-White remains the value to quote when you check someone else’s work. Compared with the default example (ε/D = 0.0005, f = 0.020327), nearly doubling the relative roughness raises f by 7.4 %.

Absolute roughness of common pipe materials

The friction factor calculator needs the relative roughness ε/D, so you first need a value of ε for the wall. The ranges below are for new, clean pipe unless stated. Values are from the Engineering ToolBox surface roughness table, except riveted steel, which is from the Neutrium absolute roughness table (compiled from Marks’ and Albright’s handbooks). Feet values are mm ÷ 304.8.

Pipe materialAbsolute roughness ε, mmAbsolute roughness ε, ftε/D in a 100 mm pipe
Drawn tubing (copper, brass, aluminum)0.001 to 0.0023.3 × 10⁻⁶ to 6.6 × 10⁻⁶0.00001 to 0.00002
PVC, PE and other smooth plastics0.0015 to 0.0074.9 × 10⁻⁶ to 2.3 × 10⁻⁵0.000015 to 0.00007
Commercial steel or wrought iron0.045 to 0.091.5 × 10⁻⁴ to 3.0 × 10⁻⁴0.00045 to 0.0009
Galvanized steel or iron0.154.9 × 10⁻⁴0.0015
Cast iron, new0.25 to 0.88.2 × 10⁻⁴ to 2.6 × 10⁻³0.0025 to 0.008
Cast iron, worn or rusty0.8 to 2.52.6 × 10⁻³ to 8.2 × 10⁻³0.008 to 0.025
Concrete, ordinary0.3 to 19.8 × 10⁻⁴ to 3.3 × 10⁻³0.003 to 0.01
Riveted steel0.91 to 9.10.0030 to 0.0300.0091 to 0.091

The single values printed on the Moody chart (0.0015 mm drawn tubing, 0.045 mm commercial steel, 0.15 mm galvanized iron, 0.26 mm cast iron) sit at the low end of these ranges. Roughness data are uncertain by a factor of two or more for aged pipe, so a sensitivity run in the friction factor calculator with the high value of ε is worth the ten seconds it takes.

Fanning vs Darcy: which value does the friction factor calculator give?

The Darcy (Moody) factor is four times the Fanning factor: fD = 4fF. Laminar flow gives 64/Re in Darcy form and 16/Re in Fanning form. The friction factor calculator reports both, but every correlation above is written for the Darcy factor. Check which one your textbook uses before mixing equations: chemical engineering classics such as McCabe-Smith and Bird-Stewart-Lightfoot work with Fanning, while the Moody chart, Crane TP-410 and the Darcy-Weisbach Calculator use Darcy. If your result comes out around 0.005, it is almost certainly a Fanning value.

Smooth, transition and fully rough zones on the Moody chart

In turbulent flow a thin viscous sublayer lines the wall. When the roughness elements are buried in it, the pipe behaves as hydraulically smooth and f keeps falling as Re rises. When they protrude through it, form drag on the roughness takes over; beyond Re·(ε/D)·√f ≈ 200 (the dashed line on the Moody chart) f becomes independent of Re and the pressure drop grows with the square of the flow. The friction factor calculator labels the zone for every result (smooth when f is within 2 % of the smooth-pipe Colebrook value, fully rough when within 2 % of the fully rough limit, transition zone otherwise), which tells you whether a smoother pipe material would help: in the smooth zone it hardly matters, in the fully rough zone it is the only thing that does.

Which zone of the Moody chart am I in?

Three quick checks place any friction factor calculator result on the chart. First, Re: below 2300 the flow is laminar and f = 64/Re; between 2300 and 4000 it is transitional and no correlation is dependable. Second, for turbulent flow work out the roughness Reynolds number ε⁺ = Re·(ε/D)·√(f/8). Below about 5 the roughness is buried in the viscous sublayer; above about 70 (the same as Re·(ε/D)·√f ≈ 200, the dashed line on the chart) the pipe is fully rough. Third, compare f with its limits, which is what the friction factor calculator does: within 2 % of the smooth-pipe value means smooth, within 2 % of the fully rough value means fully rough. Commercial pipe leaves the smooth curve earlier than Nikuradse’s uniform sand grains did, so the third check is the more reliable one. For the second worked example (Re = 100,000, ε/D = 0.0009), ε⁺ = 4.7, f is 21 % above the smooth value 0.0180 and 14 % above the fully rough value 0.0191, so the line is in the transition zone; it would become fully rough only above Re ≈ 1.6 × 10⁶.

Common mistakes with friction factors

Using ε instead of ε/D. The Moody chart and every formula above take the relative roughness; 0.045 mm in a 52.5 mm pipe is ε/D = 0.00086, not 0.045. Mixing Darcy and Fanning. A factor-of-four error in pressure drop. Applying turbulent correlations to laminar flow. Below Re ≈ 2300 use 64/Re; the friction factor calculator switches automatically. Trusting the transitional zone. Between Re 2300 and 4000 no equation is reliable; design away from it. Using new-pipe roughness for old pipe. A friction factor calculator is only as good as the ε you give it. Corrosion and scale can multiply ε several times; back-calculate it from a measured pressure drop with the Darcy-Weisbach calculator when you have plant data.

Related calculators

Once you have f, use the Darcy-Weisbach calculator for the head loss of a straight run, or the pressure drop calculator for a complete line with fittings. The Reynolds number calculator gives Re from flow rate and fluid properties.

Frequently asked questions

Which friction factor equation is most accurate?

For this friction factor calculator, as in most design codes, Colebrook-White is the accepted reference for turbulent flow in commercial pipes, and the Moody chart is drawn from it. Serghides reproduces it to better than 0.01 %, Swamee-Jain and Churchill to about 1 %, Haaland to about 1.5 %.

What is the friction factor for laminar flow?

For Re ≤ 2300 in a circular pipe, the Darcy friction factor is f = 64/Re (Fanning 16/Re), independent of wall roughness. At Re = 1000, f = 0.064.

What is the Darcy vs Fanning friction factor?

Both are dimensionless friction factors for the same flow, defined with different constants. The Darcy factor appears in ΔP = f_D·(L/D)·ρv²/2; the Fanning factor is the wall shear stress divided by ρv²/2, so ΔP = 4·f_F·(L/D)·ρv²/2. Therefore f_D = 4·f_F: laminar flow gives 64/Re (Darcy) or 16/Re (Fanning). The friction factor calculator shows both. A turbulent value near 0.005 is almost always Fanning; near 0.02 it is Darcy.

Why does the friction factor stop changing at high Reynolds numbers?

In the fully rough zone the roughness elements stick out of the viscous sublayer and the resistance is dominated by form drag on them, which does not depend on viscosity. Then f depends only on ε/D.

Can I use the friction factor calculator for non-circular ducts?

For turbulent flow, yes: use the hydraulic diameter D_h = 4A/P in both Re and ε/D. In laminar flow the constant 64 changes with the duct shape, so the circular-pipe value does not apply.

Is this friction factor calculator free?

Yes. It runs in your browser, needs no sign-up and does not store or send the values you enter.