Darcy-Weisbach Calculator
Solve the Darcy-Weisbach equation for pipe head loss, pressure drop, or flow velocity. Covers laminar and turbulent flow with automatic friction factor calculation.
💧 What is the Darcy-Weisbach Equation?
The Darcy-Weisbach equation is the fundamental formula for calculating head loss due to friction in a pipe carrying a fluid: h_f = f x (L/D) x (V^2/2g). It links the geometry of the pipe (length L and diameter D), the flow condition (velocity V), gravity (g = 9.81 m/s^2), and the dimensionless Darcy friction factor f to the head loss h_f in metres. Head loss is the pressure drop expressed as equivalent fluid height, which engineers find convenient because it is independent of fluid density when dealing with incompressible flow.
The equation is used across a wide range of applications. Municipal water engineers use it to size distribution mains and balance loop networks. HVAC engineers calculate duct and chilled-water pipe sizes to keep fan and pump energy within budget. Oil and gas pipeline designers use it to determine required compressor and pump stages for cross-country pipelines. Process engineers apply it for every piping system inside a chemical plant or refinery.
The friction factor f is not a simple constant. In laminar flow (Reynolds number Re below 2300), the Hagen-Poiseuille result gives f = 64/Re exactly. In turbulent flow (Re above 4000), f depends on both Re and the pipe relative roughness (ε/D) through the implicit Colebrook-White equation. Because Colebrook-White requires iteration, this calculator uses the explicit Swamee-Jain approximation (1976), which matches Colebrook-White to within 3% for practical engineering ranges.
A common confusion is between the Darcy friction factor used here and the Fanning friction factor used in some chemical engineering texts. The Darcy factor is exactly four times the Fanning factor. Always check which factor a reference uses before substituting values into the head loss equation. This calculator uses the Darcy (also called Moody) friction factor throughout, consistent with the Moody chart and most civil and mechanical engineering textbooks.
📐 Formula
📖 How to Use This Calculator
Steps
💡 Example Calculations
Example 1 - Water Supply Pipe, 100 mm Diameter, 100 m Long
New commercial steel pipe (ε = 0.046 mm), water at 20°C, velocity 2 m/s
Example 2 - PVC Irrigation Pipe Finding Flow Rate from Elevation
PVC pipe (ε = 0.0015 mm), 50 mm diameter, 200 m long, gravity head = 15 m
Example 3 - Cast Iron Water Main, 300 mm Diameter, 500 m Long at 1.5 m/s
Aged cast iron main (ε = 0.26 mm), D = 300 mm, L = 500 m, V = 1.5 m/s
Example 4 - Laminar Flow: Glycerine in a Small Tube
Smooth tube (ε = 0 mm), D = 10 mm, L = 5 m, V = 0.05 m/s, glycerine ν = 700 mm²/s
❓ Frequently Asked Questions
🔗 Related Calculators
What is the Darcy-Weisbach equation used for?
The Darcy-Weisbach equation calculates the head loss (pressure drop expressed as height of fluid) caused by friction in a pipe. h_f = f x (L/D) x (V2/2g). It is the standard equation for pipe flow design in water distribution, HVAC, oil and gas, and process engineering. Given head loss, pipe geometry, and fluid properties, engineers size pumps, select pipe diameters, and balance distribution networks.
What is the Darcy friction factor and how is it calculated?
The Darcy friction factor (f) is a dimensionless number that quantifies friction between the fluid and the pipe wall. For laminar flow (Re < 2300): f = 64/Re. For turbulent flow, it depends on Reynolds number and relative roughness (ε/D). This calculator uses the Swamee-Jain explicit equation: f = 0.25 / [log10(ε/3.7D + 5.74/Re^0.9)]^2, accurate to within 3% of the Colebrook-White equation.
What is the Reynolds number in pipe flow?
Reynolds number (Re = VD/ν) is a dimensionless ratio of inertial to viscous forces. Re < 2300 indicates laminar flow (smooth, predictable). Re 2300 to 4000 is the transition zone (unpredictable). Re > 4000 is turbulent (chaotic, higher friction). Almost all practical engineering pipe flows are turbulent.
What pipe roughness value should I use?
Typical absolute roughness values: PVC or drawn copper 0.0015 mm, new commercial steel 0.046 mm, galvanized steel 0.15 mm, cast iron 0.26 mm, concrete 0.6-3 mm. Use the manufacturer datasheet when available. As pipes age, deposit build-up increases effective roughness, so add a safety margin for old pipes.
How does pipe diameter affect head loss?
Head loss is inversely proportional to D^5 when flow rate is held constant. Halving the diameter increases head loss by a factor of 32. This is the key reason pipe sizing is critical: a slightly undersized pipe dramatically increases pumping energy and cost.
What is the difference between head loss and pressure drop?
Head loss (h_f) is pressure drop expressed as equivalent height of fluid in meters. Pressure drop (ΔP) is in Pascals. They are related by ΔP = ρgh_f. For water (ρ = 998 kg/m³), 1 meter of head = 9.79 kPa = 1.42 psi. Head loss is used in hydraulics; pressure drop is used in thermodynamics and process engineering.
What is the Swamee-Jain equation?
The Swamee-Jain equation (1976) is an explicit approximation of the implicit Colebrook-White equation for the Darcy friction factor in turbulent flow: f = 0.25 / [log10(ε/3.7D + 5.74/Re^0.9)]^2. It eliminates the need for iterative solution and is accurate to within 3% for 5000 < Re < 10^8 and 10^-6 < ε/D < 0.05.
How do I find flow velocity from head loss using Darcy-Weisbach?
Rearrange to V = sqrt(2gDhf/(fL)), but f also depends on V through the Reynolds number. The standard approach is iteration: guess f = 0.02, compute V, compute Re, compute new f, repeat until convergence. This calculator performs the iteration automatically using the Swamee-Jain friction factor formula.
What kinematic viscosity should I use for water?
Water at 20°C: ν = 1.004 x 10^-6 m²/s = 1.004 mm²/s. Water at 40°C: ν = 0.658 mm²/s. Water at 60°C: ν = 0.474 mm²/s. Water at 80°C: ν = 0.365 mm²/s. Viscosity decreases with temperature. For hot water systems, using 20°C viscosity overestimates friction loss (conservative for pump sizing).
What is a typical design head loss per unit length for water pipes?
A commonly used design guideline for municipal water distribution is a maximum head loss of 4 to 10 m per 1000 m of pipe (4-10 per mille). For building internal plumbing the limit is often higher, around 1-2 m per 10 m length. Higher allowed losses reduce pipe size but increase pumping cost.
How accurate is the Darcy-Weisbach equation compared to Hazen-Williams?
The Darcy-Weisbach equation is more accurate and universally applicable because it includes fluid properties (viscosity, density) and covers all flow regimes. Hazen-Williams is simpler but only valid for turbulent water flow at temperatures near 15°C and loses accuracy outside its empirical range. Engineering professionals and software such as EPANET now universally prefer Darcy-Weisbach.
Does this calculator work for fluids other than water?
Yes. Enter the kinematic viscosity (ν = dynamic viscosity / density) of your fluid in mm²/s. The pressure drop output assumes water density of 998 kg/m³ for the final conversion; for other fluids, scale the pressure drop by ρ_fluid/998. The head loss in meters and friction factor are independent of density and remain valid for any incompressible fluid.