Skip to main content
engineering

Darcy-Weisbach Calculator

Calculate head loss and pressure drop in pipes using the Darcy-Weisbach equation with friction factor

Reviewed by Christopher FloiedUpdated

This free online darcy-weisbach calculator provides instant results with no signup required. All calculations run directly in your browser — your data is never sent to a server. Supports both metric (SI) and imperial units with built-in unit selection dropdowns on every input field, so you can work in whatever units your problem provides. Designed for engineering students and professionals working through coursework, design projects, or quick reference calculations.

Darcy-Weisbach Calculator

h_f = f·(L/D)·(v²/2g)  ·  ΔP = ρgh_f

Calculate friction factor from Moody chart

Laminar: f = 64/Re · Turbulent: use Moody toggle above

Results

Head Loss h_f

4.0775 m

Pressure Drop ΔP

39.928 kPa

= 39928 Pa

Friction Factor f

0.02000

Velocity

2.0000 m/s

Formula

h_f = f·(L/D)·v²/(2g) = 0.02000·(100/0.12.000²/(2×9.81)

= 4.0775 m

How to Use This Calculator

1

Enter pipe geometry

Input pipe inner diameter, length, and roughness height in your preferred units.

2

Enter flow conditions

Input fluid velocity or flow rate, plus fluid density and dynamic viscosity (or select a fluid preset).

3

Read head loss and pressure drop

The calculator computes friction factor, head loss (hL = f·L/D·V²/2g), and pressure drop (ΔP = f·L/D·ρV²/2).

Formula Reference

Darcy-Weisbach Equation

h_L = f · (L/D) · (V²/2g)

Variables: h_L = head loss, f = Darcy friction factor, L = pipe length, D = pipe diameter, V = average velocity, g = gravitational acceleration

Pressure Drop

ΔP = f · (L/D) · (ρV²/2)

Variables: ΔP = pressure drop, ρ = fluid density

When to Use This Calculator

  • Use the Darcy-Weisbach Calculator when solving homework or exam problems that require quick numerical verification of your hand calculations — instant feedback helps identify arithmetic errors before they propagate.
  • Use it during the early design phase to rapidly iterate on parameters and narrow down feasible configurations before committing time to detailed finite element simulations or full design packages.
  • Use it when reviewing a colleague's calculation or checking a vendor's data sheet for plausibility — a quick sanity check can prevent costly downstream errors.
  • Use it to generate reference data for a technical report or presentation without manual computation, ensuring consistent, reproducible numbers throughout the document.
  • Use it in the field when a quick estimate is needed and a full engineering software package is not available.

About This Calculator

The Darcy-Weisbach calculator computes head loss and pressure drop in pipe flow using the Darcy-Weisbach equation: hL = f·(L/D)·(V²/2g). It includes the Colebrook-White equation (or Swamee-Jain approximation) for computing the Darcy friction factor based on pipe roughness and Reynolds number. This is the standard method for pipe pressure drop calculations in civil, mechanical, and chemical engineering. Applications include water supply systems, HVAC hydronic systems, oil and gas pipelines, and process plant piping.

The Theory Behind It

The Darcy-Weisbach equation h_L = f·(L/D)·(V²/2g) computes frictional head loss in pipe flow, where h_L is head loss (m or ft), f is the Darcy friction factor (dimensionless), L is pipe length, D is pipe diameter, V is flow velocity, and g is gravitational acceleration. Pressure drop is ΔP = ρg·h_L = f·(L/D)·(ρV²/2). The friction factor f depends on Reynolds number and relative roughness ε/D (where ε is the pipe material roughness height). For LAMINAR flow (Re < 2,300), f = 64/Re — the friction factor is inversely proportional to Re and independent of roughness. For TURBULENT flow, the Colebrook-White equation 1/√f = −2·log₁₀(ε/(3.7D) + 2.51/(Re·√f)) gives f implicitly. The Swamee-Jain explicit approximation f = 0.25/[log₁₀(ε/(3.7D) + 5.74/Re^0.9)]² gives f directly within 1% of Colebrook-White for most practical cases and is commonly used in calculations. The Moody chart displays f vs Re on a log-log plot with curves for different roughness ratios, providing a graphical solution. Typical pipe roughness values: commercial steel 0.046 mm, galvanized iron 0.15 mm, cast iron 0.26 mm, concrete 0.3–3 mm, smooth pipe (brass, copper, plastic) 0.0015 mm. Darcy-Weisbach is the fundamental equation for pressure drop in pipe flow and is used in every hydraulic system design.

Real-World Applications

  • Water distribution pipe sizing: compute the head loss in a water main of known length and diameter at design flow, then compare to available head from a pump or elevated tank.
  • HVAC hydronic loop design: calculate friction loss in chilled water and hot water distribution loops, using the result to size circulating pumps and select pipe diameters that minimize energy consumption.
  • Process piping pressure drop: industrial process lines carrying water, oil, or chemicals use Darcy-Weisbach to predict pressure drop and required pump power.
  • Oil and gas pipeline design: long-distance pipelines compute compressibility-corrected Darcy-Weisbach friction to size compressor stations every 100-200 km.
  • Fire sprinkler system hydraulics: NFPA 13 requires hydraulic calculations of sprinkler systems to verify adequate flow and pressure at the most remote sprinkler; Darcy-Weisbach is the standard friction calculation method.

Frequently Asked Questions

What is the Darcy-Weisbach equation?

h_L = f·(L/D)·(V²/2g), the head loss due to friction in pipe flow. The equivalent pressure-drop form is ΔP = f·(L/D)·(ρV²/2). f is the dimensionless Darcy friction factor (sometimes called f_D to distinguish from the Fanning friction factor, which is f_D/4). The equation is universal for all incompressible pipe flow, with Re and relative roughness determining f.

How do I find the friction factor?

For laminar flow (Re < 2,300): f = 64/Re (exact). For turbulent flow: use Colebrook-White implicit equation, Swamee-Jain explicit approximation, or the Moody chart. Most engineering calculations use Swamee-Jain because it gives an explicit answer within 1% of Colebrook: f = 0.25 / [log₁₀(ε/(3.7D) + 5.74/Re^0.9)]². The calculator handles both laminar and turbulent regimes automatically.

What is pipe roughness?

Pipe roughness ε is the average height of surface asperities on the inner pipe wall, with units of length (mm or inches). Typical values (mm): plastic (PVC, PE) 0.0015, commercial steel 0.046, galvanized iron 0.15, cast iron 0.26, riveted steel 3, concrete 0.3–3. The ratio ε/D is 'relative roughness' and appears in friction factor correlations. Rough pipes (high ε/D) have higher friction and transition to 'fully rough' regime where f is independent of Re at high Re.

What's the difference between Darcy and Fanning friction factors?

Both describe the same physical friction, but differ by a factor of 4: f_Darcy = 4·f_Fanning. The Darcy factor is more common in hydraulic engineering (civil, HVAC); the Fanning factor is more common in chemical engineering. Using the wrong factor gives answers off by 4×, which is a common error source. Always check which factor your reference uses.

How do I use the Moody chart?

The Moody chart plots f vs Re on log axes with curves for various ε/D values. To find f: (1) Compute Re; (2) compute ε/D; (3) on the chart, go horizontally from your ε/D curve to the vertical line for your Re; (4) read f from the vertical axis. Computer tools (this calculator included) use the Colebrook-White or Swamee-Jain formula directly, avoiding the chart.

Related Calculators

References & Further Reading