Pipe Flow Calculator
Compute velocity, Reynolds number, friction factor, head loss and pressure drop in a pipe using the Darcy-Weisbach equation and the Colebrook-White / Swamee-Jain friction factor. Works with water, air, oil and custom fluids.
Understanding Pipe Flow
Pipe flow is one of the classic problems of fluid mechanics: how much pressure is lost when a fluid flows through a pipe at a given rate? The answer is fundamental to pump sizing, pipe selection and hydraulic network analysis. This calculator solves the problem using the Darcy-Weisbach equation, which is accurate for all fluids and all flow regimes.
Mean velocity:
V = Q / A with A = π·D²/4
Reynolds number:
Re = ρ·V·D / μ = V·D / ν
Darcy-Weisbach head loss:
hf = f · (L/D) · V² / (2g)
Pressure drop:
ΔP = ρ · g · hf
How the Pipe Flow Calculator Works
Enter the pipe geometry, choose a fluid, pick a material and enter a flow rate (or velocity). The calculator then:
- Computes cross-sectional area and mean velocity.
- Computes the Reynolds number and classifies the flow regime.
- Selects the appropriate friction factor equation (laminar 64/Re, transitional interpolation, turbulent Swamee-Jain).
- Applies the Darcy-Weisbach equation to get head loss.
- Converts head loss to pressure drop using ρ·g·hf.
- Draws a pipe diagram with the velocity profile and a head-loss-vs-flow-rate curve.
Flow Regimes and Friction Factor
- Laminar flow (Re < 2300) — viscous forces dominate. The friction factor is simply f = 64/Re and the velocity profile is parabolic.
- Transitional flow (2300 ≤ Re < 4000) — neither laminar nor fully turbulent. Results are uncertain; the calculator interpolates between the two regimes.
- Turbulent flow (Re ≥ 4000) — inertia dominates. The Colebrook-White equation applies; this calculator uses the explicit Swamee-Jain approximation, accurate to within 1% for Re > 5000.
Typical Roughness Values
- Drawn tubing, plastic, copper: ε ≈ 0.0015 mm
- Commercial steel (new, clean): ε ≈ 0.045 mm
- Galvanized iron: ε ≈ 0.15 mm
- Cast iron: ε ≈ 0.26 mm
- Concrete (smooth): ε ≈ 0.3 mm
- Concrete (rough): ε ≈ 3.0 mm
- Riveted steel: ε ≈ 1.8 mm
Typical Design Velocities
- Building services (low noise): 0.6–1.5 m/s
- Process piping (balanced pressure drop): 1.5–3.0 m/s
- Short mains / industrial: 3.0–5.0 m/s
- Above 5 m/s: erosion, noise and water hammer risk
Assumptions and Limitations
- Steady, incompressible, fully developed flow.
- Single-phase fluid; no entrained gas or solids.
- Circular pipe, constant diameter, no fittings or valves (add minor losses separately).
- No heat transfer, no chemical reaction, no pumps or turbines inside the pipe.
- For gases: valid only up to about Mach 0.3 and small pressure drops.
Use these results as a learning aid or for preliminary sizing. Always have final hydraulic designs checked by a qualified engineer against the governing design code.
❓ Pipe Flow Calculator FAQ
What is the Darcy-Weisbach equation?
It relates head loss to velocity, pipe length, pipe diameter and the Darcy friction factor: hf = f · (L/D) · V²/(2g). It is the most accurate equation for pressure drop in pipes and works for all fluids.
How is the friction factor determined?
For laminar flow (Re < 2300), f = 64/Re. For turbulent flow (Re > 4000), this calculator uses the Swamee-Jain explicit approximation of the Colebrook-White equation. The transitional region is interpolated.
What is the Reynolds number?
Re = ρ·V·D/μ is the ratio of inertial to viscous forces. Re < 2300 is laminar, 2300–4000 is transitional, and Re > 4000 is turbulent.
What is pipe roughness?
Average height of internal wall imperfections. Typical: drawn tubing 0.0015 mm, commercial steel 0.045 mm, cast iron 0.26 mm, concrete 0.3–3 mm.
Does this calculator handle compressible flow?
Only up to about Mach 0.3 and small pressure drops. For larger gas flows use a compressible-flow method.