Compute the Darcy friction factor for laminar and turbulent pipe flow, with full step-by-step solutions.
Formula
Quick Answer
The Darcy friction factor quantifies frictional pressure loss in pipe flow. For laminar flow (Re < 2100), f = 64/Re exactly. For turbulent flow, f is found from the implicit Colebrook equation (solved iteratively) or approximated directly with the explicit Swamee-Jain equation, both using Reynolds number and relative pipe roughness ε/D as inputs. This calculator computes both and shows every step.
(laminar) · (Colebrook)
Enter the Reynolds number
Enter the flow's Reynolds number Re (from the Reynolds Number Calculator if you don't already have it).
Enter the relative roughness
Enter the pipe's relative roughness ε/D (roughness height divided by pipe diameter), or pick a common material preset.
Click Calculate
Click Calculate to determine the flow regime and compute the Darcy friction factor.
Read the friction factor result
For laminar flow, read the exact f = 64/Re result. For turbulent flow, compare the iterative Colebrook solution against the explicit Swamee-Jain approximation.
Need the Reynolds number first? Use the Reynolds Number Calculator, or see the full Fluid Mechanics topic guide.
The Darcy friction factor f quantifies how much a pipe's internal surface resists flow, feeding directly into the Darcy-Weisbach equation for frictional pressure drop. For laminar flow it has an exact analytical value; for turbulent flow it depends on both the Reynolds number and the pipe's relative roughness, and must be found from the implicit Colebrook equation or an explicit approximation like Swamee-Jain.
This calculator computes both, the exact laminar result when Re < 2100, and both the Colebrook (iterative) and Swamee-Jain (explicit) turbulent results when Re > 4000, so you can see how closely the fast approximation tracks the more rigorous iterative solution.

In laminar flow, the friction factor comes directly from the exact Hagen-Poiseuille solution to the Navier-Stokes equations for fully developed pipe flow. Equating the Hagen-Poiseuille pressure drop to the Darcy-Weisbach definition of f gives a closed-form result with no empirical fitting at all:
Turbulent flow has no equivalent closed-form solution, the velocity profile is chaotic and not analytically tractable, so the Colebrook equation is instead a semi-empirical fit combining the smooth-pipe turbulent correlation with a roughness term, validated against a huge body of experimental friction-factor data (the same data underlying the Moody chart):
Because f appears on both sides, once outside the logarithm, once inside it, this equation has no algebraic solution for f. It's solved by fixed-point iteration: guess an initial f (commonly from Swamee-Jain), substitute it into the right-hand side to get an improved f, and repeat until the value stops changing meaningfully, usually only 3–5 iterations for engineering accuracy. The Swamee-Jain equation itself was derived by algebraically rearranging Colebrook into an explicit approximate form, trading a small amount of accuracy for the convenience of a direct formula.
The laminar line and the Colebrook turbulent curves below are computed live from the same equations derived above, not traced from a scanned image, so the two amber-marked points line up exactly with the worked examples further down this page.
Friction factor rarely stands alone, it's the missing piece a pipe-flow pressure-drop or pumping-power problem needs:
Problem: Oil flows through a pipe at Re = 1200. Find the Darcy friction factor.
Answer: f = 0.0533 (exact, no roughness dependence)
Problem: Water flows through a commercial steel pipe (ε/D = 0.00015) at Re = 100,000. Estimate f using Swamee-Jain, then refine with one Colebrook iteration.
Answer: f ≈ 0.0179, Swamee-Jain and Colebrook agree to within about 0.4% here.
Almost always as an input to something else, not the final answer, it feeds the pressure-drop and pump-power calculations that actually answer the question a problem is asking. See the derivation below for where the Darcy-Weisbach relationship it plugs into comes from.
Keep Exploring
Full syllabus breakdown for Fluid Mechanics, subtopics, essential formulas, PYQ frequency, and recommended study order.
Open →Determine flow regime (laminar / transitional / turbulent) from fluid properties and pipe geometry.
Open →Frictional pressure drop from pipe and fluid data via Darcy-Weisbach, with automatic friction factor.
Open →Every core GATE Chemical Engineering formula in one place, grouped by topic with variable definitions.
Open →Full-length, timed GATE CH practice tests (2024–2026) with instant, step-by-step-explained results.
Open →