Friction Factor Calculator

FLUID MECHANICS

The Darcy (and Fanning) friction factor for pipe flow — from Reynolds number and roughness, or straight from your pipe and fluid. Solved with the full Colebrook equation, not just a chart read.

Darcy friction factor

The Number Behind Every Head-Loss Calculation

The friction factor is the dimensionless number that captures how hard a pipe resists flow. Feed it Darcy-Weisbach and you get pressure drop; it is the heart of nearly every pipe-sizing calculation. It depends on just two things: the Reynolds number (is the flow laminar or turbulent?) and the relative roughness of the pipe wall.

Darcy or Fanning? Know Which You Have

This is the classic trap. The Darcy (Darcy-Weisbach, or Moody) friction factor and the Fanning friction factor describe the same physics but differ by a factor of four:

fDarcy = 4 × fFanning

Use the Darcy factor with the Darcy-Weisbach equation and the Fanning factor with the Fanning equation — mixing them gives an answer wrong by 4x or 16x. The calculator shows both so you can match your formula.

Laminar vs Turbulent

Below a Reynolds number of about 2300 the flow is laminar and the friction factor is exactly f = 64/Re — roughness does not matter. Above it the flow is turbulent and the factor follows the implicit Colebrook equation, which this tool solves by iteration rather than reading off a Moody chart. Between 2300 and 4000 lies the transition zone, where any value is approximate.

Frequently Asked Questions

What is relative roughness?

The pipe wall roughness divided by the inside diameter, a dimensionless ratio. Smooth drawn tubing is near 0.000001; old cast iron can exceed 0.01. Use the pipe-and-fluid mode to compute it from an absolute roughness.

Why solve Colebrook iteratively?

Colebrook is implicit — the friction factor appears on both sides — so it cannot be solved in one step. The calculator iterates to convergence, which is more accurate than explicit approximations like Swamee-Jain.

Does roughness matter in laminar flow?

No. In laminar flow the friction factor is purely 64/Re; wall roughness only affects turbulent flow.

For education and preliminary design. Colebrook applies to fully developed flow in circular pipe; non-circular ducts, entrance effects and two-phase flow need separate treatment.
Spotted an error or have a suggestion for this calculator? Let us know →
Scroll to Top

The calculators and tools on Formula Factory are provided for general guidance and informational purposes only. Results are estimates based on standard formulas and the values you enter — they do not constitute professional engineering, electrical, or architectural advice. Always verify calculations with a qualified professional before making decisions for any safety-critical, code-compliance, or commercial application. Formula Factory makes no representations or warranties as to the accuracy or completeness of any result, and accepts no liability for errors, omissions, or any outcomes arising from reliance on this information.