Darcy Friction Factor Calculator: Colebrook Equation, Head Loss and Pressure Drop

This Darcy friction factor calculator finds the Darcy-Weisbach friction factor for flow in a pipe from the Reynolds number and the relative roughness, using the Colebrook equation, the Swamee-Jain and Haaland approximations or the laminar formula. A pipe mode goes on to give the head loss and pressure drop.

Engineering & Electronics Tools Calculators

Darcy Friction Factor Calculator

Darcy friction factor from Reynolds number and relative roughness (Colebrook–White), or from flow data with head loss and pressure drop in a pipe.

Use 0 for a smooth pipe.
The friction factor is for fully developed flow in a round pipe running full. Fittings and valves add separate losses.

Starting values: a Reynolds number of 100,000 with a relative roughness of 0.0002 gives a Darcy friction factor of 0.01901 by the Colebrook equation. The Swamee-Jain result is 0.01899 and the Haaland result is 0.01874.

The equations

For laminar flow, where the Reynolds number is below about 2,000, the friction factor is simple:

f = 64 / Re

For turbulent flow, the Colebrook equation gives f implicitly:

1 / sqrt(f) = -2 log10( (e/D) / 3.7 + 2.51 / (Re x sqrt(f)) )

Where Re is the Reynolds number, e is the absolute roughness of the pipe and D is its inner diameter. Because f appears on both sides, the calculator solves it by iteration. The Swamee-Jain and Haaland equations are explicit approximations that need no iteration, and they are usually close to Colebrook.

The head loss then follows from the Darcy-Weisbach equation: hf = f x (L / D) x V^2 / (2g).

Worked examples

Example 1: friction factor only

For Re = 100,000 and e/D = 0.0002, Colebrook gives f = 0.01901. Swamee-Jain gives 0.01899, and Haaland gives 0.01874, which is about 1.4% lower. The Fanning friction factor, used in some textbooks, is one quarter of the Darcy value, which is 0.00475 here. Always check which definition a formula expects.

Example 2: smooth pipe and laminar flow

For a smooth pipe at Re = 100,000, the friction factor falls to 0.01799, so even moderate roughness raises the loss. In laminar flow at Re = 1,000, f = 64 / 1,000 = 0.064, and roughness plays no part.

Example 3: pipe mode

Take water at a velocity of 2 m/s in a 100 mm pipe that is 100 m long, with kinematic viscosity 1.004 cSt, roughness 0.045 mm and density 998 kg/m3. The Reynolds number is 2 x 0.1 / 1.004 x 10^-6 = 199,203, and the relative roughness is 0.00045. The friction factor is 0.01857. The head loss is 0.01857 x (100 / 0.1) x 4 / 19.62 = 3.787 m, and the pressure drop is about 37.06 kPa.

Choosing a method

  • Colebrook is the standard reference for turbulent flow, but it needs iteration.
  • Swamee-Jain is explicit and close to Colebrook over a wide range.
  • Haaland is explicit, and a little further from Colebrook at some values.
  • Between about 2,000 and 4,000, the flow is in transition, and no formula is reliable there.

Limits

The calculator assumes a full, circular pipe and steady, single-phase flow. It does not include minor losses from valves, bends and fittings, so add those separately. The roughness value you enter has a large effect on the result, and published values for a pipe material are typical figures, not measurements of your pipe.

The explicit formulas

The two approximations are worth knowing, because you can evaluate them with a pocket calculator.

  • Swamee-Jain: f = 0.25 / [log10( (e/D) / 3.7 + 5.74 / Re^0.9 )]^2
  • Haaland: 1 / sqrt(f) = -1.8 log10( ((e/D) / 3.7)^1.11 + 6.9 / Re )

For the default inputs, these give 0.01899 and 0.01874, matching the calculator, against 0.01901 from Colebrook. The differences are small compared with the uncertainty in the roughness value itself.

How the Reynolds number is found

The Reynolds number is Re = V x D / nu, where V is the mean velocity, D is the inner diameter and nu is the kinematic viscosity. Equivalently, it is rho x V x D / mu, using density and dynamic viscosity. Below about 2,000 the flow is laminar, above about 4,000 it is turbulent, and in between it is unstable. In the pipe mode example, the calculator derives Re from the velocity, diameter and viscosity you enter, so you do not need to calculate it yourself.

What relative roughness means

Relative roughness is the absolute roughness divided by the inner diameter, e/D. A 0.045 mm roughness in a 100 mm pipe gives 0.00045, while the same roughness in a 400 mm pipe gives only 0.00011. This is why the same material is hydraulically smoother in larger pipes. At low Reynolds numbers, a rough pipe behaves like a smooth one, because the roughness is hidden inside the thin layer of slow fluid near the wall. At high Reynolds numbers, the friction factor levels off and depends mainly on e/D.

Effect on head loss

Head loss grows with the square of velocity, so doubling the flow speed in the same pipe roughly quadruples the loss, with a small correction from the change in f. That makes velocity the most powerful lever when you are sizing a pipe: a slightly larger diameter lowers V, lowers f a little, and cuts the loss sharply.

Frequently asked questions

What is the Darcy friction factor?

It is the dimensionless factor in the Darcy-Weisbach equation that relates head loss in a pipe to velocity head, pipe length and diameter.

What is the difference between Darcy and Fanning friction factors?

The Darcy factor is four times the Fanning factor. Make sure that you use the one your equation expects.

Which equation should I use for turbulent flow?

Colebrook is the reference, and Swamee-Jain and Haaland are explicit approximations that give close answers.

What is the friction factor for laminar flow?

It is 64 divided by the Reynolds number, and it does not depend on roughness.

Does this include minor losses?

No. Losses from fittings and valves must be added separately.

Mark Danny

Mark Danny

Mark Danny builds and maintains the free calculators and guides on Area of Irregular Shapes Calculator. Every calculator page explains its formula and shows a worked example, so you can check the working yourself. Spotted a mistake or have a suggestion? Email gulsher.hingoro101@gmail.com.

Articles: 739