Skip to content
Engineering Bible

Results appear as you type. Use the arrow keys to move through them and Enter to open one.

Popular

↑ ↓ moveEnter openEsc close

Fluid mechanics and pump formulas

The formulas behind the 19 fluids and pumps calculators, on one page you can print or save as a PDF. Each block lists its variables and standard; the heading opens the calculator, with its assumptions and a worked example.

Bernoulli's equation and venturi

Bernoulli's equation with a head loss (the energy equation):

p₁ + ½ ρ V₁² + ρ g z₁ = p₂ + ½ ρ V₂² + ρ g z₂ + ρ g h_L

Solved for the pressure at point 2:

p₂ = p₁ + ½ ρ (V₁² − V₂²) + ρ g (z₁ − z₂ − h_L)

Continuity, for the velocity from the two bores:

V₂ = V₁ × (D₁ / D₂)²

Total head:

H = p / (ρ g) + V² / (2 g) + z
  • p — pressure, Pa (both gauge or both absolute)
  • V — mean velocity, m/s
  • z — height above a common datum, m
  • h_L — head loss between the points, m
  • g = 9.806 65 m/s²

Compressed air calculator: leaks, receiver, pipe drop and power

Leak through a hole, choked when the absolute pressure is above 1.89 times atmospheric (about 13 psig):

ṁ = Cd × A × p0 × √(γ / (R T)) × (2 / (γ + 1))^((γ + 1) / (2(γ − 1))) = 0.6847 Cd A p0 / √(R T)
Q_free = ṁ / ρ_atm,   P_wasted = Q_free × specific power

Receiver for a demand event (US DOE MEASUR, Compressed Air Challenge):

V = t × (Q_demand − Q_supply) × p_atm / (p1 − p2)

Pipe pressure drop, isothermal Darcy and the Atlas Copco empirical form:

p1² − p2² = (ṁ / A)² R T × [f L / D + 2 ln(p1 / p2)]
Δp = 450 × qc^1.85 × L / (d⁵ × p)      (bar, L/s free air, m, mm, bar absolute)

Compressor power for n intercooled stages:

W_iso = p_a V × ln r
W_ad = n × γ / (γ − 1) × p_a V × (r^((γ − 1) / (n γ)) − 1),   P_shaft = W_ad / η
  • A, d — hole area and diameter; Cd — coefficient of flow; p0 — absolute pressure upstream
  • R = 287.05 J/(kg·K), γ = 1.4 for air; T — air temperature in kelvin
  • Q, V — free air flow and volume at atmospheric pressure p_a; r — absolute pressure ratio
  • p1, p2 — upper and lower pressures; t — event duration; f — Darcy friction factor

Control valve Cv / Kv sizing

Kv = Q √( (ρ/1000) / Δp_sizing )      Q m³/h, Δp bar;   Cv = 1.156 Kv
F_F = 0.96 − 0.28 √(p_v / p_c)
Δp_max = F_L² (p₁ − F_F p_v),   Δp_sizing = min(Δp, Δp_max)   (choked when Δp ≥ Δp_max)
opening ≈ Kv_required / Kv_rated,   velocity = Q / (π D²/4)
maximum flow of a rated valve at p₁: Q_max = Kv_rated √(Δp_max / (ρ/1000))

Typical F_L at full opening: single-seat globe 0.90, cage globe 0.85, eccentric plug 0.77, butterfly 60° 0.68, segmented ball 0.60, butterfly 90° 0.55.

cSt to SSU viscosity converter (Saybolt seconds)

Saybolt Universal seconds at 100 °F from kinematic viscosity ν in cSt (ASTM D2161):

SUS = 4.6324 ν + (1.0 + 0.03264 ν) / ((3930.2 + 262.7 ν + 23.97 ν² + 1.646 ν³) × 10⁻⁵)

At another test temperature t in °F:

SUS_t = SUS_100 × (1 + 0.000061 (t − 100))

Saybolt Furol seconds at 122 °F, and dynamic viscosity:

SFS = 0.4717 ν + 13 924 / (ν² − 72.59 ν + 6 816)
μ (cP) = ν (cSt) × ρ (g/cm³)
  • ν — kinematic viscosity at the test temperature, mm²/s (cSt)
  • Above 75 cSt the relation is linear: SUS = 4.632 × cSt at 100 °F

Flow rate and pipe velocity

Continuity for a full pipe:

Q = V × A,   A = π × D² / 4

Each unknown in turn:

V = Q / A = 4 Q / (π D²)
Q = V × π D² / 4
D = √(4 Q / (π V))

Usual design velocities for liquids, in m/s:

general water and pump discharge  1.0 to 3.0
pump suction                      0.6 to 1.5
fuel and lubricating oil          0.5 to 2.0
  • Q — volume flow rate, m³/s (1 m³/h = 1/3600 m³/s)
  • V — mean velocity, m/s
  • D — inside diameter, m

Hazen–Williams head loss calculator

Head loss in SI units, with Q in m³/s and d and L in m:

h_f = 10.67 L Q^1.852 / (C^1.852 d^4.8704)

US form used by NFPA 13, with Q in gpm and d in inches:

p = 4.52 Q^1.85 / (C^1.85 d^4.87)      psi per foot of pipe

Both come from the original velocity form, with the hydraulic radius R = d/4 of a full pipe:

V = 0.849 C R^0.63 S^0.54   (SI),     V = 1.318 C R^0.63 S^0.54   (US)

Velocity and pressure drop:

V = Q / (π d² / 4),     Δp = ρ g h_f
  • h_f — friction head loss; S = h_f / L — slope of the hydraulic grade line
  • C — Hazen–Williams factor of the pipe material
  • d — inside diameter, not the nominal size
  • ρ = 999.1 kg/m³ for water at 15 °C; g = 9.81 m/s²
Pipe material (NFPA 13 Table 28.3.4.8.1)C
Plastic (PVC, CPVC, PE), listed150
Copper tube, brass or stainless steel150
Cement-lined cast or ductile iron140
Asbestos cement, concrete140
Black or galvanized steel, wet systems120
Black or galvanized steel, dry systems100
Unlined cast or ductile iron100

Hydrostatic pressure at depth

Gauge and absolute pressure:

p_gauge = ρ × g × h
p_abs = p_surface + ρ × g × h

Head in metres of water, and the force on a horizontal surface:

H = p_gauge / (1000 × g)
F = p_gauge × A
  • ρ — liquid density, kg/m³ (fresh water 998.2, sea water 1025.87)
  • g — 9.806 65 m/s²
  • h — depth below the free surface, m
  • p_surface — pressure on the surface, Pa (101.325 kPa at sea level)
  • A — horizontal area, m²

Minor losses calculator (pipe fittings and valves)

Head loss and pressure loss through fittings:

h = ΣK × v² / (2g)
Δp = ρ g h

Resistance coefficient of a fitting (Crane method):

K = f_T × (L/D)
f_T = [ −2 log10( ε / (3.7 D) ) ]⁻²

Equivalent length of straight pipe:

L_eq = ΣK × D / f_T
  • v — mean velocity in the pipe; D — inside diameter; ε = 0.046 mm for clean steel
  • L/D — equivalent length in diameters: standard elbow 30, gate valve 8, globe valve 340, swing check 100, tee branch 60
  • Entrance K = 0.5 (sharp-edged); exit into a tank K = 1.0

Nozzle flow calculator (orifice, fire nozzle and K-factor)

Orifice equation, any consistent units:

Q = Cd × A × √(2 Δp / ρ),   A = π d² / 4

Fire-service form (NFPA 291), Q in gpm, d in inches, p in psi:

Q = 29.84 × c × d² × √p

K-factor form (NFPA 13), US gpm/psi½ or metric L/min/bar½:

Q = K × √p,   K_metric = 14.42 × K_US

Jet velocity and nozzle reaction:

v = √(2 Δp / ρ)
F = ρ × Q × v          (= 1.57 d² p in lbf for a smooth bore, IFSTA)
F_fog = 0.0505 × Q × √p   (IFSTA fog nozzle, lbf, gpm, psi)
  • Q — flow; Δp, p — gauge pressure at the nozzle or pitot pressure in the jet
  • d — orifice or tip diameter; A — its area
  • Cd, c — discharge coefficient; ρ — liquid density, 999 kg/m³ for fresh water
  • K — K-factor, which holds the area and the discharge coefficient together

Orifice and venturi flow (ISO 5167)

β = d/D,   E = 1/√(1 − β⁴)
q_m = C E ε (π/4) d² √(2 Δp ρ₁),   q_v = q_m/ρ₁,   Re_D = 4 q_m/(π D μ)

Orifice discharge coefficient (ISO 5167-2 eq. 4, Reader-Harris/Gallagher):

C = 0.5961 + 0.0261 β² − 0.216 β⁸ + 0.000521 (10⁶ β/Re_D)^0.7 + (0.0188 + 0.0063 A) β^3.5 (10⁶/Re_D)^0.3
    + (0.043 + 0.080 e^(−10 L₁) − 0.123 e^(−7 L₁)) (1 − 0.11 A) β⁴/(1 − β⁴) − 0.031 (M′₂ − 0.8 M′₂^1.1) β^1.3
    [+ 0.011 (0.75 − β)(2.8 − D/25.4)  for D < 71.12 mm]
A = (19 000 β/Re_D)^0.8,  M′₂ = 2 L′₂/(1 − β);  corner taps L₁ = L′₂ = 0; D–D/2 taps L₁ = 1, L′₂ = 0.47; flange taps L₁ = L′₂ = 25.4/D(mm)

Venturi (ISO 5167-4): C = 0.995 machined, 0.984 as-cast, 0.985 rough-welded.

Expansibility (gases): orifice ε = 1 − (0.351 + 0.256 β⁴ + 0.93 β⁸)[1 − (p₂/p₁)^(1/κ)]; Venturi: isentropic expression of ISO 5167-4 eq. 3. Liquids ε = 1.

Permanent pressure loss (orifice): Δϖ = [√(1 − β⁴(1 − C²)) − C β²]/[√(1 − β⁴(1 − C²)) + C β²] Δp; Venturi about 10 % of Δp.

Pipe flow and pressure drop

Continuity:

V = Q / A,   A = π D² / 4
  • Q — volume flow rate, m³/s
  • V — mean velocity, m/s
  • D — pipe inside diameter, m

Reynolds number:

Re = V D / ν
  • ν — kinematic viscosity, m²/s (= μ / ρ)

Friction factor (Darcy):

Laminar, Re < 2 300:        f = 64 / Re
Turbulent, Colebrook–White: 1/√f = −2 log₁₀( ε/(3.7 D) + 2.51/(Re √f) )   (solved by iteration)
Swamee–Jain explicit:       f = 0.25 / [ log₁₀( ε/(3.7 D) + 5.74/Re^0.9 ) ]²
  • ε — absolute roughness of the pipe wall, m

Losses:

h_f  = f (L/D) V² / (2g)             friction head, m of fluid
Δp_f = f (L/D) ρ V² / 2              friction pressure drop, Pa
Δp_K = ΣK ρ V² / 2                   minor losses, Pa
Δp_z = ρ g Δz                        static pressure from elevation, Pa
Δp_total = Δp_f + Δp_K + Δp_z
H_total  = Δp_total / (ρ g)
H_loss   = (Δp_f + Δp_K) / (ρ g)     friction and fittings only (the suction-line loss of an NPSH check)
  • L — pipe length, m; ρ — density, kg/m³; ΣK — sum of minor-loss coefficients; Δz — rise of the outlet above the inlet, m; g = 9.80665 m/s²

Roughness presets (Moody 1944 / White Table 6.1): drawn tubing and PVC 0.0015 mm, stainless steel 0.015 mm, commercial steel 0.045 mm, galvanized iron 0.15 mm, cast iron 0.26 mm, concrete 1.0 mm, riveted steel 3 mm.

Pipe volume and mass of contents

Bore area and volume:

A = π × D² / 4
V = A × L

Volume per metre, mass, and fill time:

V per metre = A × 1000   (litres per metre)
m = ρ × V
t = V / Q
  • D — inside diameter (bore), m
  • L — pipe length, m
  • ρ — density of the contents, kg/m³
  • Q — flow rate, m³/s

Pump and fan affinity laws

Speed change for the same machine (N₁ → N₂):

Q₂ = Q₁ (N₂/N₁)
H₂ = H₁ (N₂/N₁)²        (fans: Δp₂ = Δp₁ (N₂/N₁)²)
P₂ = P₁ (N₂/N₁)³

Impeller diameter change, trimming in the same casing (D₁ → D₂):

Q₂ = Q₁ (D₂/D₁),   H₂ = H₁ (D₂/D₁)²,   P₂ = P₁ (D₂/D₁)³

Geometrically similar machines (complete scaling of the design):

Q₂ = Q₁ (D₂/D₁)³,  H₂ = H₁ (D₂/D₁)²,   P₂ = P₁ (D₂/D₁)⁵

Combined speed and diameter changes multiply the ratios.

Known-point quantities:

P_hyd = ρ g Q H           pump hydraulic power, W
P_hyd = Q Δp              fan air power, W
η = P_hyd / P_shaft       overall efficiency
n_q = N √Q / H^0.75       specific speed (N in rpm, Q in m³/s, H in m)
  • Q — volume flow, m³/s; H — head, m of liquid; Δp — total pressure rise, Pa; P — shaft power, W
  • N — rotational speed, rpm; D — impeller outside diameter, m; ρ — fluid density, kg/m³; g = 9.80665 m/s²

Pump NPSH and suction lift

NPSHa = (p_abs − p_v) / (ρ g) + z_s − h_f
p_abs = p_atm + p_gauge             (absolute pressure on the liquid surface)
margin = NPSHa − NPSHr,  ratio = NPSHa / NPSHr
required NPSHa = max(NPSHr + margin_min, NPSHr × ratio_min)       (ANSI/HI 9.6.1: 0.6–1 m or 1.1–1.3)
maximum lift:  z_max = −(required NPSHa + h_f − (p_abs − p_v)/(ρ g))

Water vapour pressure: IAPWS-IF97 region-4 saturation equation (steam tables; 2.339 kPa at 20 °C, 19.95 at 60 °C, 70.2 at 90 °C, 101.4 at 100 °C).

N_ss = n √Q_gpm / NPSHr_ft^0.75        (US customary; > 11 000 prone to recirculation)
σ = NPSHr / H                           (Thoma cavitation number)

Pump power calculator

Power at each stage:

P_h = ρ g Q H = Q Δp
P_shaft = P_h / η_pump
P_in = P_shaft / η_motor

US units (brake horsepower):

BHP = Q[gpm] × H[ft] × SG / (3 960 × η_pump)
  • ρ — liquid density; g = 9.81 m/s²; Q — flow; H — total head
  • Δp — pressure rise, with H = Δp / (ρ g)
  • η_pump, η_motor — pump and motor efficiencies at the duty point

Relief valve sizing (API 520)

P₁ = set + overpressure (10 % single, 16 % multiple, 21 % fire) + atmospheric     (gas, absolute)
critical if P₂/P₁ ≤ (2/(k+1))^(k/(k−1))
critical:      A = W / (C K_d P₁ K_b K_c) × √(T Z / M),   C = 0.03948 √(k (2/(k+1))^((k+1)/(k−1)))
sub-critical:  A = 17.9 W / (F₂ K_d K_c) × √(T Z / (M P₁ (P₁ − P₂))),
               F₂ = √( (k/(k−1)) r^(2/k) (1 − r^((k−1)/k)) / (1 − r) ),  r = P₂/P₁
liquid:        A = 11.78 Q / (K_d K_w K_c K_v) × √(G / (p₁ − p₂))
A mm², W kg/h, P kPa, T K, Q L/min;  K_d 0.975 gas / 0.65 liquid;  K_c 0.9 with a rupture disk

API 526 effective areas (in²): D 0.110, E 0.196, F 0.307, G 0.503, H 0.785, J 1.287, K 1.838, L 2.853, M 3.60, N 4.34, P 6.38, Q 11.05, R 16.0, T 26.0 (× 645.16 = mm²).

Reynolds number and flow regime

The Reynolds number:

Re = V L / ν = ρ V L / μ

The characteristic length L depends on the geometry:

circular pipe:      L = D
non-circular duct:  L = D_h = 4 A / P
flat plate:         L = x, the distance from the leading edge

From a volume flow rate:

V = Q / A,   A = π D² / 4 for a pipe

Regime limits:

pipe or duct:  laminar Re < 2300,  transitional 2300 to 4000,  turbulent Re > 4000
flat plate:    laminar Re_x < 5 × 10⁵,  turbulent beyond
  • V — mean velocity, m/s
  • L — characteristic length, m
  • ν — kinematic viscosity, m²/s (1 cSt = 10⁻⁶ m²/s)
  • μ — dynamic viscosity, Pa·s; ρ — density, kg/m³
  • A — flow area, m²; P — wetted perimeter, m

Total dynamic head (TDH) calculator

Total dynamic head:

TDH = (z_d − z_s) + (p_d − p_s) / (ρ g) + (f L / D + ΣK) × v² / (2g)

Friction factor (Darcy–Weisbach with Colebrook):

Re = v D / ν
1/√f = −2 log10( ε/(3.7 D) + 2.51/(Re √f) ),   f = 64/Re if laminar

System curve:

H(Q) ≈ H_static + C Q²,   C = (f L/D + ΣK) / (2 g A²)
  • z_d − z_s — static lift from the suction surface to the discharge surface
  • p_d − p_s — difference in gauge pressure between the two vessels
  • f — Darcy friction factor; L — pipe length; D — inside diameter; ΣK — fittings
  • ν — kinematic viscosity; ε — pipe roughness

Water hammer (Joukowsky)

a₀ = √(K/ρ),   a = a₀ / √(1 + (K/E)(D/e) c₁)          Korteweg (thin wall)
t_crit = 2L/a,   period = 4L/a
rapid (t_c ≤ t_crit):   Δp = ρ a Δv                      Joukowsky
slow  (t_c > t_crit):   Δp = 2 ρ L Δv / t_c              Michaud (≤ Joukowsky)
p_max = p_steady + Δp,   p_min = p_steady − Δp   (vapour pressure → column separation)

c₁: 1.0 with expansion joints, 0.85 anchored upstream, 0.91 anchored throughout. K: water 2.19 GPa, sea water 2.34, oils 1.5–1.7. E: steel 207 GPa, ductile iron 170, copper 117, GRP 20, PVC 3, HDPE 0.9.

Results are estimates. They do not replace the governing code, class or flag requirements, or a check by a competent person.