Skip to content
FiftyCalc Free calculators for all 50 states

Pipe Flow Calculator

Test cases replayed : 2 of 2 match · Methodology · No outside source listed

Liquid moving through a pipe loses pressure to friction. Enter the pipe size, length, roughness and flow, and the liquid's viscosity.

Result

Sample figures

Friction head loss (ft of liquid)—

Mean velocity (ft/s) —

  • Reynolds number—
  • Darcy friction factor—
  • Pressure drop (psi)—

Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.

Pipe Flow Calculator

Pipe inside diameter, in in: enter 0 or more. Prefilled example: 2.

Pipe length, in ft: enter 0 or more. Prefilled example: 100.

Flow rate (US gal/min): enter 0 or more. Prefilled example: 50.

Pipe wall roughness ε, in in: enter 0 or more. Prefilled example: 0.0018.

Kinematic viscosity (cSt): enter 0 or more. Prefilled example: 1.

Specific gravity: enter 0 or more. Prefilled example: 1.

How to use this calculator

Fill in the fields in this order; each step takes you to its field.

  1. Pipe inside diameter, in in: enter 0 or more.
  2. Pipe length, in ft: enter 0 or more.
  3. Flow rate (US gal/min): enter 0 or more.
  4. Pipe wall roughness ε, in in: enter 0 or more.
  5. Kinematic viscosity (cSt): enter 0 or more.
  6. Specific gravity: enter 0 or more.
  7. Read the result: Friction head loss (ft of liquid); the panel also shows Mean velocity (ft/s), Reynolds number, Darcy friction factor and Pressure drop (psi).

How this calculator works

Darcy–Weisbach equation: h_f = f × (L ÷ D) × V² ÷ (2g), where f is the Darcy friction factor, L the length, D the inside diameter, V the mean velocity and g = 9.80665 m/s². Pressure drop Δp = ρ g h_f with ρ = SG × 1,000 kg/m³.

Friction factor: laminar flow (Re < 2,000) uses f = 64 ÷ Re; otherwise the Swamee–Jain equation (1976), f = 0.25 ÷ [log₁₀(ε/(3.7D) + 5.74/Re^0.9)]², an explicit fit to the Colebrook equation for 5,000 ≤ Re ≤ 10⁸. Between about 2,000 and 4,000 the flow is transitional and any value is uncertain.

Reynolds number Re = V D ÷ ν. Roughness ε depends on the pipe material and age; the default is only an example. Fittings and valves add minor losses not counted here.

Unit conversions: NIST Special Publication 811, Appendix B (nist.gov, read October 27, 2026). 1 in = 0.0254 m, 1 ft = 0.3048 m, 1 US gallon = 3.785411784 L, 1 psi = 6,894.757 Pa, 1 cSt = 10⁻⁶ m²/s.

The formula

  1. Vel=q×0.003785411784÷60÷(π×(d×0.0254)2÷4)0.3048
  2. Re=Vel×0.3048×d×0.0254ν×0.000001
  3. F={64Reif Re<2,0000.25log10⁡(eps÷d3.7+5.74Re0.9)2otherwise
  4. Hl=F×(ln×0.3048÷(d×0.0254))×(Vel×0.3048)2÷(2×9.80665)0.3048
Symbols used in the formula
SymbolMeaningUnit
dPipe inside diameterin
lnPipe lengthft
qFlow rate (US gal/min)
epsPipe wall roughness εin
νKinematic viscosity (cSt)
VelMean velocity (ft/s)
ReReynolds number
FDarcy friction factor
HlFriction head loss (ft of liquid)

Worked example

Pipe inside diameter2 in
Pipe length100 ft
Flow rate (US gal/min)50
Pipe wall roughness ε0.0018 in
Kinematic viscosity (cSt)1
Specific gravity1
Mean velocity (ft/s)5.1062
Reynolds number79,064
Darcy friction factor0.0225
Pressure drop (psi)2.3759
  1. Vel=50×0.003785411784÷60÷(3.14159×(2×0.0254)2÷4)0.3048=5.10622
  2. Re=5.10622×0.3048×2×0.02541×0.000001=79,063.91
  3. F=0.25log10⁡(0.0018÷23.7+5.7479,063.910.9)2=0.022542
  4. Hl=0.022542×(100×0.3048÷(2×0.0254))×(5.10622×0.3048)2÷(2×9.80665)0.3048=5.48034

Friction head loss (ft of liquid) 5.4803

Each step uses the unrounded value of the step before it; figures on this page are rounded for display.

Frequently asked questions

How does doubling the flow change the head loss?

In turbulent flow it roughly quadruples, since loss grows with velocity squared (slightly less, as f falls a little).

What is the difference between the Darcy and Fanning friction factors?

The Darcy factor is four times the Fanning factor; this calculator uses Darcy.

Related calculators