Friction Factor Calculator

Calculate friction factor for pipe flow using Reynolds number and pipe roughness.

Laminar: f = 64/Re | Turbulent: Swamee-Jain approximation

Required: Use Reynolds Number calculator if unknown
Optional: For calculating relative roughness
Or enter relative roughness (ε/D) directly

How to use:

Enter Reynolds number (required). Optionally enter pipe diameter and absolute roughness to calculate relative roughness. For laminar flow, roughness is not needed. For smooth pipes, use small roughness values.

Typical Roughness: New steel = 0.0018" (0.046 mm), Old steel = 0.003-0.01" (0.08-0.25 mm)

Published: December 2025 | Author: TriVolt Editorial Team | Last Updated: February 2026

Understanding the Friction Factor

The friction factor (f) is a dimensionless parameter that quantifies the resistance to flow in pipes due to friction. It's a critical component of the Darcy-Weisbach equation, which is used to calculate pressure drop and head loss in pipe flow systems. The friction factor depends on the flow regime (laminar or turbulent), Reynolds number, and pipe roughness.

Understanding how to determine the friction factor is essential for hydraulic engineers, HVAC designers, and anyone working with fluid flow systems. Accurate friction factor values ensure proper pipe sizing, pump selection, and system design optimization.

Friction Factor Formulas

Laminar Flow (Re < 2,300)

For laminar flow, the friction factor is independent of pipe roughness and depends only on the Reynolds number:

f = 64 / Re

Where: f = Friction factor, Re = Reynolds number

This relationship is exact and derived from the Hagen-Poiseuille equation for fully developed laminar flow. The friction factor decreases as Reynolds number increases in laminar flow.

Turbulent Flow (Re > 4,000)

For turbulent flow, the friction factor depends on both Reynolds number and relative roughness (ε/D). The Colebrook equation provides an implicit relationship:

1/√f = -2 log10(ε/(3.7D) + 2.51/(Re√f))

Where: ε = Absolute roughness, D = Pipe diameter

Since the Colebrook equation is implicit (f appears on both sides), approximations are used. The Swamee-Jain equation provides an explicit approximation:

f = 0.25 / [log10(ε/(3.7D) + 5.74/Re0.9)]²

For smooth pipes (ε/D ≈ 0), the Blasius equation can be used for Re < 10⁵:

f = 0.316 / Re0.25

Pipe Roughness

Absolute roughness (ε) is the average height of surface irregularities in a pipe. It varies with pipe material, age, and condition. Common roughness values include:

  • Drawn tubing: 0.000005 ft (0.0015 mm) - Very smooth
  • Commercial steel: 0.00015 ft (0.046 mm) - New, clean
  • Galvanized iron: 0.0005 ft (0.15 mm)
  • Cast iron: 0.00085 ft (0.26 mm) - New
  • Concrete: 0.001-0.01 ft (0.3-3 mm) - Varies with finish
  • Riveted steel: 0.003-0.03 ft (0.9-9 mm) - Depends on joint type

Relative roughness (ε/D) is the ratio of absolute roughness to pipe diameter. It's the key parameter affecting friction factor in turbulent flow. Smaller diameter pipes have higher relative roughness for the same absolute roughness.

Important: Roughness increases with age due to corrosion, scaling, and fouling. Old pipes may have significantly higher roughness than new pipes of the same material.

Flow Regimes

Laminar Flow

Laminar flow occurs at low Reynolds numbers (Re < 2,300). Flow is smooth and orderly, with fluid moving in parallel layers. In laminar flow, the friction factor is inversely proportional to Reynolds number and independent of pipe roughness. This makes calculations straightforward.

Transitional Flow

Transitional flow occurs between Re = 2,300 and 4,000. Flow characteristics are unpredictable, and friction factor calculations are less reliable. In practice, systems are typically designed to avoid this range.

Turbulent Flow

Turbulent flow occurs at high Reynolds numbers (Re > 4,000). Flow is chaotic with eddies and mixing. The friction factor depends on both Reynolds number and relative roughness. In fully rough turbulent flow (high relative roughness), the friction factor becomes independent of Reynolds number.

The Moody Diagram

The Moody diagram is a graphical representation of the friction factor relationship. It plots friction factor (f) on the vertical axis, Reynolds number (Re) on the horizontal axis, and shows curves for different relative roughness values (ε/D).

The Moody diagram shows:

  • Laminar region: Straight line where f = 64/Re
  • Transition region: Unpredictable behavior
  • Turbulent smooth pipe: Curves for smooth pipes (ε/D ≈ 0)
  • Turbulent rough pipe: Family of curves for different ε/D values
  • Fully rough region: Horizontal lines where f is independent of Re

The Moody diagram is useful for manual calculations and understanding the relationship between parameters, but computer calculations typically use explicit approximations like Swamee-Jain.

Practical Applications

Pipe System Design

Accurate friction factors are essential for sizing pipes and calculating pressure drops. Underestimating friction factor leads to undersized pipes and inadequate flow, while overestimating leads to oversized pipes and unnecessary costs.

Pump Selection

Friction losses determine the total dynamic head that pumps must overcome. Accurate friction factors ensure proper pump selection and prevent over- or under-sizing.

System Analysis

Understanding friction factors helps analyze existing systems, identify problems, and optimize performance. High friction factors may indicate pipe fouling, corrosion, or undersized pipes.

Energy Efficiency

Reducing friction losses decreases pumping power requirements. Understanding how roughness and flow conditions affect friction helps optimize system design for energy efficiency.

Real-World Examples

Example 1: Laminar Flow

Calculate friction factor for water flowing at Re = 1,000 (laminar flow):

f = 64 / 1,000 = 0.064

Note: Roughness doesn't matter in laminar flow. Reynolds number is dimensionless, so this applies to both imperial and metric systems.

Example 2: Turbulent Smooth Pipe

Calculate friction factor for water at Re = 50,000 in a smooth pipe:

Using Blasius: f = 0.316 / 50,0000.25 = 0.0211

Using Swamee-Jain (ε/D ≈ 0): f ≈ 0.0213

Both methods give similar results for smooth pipes. Reynolds number is dimensionless, so this applies to both imperial and metric systems.

Example 3: Effect of Roughness

Compare friction factors for Re = 100,000 in a 4-inch (102 mm) pipe:

Imperial - Smooth (ε = 0.00006"): ε/D = 0.000015, f ≈ 0.018

Metric - Smooth (ε = 0.0015 mm): ε/D = 0.000015, f ≈ 0.018

Imperial - Steel (ε = 0.0018"): ε/D = 0.00045, f ≈ 0.020

Metric - Steel (ε = 0.046 mm): ε/D = 0.00045, f ≈ 0.020

Imperial - Cast iron (ε = 0.01"): ε/D = 0.0025, f ≈ 0.025

Metric - Cast iron (ε = 0.26 mm): ε/D = 0.0025, f ≈ 0.025

Roughness significantly increases friction factor in turbulent flow. Relative roughness (ε/D) is the key parameter, not absolute roughness.

Important Considerations

Roughness Changes Over Time

Pipe roughness increases with age due to corrosion, scaling, biological growth, and fouling. Old pipes may have 2-5 times the roughness of new pipes. When analyzing existing systems, consider increased roughness values.

Non-Circular Ducts

For non-circular ducts, use the hydraulic diameter (Dh = 4A/P) in friction factor calculations. The same formulas apply, but roughness values may need adjustment.

Temperature Effects

Temperature affects fluid viscosity, which changes Reynolds number. This indirectly affects friction factor. For water, viscosity decreases with temperature, increasing Reynolds number and potentially changing flow regime.

Accuracy of Approximations

The Swamee-Jain approximation is accurate to within 1% of the Colebrook equation for most practical applications. For critical calculations, iterative solution of the Colebrook equation may be preferred.

Tips for Using This Calculator

  • Enter Reynolds number (required) - use Reynolds Number calculator if unknown
  • Enter pipe diameter and absolute roughness to calculate relative roughness
  • Alternatively, enter relative roughness (ε/D) directly
  • For laminar flow (Re < 2,300), roughness is not needed
  • For smooth pipes, use small roughness values (0.00006" or less)
  • Consider pipe age and condition when selecting roughness values
  • Typical roughness: New steel = 0.0018", Old steel = 0.003-0.01"
  • For non-circular ducts, use hydraulic diameter
  • The calculator uses Swamee-Jain approximation for turbulent flow
  • Always verify critical calculations independently, especially for safety-critical applications

Worked Examples

Example 1 — Laminar oil flow. Re = 800, roughness irrelevant. f = 64/800 = 0.080. Roughness does not appear because the viscous sublayer completely covers surface asperities.

Example 2 — Commercial steel water pipe. D = 100 mm, ε = 0.046 mm, so ε/D = 0.00046. At Re = 10⁵, Swamee-Jain gives f = 0.25 / [log₁₀(0.00046/3.7 + 5.74/10⁵·⁰·⁹)]² ≈ 0.0213. Colebrook iteration gives 0.0213 — effectively identical.

Example 3 — Old cast-iron main. D = 200 mm, ε = 1.0 mm (heavily tuberculated), ε/D = 0.005. At Re = 2×10⁵, f ≈ 0.0312. Compared to new pipe at same ε/D = 0.00013 (f = 0.0184), aging raises f by 70%.

Example 4 — Fully rough regime. ε/D = 0.05 (corroded riveted steel) at Re = 10⁷. The Colebrook equation collapses to the Von Kármán relation f = [2 log₁₀(3.7/0.05)]⁻² ≈ 0.072 — Reynolds number no longer affects f. This is the "fully rough" turbulent plateau visible as horizontal lines on the right side of the Moody diagram.

Common Pitfalls

Mixing Darcy and Fanning friction factors. Darcy f = 4 × Fanning f. ChemE references often give Fanning (f ≈ 0.006 for turbulent water pipe), mechanical/civil references give Darcy (f ≈ 0.024 for the same case). Using one in the other's pressure-drop equation gives errors of 4× or ¼×.

Using ε for new pipe when the pipe is old. Standard tables list new-pipe roughness. For 20-year-old steel mains, multiply ε by 5–10×. For cast iron in corrosive water, by 20×. The Colebrook equation is very sensitive to ε/D at moderate Re.

Applying turbulent formulas in the transitional regime (2,300 < Re < 4,000). Colebrook assumes fully developed turbulent flow. In transition, neither correlation is accurate. If you must compute a value here, interpolate between laminar and turbulent branches and add explicit uncertainty.

Converting roughness units incorrectly. ε is usually listed in mm (metric) or inches (imperial) or ft (some US references). For ε/D calculation, both must be in the same unit. The ratio ε/D is dimensionless — any consistent pair works.

Ignoring flow-direction dependence for certain fittings. Diffusers, contractions, and some valves have different effective roughness or K-values depending on flow direction. Bidirectional service must use the worst-case value.

Frequently Asked Questions

What is the Colebrook equation? 1/√f = −2 log₁₀(ε/(3.7D) + 2.51/(Re √f)) — implicit in f, requires iteration. It's the industry-standard turbulent-flow friction-factor formula, accurate across the fully turbulent regime.

Why use Swamee-Jain instead? It's explicit (no iteration): f = 0.25 / [log₁₀(ε/(3.7D) + 5.74/Re⁰·⁹)]². Within ±1% of Colebrook for 10⁻⁶ < ε/D < 10⁻² and 5,000 < Re < 10⁸ — essentially all practical cases.

What's the Moody diagram? A log-log chart of f vs Re with curves of constant ε/D. Developed by Lewis Moody in 1944, it let engineers look up f without solving Colebrook. Still useful for intuition; superseded for calculation by Swamee-Jain.

Can I use these correlations for gas flow? Yes, at low Mach (<0.3) and modest pressure ratios (ΔP/P < 0.1). For choked or long compressible-flow calculations, use Fanno flow or the Weymouth/Panhandle equations, which incorporate compressibility effects.

What's the Haaland approximation? Another explicit formula: 1/√f = −1.8 log₁₀[(ε/3.7D)¹·¹¹ + 6.9/Re]. Slightly simpler than Swamee-Jain with similar accuracy (±2% of Colebrook). Common in European references.

Related Calculators

Friction factor is one link in the hydraulic chain:

Disclaimer

This calculator is provided for educational and informational purposes only. While we strive for accuracy, users should verify all calculations independently, especially for critical applications. Pipe system design should be performed by qualified engineers. We are not responsible for any errors, omissions, or damages arising from the use of this calculator.


Also in Engineering

  • → Pressure Drop (Darcy-Weisbach) — Calculate pressure drop in pipes using the Darcy-Weisbach equation
  • → Pipe Flow Velocity — Calculate flow velocity in pipes based on flow rate and pipe diameter
  • → Pump Sizing — Calculate pump power, head requirements, and NPSH
  • → Ductwork Sizing Calculator — Size round and rectangular HVAC ducts using the equal friction method per ASHRAE Fundamentals Ch. 21 / SMACNA. Darcy-Weisbach friction with Colebrook-White, velocity limits, and rectangular equivalent diameter.