Formula: Darcy-Weisbach Pressure Loss Calculator
- : Mean pipe velocity
- : Reynolds number
- : Darcy friction factor
- : Combined minor-loss coefficient
Calculate pipe velocity, Reynolds number, friction factor, head loss and pressure drop.
Estimate water flow losses with a 0.045 mm roughness and entered fittings coefficient.
Use a verified material/condition reference or manufacturer data; roughness changes with material, age, corrosion, and deposits.
Colebrook is implicit: the friction factor appears on both sides, so it needs iteration. Swamee and Jain is an explicit fit that gives the friction factor in one step and stays within a few percent of Colebrook over the usual range of roughness and turbulent Reynolds numbers. For the default case it returns 0.02157, which is close to what an iterated Colebrook solution would give.
Add up the K values for each elbow, tee, valve, entrance and exit along the run and enter the total. Published K values vary with fitting type, size and manufacturer, so use the data for your actual parts where you can. The default of 2 is only a placeholder. Setting it to 0 shows the straight-pipe loss on its own, which is 0.134 m in the default case.
No. Density does not appear in the head-loss formula, so the result in metres is the same for any fluid with the same viscosity and flow. Density only matters when the head is converted to pressure using ρgh. A heavier fluid gives a larger kPa figure for the same metres of head, and a lighter one gives a smaller figure.
Only for low-speed gas flow where the pressure drop is small compared with the absolute pressure, so the density stays nearly constant. The engine assumes incompressible flow. For compressed air lines with large drops, or high-velocity gas, the density changes along the pipe and a compressible-flow method is needed. Enter gas kinematic viscosity in m²/s if you do try it.
Only the straight-pipe term scales with length. The fittings term, ΣK times the velocity head, is fixed. In the default, straight pipe gives about 0.134 m and fittings about 0.041 m. Going to 60 m doubles the first part but not the second, so the total becomes 0.309 m rather than twice 0.175 m. With ΣK set to 0 the result would scale exactly with length.
Run each section separately with its own diameter, length and fittings, using the same flow rate for all of them, since flow is conserved in a single line. Then add the head losses together. Reducers and expansions between sections have their own K values, which you can include in the section on either side of the change.
It tells you which flow regime the engine assumed. A low value means laminar flow and the 64/Re friction factor; a high value means turbulent flow and the Swamee and Jain formula. Values near the switch point are in the transition band, where results are uncertain. The default 63,662 is well into turbulent flow, so the friction factor estimate there is on solid ground.
It is the Darcy factor, which is four times the Fanning factor. Some heat-transfer and chemical-engineering texts use Fanning, so a value around 0.005 from those sources corresponds to roughly 0.02 here. Mixing the two is a classic source of a fourfold error, so check which one any reference table is giving before comparing it with this page.
The display rounds head loss to three decimal places and pressure to two. At very small flows the real loss is less than half a millimetre of head, so it rounds to zero. The friction factor and Reynolds number lines still show the underlying values. If you need the tiny figure, scale up the length or work the formula by hand from the velocity shown.
No. The calculator covers friction in the pipe and losses through fittings only. Elevation change, the pressure required at the outlet and losses in other parts of the system all have to be added separately to get total system head. The page's limitation note also lists pipe networks, pump curves and water hammer as outside its scope.
The default case is a short, ordinary water line. It carries 0.005 m³/s (five litres a second) through a pipe with a 0.1 m bore over 30 m of length. The wall roughness is 0.000045 m, the kinematic viscosity is 0.000001 m²/s, which is close to water at room temperature, and the density is 998 kg/m³. The fittings along the way are lumped into a single minor-loss coefficient of 2.
With those inputs the calculator reports a total head loss of 0.175 m and a pressure loss of 1.71 kPa. Behind that sit three intermediate numbers that are worth reading in order: a mean velocity of 0.637 m/s, a Reynolds number of 63,662 and a Darcy friction factor of 0.02157.
A head loss of 0.175 m means the pump, or the elevation of the supply tank, has to provide an extra 17.5 cm of water column just to push the flow through this run. In pressure terms that is 1.71 kPa, a small figure for a single short pipe. It grows quickly once you lengthen the line, shrink the bore or push more flow, which is exactly what the tool is for.
The calculation runs in a fixed chain. First the pipe's cross-sectional area is found from the inside diameter, A = πD²/4. For a 0.1 m bore that is about 0.00785 m². Dividing the flow by that area gives the mean velocity, 0.637 m/s in the default.
Next comes the Reynolds number, Re = vD/ν. It compares inertia with viscous drag. At 0.637 m/s, a 0.1 m bore and a viscosity of 0.000001 m²/s it comes out at 63,662, which is firmly turbulent.
The friction factor then depends on which regime the flow is in. Below a Reynolds number of two thousand three hundred the engine treats the flow as laminar and uses f = 64/Re. Above that it uses the Swamee and Jain explicit approximation of the Colebrook equation: f = 0.25 / [log10(ε/(3.7D) + 5.74/Re^0.9)]². For the default, ε/D is 0.00045, and working that through by hand gives 0.02157, the same as the page.
Finally the head loss is h = (fL/D + ΣK) × v²/(2g), with g taken as 9.80665 m/s². The pressure loss is simply ρ × g × h. Checking the default by hand: fL/D works out at about 6.47, since the pipe is three hundred diameters long. Adding ΣK of 2 gives 8.47. The velocity head v²/(2g) is about 0.0207 m. Multiply and you get 0.175 m, and 998 × 9.80665 × 0.175 gives roughly 1.71 kPa.
The chart on the page separates the total into straight-pipe friction and fittings. You can reproduce that split from the numbers above. The straight pipe contributes fL/D × v²/(2g), about 0.134 m. The fittings contribute ΣK × v²/(2g), about 0.041 m. Together they make the 0.175 m total. Setting the minor-loss coefficient to 0 confirms it: the calculator then reports 0.134 m and 1.31 kPa.
That ratio tells you where to spend effort. In this default about three quarters of the loss is in the pipe itself, so a bigger bore would help more than a smarter choice of elbows. On a short run packed with valves, strainers and tees, the balance flips. A ΣK of 10 or more on a few metres of pipe can make the fittings the dominant term, and then the friction factor hardly matters.
One consequence surprises people. Doubling the pipe length to 60 m does not double the answer. The calculator gives 0.309 m, not 0.350 m, because only the straight-pipe part scales with length. The fittings loss stays at the same 0.041 m however long the line is.
Diameter is the input with the strongest effect, because it appears twice. A smaller bore raises the velocity, and the loss goes with velocity squared. It also raises L/D directly. Dropping the inside diameter from 0.1 m to 0.08 m, a 20% cut, lifts the velocity to 0.995 m/s and the Reynolds number rises by a quarter. The friction factor falls slightly to 0.0213, but the head loss still jumps to 0.504 m and the pressure loss to 4.93 kPa. That is nearly three times the default from a modest change in pipe size.
Flow rate behaves in a similar way. The page's lower preset, 0.003 m³/s, gives 0.067 m of head and 0.66 kPa. The higher preset uses 0.0075 m³/s and gives 0.376 m and 3.68 kPa. A 50% increase in flow produces a little more than double the loss. The relationship is not quite a square law, because the friction factor drifts down as Re rises: it is 0.02357 at the low flow, 0.02157 at the default and 0.02032 at the high flow.
This is why pipe sizing is usually done backwards from an acceptable loss. Pick the head loss you can afford, then try bores until the result falls under it. The calculator answers each trial in one step, so iterating through two or three standard sizes takes a minute.
Absolute roughness is the input people are least sure about, and the page already points you to material and manufacturer data for it. What the calculator can show is how much it matters. At the default flow, setting roughness to 0 (a hydraulically smooth wall) gives f = 0.01968 and 0.163 m of head. Raising it to 0.0015 m, a very rough or heavily scaled wall, gives f = 0.04474 and 0.319 m. The same pipe and flow, and the loss nearly doubles from wall condition alone.
The smooth-wall case is also a useful sanity check. The default 0.000045 m roughness, with its friction factor of 0.02157 and 0.175 m of head, only adds about 7% over a perfectly smooth pipe here. At higher Reynolds numbers roughness matters more, because the viscous layer at the wall gets thinner and the bumps poke through it.
Viscosity enters only through the Reynolds number. Halving it to 0.0000005 m²/s, roughly what water does when it warms up a lot, doubles Re and trims the head to 0.163 m. For water the effect of temperature is modest in turbulent flow. For oils, glycol mixes or anything far thicker than water, viscosity can push the flow into the laminar range, and then the answer changes character completely.
Density, by contrast, does not touch the head loss at all. It only converts head into pressure. If you change 998 kg/m³ to some other value, the metres stay the same and only the kPa figure moves.
Turn the flow right down and the formula switches. At 0.0001 m³/s in the default pipe the velocity is 0.013 m/s and the flow is laminar, so the engine uses 64/Re and reports f = 0.05027. The head loss rounds to 0 m on screen, because the display keeps three decimals and the real figure is a fraction of a millimetre.
Between laminar and fully turbulent there is a transition band where neither formula is reliable. The engine does not have a separate model for it; it jumps from 64/Re to Swamee and Jain at a single Reynolds number. Try a flow of 0.0002 m³/s and Re lands just above that switch point with f = 0.04743. Treat any result in that region as a rough order of magnitude, as the page's own limitation note says.
The default, at a Reynolds number of 63,662, is nowhere near that band. In practice most water distribution, irrigation and HVAC pipes run well into the turbulent range, so the transition gap rarely bites. It matters more for small tubes, slow drainage, or viscous fluids.
Every input is SI and the calculator does not convert. The most common slip is entering the diameter in millimetres. Type 100 instead of 0.1 and the engine treats it as a 100 m bore: the velocity collapses to effectively zero and the head loss shows 0 m. If the velocity line reads something tiny for a normal pipe, check the diameter first.
Flow is the next trap. The field expects cubic metres per second. Five litres a second is 0.005 m³/s, as in the default, and cubic metres per hour must be divided by the number of seconds in an hour. Entering 5 for five litres a second asks for a thousand times the intended flow and produces an absurd loss.
Roughness is also in metres, so a value quoted as 0.045 mm becomes 0.000045 m. Viscosity is kinematic, in m²/s, not dynamic viscosity in Pa·s. If you only have the dynamic value, divide it by density before entering it.
A quick habit helps: after entering your numbers, look at the velocity line. Water in a building or process pipe typically moves at a fraction of a metre to a few metres per second. A velocity wildly outside that range almost always means a unit mistake rather than an unusual system. The default's 0.637 m/s is a typical, unremarkable figure.
The head loss from this page is one piece of a total system head. To size or check a pump you also need the static lift between the source and the outlet, any required delivery pressure at the end, and the losses in every other section of pipe. Run each section with its own diameter, length and fittings, then add the metres together.
That total head, along with the flow, is what the pump power calculator on this site takes as input. Remember that both numbers move together: if you raise the flow, the friction head rises too, so the pump's duty point shifts. Real pumps follow a curve, and the operating point is where that curve meets the system curve you are building here.
For a quick comparison of options, keep everything else fixed and change one input at a time. At the page's higher flow preset, the same pipe needs 0.376 m of head, so the friction term grows quickly with duty. The default case shows that going from 0.1 m to 0.08 m bore nearly triples the loss, while doubling the length less than doubles it. Numbers like that make the trade between pipe cost and pumping energy concrete.