Darcy-Weisbach calculator
This Darcy-Weisbach calculator solves the Darcy-Weisbach equation, hf = f·(L/D)·v²/(2g), for whichever variable you need: the head loss and pressure drop, the friction factor, the pipe length, the inside diameter or the velocity. Enter f directly or let the tool compute it from the Colebrook-White equation.
Darcy-Weisbach calculator: solve for any variable
Darcy-Weisbach calculator vs Hazen-Williams for a water line
How to use the Darcy-Weisbach calculator
Choose the unknown in “Solve for”. The default solves for head loss: enter the velocity, inside diameter, length and the Darcy friction factor, and the Darcy-Weisbach calculator returns hf in meters and feet of the flowing fluid, the equivalent pressure drop and the head loss per 100 m. The other modes rearrange the same equation. “Friction factor” back-calculates f from a measured pressure drop, which is how you check the condition of an existing line. “Pipe length” tells you how far a given loss budget lets you pump. “Inside diameter” finds the smallest bore that keeps the loss within a limit at a known flow rate, and “Velocity” gives the flow that a given head will push through a pipe.
You can type f yourself, from a Moody chart or a vendor table, or switch the friction factor source to Colebrook-White. Then the Darcy-Weisbach calculator computes f from the Reynolds number and the relative roughness ε/D at every step; in the diameter and velocity modes this means iterating, because the Reynolds number depends on the unknown. The density converts head to pressure. Viscosity is optional when f is entered, but give it anyway: the tool then reports Re and warns you if the flow is laminar.
The Darcy-Weisbach equation behind the Darcy-Weisbach calculator
For steady, fully developed flow in a straight pipe of constant diameter, the frictional energy loss per unit weight of fluid is
Here hf is the head loss (m of flowing fluid), f the dimensionless Darcy friction factor, L the pipe length, D the inside diameter, v the mean velocity, g = 9.80665 m/s² and ρ the density. The equation is dimensionally consistent, so it holds in any unit system; the Darcy-Weisbach calculator converts every input to SI first. It is named after Julius Weisbach, who proposed the form in 1845, and Henry Darcy, whose pipe experiments in the 1850s established how resistance depends on wall roughness. Rearranged, the same relation gives each mode of the calculator:
In the Darcy-Weisbach calculator, the diameter form comes from substituting v = 4Q/(πD²). It shows the strong effect of pipe size: at fixed flow and f, the head loss varies with 1/D⁵, so a 10 % larger bore cuts the friction loss by about 38 %. The Engineering ToolBox Darcy-Weisbach page gives the same equation with worked air-duct examples.
Worked example with the Darcy-Weisbach calculator
Water at 20 °C (ρ = 998.2 kg/m³) flows at v = 2 m/s through L = 300 m of pipe with D = 150 mm, and the Darcy friction factor is f = 0.018. The velocity head is v²/2g = 2² / (2 × 9.80665) = 0.2039 m, and L/D = 300 / 0.150 = 2000. So hf = 0.018 × 2000 × 0.2039 = 7.342 m of water, and ΔP = 998.2 × 9.80665 × 7.342 = 71.87 kPa (0.719 bar, 10.4 psi). The flow rate is 2 × π × 0.15² / 4 = 0.03534 m³/s, or 127.2 m³/h. These are the defaults of the Darcy-Weisbach calculator, and the reverse modes are pre-filled with the same numbers: entering ΔP = 71.87 kPa returns f = 0.0180, L = 300 m, D = 150 mm or v = 2.00 m/s.
With μ = 1.002 cP the Reynolds number is about 298,900. If you switch the source to Colebrook-White with ε = 0.045 mm (new commercial steel), f becomes 0.01698 and the head loss falls to 6.93 m: the 0.018 in the example corresponds to a slightly aged pipe. As a check against a textbook, Çengel and Cimbala’s Example 8-3 (water at 15 °C, 0.006 m³/s in a 5 cm stainless pipe, 60 m long) uses f = 0.0172 and obtains hf = 9.85 m and ΔP = 96.5 kPa; the Darcy-Weisbach calculator reproduces these values within rounding (9.83 m with v = 3.056 m/s and g = 9.80665 m/s²).
Darcy vs Fanning friction factor in a Darcy-Weisbach calculator
Two friction factors are in common use, and they differ by exactly a factor of four. Chemical engineering texts such as McCabe-Smith, Perry’s (older editions) and many heat-transfer references use the Fanning factor, defined from the wall shear stress; civil and mechanical texts, the Moody chart and this Darcy-Weisbach calculator use the Darcy factor.
| Item | Darcy (Moody) factor fD | Fanning factor fF |
|---|---|---|
| Relation | fD = 4·fF | fF = fD/4 |
| Definition | fD = 8τw/(ρv²) | fF = 2τw/(ρv²) |
| Laminar flow | 64/Re | 16/Re |
| Head loss form | hf = fD·(L/D)·v²/(2g) | hf = 4fF·(L/D)·v²/(2g) = 2fF·L·v²/(g·D) |
| Smooth pipe, Re = 10⁵ | 0.0180 | 0.0045 |
| Commercial steel, Re = 10⁵, ε/D = 0.0005 | 0.0203 | 0.0051 |
| Fully rough, ε/D = 0.001 | 0.0196 | 0.0049 |
| Typical users | Moody chart, Crane TP-410, civil and mechanical texts | McCabe-Smith, Bird-Stewart-Lightfoot, heat-transfer analogies |
A quick way to tell which one a source is using: turbulent Darcy values are usually 0.01 to 0.05, Fanning values 0.0025 to 0.0125. If a number from a Fanning chart goes into the Darcy-Weisbach calculator unchanged, the head loss comes out four times too small. To compare all the explicit correlations for f, use the Friction Factor Calculator.
Hazen-Williams vs Darcy-Weisbach
Water-supply and fire-protection engineers often use the empirical Hazen-Williams formula, hf = 10.67·L·Q¹·⁸⁵² / (C¹·⁸⁵²·D⁴·⁸⁷⁰⁴) in SI units, where C is a roughness coefficient around 100 to 150. It is convenient because it needs no friction factor iteration, but it was fitted to cold-water data and has no viscosity term. The second card of the Darcy-Weisbach calculator puts both side by side. For the example line (127.2 m³/h, 150 mm, 300 m, ε = 0.045 mm) Hazen-Williams with C = 130, a common design value for steel that is no longer new, gives 8.21 m, about 19 % more than the Colebrook-based 6.93 m for new steel. The C value that matches Darcy-Weisbach exactly is about 142, in line with the 140 to 150 usually quoted for new steel. The agreement degrades at low velocity, in small pipes, for hot water and for any fluid other than water, where Darcy-Weisbach should be used. The Engineering ToolBox Hazen-Williams page lists C values for common pipe materials.
Darcy-Weisbach calculator or pressure drop calculator?
This Darcy-Weisbach calculator handles the equation itself, for one straight run of pipe, and lets you solve it for any variable. If you need the total pressure change of a real line with elbows, valves, an entrance and exit and a change in elevation, use the Pressure Drop Calculator, which adds ΣK minor losses and the static head to the Darcy-Weisbach friction term. To check the flow regime first, the Reynolds Number Calculator gives Re in one step, and the Pump Power Calculator turns the total head into a motor size.
Practical notes for using a Darcy-Weisbach calculator
Gases. The Darcy-Weisbach calculator assumes constant density. For gas lines it is acceptable while the pressure drop stays below about 10 % of the inlet absolute pressure, using the mean density; beyond that, use an isothermal or adiabatic compressible-flow method. Non-circular ducts. Use the hydraulic diameter Dh = 4A/P for both L/D and Re; for laminar flow the friction factor also changes with shape. Measured data. When back-calculating f from field data with the Darcy-Weisbach calculator, subtract the static head and the fitting losses first and use the true inside diameter; the tool then also reports the equivalent roughness ε from the Colebrook equation, a useful indicator of scale or corrosion.
Common mistakes with the Darcy-Weisbach equation
Fanning instead of Darcy. Using fF in the Darcy form underestimates the loss fourfold. Head of the wrong fluid. hf is in meters of the flowing fluid; converting with the density of water when pumping oil or brine gives the wrong pressure. Nominal diameter. Give the Darcy-Weisbach calculator the actual inside diameter: 6-inch schedule 40 pipe is 154.1 mm inside, not 152.4 mm. Adding fittings into f. Elbows and valves are minor losses (K·v²/2g), not part of the pipe friction factor. Laminar flow with a turbulent f. Below Re ≈ 2300, f = 64/Re regardless of roughness, which the Darcy-Weisbach calculator flags.
Related calculators
For complete pipe runs with fittings and elevation, use the pressure drop calculator; to compare friction factor correlations or read the Moody chart, use the friction factor calculator. Size the pump with the pump power calculator.
- Pressure Drop Calculator
- Friction Factor Calculator
- Reynolds Number Calculator
- Pump Power Calculator
- NPSH Calculator
- All chemical engineering calculators
Frequently asked questions
What is the Darcy-Weisbach equation used for?
It gives the frictional head loss or pressure drop of a fluid flowing through a straight pipe, h_f = f·(L/D)·v²/(2g). It applies to liquids and, with care, to gases at small pressure drops, in both laminar and turbulent flow.
How do I find the friction factor for the Darcy-Weisbach equation?
In laminar flow f = 64/Re. In turbulent flow, read it from the Moody chart or compute it from the Colebrook-White equation using Re and the relative roughness ε/D; the Darcy-Weisbach calculator can do this automatically.
What is the difference between head loss and pressure drop?
Head loss is the energy lost per unit weight of fluid, expressed as a height of the flowing fluid. Pressure drop is the same loss per unit volume: ΔP = ρ·g·h_f. For water, 1 m of head is about 9.79 kPa.
Is Darcy-Weisbach more accurate than Hazen-Williams?
Generally yes, which is why this Darcy-Weisbach calculator shows both. Darcy-Weisbach is based on dimensional analysis and works for any Newtonian fluid, temperature and flow regime. Hazen-Williams is a convenient empirical fit for cold water in turbulent flow and can be off by 10 to 40 % outside that range.
Why does the diameter mode of the Darcy-Weisbach calculator iterate?
With the Colebrook option, f depends on the Reynolds number, which depends on the velocity and therefore on the unknown diameter. The calculator alternates between the diameter formula and Colebrook-White until f stops changing, usually in five to ten passes.
Is this Darcy-Weisbach calculator free?
Yes. It runs in your browser, needs no sign-up and does not store or send the values you enter.