You only need two dimensionless inputs. That makes the tool fast, but it also means your upstream calculations matter.
If you compute Reynolds number from velocity, diameter, density, and viscosity, double-check units before entering values.
If you compute relative roughness from a roughness table, confirm that you used the inside diameter (not nominal diameter) and that ε and D were in the same length units.
Reynolds number (Re)
Reynolds number compares inertial to viscous forces. For pipe flow it is commonly computed as
Re = ρ v D / μ (or equivalently Re = v D / ν).
Here, ρ is density, v is average velocity, D is inside diameter, μ is dynamic viscosity, and ν is kinematic viscosity.
Reynolds number is a convenient way to classify flow:
- Laminar: typically Re < 2000 (smooth, orderly velocity profile).
- Transitional: roughly Re ≈ 2000–4000 (uncertain; results can vary).
- Turbulent: Re above that range (mixing and eddies dominate).
The calculator uses Re < 2000 as the laminar threshold because it is a widely used rule of thumb.
If your case is near the transition region, treat the result as an estimate and consider checking multiple correlations or using a safety margin.
Relative roughness (ε/D)
Relative roughness is the ratio of absolute roughness height ε (meters, millimeters, inches, etc.) to inside diameter D.
It is dimensionless. Smooth pipes have ε/D near zero; rougher materials (older cast iron, concrete)
have larger ε/D and typically higher friction factors in turbulent flow.
A helpful way to think about ε/D is: “How big are the wall bumps compared with the pipe?”
If the bumps are tiny compared with the diameter, the pipe behaves closer to hydraulically smooth.
If the bumps are large, the friction factor becomes less sensitive to Reynolds number and more dominated by roughness.
The Darcy–Weisbach pressure drop relationship is:
Where ΔP is pressure drop, L is pipe length, D is inside diameter, ρ is density, and v is average velocity.
Some references use head loss form (Δh) instead of pressure; the same friction factor f applies.
This calculator focuses on the friction factor f. It uses:
- Laminar: f = 64/Re.
- Turbulent: the Colebrook–White equation (implicit in f), solved iteratively.
The Colebrook–White equation is:
Because f appears on both sides, there is no simple closed-form solution in elementary functions.
Many explicit approximations exist (for example, Swamee–Jain), but this page keeps the standard Colebrook form and solves it by iteration.
The iteration starts from a typical guess near 0.02 and stops when the change is very small or after a safe maximum number of iterations.
Worked example (realistic numbers)
Suppose you have water flowing in a commercial steel pipe. You have already computed Reynolds number from your flow conditions and you have an estimate of absolute roughness from a reference.
Let’s use a common textbook-style case:
- Inside diameter: D = 100 mm = 0.10 m
- Absolute roughness: ε = 0.045 mm = 0.000045 m (representative for commercial steel)
- Relative roughness: ε/D = 0.000045 / 0.10 = 0.00045
- Reynolds number: Re = 200,000 (turbulent)
Enter Re = 200000 and ε/D = 0.00045 in the form and click “Solve for Friction Factor.”
A typical result is a Darcy friction factor near f ≈ 0.02.
If you then want pressure drop, you would plug that f into Darcy–Weisbach along with your length L, density ρ, and velocity v.
If you prefer a head-loss form, you can convert pressure drop to head loss using Δh = ΔP/(ρg).
The friction factor does not change; only the way you express the loss changes.
Sanity checks and interpretation
A friction factor calculator is most useful when you can quickly tell whether the output is plausible.
The following checks help you catch common mistakes (especially unit errors upstream of Re and ε/D):
- Laminar check: if Re is small (hundreds to low thousands), the result should be close to 64/Re. For example, Re = 1000 gives f = 0.064.
- Typical magnitude: for many water/air pipe problems, Darcy f often falls roughly between 0.01 and 0.05. Very rough pipes or unusual conditions can push it higher.
- Roughness trend: increasing ε/D should not decrease f in turbulent flow; it generally increases it.
- Re trend (smooth pipes): for very small ε/D, increasing Re often decreases f slowly.
- Re trend (rough pipes): for larger ε/D, f becomes less sensitive to Re; roughness dominates.
Also confirm you are using the correct friction factor definition. This page returns the Darcy friction factor.
If your source uses the Fanning friction factor, convert with fFanning = fDarcy/4.
Mixing these two is a frequent cause of “my pressure drop is off by a factor of four.”
How this result is typically used in a piping calculation
Once you have f, you can compute frictional pressure drop for a straight pipe run.
In real systems you often add minor losses from fittings, valves, entrances, and exits.
Those are usually handled with loss coefficients (K values) or equivalent lengths.
This calculator does not compute minor losses; it provides the friction factor you would use in the straight-pipe term.
Typical absolute roughness values (ε) and conversion to ε/D
If you have ε (absolute roughness) from a handbook, convert it to relative roughness by dividing by the pipe’s inside diameter:
ε/D. The table below lists representative ε values; always prefer project specifications when available.
Roughness can change with age, scaling, corrosion, and deposits, so field conditions may differ from “new pipe” values.
Representative absolute roughness values for common pipe materials
| Material |
Absolute roughness ε (m) |
| Commercial Steel |
0.000045 |
| PVC |
0.0000015 |
| Concrete |
0.0003 |
| Cast Iron |
0.00026 |
Example conversion: if ε = 0.00026 m (cast iron) and D = 0.20 m, then ε/D = 0.00026/0.20 = 0.0013.
That is a relatively rough pipe, and in turbulent flow you should expect a higher friction factor than a smooth plastic pipe at the same Reynolds number.
Assumptions, limitations, and common pitfalls
This calculator is designed for quick engineering estimates and education. It assumes conditions consistent with the Darcy–Weisbach/Colebrook framework.
If your system deviates strongly from these assumptions, treat the result as a starting point.
- Geometry: round, straight pipe; the correlation is not a fittings/valves loss model.
- Flow development: fully developed internal flow; strong swirl, entrance effects, or two-phase flow are not represented.
- Regime threshold: the laminar cutoff at Re < 2000 is a common rule of thumb; transitional flow (roughly 2000–4000) can be uncertain.
- Inputs are dimensionless: you must compute Re and ε/D correctly from your physical units.
- Correlation scope: Colebrook–White is empirical and based on commercial pipe data; unusual surfaces may deviate.
Common pitfalls include: using nominal diameter instead of inside diameter, mixing Darcy and Fanning friction factors, using viscosity at the wrong temperature, and using roughness values that do not match the pipe’s condition.
If you are designing for safety or compliance, verify inputs against authoritative references and consider conservative assumptions.
Optional: interactive mini-game
The “Flow Band Runner” below is a small interactive visualization. It uses your latest computed friction factor to set a target band.
It is purely educational and does not change the calculator’s result.
If you prefer reduced motion, your operating system’s “reduce motion” setting will slow the animation.
Accessibility note: the mini-game supports pointer input (mouse/touch) and keyboard input (arrow keys) during a run.
The calculator itself is fully usable without the game.