HomeCalculatorsPhysicsDarcy–Weisbach Calculator
Physics calculator

Darcy–Weisbach Calculator

Compute pipe head loss hf = f L v²/(2 g D) and Δp = ρ g hf from a given Darcy friction factor. Runs locally. Does not solve Colebrook for f.

Instant result
Result

Enter values to calculate.

Inputs
Mode
Formula
Trust summary Engine tested · Source checked · 11/11 tests · Production surface contract 4/4 · v1.0.0
Input interpretation
Enter values to calculate.
Result
Model
Darcy–Weisbach head loss and pressure drop from a given friction factor.
Scope
Incompressible
Verification
Engine tested · 11/11 tests · Production surface contract 4/4 · Source checked · v1.0.0
Named expert review
Optional · Not performed
Sources
  • ISO 80000-4 — Mechanics — Pressure and hydraulic head
  • White, F.M. Fluid Mechanics — pipe flow — Darcy–Weisbach equation
Sources
Evidence
1 golden · 5 boundary · 5 property · Production surface contract 4/4 · Artifact integrity PASS
Production
Embedded snapshot: unpublished · Build schema 1.0.0 ready · Semantic contract ✓ · Attestation report not published on origin · Live production status PASS (0 stale; 164 CURRENT) @ 2026-09-16T06:44:24.909Z
Semantic contract
PASS

Formulas

Core equations used by this calculator.

Head losshf = f L v² / (2 g D)
Pressure dropΔp = ρ g hf
if is given. This page does not solve Colebrook–White. g defaults to 9.80665 m/s².

How to use

1

Enter friction factor f

f ≥ 0. Get f from Colebrook or another correlation; this page does not solve for f.

2

Enter L, v, D, and ρ

Length, mean velocity, inner diameter, and density. All lengths and speed must be greater than zero.

3

Read hf and Δp

hf = f L v²/(2 g D). Δp = ρ g hf.

Example calculations

Common configurations with formula and result.

ϟ

Water in a 10 m pipe

f=0.02, L=10 m, v=2 m/s, D=0.1 m, ρ=1000 kg/m³

Δp = ρ f L v² / (2 D)
Δp=4000 Pa · hf≈0.40789 m
ϟ

Zero friction

f=0, same L, v, D, ρ

hf = 0
hf=0 · Δp=0

Darcy–Weisbach calculator specification

Version 1.0.0 · Engine tested

Calculation status

Review policy · Evidence

Definition
Darcy–Weisbach: hf = f L v² / (2 g D). Pressure drop Δp = ρ g hf. Circular incompressible pipe. f is an input.
What it calculates
Darcy–Weisbach head loss and pressure drop from a given friction factor.
Inputs
  • f
  • L
  • v
  • D
  • rho
  • g?
Outputs
  • hf_m
  • dP_Pa
  • f
  • L
  • v
  • D
  • rho
  • g
Formula
hf = f L v²/(2 g D); Δp = ρ g hf
Assumptions
  • Incompressible
  • Constant Darcy friction factor
  • Circular full-flow pipe
  • g = 9.80665 m/s² unless given
  • Does not solve Colebrook for f
  • Not Hazen–Williams or minor-loss K
Units
  • SI; L and D in m; v in m/s; ρ in kg/m³; hf in m; Δp in Pa
Boundary conditions
  • missing f, L, v, D, or rho → MISSING_REQUIRED_INPUT
  • L, v, D, or rho ≤ 0 → VALUE_MUST_BE_POSITIVE
  • f < 0 → VALUE_OUT_OF_RANGE
  • g given and g ≤ 0 → VALUE_MUST_BE_POSITIVE
Example
f=0.02 L=10 v=2 D=0.1 rho=1000 → Δp=4000 Pa
Validation cases

3 published on this page · 11/11 tests · Production surface contract 4/4 · View evidence

  • f=0.02 L=10 v=2 D=0.1 rho=1000 → Δp=4000 Pa; hf=4000/(ρ g)
  • f=0 L=10 v=2 D=0.1 rho=1000 → Δp=0
  • D=0 → VALUE_MUST_BE_POSITIVE
Sources
  • ISO 80000-4 — Mechanics — Pressure and hydraulic head
    Supports: Δp = ρ g hf for a hydrostatic/hydraulic head
  • White, F.M. Fluid Mechanics — pipe flow — Darcy–Weisbach equation
    Supports: hf = f L v² / (2 g D) for circular pipes
Calculation version
1.0.0

Background

Interpretation and common distinctions.

Compute pipe head loss from Darcy–Weisbach.

Supported and not supported

Supported — hf and Δp from a given f · API physics.fluid.darcy_weisbach

Not supported — Colebrook solve for f, laminar 64/Re, Hazen–Williams, minor-loss K, compressible flow, Q=Av

Agent / API notes

Capability id: physics.fluid.darcy_weisbach · tool id: darcy-weisbach · pin 1.0.0.

{ "f": 0.02, "L": 10, "v": 2, "D": 0.1, "rho": 1000 }

Optional g (default 9.80665). Errors: MISSING_REQUIRED_INPUT, INVALID_NUMBER, VALUE_MUST_BE_POSITIVE, VALUE_OUT_OF_RANGE.

Calculator URL stays /calc/physics/darcy-weisbach. There is no /calc/fluid.

Other calculators in this family: Colebrook, Reynolds number, Flow rate .

}

Frequently asked questions

Key distinctions behind the calculation.

Does this solve Colebrook for f?

No. f is an input. Use /calc/physics/colebrook for turbulent-pipe f from Re and ε/D.

Is this Q = A·v?

No. Volumetric flow is /calc/physics/flow-rate. This page is head loss and pressure drop.

Can I change g?

Yes on REST and MCP with g or g_m_s2. The web form uses gn = 9.80665 m/s².

Where does this run?

Locally in the browser by default. REST and MCP call the same fluid-engine Darcy–Weisbach wrapper.