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
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.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Pipe inside diameter, in in: enter 0 or more.
- Pipe length, in ft: enter 0 or more.
- Flow rate (US gal/min): enter 0 or more.
- Pipe wall roughness ε, in in: enter 0 or more.
- Kinematic viscosity (cSt): enter 0 or more.
- Specific gravity: enter 0 or more.
- 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
| Symbol | Meaning | Unit |
|---|---|---|
| Pipe inside diameter | in | |
| Pipe length | ft | |
| Flow rate (US gal/min) | ||
| Pipe wall roughness ε | in | |
| Kinematic viscosity (cSt) | ||
| Mean velocity (ft/s) | ||
| Reynolds number | ||
| Darcy friction factor | ||
| Friction head loss (ft of liquid) |
Worked example
| Pipe inside diameter | 2 in |
|---|---|
| Pipe length | 100 ft |
| Flow rate (US gal/min) | 50 |
| Pipe wall roughness ε | 0.0018 in |
| Kinematic viscosity (cSt) | 1 |
| Specific gravity | 1 |
| Mean velocity (ft/s) | 5.1062 |
|---|---|
| Reynolds number | 79,064 |
| Darcy friction factor | 0.0225 |
| Pressure drop (psi) | 2.3759 |
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.