Toolvito

Works on this device

Darcy Weisbach Calculator

The Darcy-Weisbach equation gives the friction loss of a fluid in a pipe. Solve it for any one value, and find the friction factor by the Colebrook equation with the explicit Swamee-Jain and Haaland forms beside it.

Enter your values

The friction loss of a pipe for a known friction factor.

Your values

The Darcy (Moody) factor. A Fanning factor is a quarter of it: multiply a Fanning factor by 4. The friction factor choice of this tool works it out.

Used to turn a head into a pressure. 998.2 kg/m³ is water at about 20 °C, an example.

Your values are worked out in this browser. They are not sent to a server.

Your result will show here

Fill in the values, then choose Calculate.

How to use this calculator

  1. Choose what you want to find: the head loss, the friction factor from a measured loss, the length, the diameter or the velocity, the friction factor by several methods, or a table of the friction factor over Reynolds numbers.
  2. Enter the values you know and pick a unit for each one. A loss can be given as a head (a height of the fluid) or as a pressure drop with the density.
  3. Choose Calculate. The working shows each step with your numbers.

The Darcy-Weisbach equation

h_f = f × (L ÷ D) × v² ÷ (2g). h_f is the head loss, f the Darcy friction factor, L the length, D the inside diameter, v the mean velocity and g = 9.80665 m/s².

As a pressure drop: Δp = ρ × g × h_f = f × (L ÷ D) × ρ × v² ÷ 2. Turned round: f = h_f × D × 2g ÷ (L × v²), L = h_f × D × 2g ÷ (f × v²), v = √(2g × h_f × D ÷ (f × L)). With a fixed flow Q the diameter is D = (8 f L Q² ÷ (π² g h_f))^(1/5).

f is the Darcy (Moody) factor. The Fanning factor of some chemical engineering books is a quarter of it.

The friction factor

  • Laminar flow (Reynolds number below 2,300): f = 64 ÷ Re, for any roughness.
  • Colebrook (1939): 1 ÷ √f = −2 × log10(ε ÷ (3.7 D) + 2.51 ÷ (Re × √f)). f is on both sides, so the tool solves it by Newton's method until the answer stops changing.
  • Swamee-Jain (1976): f = 0.25 ÷ [log10(ε ÷ (3.7 D) + 5.74 ÷ Re^0.9)]², an explicit approximation for Re 5,000 to 100,000,000.
  • Haaland (1983): 1 ÷ √f = −1.8 × log10[(ε ÷ (3.7 D))^1.11 + 6.9 ÷ Re], another explicit approximation.
  • Between Re = 2,300 and 4,000 the flow changes from laminar to turbulent and no formula is reliable. The tool then uses Colebrook and says so.

Worked example

A 100 mm pipe 100 m long carries 10 L/s of water, so the velocity is 1.273 m/s and the velocity head 1.273² ÷ (2 × 9.80665) = 0.08266 m. With f = 0.01956: h_f = 0.01956 × (100 ÷ 0.1) × 0.08266 = 1.617 m. With 998.2 kg/m³ that is 15.83 kPa.

For Re = 100,000 and ε ÷ D = 0.00046 (0.046 mm in a 100 mm pipe), Colebrook gives f = 0.020162. Swamee-Jain gives 0.020240 (0.39 % higher) and Haaland 0.019898 (1.31 % lower).

Limits you should know

  • A typed friction factor is used as it is. A real friction factor changes with the velocity, the diameter and the roughness, so it needs to be found again when they change. The Pipe Flow Calculator does the whole pipe, with fittings, at once.
  • Round pipes flowing full. For other shapes, a hydraulic diameter is often used in place of D, which is an approximation.
  • The relative roughness is limited to 0.1, as on a Moody chart.
  • For a gas the equation holds only while the pressure drop is small next to the absolute pressure.
  • The roughness in the menu is a rounded textbook example. The results are arithmetic, not a design approval or professional advice.

Related tools