How to calculate pressure drop in a pipe (Darcy–Weisbach)
Every pump selection, cooling circuit and transfer line comes down to the same question: how much pressure does the fluid lose between one end of the pipe and the other at the flow you want. The Darcy–Weisbach equation answers it for any Newtonian fluid, any pipe size and any material, which is why it is the method in Crane Technical Paper 410 and in every fluid mechanics textbook.
The calculation is a chain of five small steps: velocity, Reynolds number, relative roughness, friction factor, pressure drop. Fittings and the height difference are then added to give the head a pump must supply. This guide goes through each step with its formula, works one line from start to finish, and lists the slips that most often spoil the answer. The pipe flow and pressure drop calculator does the same chain and is used here to check every number.
What you need before you start
- Volume flow rate Q, in m³/s. Divide m³/h by 3600.
- Inside diameter D of the pipe, in metres. This is the bore, not the nominal size.
- Length L of straight pipe, in metres.
- Absolute roughness ε of the pipe wall, from the pipe roughness table: 0.045 mm for commercial steel, 0.0015 mm for drawn tubing and plastic, 0.26 mm for cast iron.
- Density ρ and kinematic viscosity ν of the fluid at its working temperature. Fresh water at 20 °C has ρ = 998.2 kg/m³ and ν = 1.004 × 10⁻⁶ m²/s.
- A list of the fittings and valves, and the rise Δz of the outlet above the inlet.
The method assumes steady, fully developed, incompressible flow in a circular pipe running full.
Step 1: velocity from flow and bore
Continuity gives the mean velocity over the cross-section:
A = π D² / 4
V = Q / A
Velocity depends on the square of the bore, so doubling the diameter quarters the velocity. If you only need this step, the flow rate and velocity calculator solves it for any of the three quantities.
Step 2: Reynolds number and flow regime
The Reynolds number compares inertia with viscous forces and decides which friction law applies:
Re = V D / ν = ρ V D / μ
Use the kinematic viscosity ν in m²/s, or the dynamic viscosity μ in Pa·s together with the density. The limits used for pipes, following Moody (1944) and White's Fluid Mechanics, are:
| Regime | Reynolds number | Friction factor |
|---|---|---|
| Laminar | below 2 300 | f = 64 / Re, independent of roughness |
| Transitional | 2 300 to 4 000 | Uncertain by about ±30 %; use the turbulent value as the conservative choice |
| Turbulent | above 4 000 | Colebrook–White, depends on Re and ε/D |
Water lines are almost always turbulent: in a 50 mm bore, water at 20 °C would have to move slower than 0.046 m/s to become laminar. Viscous liquids are the exception. Heavy fuel oil of 380 cSt at 1 m/s in a 100 mm pipe gives Re = 263, firmly laminar. The Reynolds number calculator covers ducts and flat plates as well.
Step 3: relative roughness and friction factor
The relative roughness is the wall roughness divided by the bore, both in the same unit:
relative roughness = ε / D
In laminar flow the Darcy friction factor is simply f = 64 / Re. In turbulent flow it comes from the Colebrook–White equation (Colebrook, 1939), which is what the Moody chart plots:
1/√f = −2 log₁₀( ε/(3.7 D) + 2.51/(Re √f) )
The unknown f appears on both sides, so the equation is solved by iteration. A good first guess is the explicit Swamee–Jain approximation (1976):
f = 0.25 / [ log₁₀( ε/(3.7 D) + 5.74/Re^0.9 ) ]²
Put that f into the right-hand side of Colebrook, compute a new f from the left-hand side, and repeat. Two or three passes fix the fourth significant figure. The calculator does exactly this, starting from Swamee–Jain and repeating until f changes by less than 10⁻¹³, and it shows both values. Swamee–Jain alone is within about 1 % of Colebrook for 5 000 ≤ Re ≤ 10⁸ and 10⁻⁶ ≤ ε/D ≤ 10⁻², which is enough for most design work.
Step 4: Darcy–Weisbach for the straight pipe
h_f = f (L/D) V² / (2g) friction head, m of the fluid
Δp_f = f (L/D) ρ V² / 2 friction pressure drop, Pa
with g = 9.80665 m/s². The two forms are the same result, linked by Δp = ρ g h. The group ρV²/2 is the dynamic pressure and V²/2g the velocity head; you will use them again for the fittings.
Because V falls with D² and the loss rises with V² and with L/D, the friction loss at a fixed flow scales with D⁻⁵. A slightly larger pipe gives a much smaller loss, and a slightly smaller bore than you assumed gives a much larger one.
Step 5: fittings and valves as K values
Each bend, valve, entrance and exit loses a number K of velocity heads. The losses add:
h_K = ΣK × V² / (2g)
Δp_K = ΣK × ρ V² / 2
Crane TP-410 gives K for a fitting as a turbulent friction factor f_T for the pipe size times an equivalent length in diameters: 30 for a standard 90° elbow, 8 for an open gate valve, 340 for an open globe valve, 100 for a swing check valve, 60 for a tee branch. A sharp-edged entrance is K = 0.5 and an exit into a tank is K = 1.0, because the fluid loses its whole velocity head there. The minor losses calculator adds them up for your bore.
Handbook K values vary by about ±30 % with geometry and Reynolds number, valves are assumed fully open, and fittings close together lose more than the sum of their K values. "Minor" is a name, not a promise: in a short line with many fittings they often exceed the pipe friction.
Step 6: static head and the system curve
A rise of the outlet above the inlet adds a pressure difference that exists even at zero flow:
Δp_z = ρ g Δz
Δp_total = Δp_f + Δp_K + Δp_z
H_total = Δp_total / (ρ g)
If the liquid moves between two vessels at different pressures, add (p_d − p_s)/(ρ g) as well. The sum is the total dynamic head of ANSI/HI 1.3, the head a pump must add at that flow; the total dynamic head calculator sets it out in that form.
Repeat the calculation at several flows and you have the system curve. The static part is constant and the losses grow almost with the square of the flow:
H(Q) ≈ H_static + C Q², C = (f L/D + ΣK) / (2 g A²)
The pump runs where its own curve crosses this one. The pump and pipe system simulator lets you move the operating point by changing speed, pipe size and valve opening.
Worked example: a 3 inch steel transfer line
A pump moves 30 m³/h of fresh water at 20 °C through 80 m of 3 inch commercial steel pipe with a 77.9 mm bore, to a tank whose surface is 12 m above the suction surface. The line has a sharp entrance, four standard elbows, a gate valve, a swing check valve and an exit into the tank.
- Velocity. Q = 30 / 3600 = 0.008333 m³/s. A = π × 0.0779² / 4 = 0.004766 m². V = 0.008333 / 0.004766 = 1.748 m/s.
- Reynolds number. Re = 1.748 × 0.0779 / 1.004 × 10⁻⁶ = 135 700. Turbulent.
- Relative roughness. ε/D = 0.045 / 77.9 = 0.000578.
- Friction factor. Swamee–Jain gives 0.02005. One pass through Colebrook gives 0.01992, the second 0.01993, and it stays there: f = 0.01993.
- Velocity head. V²/2g = 1.748² / (2 × 9.80665) = 0.1559 m. Dynamic pressure 998.2 × 1.748² / 2 = 1 526 Pa.
- Pipe friction. h_f = 0.01993 × (80 / 0.0779) × 0.1559 = 3.19 m, or 31.2 kPa. That is 39.0 kPa per 100 m.
- Fittings. By the Crane method f_T = 0.0173 for this bore, so the elbows, gate valve and check valve give 0.0173 × (4 × 30 + 8 + 100) = 3.95. Adding the entrance 0.5 and exit 1.0 gives ΣK = 5.45. Loss: 5.45 × 0.1559 = 0.85 m, or 8.3 kPa.
- Static head. 12 m, or 998.2 × 9.80665 × 12 = 117.5 kPa.
- Total. 3.19 + 0.85 + 12 = 16.04 m, or 157.0 kPa.
Load the same inputs into the pipe flow calculator (flow 30 m³/h, diameter 77.9 mm, length 80 m, commercial steel, fresh water at 20 °C, ΣK 5.45, rise 12 m) and it returns f = 0.01993, a loss head of 4.04 m and a total of 16.04 m.
Repeating the run at other flows gives the system curve:
| Flow (m³/h) | Velocity (m/s) | Friction factor | Losses (m) | Total head (m) |
|---|---|---|---|---|
| 0 | 0 | – | 0 | 12.00 |
| 10 | 0.58 | 0.0232 | 0.51 | 12.51 |
| 20 | 1.17 | 0.0209 | 1.87 | 13.87 |
| 30 | 1.75 | 0.0199 | 4.04 | 16.04 |
| 40 | 2.33 | 0.0194 | 7.02 | 19.02 |
The friction factor falls slowly as the flow rises, so the true curve climbs a little less steeply than a pure Q² law fitted at the design point. At 30 m³/h and 16.04 m the hydraulic power ρ g Q H is 1.31 kW; at a pump efficiency of 70 % the shaft needs 1.87 kW, which the pump power calculator turns into a motor size.
Now pump SAE 30 lubricating oil at 40 °C (typically 100 cSt, 870 kg/m³) through the same line at the same flow. The Reynolds number drops to 1 362, the flow is laminar, f = 64 / 1 362 = 0.0470, and the pipe friction rises from 3.19 m to 7.52 m of the liquid. Viscosity changed everything and roughness no longer matters.
Sensible velocities
A pressure drop is neither good nor bad on its own; it is weighed against pump energy and pipe cost. Velocity is the quicker sanity check. Common design practice, which Crane TP-410 also tabulates:
- General water service and pump discharge: 1.0 to 3.0 m/s.
- Pump suction: 0.6 to 1.5 m/s.
- Fuel and lubricating oil: 0.5 to 2.0 m/s, with fuel suction lines below 1 m/s.
- Sea-water lines: 1.5 to 3 m/s, with copper-nickel limited to about 3 m/s by erosion.
- Air ducts: 5 to 10 m/s.
Above 3 m/s in a liquid line expect noise, erosion and a higher water hammer risk. These ranges are practice, not code limits. The 1.75 m/s of the example sits comfortably in the discharge range.
The suction side needs a separate check. The friction and fitting losses of the suction line, worked out exactly as above, are subtracted from the NPSH available, and they are the term most often underestimated. Take them to the pump NPSH calculator.
When Hazen–Williams is used instead
Water mains and sprinkler systems are usually calculated with the Hazen–Williams equation, which NFPA 13 prescribes. It needs no Reynolds number or iteration:
h_f = 10.67 L Q^1.852 / (C^1.852 d^4.8704) (SI: Q in m³/s, d and L in m)
C describes the pipe: 150 for plastic and copper, 140 for cement-lined iron, 120 for steel in wet systems, 100 for unlined cast iron. The price of the simplicity is a narrow range of validity. The equation has no viscosity term, so it holds only for water near 15 °C, and fails for oils, glycol mixtures and hot water. It was fitted to bores of about 50 mm and up at roughly 0.3 to 3 m/s.
Inside that range the two methods agree well when the roughness inputs describe the same pipe: for 20 L/s of water in 150 mm PVC they differ by about 1 %. They disagree when the inputs do not match. For the steel line of the example, the Hazen–Williams calculator with the NFPA design value C = 120 gives 4.25 m of friction, against 3.19 m from Darcy–Weisbach with the new-pipe roughness of 0.045 mm. Neither is wrong; they assume different pipe conditions.
Common mistakes
- Nominal instead of internal diameter. A 3 inch steel pipe has a 77.9 mm bore, not 76.2 or 80 mm, and a 2 inch Schedule 40 pipe 52.5 mm. A 6 inch pipe has a 6.07 inch bore in Schedule 40 and 5.76 inch in Schedule 80, which raises the loss by 28 %. Always look up the bore for the wall thickness you have.
- Darcy and Fanning friction factors mixed. The Darcy factor used here is four times the Fanning factor. If a source gives laminar flow as 16/Re it is Fanning; if 64/Re, Darcy. Using a Fanning value in the Darcy equation gives a quarter of the true loss.
- Viscosity units. 1 cSt = 10⁻⁶ m²/s. Kinematic viscosity goes into Re = VD/ν on its own; dynamic viscosity in Pa·s needs the density, Re = ρVD/μ. Entering centistokes as m²/s, or mixing the two forms, moves the Reynolds number by orders of magnitude.
- Viscosity at the wrong temperature. Heavy fuel oil viscosity roughly halves for a 10 °C rise. Use the value at the temperature in the pipe.
- Gauge and absolute pressure. A pressure drop is a difference, so it is the same in gauge or absolute terms. The distinction matters as soon as you leave the pipe: NPSH needs the absolute pressure on the liquid surface (atmospheric plus gauge), and the limit for treating a gas as incompressible is a drop of about 10 % of the absolute pressure.
- New-pipe roughness for old pipe. The tabulated values are for new, clean pipe. Scaled steel can reach 1 to 3 mm roughness and a reduced bore, and losses can double or triple over the life of the line.
- Counting the exit twice or not at all. If the reference points are the liquid surfaces in two tanks, the exit loss K = 1.0 belongs in ΣK and no velocity head is added separately.
- Designing in the transitional band. Between Re 2 300 and 4 000 a small change in temperature or flow shifts the friction factor by 30 % or more. Change the pipe size or accept the turbulent value as an upper estimate.
Where the method stops
- Gases. The incompressible form holds while the pressure drop stays below about 10 % of the absolute pressure. Ventilation ducts qualify; long compressed-air mains may not.
- Non-circular ducts. Use the hydraulic diameter D_h = 4A/P in place of D. Expect about ±15 % in turbulent flow and poor accuracy in laminar flow, where the friction factor depends on the shape.
- Relative roughness above 0.05 is outside the Moody chart; Colebrook is then an extrapolation.
- Several pipe sizes in series. Calculate each section with its own velocity and add the losses. Velocity-head changes between different inlet and outlet diameters are a separate term.
- Non-Newtonian fluids, two-phase flow, partly full pipes and transients such as water hammer need other methods.
The sources behind the steps are Moody, "Friction factors for pipe flow", Trans. ASME 66 (1944); Colebrook, J. Inst. Civil Eng. 11 (1939); Swamee and Jain, J. Hydraulics Div. ASCE 102 (1976); White, Fluid Mechanics, chapter 6; and Crane Technical Paper 410 for fittings and velocities.
Calculators used in this guide
- Fluids and pumpsPipe flow and pressure dropVelocity, Reynolds number, Darcy friction factor (Colebrook, Swamee–Jain) and pressure drop for a straight pipe with fittings.
- Fluids and pumpsReynolds number and flow regimeReynolds number for a pipe, a non-circular duct, a flat plate or any length, from velocity or flow, with the regime: laminar, transitional or turbulent.
- Fluids and pumpsMinor losses calculator (pipe fittings and valves)Head and pressure loss through elbows, tees, valves, entrances and exits by the Crane K method, with total K and the equivalent pipe length.
- Fluids and pumpsTotal dynamic head (TDH) calculatorTotal dynamic head for pump selection from static lift, tank pressures, pipe friction and fitting losses, with the system curve and hydraulic power.
- Fluids and pumpsHazen–Williams head loss calculatorHazen–Williams friction loss of water in a pressure pipe, or the flow or pipe diameter for an allowed loss, with velocity, pressure drop and C-factors.
- Fluids and pumpsFlow rate and pipe velocityVelocity from flow rate and pipe bore, flow from velocity, or the bore needed for a flow at a target velocity, checked against usual design velocities.
- Fluids and pumpsPump NPSH and suction liftNPSH available from suction conditions, vapour pressure and losses, margin against NPSH required and the maximum suction lift.
- Fluids and pumpsPump power calculatorHydraulic, shaft and electrical power of a pump from flow and head or pressure, with efficiencies, the next standard motor size and the energy cost.
Results are estimates. They do not replace the governing code, class or flag requirements, or a check by a competent person. Report an error in this guide
More guides
- Cargo securing calculation to CSS Code Annex 13
- How to do a draft survey calculation, step by step
- How EU ETS and FuelEU Maritime costs are calculated
- How much concrete do I need? Slabs, footings and posts
- How to calculate a ship's CII rating, step by step
- Hull and propeller performance in service with ISO 19030