nrtechstudio.com All tools
FLUID MECHANICS · TOOL #409

Darcy-Weisbach Calculator

Pipe friction head loss via hf = f·(L/D)·(v²/2g). Enter length, diameter and velocity or flow rate — the Darcy friction factor is solved from the Colebrook equation, with Reynolds number, minor losses and pressure drop.

100% client-side — your data never leaves this browser
Auto mode solves the Colebrook–White equation by iteration (laminar: f = 64/Re).
Total ΣK × v²/2g is added to the friction loss. Leave all at 0 to ignore.
FRICTION HEAD LOSS hf
—
m
Friction factor f
—
Reynolds Re
—
Velocity v
—
m/s
Pressure drop Δp
—
Minor losses
—
Total head loss
—
friction + minor

Worked examples

Three cross-checked scenarios — the same numbers you can reproduce with this pipe friction head loss calculator:

Steel water pipe

L = 100 m, D = 100 mm, v = 2 m/s, commercial steel, water 20 °C
3.79 m

Re = 199,203 (turbulent), Colebrook f = 0.01857, Δp ≈ 37.1 kPa. The classic textbook-scale result.

Laminar lab tube

L = 10 m, D = 50 mm, v = 0.02 m/s, water 20 °C
0.00026 m

Re = 996, so f = 64/Re = 0.06426 exactly. Loss scales linearly with velocity here, not with v².

Air duct

L = 50 m, D = 200 mm, v = 10 m/s, drawn tubing, air 20 °C
21.70 m of air

Re = 132,450, f = 0.01703, Δp ≈ 256 Pa. Head is "meters of air" — pressure drop stays small because air is light.

Method: the Darcy-Weisbach equation

Friction head loss comes from wall shear stress integrated over the pipe. The Darcy-Weisbach form is:

hf = f · (L / D) · (v² / 2g)

The Darcy friction factor f is where all the physics lives:

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

This is the Colebrook–White equation. It is implicit in f, so this page solves it by fixed-point iteration seeded with the explicit Haaland approximation, 1/√f = −1.8·log₁₀((ε/3.7D)1.11 + 6.9/Re), converging to 1e−12. Below Re = 2300 the exact laminar result f = 64/Re is used; between 2300 and 4000 a smooth log-blend bridges the two.

In short, this darcy weisbach calculator takes pipe length, inner diameter and flow velocity — or volumetric flow rate, with an automatic flow rate to velocity conversion — and applies the darcy weisbach equation hf = f(L/D)(v²/2g), the standard head loss formula for full-pipe flow. The built-in colebrook equation calculator solves for the friction factor from the Colebrook equation, so the page doubles as a friction factor calculator and a Reynolds number calculator for pipe flow, including the transitional flow range between Re 2300 and 4000.

Pipe roughness values: ε of common pipes

Pipe materialε (mm)
Drawn tubing (copper, brass, PVC)0.0015
Commercial steel0.045
Galvanized iron0.15
Cast iron0.26
Concrete0.60
Riveted steel0.90

Typical new-pipe values; for example, commercial steel roughness is 0.045 mm. Aging and scale raise roughness, so enter a custom ε in mm when you have measured data.

Minor-loss K coefficients

FittingK
Entrance, sharp-edged0.5
Entrance, rounded0.2
Exit (pipe discharge)1.0
90° elbow, flanged smooth0.3
90° elbow, threaded1.5
45° elbow, flanged0.2
Tee, run-through / branch0.6 / 1.8
Gate valve fully open0.15
Globe valve fully open10
Ball valve fully open0.05
Swing check valve2.5

Darcy-Weisbach vs Hazen-Williams

  • Darcy-Weisbach (this page): physics-based, valid for any Newtonian fluid, any Reynolds number, any roughness — the friction factor adapts to the flow.
  • Hazen-Williams: empirical shortcut, water only, near room temperature, turbulent range, with a roughness coefficient C. Simpler, but wrong outside its lane.
  • Rule of thumb: use Darcy-Weisbach for design work, air/gas, or viscous fluids; Hazen-Williams only for quick water-distribution estimates.

From head loss to pump sizing

  • Total dynamic head — the pump head: H = hf (friction) + ΣK·v²/2g (minor) + elevation lift + outlet pressure head.
  • To size a pipe for a fixed flow, note friction loss scales roughly as 1/D⁵ — doubling diameter cuts hf by ~32×.
  • Pressure drop follows Δp = ρ·g·hf: for water 20 °C, 1 m head ≈ 9.79 kPa ≈ 1.42 psi.
  • This is a steady, incompressible, full-pipe result — not for partially filled drains or compressible long gas lines.

Where this tool fits

This page answers one question well: what is the friction head loss in this pipe? Neighboring topics:

Frequently asked questions

What is the Darcy-Weisbach equation?

The Darcy-Weisbach equation computes friction head loss in a pipe: hf = f · (L/D) · (v² / 2g), where f is the Darcy friction factor, L is pipe length, D is inner diameter, v is mean flow velocity and g is gravity. It is the most physically grounded head-loss formula in fluid mechanics because the friction factor comes from the flow physics (Reynolds number and pipe roughness) instead of empirical constants. This darcy weisbach calculator implements the equation directly in your browser.

How do you calculate head loss in a pipe?

Measure the pipe length L and inner diameter D, find the mean velocity v (or compute it from the flow rate as v = 4Q / πD²), look up the fluid's kinematic viscosity and the pipe roughness, solve the Colebrook equation for the friction factor f, and plug into hf = f·(L/D)·(v²/2g). Add minor losses ΣK·(v²/2g) for fittings and valves. This calculator does every step automatically.

How do I find the friction factor f?

For laminar flow (Re < 2300) use f = 64/Re exactly. For turbulent flow, solve the implicit Colebrook–White equation 1/√f = −2·log₁₀(ε/3.7D + 2.51/Re√f) by iteration — this page iterates it to better than 1e−12 starting from the explicit Haaland approximation. You can also read f off a Moody chart, or enter a measured value in the manual mode.

What is the Colebrook equation?

The Colebrook equation — also called the colebrook-white equation — is 1/√f = −2·log₁₀(ε/(3.7D) + 2.51/(Re·√f)). It relates the Darcy friction factor f to the Reynolds number Re and the relative roughness ε/D in fully turbulent pipe flow. Because f appears on both sides, it must be solved iteratively; the explicit Haaland equation 1/√f = −1.8·log₁₀((ε/3.7D)^1.11 + 6.9/Re) is an excellent starting guess (within about 2%).

What is Reynolds number and why does it matter here?

The Reynolds number Re = v·D/ν is the ratio of inertial to viscous forces, with ν the kinematic viscosity of the fluid. Below about 2300 the flow is laminar (smooth layers, f = 64/Re); above about 4000 it is turbulent (f from Colebrook); between 2300 and 4000 lies the transitional zone. Re decides which friction-factor formula applies, so the calculator computes it first.

What is pipe roughness (ε)?

Absolute roughness ε is the average height of the wall's surface irregularities — for example 0.045 mm for commercial steel or 0.0015 mm for drawn tubing. What matters in the Colebrook equation is the relative roughness ε/D. Smoother pipe (smaller ε/D) gives a smaller friction factor and less head loss. The calculator ships with roughness presets for common pipe materials plus a custom entry.

What is the difference between Darcy-Weisbach and Hazen-Williams?

Darcy-Weisbach is physics-based and works for any fluid, any Reynolds number and any pipe roughness because the friction factor adapts to the flow. Hazen-Williams is an empirical shortcut that only applies to water near room temperature in the turbulent range, using a roughness coefficient C. Use Darcy-Weisbach whenever you need generality or accuracy outside normal water conditions.

How do you calculate head loss for laminar flow?

For laminar flow (Re < 2300 in a circular pipe) the laminar flow friction factor is exact: f = 64/Re, so head loss becomes hf = (64/Re)·(L/D)·(v²/2g). Since Re = vD/ν, head loss in the laminar regime scales linearly with velocity rather than with velocity squared. This calculator applies f = 64/Re automatically whenever the Reynolds number is laminar.

What are minor losses and K values?

Minor losses are the extra head loss from fittings, valves and pipe entrances/exits, computed as hLm = ΣK·(v²/2g) where each K is a minor loss coefficient — for example 0.5 for a sharp entrance, 1.0 for a pipe exit, 0.3 for a flanged 90° elbow or 10 for a fully open globe valve. Add them to the friction head loss for the total. The calculator includes a fittings table so you can tally K automatically.

How do I convert head loss to pressure drop?

Multiply head loss (in meters of fluid) by ρ·g: Δp = ρ·g·hf. For water at 20 °C (ρ ≈ 998 kg/m³), 1 m of head equals about 9.79 kPa or 1.42 psi. The calculator shows the equivalent pressure drop in kPa and psi automatically, using the density of the fluid you selected. In other words, this page also works as a pressure drop calculator for water pipes and ducts.

Can I use this calculator for air ducts or gas pipelines?

Yes. The Darcy-Weisbach equation applies to any Newtonian fluid — the result hf is simply "meters of flowing fluid". Select air at 20 °C (or water at other temperatures) from the fluid menu, or enter custom kinematic viscosity and density. For gases the pressure drop Δp = ρghf is only exact for short ducts where density barely changes; long compressible gas lines need integrated methods.

What units does the calculator accept?

Length in m, km, ft or miles; diameter in mm, cm, m, inches or ft; velocity in m/s or ft/s; flow rate in m³/s, L/s, L/min, gpm or ft³/s. Everything is converted to SI internally. Results are reported as head in meters and feet, and pressure drop in kPa and psi.

How accurate is the Colebrook iteration?

The iteration converges to a relative tolerance of 1e−12, far beyond engineering need — the result matches the Moody chart to the thickness of the printed line. The dominant real-world uncertainty is your input data (especially pipe roughness and actual inner diameter), not the solver.

Why is my friction factor different from the Moody chart?

Almost always one of three things: reading error on the logarithmic Moody axes, a different roughness assumption (chart curves step in coarse ε/D increments), or the flow being in the transitional zone where the chart is approximate. The Colebrook solution here is the same curve the chart is drawn from, so a careful re-read usually closes the gap.

How do I use head loss to size a pipe or a pump?

The total head a pump must deliver is H = hf (friction) + hLm (minor losses) + elevation difference + any required pressure head at the outlet. Pick a trial diameter, compute the head loss, and iterate: larger pipe costs more upfront but cuts hf roughly as 1/D⁵ for a fixed flow rate, since v²/D ~ Q²/D⁵. Pump catalogs list curves of head versus flow for exactly this match-up.

Is my data sent to a server?

No. Every calculation — the Reynolds number, the Colebrook iteration, the unit conversions — runs entirely in your browser with JavaScript. Nothing you enter leaves your device; there are no accounts, no analytics beacons from this tool, and no external requests of any kind.

Free tool by NRTechStudio