How this calculator works
A pipe can be too small in two ways, and this calculator checks both. Push a given flow through it and the water travels at a velocity set by the bore - too fast and it erodes fittings and hammers the line when a valve shuts. Along the run the water also gives up pressure to friction against the pipe walls - too much and the far end runs weak. Both come straight from the flow, the inside diameter, the pipe material and the run length:
velocity = flow ÷ bore area, bore area = (π ÷ 4) × inside diameter²
Hazen-Williams friction (head loss in metres of water over the run):
hf = 10.67 × length × flow^1.852 ÷ ( C^1.852 × inside diameter^4.8704 )
pressure drop: 1 m of head = 1.422 psi = 9.807 kPa
min. inside diameter to stay under the limit:
d_min = √( flow ÷ (velocity limit × π ÷ 4) )
The Hazen-Williams formula is the water-industry standard for water near room temperature. The two things to notice: friction loss rises a little faster than the flow (to the power 1.852) and grows with the length, but it falls steeply as the bore grows (to the power 4.87) - which is why stepping up one pipe size cuts the loss so sharply. The C value is the pipe’s roughness, higher for smoother pipe; picking the material sets it. Everything runs in exact metric (cubic metres per second, metres, metres of head) internally, so switching between GPM / inches and L/min / millimetres never changes the answer.
Worked example
This example follows the unit system you pick in the calculator above.
30 L/min through a 25 mm class PVC line (inside diameter ≈ 20 mm), C = 150, over a 40 m run:
- Convert: 30 L/min = 0.0005 m³/s; 20 mm = 0.020 m.
- Bore area = (π ÷ 4) × 0.020² = 0.000314 m².
- Velocity = 0.0005 ÷ 0.000314 = 1.02 m/s - at or below the 1.5 m/s limit, so it passes.
- Friction loss over 40 m by Hazen-Williams works out to about 1.95 m of head = 19 kPa.
- Minimum inside diameter to stay at the 1.5 m/s limit: √(0.0005 ÷ (1.5 × π ÷ 4)) ≈ 21 mm, so 20 mm is fine here.
Common pipe sizes and inside diameters
The friction loss depends on the inside diameter (the bore), not the nominal (marked) size, which is just a label. Schedule 40 PVC is sold by nominal inch size; metric markets sell class-rated PVC and poly by outside diameter. These are typical figures - confirm the bore against the spec of your exact pipe, since a thicker wall (higher schedule or class) means a smaller inside diameter:
Poly (PE) and MDPE tubing vary more by manufacturer, so read the inside diameter off the roll’s spec. When in doubt, enter a measured bore using the Custom option in the size list.
Hazen-Williams C values by material
The C value is the pipe’s smoothness - higher means less friction loss. The calculator sets it from the material you pick:
Old, scaled or corroded pipe runs a lower C than new, so a real-world line loses a little more than the clean figure - leave some headroom in your pressure budget.
Tips for sizing a pipe
- Size on the longest run. Use the distance from your source to the furthest outlet; that is the worst case the line must deliver against.
- Check both limits. A pipe can pass the velocity check but still lose too much pressure on a long run, or the other way round - look at both numbers, not just one.
- Step up if it fails. Because loss falls with the bore to the 4.87 power, going up one pipe size cuts the friction loss sharply and drops the velocity too.
- Enter the real bore. Use the inside diameter from the spec sheet, not the nominal label - they are not the same, especially in thicker schedules and classes.
- Leave a margin. The C values are for clean pipe; older pipe is rougher, so do not size right at your pressure limit.
For the full method see what size pipe for a sprinkler system, and to choose the pipe itself, PVC vs poly pipe for irrigation.
Sizing an irrigation system? Work out the flow each zone carries first with the sprinkler zone calculator, then bring that flow here to confirm the pipe to each zone is big enough.
Pipe sizing where you are
In the United Kingdom, flow is rated in litres per minute (L/min) and pipe is sized as metric pipe in millimetres (for example 25 mm or 32 mm class-rated PVC). Enter your flow and
the pipe's inside diameter in those units in the calculator above and it sizes the run to match.
Buried supply pipe is typically blue MDPE (polyethylene) in metric sizes, with class-rated PVC for above-ground runs. Pipe is specified by its outside diameter, so check the wall thickness (class/SDR) to get the inside bore the calculator needs.