Enzo Fanali
Pipe Flow Calculator

Pipe Flow

Field: Mechanical

Written and maintained by the PhDino author · Last reviewed 21 September 2026 · Checked against 3 independent reference calculations · how PhDino checks its numbers

Velocity, Reynolds number, and friction pressure drop for flow through a pipe.

Fluid moving through a pipe experiences friction against the pipe wall, which shows up as a pressure drop along the length of the run. Whether that friction is dominated by smooth, orderly (laminar) flow or chaotic, mixing (turbulent) flow depends on the Reynolds number — a dimensionless ratio of inertial to viscous forces.

The Darcy–Weisbach equation relates that friction pressure drop to the flow velocity, pipe geometry, and a friction factor that itself depends on whether flow is laminar or turbulent (and, in turbulent flow, on pipe roughness).

Where it comes from

Osborne Reynolds showed in 1883 that the flow in a pipe switches from smooth to turbulent at a fixed value of the number now named after him. Cyril Colebrook published the friction equation for turbulent pipe flow in 1939, and this calculator uses the explicit approximation of it that Swamee and Jain gave in 1976, which avoids solving Colebrook's equation by iteration.

Sources: Reynolds (1883), Philosophical Transactions · Colebrook (1939), Journal of the ICE · Swamee and Jain (1976), Journal of the Hydraulics Division

Key formula

Re = vD/ν
Laminar (Re < 2300): f = 64/Re
Head loss: h_f = f(L/D)(v²/2g)
No. 006 / 092Mechanical
Pipe Flow
Presented by Enzo Fanali · Mechanical
No. 006 / 092Pipe Flow
Re = vD/ν
Laminar (Re < 2300): f = 64/Re
v
mean flow velocity
D
pipe inside diameter
ν
kinematic viscosity of the fluid
f
Darcy friction factor
Worked example
Flow Rate: 100 GPM · Pipe Diameter: 1 in · Pipe Length: 100 ft
→ Velocity: 40.75 ft/s
Checked: this exact example is one of the automated reference tests, its answer worked out independently of the calculator.
phdino.com/calc/pipe-flow

Variables

v
mean flow velocity
D
pipe inside diameter
ν
kinematic viscosity of the fluid
f
Darcy friction factor
L
pipe length

Notes & limitations

  • For turbulent flow (Re ≥ 2300), the friction factor also depends on pipe roughness — this calculator uses the Swamee–Jain approximation to the implicit Colebrook equation rather than an iterative solve.
  • This covers straight-pipe friction only; fittings, valves, and elbows add additional ("minor") losses not included here.

Further reading

PhDino earns a commission on qualifying purchases made through this link, at no extra cost to you.

The Way Things Work (Newly Revised Edition) by David Macaulay — A drawn, plain-language tour of levers, gears, engines, and the machines built from them. (Bookshop.org UK, UK delivery only)

→ The full PhDino bookshelf on Bookshop.org (UK delivery only)

Educational tool — not a substitute for a licensed engineer or the official code text.