Friction Factor Calculator - Moody and Colebrook Solutions
Use this friction factor calculator to solve Colebrook-White and Swamee-Jain for Darcy and Fanning friction factors with Reynolds number and pipe roughness.
Friction Factor Calculator
Results
What Is the Friction Factor Calculator?
A friction factor calculator estimates the dimensionless Darcy or Fanning friction factor for internal pipe flow from a Reynolds number and a relative roughness. It selects the matching correlation for the flow regime, then reports f, fF, head loss per unit length, and pressure drop per unit length. Students use it for Moody chart lookups, and practicing engineers use it to size pumps and predict line losses.
- • Classroom and lab work: Solve the Colebrook-White equation by hand for an undergraduate fluids assignment or check a measured pipe flow against the predicted Darcy friction factor.
- • Pump and pipe sizing: Estimate pressure drop and head loss for a proposed pipe run before committing to a pump curve or a pipe schedule.
- • Moody chart cross-checks: Replace a manual Moody chart reading with a numerical answer at high Reynolds numbers.
- • Hydronic and HVAC systems: Convert between Darcy and Fanning friction factors and compare to published equipment curves that use either convention.
The tool focuses on circular pipe flow, the most common case in water distribution, HVAC, and chemical-process piping. The result is a single dimensionless number that scales the pressure drop and head loss caused by viscous interaction between fluid and pipe wall.
Use this friction factor calculator alongside the Reynolds Number Calculator so the two tools can be combined when a quick check needs the full pipeline of values.
How the Friction Factor Calculator Works
The calculator reads the Reynolds number and the relative roughness, then selects the matching friction-factor correlation. The laminar branch uses f = 64/Re. The turbulent branch solves the implicit Colebrook-White equation, seeded with Swamee-Jain, and a transitional flag covers the band between 2300 and 4000.
- Re: Reynolds number. Below 2300 is laminar, 2300 to 4000 is transitional, and 4000 or more is fully turbulent in a circular pipe.
- epsilon / D: Relative roughness, equal to the wall roughness height divided by the inside pipe diameter. Zero represents a hydraulically smooth pipe.
- f: Darcy-Weisbach friction factor (dimensionless). The Fanning friction factor is fF = f / 4.
- V: Average flow velocity in meters per second, used to scale head loss and pressure drop.
- D: Inside pipe diameter in meters. Head loss and pressure drop per unit length scale as 1 / D.
The iterative Colebrook-White solver begins with the Swamee-Jain explicit value and refines f using 1 / sqrt(f) = -2 log10( (epsilon/D)/3.7 + 2.51 / (Re sqrt(f)) ). The iteration stops when the change between successive f values is below 1e-12. Head loss and pressure drop use hL = f (L/D) (V^2 / 2g) and dP = f (L/D) (rho V^2 / 2), normalized per unit length.
Water at Re = 100000 in drawn tubing
Re = 100000, epsilon / D = 0.0001, V = 1 m/s, D = 0.1 m, rho = 1000 kg/m^3
Colebrook-White converges to f = 0.0185. Fanning friction factor fF = 0.0046.
f = 0.01851, fF = 0.00463, hL/L = 0.00943 m/m, dP/L = 92.50 Pa/m
A smooth commercial-grade water line at 1 m/s loses about 9 mm of head per meter of pipe, which is visible across a long building service line.
According to Engineering Toolbox, Darcy-Weisbach head loss formula and Fanning-to-Darcy conversion of 4
When the fluid is compressible and the density varies along the line, the Gas Laws Calculator is a natural companion for converting temperature and pressure into the density used in the pressure drop row.
Key Concepts Explained
The friction factor is a single number that hides several physical ideas. Separating the laminar and turbulent branches, the relative roughness, and the Darcy versus Fanning convention makes the output easier to read in real problems.
Reynolds Number
The Reynolds number compares inertial and viscous forces. It is the main switch between the laminar f = 64/Re branch and the turbulent Colebrook-White branch on the Moody chart.
Relative Roughness
Relative roughness is the wall roughness height divided by the pipe diameter. It is the second Moody-chart axis, and it sets the fully rough asymptote where the friction factor stops depending on the Reynolds number.
Colebrook-White Equation
The Colebrook-White equation is the implicit relation that defines the Moody chart for fully turbulent flow. It needs iteration, which is why explicit approximations like Swamee-Jain are useful in spreadsheets.
Darcy vs Fanning Friction Factor
The Darcy friction factor used in the Darcy-Weisbach equation is four times the Fanning friction factor used in some chemical engineering correlations. Always check which convention a vendor curve or textbook expects.
These four ideas show up in every friction factor discussion, from a first fluids lecture to a pump selection meeting. Once the laminar and turbulent branches are kept separate, the same equations can be reused for water, air, or oil by changing only Re and the wall roughness.
In a wastewater or process system, the Hydraulic Retention Time Calculator is often paired with the friction factor because detention time and line losses both matter for the same flow path.
How to Use This Friction Factor Calculator
The form is organized so the primary inputs sit at the top and the supplementary inputs sit below. Read the friction factor from the primary result card, then use the head loss and pressure drop rows to scale the result.
- 1 Enter the Reynolds number: Type the Reynolds number for the actual pipe. Below 2300 forces the laminar f = 64/Re branch; 4000 and above forces the Colebrook-White solver.
- 2 Enter the relative roughness: Type epsilon / D, or pick a preset such as commercial steel or concrete. Zero represents a hydraulically smooth pipe.
- 3 Add the pipe diameter and velocity: Provide the inside diameter in meters and the average velocity in meters per second. These scale head loss and pressure drop without affecting f.
- 4 Read the friction factor and the Fanning equivalent: The Darcy f appears in the primary result card. The Fanning friction factor fF = f / 4 sits below it for cases where a textbook or vendor curve uses the Fanning convention.
- 5 Scale the per-unit-length rows to your line: Multiply hL / L by the pipe run length to get a head loss, and dP / L by the run length to get a pressure drop.
Pump skid example: a 100 m long, 100 mm commercial-steel water line carries water at 1.5 m/s. Re is about 150000, f is about 0.0193, hL/L is about 0.022 m/m, and the system head loss is roughly 2.2 m. The calculator returns the same f in a fraction of a second and lets the engineer iterate before sizing the pump.
Once the per-unit-length head loss is known, the Kinematics Motion Calculator helps when the user also needs to estimate how much fluid moves through the line per second.
Benefits of Using This Calculator
The friction factor is a small number with a large impact. These benefits show why a quick numerical answer beats a manual Moody chart reading for engineering and academic work.
- • Both Darcy and Fanning outputs: Read the Darcy friction factor and the Fanning equivalent at the same time, so the same result works with Darcy-Weisbach and with Fanning-based correlations.
- • Iterative and explicit solvers: Use the Colebrook-White iterative solve for the answer that matches the Moody chart, or rely on the Swamee-Jain explicit value for fast spreadsheet work.
- • Head loss and pressure drop per unit length: Get f, hL/L, and dP/L from a single set of inputs, removing the chance of copying a wrong f into a Darcy-Weisbach sheet.
- • Pipe-material and fluid presets: Load a published relative roughness for drawn tubing, commercial steel, or concrete, and load a typical density for water, air, or SAE 30 oil without retyping the constants.
- • Transparent flow regime classification: See whether the result is laminar, transitional, or turbulent, so the user knows when the Moody chart is reading a deterministic value and when the transitional caveat applies.
The combination of both solvers and both friction-factor conventions makes the tool flexible for a first-year fluids assignment and a senior design project.
When the friction factor needs to be combined with a force or pressure calculation, the Forces Newtons Laws Calculator covers the Newton relationships that the Darcy-Weisbach equation assumes on the right-hand side.
Factors That Affect Friction Factor Results
The Moody chart compresses the friction factor into a single curve for each roughness, but several real-world factors decide where the actual point lands. Reviewing them helps explain why measured and predicted values sometimes disagree.
Reynolds number
The friction factor is most sensitive to Re in the transitional and low turbulent range. Doubling Re roughly halves the smooth-pipe friction factor.
Wall roughness
The relative roughness sets the floor of the friction factor at high Re. A change from commercial steel to concrete can triple the friction factor once the flow is fully rough.
Flow regime
The laminar f = 64/Re branch does not depend on roughness, while the turbulent Colebrook-White branch does. Mixing the two is a common source of error in introductory fluids work.
Fluid temperature
Temperature changes the viscosity used in the Reynolds number and therefore the friction factor. A 60 degrees C water line has a much lower viscosity than a 5 degrees C line at the same Re.
- • The Colebrook-White equation is not a closed-form expression. The calculator uses Swamee-Jain as the seed and iterates to convergence; the default loop count is enough for the engineering range.
- • The Moody chart, Colebrook-White, and Swamee-Jain all assume steady, single-phase flow in a circular pipe. Compressible gases near sonic conditions, two-phase mixtures, and non-Newtonian fluids need separate models.
These factors are not all equal in importance. The Reynolds number sets the regime, and the relative roughness decides which turbulent branch of the Moody chart applies. For pipe systems with compressible flow or significant elevation change, the Darcy-Weisbach pressure drop should be combined with a hydrostatic term.
According to Wikipedia - Darcy friction factor, Colebrook-White implicit equation and Moody chart context
According to Wikipedia - Moody chart, Moody chart laminar branch f = 64/Re and turbulent curve behavior
To size the pump from the per-unit-length pressure drop, the Work Energy Power Calculator combines head loss and flow rate to estimate shaft power for the same line.
Frequently Asked Questions
Q: What is a friction factor calculator used for?
A: A friction factor calculator estimates the dimensionless Darcy or Fanning friction factor for internal pipe flow from a Reynolds number and a relative roughness. It is used in classroom problems, pump and pipe sizing, and HVAC or process line checks to predict pressure drop and head loss without a full CFD run.
Q: How do you calculate the Darcy friction factor?
A: For laminar flow the Darcy friction factor is f = 64 divided by the Reynolds number. For turbulent flow the calculator solves the implicit Colebrook-White equation 1 / sqrt(f) = -2 log10( (epsilon/D)/3.7 + 2.51 / (Re sqrt(f)) ) iteratively, with the Swamee-Jain explicit value as the seed.
Q: What is the difference between the Darcy and Fanning friction factor?
A: The Darcy friction factor used in the Darcy-Weisbach equation is exactly four times the Fanning friction factor used in some chemical engineering correlations. The Engineering Toolbox notes that the Fanning factor is the Darcy value divided by 4, so multiply Fanning correlations by 4 before comparing them to a Darcy-based pressure drop.
Q: When does the Colebrook-White equation apply?
A: The Colebrook-White equation describes fully turbulent flow in a circular pipe with a defined relative roughness. It is not used below a Reynolds number of about 2300, where the laminar f = 64/Re branch applies, and it is not a closed-form expression, which is why an iterative solver or a Swamee-Jain approximation is needed.
Q: What is a typical friction factor for water in a smooth pipe?
A: For water at a Reynolds number near 100000 in a smooth drawn-tubing line, the Darcy friction factor is about 0.018. For a Reynolds number near 10000 in a similar pipe, the value rises to about 0.030, and for a rough concrete line at the same Re the value can exceed 0.04.
Q: Why is the Reynolds number needed to find a friction factor?
A: The Reynolds number decides which branch of the Moody chart applies. In laminar flow the friction factor scales as 64 / Re, while in turbulent flow it depends on both Re and the relative roughness through the Colebrook-White relation. Without Re the friction factor has no deterministic value.