Skip to content
You Start with one site
Amounts in Start with one site
Control, Measurement & Energy · Course

Pipe Friction and Fitting Losses

Lesson 3 of 10 21 min read
Found this useful?

A pipe one size too small is bought once and paid for every day after. The pump works against friction that a larger pipe would not have, the tank fills slowly, and the electricity bill carries the difference for as long as the pipe stays in the ground. Nobody sees this loss, because the water still arrives. This lesson shows how to calculate the head that a pipe and its fittings take from the water, and how to turn that head into a yearly cost. You will find the loss in a real rising main, then compare three pipe sizes for the same flow. #FluidMechanics #PipeFriction #DarcyWeisbach

Learning Objectives

By the end of this lesson, you will be able to:

  1. Calculate the Reynolds number of a pipe flow and say whether the flow is laminar or turbulent
  2. Find the friction factor from the Swamee-Jain formula and check it against the Colebrook equation
  3. Calculate the friction loss in a pipe and the loss in its fittings from their K values
  4. Explain why the loss depends on roughly the inverse fifth power of the diameter
  5. Convert a friction loss into energy per cubic metre and a yearly cost

Real-World System Problem: A rising main from a borehole to a tank



A site takes its water from a borehole. A submersible pump pushes the water up 70 m of pipe inside the borehole and then along 450 m of pipe on the ground to a storage tank on a stand. The pipe is uPVC with an inside diameter of 63 mm. On the way the water passes a non-return valve, four bends and a gate valve, and then leaves the pipe into the tank.

The pump must lift the water and also push it through the pipe. The lift is fixed by the levels. The push is friction, which depends on the flow, the length, the diameter and the inside surface of the pipe. Guess the friction too low and the pump delivers less than promised. Choose a small pipe to save money on the day of purchase and the site pays for the extra friction in electricity for twenty years.

The site uses 110 m³ of water a day, so every metre of head lost in this pipe is lost 110 times a day.

NRVgatePumpTank(exit)450 m along the groundbendbendsground70 m in the boreholeuPVC, 63 mm insidetotal length 520 m
The rising main and its fittings

Fundamental Theory: Where the head goes



Friction turns head into heat

Water touches the pipe wall, and the layer of water at the wall does not move. The water in the middle moves fastest. Between the two, layers of water slide past each other and rub. That rubbing turns useful energy into a very small amount of heat, which is lost. In the energy equation it appears as the term , a head in metres.

The loss has two parts. The friction loss happens along every metre of straight pipe. The fitting loss (also called minor loss) happens at each valve, bend, entry and exit, where the flow is disturbed.

Two kinds of flow and the Reynolds number

At low speed, water moves in smooth parallel layers, like cars that keep to their lanes: laminar flow. At higher speed the layers break into small eddies that mix across the pipe, like a crowd crossing a market: turbulent flow, and the mixing makes the loss much larger.

One number tells you which kind you have: the Reynolds number, which compares the momentum of the flow with the viscous forces that keep it orderly.

Reynolds number

is the mean velocity in m/s, is the inside diameter in m, and is the kinematic viscosity in m²/s. For water at 20 °C, . The Reynolds number has no units.

For flow in a round pipe:

  • below about : laminar
  • from about to : transitional, unsteady and hard to predict
  • above about : turbulent

Water in working pipes is nearly always turbulent. In the 63 mm rising main, the flow would have to fall to about 0.41 m³/h before it became laminar. Laminar flow matters for thick liquids such as oil, and for water in very small tubes.

LaminarTurbulentfastestat centresmooth layers,mixed, flatter profile,small lossthin slow layer at wall
Velocity across the pipe in the two kinds of flow

The Darcy-Weisbach equation

The friction loss in a straight pipe of length is given by the Darcy-Weisbach equation.

Friction loss in a pipe

is the friction factor (no units), and are in m, and is the velocity head in m, with .

Read the equation in three pieces. The velocity head is the kinetic energy of the water, written as a head. The ratio says how many diameters long the pipe is. The friction factor says what fraction of one velocity head is lost in each diameter of length. The whole problem is to find .

The friction factor in laminar flow

In laminar flow the friction factor has an exact formula, and the roughness of the wall does not matter.

Do not use this formula for turbulent flow. At it gives , about twenty times too small.

The friction factor in turbulent flow

In turbulent flow, depends on the Reynolds number and on the relative roughness , where is the average height of the roughness on the wall. Typical values of are 0.0015 mm for uPVC and drawn tube, 0.045 mm for new commercial steel, and 0.26 mm for cast iron. An old corroded pipe can be much rougher than a new one.

The Colebrook equation gives for turbulent flow:

It has on both sides, so it must be solved by repetition: guess , calculate the right side, get a new , and repeat until it stops changing. Four or five rounds are enough.

The Swamee-Jain formula gives nearly the same answer in one step.

Swamee-Jain friction factor

It agrees with Colebrook to within about 1 to 3 percent for and .

The Moody chart as a picture

The Moody chart plots the Colebrook equation. You do not need it to calculate, but its shape tells you what will do.

f0.10laminarrough pipe: flat lines,0.0564/ReεD=0.03εD=0.010.03ε/D = 0.0010.02ε/D = 0.00010.01smooth pipeRe10^310^410^510^6
The shape of the Moody chart (both axes logarithmic)

Three things follow from the picture.

  • On the left, the single straight line is laminar flow. Roughness has no effect there.
  • For a smooth pipe, keeps falling as rises. A uPVC pipe is close to this lowest curve.
  • For a rough pipe at high , the line becomes flat. Then depends only on , and the loss is exactly proportional to .

For water in ordinary pipes, is nearly always between 0.015 and 0.04. A calculated value outside that range is a signal to check the units.

Losses in fittings

Each fitting loses a number of velocity heads. That number is the loss coefficient .

Typical values: a 90° bend 0.9, a fully open gate valve 0.2, a swing non-return valve 2.0, a strainer 2.5 when clean, an exit into a tank 1.0. The values change with the size and the maker of the fitting, so treat any table as typical and use the maker’s figure when you have it. Because the fittings on one pipe share the same velocity, you add their K values and multiply once.

The exit value of 1.0 is exact, not typical. Water that leaves a pipe into a tank loses all of its velocity head, whatever the shape of the pipe end.

Equivalent length

Some designers prefer to turn fittings into extra pipe. The equivalent length is the length of straight pipe that loses the same head as the fitting.

You then add to the real length and use the Darcy-Weisbach equation once. Both methods give the same answer. The K method is more direct, because changes when changes.

How strongly the loss depends on diameter

Replace the velocity by the flow, using with in m³/s.

Friction loss written with flow

For a fixed flow and a fixed friction factor, the loss is proportional to .

This is the inverse-fifth-power rule. A pipe with 20 percent less diameter has about times the loss. A pipe with twice the diameter has about one thirty-second of the loss.

The rule is approximate because is not fixed. At the same flow, a larger pipe has a lower Reynolds number (since ), so its is a little higher. For smooth pipes the true exponent is nearer 4.8 than 5. Application 2 tests the rule with real numbers.

Application 1: Friction and fitting loss in the rising main



Step 1: Velocity and Reynolds number

Click to reveal the velocity and the flow regime
  1. Convert the flow. The formulas need m³/s.

    The flow is 3.33 litres per second. ✅

  2. Pipe area.

    The inside area is 0.003117 m². ✅

  3. Velocity and velocity head.

    The water moves at 1.069 m/s and carries a velocity head of 0.0583 m. ✅

  4. Reynolds number.

    This is far above , so the flow is turbulent and the laminar formula does not apply. ✅

Step 2: Friction factor

Click to reveal the friction factor by two methods
  1. Relative roughness.

    The pipe is very nearly smooth. ✅

  2. Swamee-Jain. The two terms inside the logarithm are

    The second term is forty times the first. In this pipe the Reynolds number sets the friction, and the roughness has almost no part. ✅

  3. Result.

    The Swamee-Jain friction factor is 0.01957, which rounds to 0.0196. ✅

  4. Colebrook by repetition. Start from and put it into the right side of the Colebrook equation. The successive values are , , . The Colebrook friction factor is 0.01968. ✅

  5. Compare. Swamee-Jain is lower by percent. The K values of the fittings are known less well than that, so the one-step formula is good enough. This lesson continues with . ✅

Step 3: Friction loss, fitting loss and total

Click to reveal the losses
  1. Friction loss in 520 m of pipe.

    The pipe is diameters long and loses 9.41 m of head. ✅

  2. Sum of the K values.

    The fittings together lose 6.8 velocity heads. ✅

  3. Fitting loss.

    The fittings lose 0.40 m. ✅

  4. Total loss.

    The rising main loses 9.81 m of head at 12 m³/h, which is a pressure of . ✅

  5. Check a second way. The equivalent length of the fittings is . One Darcy-Weisbach calculation with gives . The Python script below prints the same 9.81 m. ✅

Application 2: The same flow in a smaller and a larger pipe



Step 1: Friction loss in each pipe

Click to reveal the three losses
  1. Repeat the method of Application 1 for each diameter. Each pipe has its own velocity, Reynolds number and friction factor.

    (mm) (m/s) (m)
    501.69884,5000.0186728.52
    631.06967,1000.019579.41
    800.66352,8000.020583.00

    The loss falls from 28.52 m to 3.00 m as the diameter rises from 50 mm to 80 mm. ✅

  2. Read the table. The larger pipe has the higher friction factor, because its Reynolds number is lower. Its loss is still far smaller, because its velocity head is much smaller. A friction factor alone says nothing about which pipe is better. ✅

Step 2: Energy and yearly cost

Click to reveal the cost of friction
  1. Energy per cubic metre for the friction head. Lifting one cubic metre through a head needs joules of hydraulic energy. The electrical energy is larger, because the pump and the motor both lose some.

    For the 63 mm pipe:

    Friction in the 63 mm pipe takes 0.0503 kWh for every cubic metre. ✅

  2. Volume in a year.

    The site pumps m³ a year. ✅

  3. Yearly energy and cost for each pipe.

    (mm)kWh per m³kWh per yearCost per year (currency units)
    500.15266,12673,516
    630.05032,02124,257
    800.01606447,729

    Friction costs currency units a year in the 63 mm pipe. ✅

  4. Difference against the 63 mm pipe. The 50 mm pipe costs more each year. The 80 mm pipe costs less each year. ✅

Step 3: Test the inverse-fifth-power rule

Click to reveal the test
  1. From 63 mm to 50 mm. The rule predicts . The calculated ratio is . The rule is 5 percent high. ✅

  2. From 63 mm to 80 mm. The rule predicts . The calculated ratio is . The rule is 5 percent low. ✅

  3. The true exponent. Between the 50 mm and 80 mm pipes,

    The loss follows in this smooth pipe, a little weaker than the fifth power, because the friction factor rises as the Reynolds number falls. ✅

  4. Check with the script. The Python script prints the same three losses, the ratios 3.031 and 0.319, and the same yearly costs. ✅

Verify It in Python



The script calculates the loss in the rising main, solves the Colebrook equation by repetition to check the Swamee-Jain value, then compares the three diameters and their yearly costs. It saves a plot of friction loss against diameter with the fifth-power rule drawn beside it.

friction_rising_main.py
"""Friction and fitting losses in a rising main, and what the diameter costs."""
import numpy as np
import matplotlib.pyplot as plt
RHO, G, NU = 998.0, 9.81, 1.004e-6 # water at 20 degC
EPS = 0.0015e-3 # m, uPVC roughness (typical)
LENGTH = 520.0 # m
K_SUM = 2.0 + 4 * 0.9 + 0.2 + 1.0 # non-return, 4 bends, gate valve, exit
ETA_PUMP, ETA_MOTOR = 0.62, 0.82
PRICE = 12.00 # currency units per kWh
DAILY = 110.0 # m3 per day
def swamee_jain(re, rel):
return 0.25 / np.log10(rel / 3.7 + 5.74 / re**0.9) ** 2
def colebrook(re, rel, f=0.02):
"""Solve the Colebrook equation by repeated substitution."""
for _ in range(50):
f = 1.0 / (-2.0 * np.log10(rel / 3.7 + 2.51 / (re * np.sqrt(f)))) ** 2
return f
def pipe(q_m3h, d, length=LENGTH, eps=EPS):
"""Return V, Re, f (Swamee-Jain), velocity head, friction loss."""
q = q_m3h / 3600.0
v = q / (np.pi * d**2 / 4.0)
re = v * d / NU
f = swamee_jain(re, eps / d)
hv = v**2 / (2.0 * G)
return v, re, f, hv, f * length / d * hv
# ---------- Application 1: rising main, 63 mm, 12 m3/h ----------
Q, D = 12.0, 0.063
v, re, f, hv, hf = pipe(Q, D)
fc = colebrook(re, EPS / D)
hm = K_SUM * hv
print("Application 1: rising main, 63 mm, 12 m3/h")
print(f" V = {v:.3f} m/s, Re = {re:.0f}, velocity head = {hv:.4f} m")
print(f" f Swamee-Jain = {f:.5f}, f Colebrook = {fc:.5f}, "
f"difference = {100 * (f - fc) / fc:.2f} %")
print(f" laminar formula 64/Re would give {64 / re:.5f} (not valid here)")
print(f" friction loss = {hf:.2f} m, sum of K = {K_SUM:.1f}, "
f"fitting loss = {hm:.3f} m, total = {hf + hm:.2f} m")
print(f" equivalent length of the fittings = {K_SUM * D / f:.1f} m")
print(f" pressure lost = {RHO * G * (hf + hm) / 1000:.1f} kPa")
# ---------- Application 2: three diameters ----------
print("Application 2: 12 m3/h through 520 m, three diameters")
rows = {}
for d in (0.050, 0.063, 0.080):
v, re, f, hv, hf = pipe(Q, d)
kwh_m3 = RHO * G * hf / (ETA_PUMP * ETA_MOTOR) / 3.6e6
cost = kwh_m3 * DAILY * 365 * PRICE
rows[d] = (hf, cost)
print(f" D = {1000 * d:.0f} mm: V = {v:.3f} m/s, Re = {re:.0f}, f = {f:.5f}, "
f"h_f = {hf:.2f} m, {kwh_m3:.4f} kWh/m3, "
f"{kwh_m3 * DAILY * 365:.0f} kWh/year, cost {cost:.0f} per year")
base_h, base_c = rows[0.063]
for d in (0.050, 0.080):
h, c = rows[d]
print(f" {1000 * d:.0f} mm against 63 mm: loss ratio {h / base_h:.3f}, "
f"fifth-power rule {(0.063 / d) ** 5:.3f}, "
f"cost difference {c - base_c:+.0f} per year")
# ---------- Plot: friction loss against diameter ----------
dd = np.linspace(0.045, 0.110, 200)
loss = np.array([pipe(Q, d)[4] for d in dd])
fig, ax = plt.subplots(figsize=(7, 4.5))
ax.plot(1000 * dd, loss, label="Darcy-Weisbach with Swamee-Jain")
ax.plot(1000 * dd, base_h * (0.063 / dd) ** 5, "--", label="fifth-power rule from 63 mm")
for d in rows:
ax.plot(1000 * d, rows[d][0], "o", color="black")
ax.set_xlabel("inside diameter (mm)")
ax.set_ylabel("friction loss over 520 m (m)")
ax.set_title("12 m3/h of water: loss against pipe diameter")
ax.set_yscale("log")
ax.legend()
fig.tight_layout()
fig.savefig("friction_rising_main.png", dpi=120)
print("Saved friction_rising_main.png")

Expected output

Application 1: rising main, 63 mm, 12 m3/h
V = 1.069 m/s, Re = 67099, velocity head = 0.0583 m
f Swamee-Jain = 0.01957, f Colebrook = 0.01968, difference = -0.60 %
laminar formula 64/Re would give 0.00095 (not valid here)
friction loss = 9.41 m, sum of K = 6.8, fitting loss = 0.396 m, total = 9.81 m
equivalent length of the fittings = 21.9 m
pressure lost = 96.0 kPa
Application 2: 12 m3/h through 520 m, three diameters
D = 50 mm: V = 1.698 m/s, Re = 84544, f = 0.01867, h_f = 28.52 m, 0.1526 kWh/m3, 6126 kWh/year, cost 73516 per year
D = 63 mm: V = 1.069 m/s, Re = 67099, f = 0.01957, h_f = 9.41 m, 0.0503 kWh/m3, 2021 kWh/year, cost 24257 per year
D = 80 mm: V = 0.663 m/s, Re = 52840, f = 0.02058, h_f = 3.00 m, 0.0160 kWh/m3, 644 kWh/year, cost 7729 per year
50 mm against 63 mm: loss ratio 3.031, fifth-power rule 3.176, cost difference +49259 per year
80 mm against 63 mm: loss ratio 0.319, fifth-power rule 0.303, cost difference -16528 per year
Saved friction_rising_main.png

On the plot, the calculated curve and the fifth-power line cross at 63 mm and separate slowly on both sides. Over one pipe size the rule is within 5 percent, which is enough for a first choice of diameter.

Common Mistakes



  • Using the nominal size of the pipe as the diameter. A 75 mm nominal uPVC pipe has an inside diameter of about 63 mm. Because of the fifth power, that difference more than doubles the loss.
  • Leaving the flow in m³/h inside the formulas. Convert to m³/s first, or the velocity is wrong by a factor of 3,600.
  • Applying to turbulent flow. It is valid only below a Reynolds number of about .
  • Taking a Fanning friction factor from a table and using it in the Darcy-Weisbach equation. The loss comes out four times too small.
  • Using one friction factor for every flow and every diameter. In a smooth pipe, changes with the Reynolds number, so calculate it again for each case.
  • Ignoring the fittings in a short pipe, or giving them great attention in a long one. Compare the sum of K with to see which part matters.

Summary



  • Friction in a pipe turns head into heat. The Darcy-Weisbach equation gives the loss as the friction factor, times the length in diameters, times the velocity head.
  • The Reynolds number decides the kind of flow. Below about the flow is laminar and . Water in working pipes is nearly always turbulent.
  • In turbulent flow the friction factor comes from the Colebrook equation or, in one step, from the Swamee-Jain formula. In the rising main the two differ by 0.6 percent.
  • Each fitting loses K velocity heads. In the 520 m rising main at 12 m³/h the pipe loses 9.41 m and the fittings 0.40 m, a total of 9.81 m.
  • At a fixed flow the loss follows roughly the inverse fifth power of the diameter, so the choice of pipe size sets the energy cost for the life of the pipe.

Exercises



1. Water at 20 °C () flows at 0.05 m/s in a tube of 25 mm inside diameter. Find the Reynolds number, state the kind of flow, and find the friction factor and the head loss over 10 m.

Answer

, so the flow is laminar. . The velocity head is m, so m, which is 2.6 mm.

2. Water at 20 °C flows at 18 m³/h in a commercial steel pipe of 80 mm inside diameter, mm, length 100 m. Find the velocity, the Reynolds number, the Swamee-Jain friction factor and the friction loss.

Answer

m/s. . With , Swamee-Jain gives . The velocity head is 0.0504 m, so m.

3. The pipe of Exercise 2 has a strainer () and one bend (). Find the fitting loss at 18 m³/h and the equivalent length of the two fittings.

Answer

m. m.

4. The flow in the rising main of Application 1 rises to 15 m³/h. Find the new friction factor, the friction loss, the fitting loss and the total loss.

Answer

m/s, , , velocity head 0.0911 m. m and m. The total is 14.65 m. The flow rose by 25 percent and the loss by 49 percent.

5. For the flow of Application 2, find the friction loss in a uPVC pipe of 100 mm inside diameter and 520 m length. Compare it with the value that the inverse-fifth-power rule gives from the 63 mm result.

Answer

m/s, , , so m. The rule gives m, about 10 percent low, because the friction factor has risen from 0.01957 to 0.02163. The rule becomes less exact as the change of diameter grows.

6. An 80 mm pipe costs 150 currency units per metre more than a 63 mm pipe, bought and laid. Using the yearly friction costs of Application 2 for 520 m, find the extra cost and the time it takes to pay back.

Answer

Extra cost currency units. The yearly saving is . Payback years, at a fixed flow of 12 m³/h and a fixed price of energy.

References



  • F. M. White, Fluid Mechanics, 8th edition, McGraw-Hill, 2016.
  • Y. A. Çengel and J. M. Cimbala, Fluid Mechanics: Fundamentals and Applications, 4th edition, McGraw-Hill, 2018.
  • Crane Co., Flow of Fluids Through Valves, Fittings and Pipe, Technical Paper No. 410.
  • P. K. Swamee and A. K. Jain, “Explicit equations for pipe-flow problems”, Journal of the Hydraulics Division, ASCE, vol. 102, 1976.


© 2021-2026 SiliconWit®. All rights reserved.
Predict first

Water flows at 12 m³/h through 520 m of smooth pipe with an inside diameter of 100 mm. The pipe is replaced by one of 50 mm, half the diameter, and the flow is held the same. By about how much does the friction loss rise?

See it: what the pipe takes from the water

Velocity V
Reynolds number Re
Friction factor f
Friction loss
Energy for the loss in a year
Cost in a year, currency units

The bars show the friction loss in the five pipe sizes at the same flow, length and roughness. The gold bar is the chosen size. The right-hand plot has the shape of the Moody chart: the friction factor against the Reynolds number, both on logarithmic axes, for the three roughness choices at the chosen diameter. The dot is the operating point. The friction factor comes from the Swamee-Jain formula, as in the lesson. Only the straight pipe is counted, with no fittings. The yearly energy and cost use the lesson's assumptions: 110 m³ a day on every day of the year, a pump efficiency of 0.62, a motor efficiency of 0.82 and 12.00 currency units per kWh. The flow is held at the chosen value, but a real pump delivers less when the friction is larger.

laminar: smooth layersturbulent: eddies mix Water in working pipes is nearly always turbulent.
50 mm63 mm80 mm 6,126 kWh2,021 kWh644 kWh Friction energy each year, 110 m³ a day.

Check yourself

Three questions. Each wrong choice is a mistake people really make, so read the note after you answer.

1. The 63 mm rising main loses 9.41 m in 520 m at 12 m³/h. The flow is doubled to 24 m³/h. What is the friction loss now?

2. At 12 m³/h the friction factor is 0.0187 in a 50 mm pipe and 0.0206 in an 80 mm pipe. Both pipes are smooth and 520 m long. Which pipe loses more head?

3. After many years the inside of a 63 mm pipe is as rough as 0.5 mm, in place of 0.0015 mm when it was new. The flow is still 12 m³/h and the length 520 m. What happens to the friction loss?

Watch it build: the fittings of the rising main
one velocity headV²/2g = 0.058 m 2.0 0.2 0.90.9 0.90.9 ΣK = 2.0 + 3.6 + 0.2= 5.8 velocity heads 1.0 ΣK = 6.86.8 × 0.058= 0.40 m Lₑ = 6.8 × 0.063 ÷ 0.0196= 21.9 m of pipe 520 + 21.9 = 541.9 mloss 9.81 mfittings: 4 %
  1. A fitting loses K velocity heads. At 12 m³/h in 63 mm, one velocity head is 0.058 m.
  2. Non-return valve 2.0, four bends 0.9 each, gate valve 0.2: together 5.8.
  3. The exit into the tank loses all of its velocity head, 1.0. ΣK = 6.8, a loss of 0.40 m.
  4. As pipe: Lₑ = K D ÷ f = 6.8 × 0.063 ÷ 0.0196 = 21.9 m.
  5. One calculation with 541.9 m gives 9.81 m. The fittings are only 4 % of it.
tank exit into the tank, K 1.0 non-return K 2.0 gate K 0.2 450 m along the ground bends, K 0.9 each, four in all 70 m in the borehole uPVC, 63 mm inside total length 520 m pump ground
The rising main and its fittings
Laminar smooth layers, fastest at the centre; small loss Turbulent mixed, flatter profile, thin slow layer at the wall
Velocity across the pipe in the two kinds of flow
10 3 10 4 10 5 10 6 10 7 0.01 0.02 0.03 0.05 0.1 Re (logarithmic) f (logarithmic) laminar, 64 / Re ε/D = 0.03 ε/D = 0.01 ε/D = 0.001 ε/D = 0.0001 smooth pipe rough pipe: flat lines at high Re transition
The shape of the Moody chart (both axes logarithmic)
Found this useful?

Discussion

    Comments show your name. Be kind, stay on the topic.