Darcy–Weisbach Friction Factor Calculator

JJ Ben-Joseph headshot JJ Ben-Joseph

What this calculator does

This page calculates the Darcy friction factor f for internal flow in a round pipe. The friction factor is the key input to the Darcy–Weisbach equation for pressure loss (or head loss) caused by wall friction. Use it when you need a defensible estimate for pressure drop, pump sizing, energy cost, or when you want to compare pipe materials and diameters.

The friction factor is dimensionless. It is not a property of the fluid alone or the pipe alone; it depends on the flow regime and on how rough the pipe wall is relative to the pipe size. In practice, you typically compute Reynolds number from your flow rate and fluid properties, estimate roughness from a handbook or specification, and then use f to compute losses.

Dimensionless. Laminar flow is typically Re < 2000; transitional flow may occur around 2000–4000.

Dimensionless. Compute as absolute roughness ε divided by inside diameter D (use the same length units for ε and D).

Provide Reynolds number and roughness.

Flow Band Runner

Throttle the pump to stay inside the smooth-flow friction band. Feel how f responds when Reynolds number and roughness change.

Score

0 pts

Calibrate with valid inputs to set the band.

Best

0 pts

Best streak saved locally.

Target band

Locked to latest friction result.

Session

90s

Stay smooth to finish a full run.

Hint: Higher roughness or Re swings the band; watch the teal corridor shift.

Additional notes for students and practitioners

If you are learning fluid mechanics, it helps to connect the friction factor back to the physical picture. In laminar flow, viscous shear dominates and the velocity profile is smooth and predictable; that is why the friction factor has a simple analytical form (64/Re). In turbulent flow, eddies and mixing increase momentum transfer to the wall, and the wall roughness can “trip” turbulence and increase drag. The Colebrook–White equation captures this combined dependence on Reynolds number and relative roughness.

In design work, you often iterate: choose a diameter, compute velocity and Reynolds number, estimate friction factor, compute pressure drop, and then adjust diameter or pump selection. Because friction factor changes slowly with Reynolds number in many turbulent cases, a first-pass estimate is often close. However, for very rough pipes or when operating near transition, the sensitivity can be higher and it is worth checking multiple scenarios.

Scenario testing (a practical workflow)

A simple way to use this page is to run three scenarios: a baseline, a conservative case, and an aggressive case. For example, keep ε/D fixed and vary Re to represent different flow rates, or keep Re fixed and vary ε/D to represent pipe aging. Record the friction factor each time and observe whether your system is dominated by roughness (little change with Re) or by Reynolds number (noticeable change with Re). This kind of sensitivity check is often more valuable than a single “best guess” number.

Data privacy

The computation runs in your browser. The values you enter are used to compute the result and to set the mini-game’s target band. The mini-game stores only a local “best score” in your browser’s localStorage; it does not store your Reynolds number or roughness.

Embed this calculator

Copy and paste the HTML below to add the Darcy–Weisbach Friction Factor Calculator (Colebrook-White Solver) to your website.