Irrigation Mainline Size Calculator

Find the smallest Class 200 PVC mainline size that keeps velocity at or under 5 ft/s and keeps friction loss within your allowable pressure loss, using the Hazen-Williams equation.

Your mainline

Results update as you type. The elevation field is optional.

Units
gpm

The highest flow the mainline will ever carry at once — usually the total of every zone that runs at the same time. How to find this

ft

Measure along the pipe route, not the straight-line distance. Add extra length for fittings if the run has more than a few. More on fittings

ft

Rise from source to point of use as a positive number, fall as a negative number. Leave blank if the run is flat.

psi

Pressure available at the source minus the pressure needed at the point of use. How to work this out

Pipe material

Recommended mainline size

Smallest Class 200 PVC size that meets both limits.

Enter your peak flow, length and allowable pressure loss to see:

  • the smallest mainline size that fits
  • velocity at that size, compared with the 5 ft/s limit
  • friction loss over the full run, compared with your pressure budget

How much pressure loss can a mainline afford?

An irrigation mainline has to do two things at once: carry water without exceeding a safe velocity, and get that water to the point of use without losing more pressure to friction than the system can spare. Undersize the pipe and both problems show up together — the water moves too fast, risking water hammer, and friction eats pressure the heads or emitters need to perform.

Oklahoma State University and Texas A&M AgriLife extension guidance both describe a 5 feet per second velocity limit for PVC mainline pipe as the standard way to control water hammer, the pressure surge produced by a sudden change in flow, such as a valve closing. Some references note that velocity should never exceed 10 ft/s under any circumstances. This calculator enforces the 5 ft/s limit and won't recommend a size that exceeds it, even if a smaller size would otherwise pass on pressure loss alone.

Design velocity guidance for PVC irrigation mainline pipe.
GuidanceVelocitySource
Recommended design limit5 ft/sTexas A&M AgriLife Extension; University of Florida IFAS Extension
Absolute upper limit10 ft/sTexas A&M AgriLife Extension

The other half of the budget is pressure. Your allowable pressure loss is whatever is left over after subtracting the pressure your valves, heads or emitters need to work correctly, and any fixed losses through a backflow preventer or filter, from the pressure available at the source. The available irrigation pressure calculator and backflow preventer pressure loss calculator can help you arrive at that number before using this tool.

This tool checks velocity and friction loss only. It doesn't check pipe pressure rating against your system's static and surge pressure, and it doesn't include losses through valves, fittings or backflow devices unless you fold them into the length or the allowable pressure loss you enter.

How this mainline size calculator works

The calculator steps through Class 200 (SDR 21) PVC sizes from 3/4 inch to 6 inches, smallest first, and stops at the first size that passes two checks: velocity at or under 5 ft/s, and Hazen-Williams friction loss at or under your allowable pressure loss once elevation change is taken into account.

1. Velocity in the pipe

Velocity

V (ft/s) = 0.408 × Q (gpm) ÷ d² (in)

d is the pipe's inside diameter. This comes from continuity (flow = velocity × area) with the units converted to gpm and inches.

2. Friction loss (Hazen-Williams)

Friction loss per 100 ft, in feet of head

Hf = 0.2083 × (100 ÷ C)1.852 × Q1.852 ÷ d4.866

C is the Hazen-Williams roughness factor (150 for new PVC). Q is flow in gpm, d is inside diameter in inches.

Convert to psi and scale to your length

Friction loss (psi) = Hf × 0.433 × (Length ÷ 100)

0.433 psi per foot of head is water's own weight (62.4 lb/ft³ ÷ 144 in²/ft²), not a source-specific figure.

3. Elevation, converted to pressure

Elevation pressure

Elevation pressure (psi) = Elevation change (ft) × 0.433

A rise costs pressure; a fall (negative elevation) gives pressure back. This is subtracted from your allowable pressure loss to get the friction-loss budget: Friction budget = Allowable loss − Elevation pressure.

4. Choosing the size

For each pipe size, the calculator compares its velocity with 5 ft/s and its total friction loss (from step 2) with the friction budget (from step 3). The first size, in ascending order, that passes both checks is the recommended size. If a size fails velocity, its friction loss isn't even checked — it's already ruled out.

Pipe sizes used

Class 200 (SDR 21) PVC inside diameters used by this calculator.
Nominal sizeInside diameter
3/4 in0.910 in (23.1 mm)
1 in1.169 in (29.7 mm)
1 1/4 in1.482 in (37.6 mm)
1 1/2 in1.700 in (43.2 mm)
2 in2.129 in (54.1 mm)
2 1/2 in2.581 in (65.6 mm)
3 in3.146 in (79.9 mm)
4 in4.046 in (102.8 mm)
6 in5.955 in (151.3 mm)

These figures come from the Irrigation Association's published friction loss charts, cross-checked against Rain Bird's own Class 200 PVC reference table (sources below). Class 200 pipe is dimensioned by a constant SDR (standard dimension ratio), so its inside diameter differs slightly from Schedule 40 pipe of the same nominal size; use the sprinkler pipe size calculator if you specifically need Schedule 40 figures for lateral lines.

Rounding

Velocity is shown to 0.1 ft/s (0.01 m/s) and pressure figures to 0.1 psi (whole kPa), matching the precision used in the calculation. The recommended pipe size itself is a direct pass/fail result, not an estimate, so it isn't rounded or hedged with "about."

When this calculator isn't the right tool

This tool answers one question: the smallest Class 200 PVC mainline size for a given flow, length, elevation and pressure budget. Use a different tool for:

Mainline sizing calculation example

A pump delivers 100 gpm to a mainline running 400 feet to a valve manifold that sits 10 feet higher than the pump. The site has 12 psi to spend between the pump and the manifold, and the pipe is new PVC (C = 150).

  1. Elevation pressure: 10 ft × 0.433 = 4.33 psi.
  2. Friction-loss budget: 12 − 4.33 = 7.67 psi.
  3. Check 2 1/2 in (ID 2.581 in): velocity = 0.408 × 100 ÷ 2.581² = 6.1 ft/s — over the 5 ft/s limit. Ruled out.
  4. Check 3 in (ID 3.146 in): velocity = 0.408 × 100 ÷ 3.146² = 4.1 ft/s — passes. Friction loss: Hf = 0.2083 × (100/150)1.852 × 1001.852 ÷ 3.1464.866 ≈ 1.88 ft/100 ft, × 0.433 × (400/100) = 3.3 psi — within the 7.67 psi budget.
  5. Result: 3-inch Class 200 PVC. Total pressure used: 3.3 + 4.33 = 7.6 psi of the 12 psi available, leaving about 4.4 psi of margin.

The same calculation in metric

A pump delivers 380 L/min through 120 m of mainline, rising 3 m to the manifold, with 83 kPa available to spend, using new PVC (C = 150):

  1. Elevation pressure: 3 m rise converts to 9.84 ft, × 0.433 = 4.26 psi (29.4 kPa).
  2. Friction-loss budget: 83 − 29.4 = 53.6 kPa (12.04 − 4.26 = 7.78 psi).
  3. Check 2 1/2 in: 380 L/min converts to 100.4 gpm; velocity ≈ 6.1 ft/s (1.9 m/s) — over the limit. Ruled out.
  4. Check 3 in: velocity ≈ 4.1 ft/s (1.3 m/s) — passes. Friction loss over 120 m (393.7 ft) ≈ 3.2 psi, or about 22 kPa — within budget.
  5. Result: 3-inch Class 200 PVC (inside diameter 80 mm), the same physical pipe the US example arrives at, using pressure of about 51.6 kPa of the 83 kPa available.

Both examples land on the same pipe because they describe the same system in different units — a useful check that the calculator's unit conversions round-trip correctly.

Measuring your inputs

Peak flow rate

Use the highest flow the mainline will ever carry, not a typical or average flow. If the system runs one valve zone at a time, that's the flow of your largest single zone. If it runs multiple zones together, add up every zone that can run at once. A clamp-on flow meter, a water meter sweep-test (timing how fast the meter's test dial completes a revolution), or manufacturer flow ratings for your heads or emitters multiplied by their count all give a usable number. The bucket test calculator and water meter capacity calculator can help confirm what your source can actually deliver.

Mainline length

Measure along the actual pipe route — around beds, under driveways, along property lines — not the straight-line distance between the source and the point of use. If the run has more than a couple of elbows, tees or valves, add extra length for them: a common simplified allowance is an added 5 to 10% of the measured length for a short run with only a few fittings, or the fitting manufacturer's specific equivalent-length figures for a longer run with many fittings.

Elevation change

A phone altimeter app, a topographic map, or a simple string-and-line-level test between the two ends of the run are all workable ways to estimate elevation change for a residential or small commercial site. For a longer or more critical run, a surveyor's level gives a more precise number. Enter the net rise or fall from the source to the point of use, not the total up-and-down along a rolling site.

Allowable pressure loss

Start with the static pressure at your point of connection (measured with a pressure gauge on a hose bib with no water running), then subtract the pressure your valves, heads or emitters are rated to need, plus any known losses through a backflow preventer, master valve or filter. What's left is what the mainline itself can spend on friction. The available irrigation pressure calculator walks through that subtraction step by step, and the valve pressure loss calculator covers losses through individual valves.

Factors that change the recommended size

What moves the result, and what to adjust.
FactorEffect on the resultWhat to adjust
Peak flowFriction loss rises steeply with flow (to the 1.852 power), so a modest flow increase can push the result up a full pipe size.Use the true peak flow, not a typical one.
LengthFriction loss is directly proportional to length; doubling the run roughly doubles the friction loss at a given size.Measure the routed length, including a fitting allowance.
Elevation gainEvery foot of rise removes about 0.433 psi from the friction-loss budget, which can force a larger pipe even at low flow.Confirm elevation with a level or altimeter, not a guess.
Allowable pressure lossA tighter pressure budget forces a larger, lower-friction pipe; a looser one allows a smaller pipe.Recheck the pressure actually available at the source.
C-factor (pipe roughness)A lower C-factor (older or scaled pipe) increases friction loss for the same flow and size.Use 150 for new PVC; lower it for older pipe if you have reason to.
Fittings not included in lengthUnaccounted elbows, tees and valves add real friction loss the calculator won't see.Fold a fitting allowance into the length you enter.

Of these, peak flow and elevation are the two most common reasons a calculated size surprises people: an undercounted peak flow (assuming zones run separately when they actually overlap) understates both velocity and friction loss, while an ignored elevation gain quietly eats into the pressure budget before friction is even considered.

Frequently asked questions

What size PVC pipe do I need for an irrigation mainline?

It depends on your peak flow rate, the length of the run, any elevation change, and how much pressure you can afford to lose to friction. This calculator applies the Hazen-Williams equation to Class 200 PVC pipe sizes and returns the smallest size that keeps velocity at or under 5 ft/s and keeps friction loss within your allowable pressure loss. There is no single correct size without those numbers.

What is a safe velocity for irrigation mainline pipe?

Extension engineering guidance generally limits mainline velocity to 5 feet per second to control water hammer, the pressure surge that follows a sudden valve closure. Some sources note that velocity should never exceed 10 feet per second even in short runs. This calculator uses the 5 ft/s limit and will not recommend a size that exceeds it.

How much pressure loss can my mainline afford?

Your allowable pressure loss is the pressure you can spend on friction between the source and the point of use. It equals the pressure available at the source minus the pressure your valves, heads or emitters need to operate correctly, minus losses through backflow preventers, filters or other fixed devices. If you're not sure of that number, a static-to-dynamic pressure test at the point of connection is a reasonable starting point.

Does elevation change affect mainline sizing?

Yes. Water gains about 0.433 psi of pressure for every foot it falls, and loses about the same for every foot it rises. This calculator converts your elevation change to pressure and adds it to, or subtracts it from, your allowable pressure loss before checking each pipe size, so an uphill run leaves less pressure budget for friction and a downhill run leaves more.

What's the difference between Schedule 40 and Class 200 PVC pipe?

Both are common PVC pipe used for irrigation mains, but they're dimensioned differently. Schedule 40 pipe uses a wall thickness set for each nominal size, while Class 200 (SDR 21) pipe keeps a constant ratio between wall thickness and outside diameter, so its inside diameter differs from Schedule 40's at the same nominal size. Irrigation Association reference tables show, for example, that 3-inch Class 200 pipe has a larger inside diameter than 3-inch Schedule 40 pipe. This calculator uses Class 200 dimensions, the pipe type most often installed for irrigation mainlines.

How do I find my mainline's peak flow rate?

Add up the flow of every zone or outlet that can run through the mainline at the same time. If your system runs one zone at a time, use the flow of your largest zone. A flow meter, a water meter sweep-test, or the manufacturer's flow rating for your heads or emitters multiplied by their count all work. Use the highest flow the mainline will actually see, not an average.

What if no standard pipe size meets both limits?

That means every Class 200 PVC size up to 6 inches either runs too fast or loses too much pressure for your inputs. Options include increasing the pressure available at the source, shortening the run, reducing elevation gain, splitting the flow across two smaller parallel mains, or moving up to a size larger than this calculator checks. A design professional can help weigh these trade-offs for a specific site.

Should I add extra length for fittings?

Yes, if the run has more than a couple of elbows, tees or valves. Many designers add a flat percentage, often in the range of 5 to 10%, to the measured pipe length as a simplified allowance for a short run with few fittings; for a long run with many fittings, use the fitting manufacturer's equivalent-length tables for a more precise figure, then add that to the length you enter here.

See the multiple-outlet friction loss calculator for runs with several fittings and outlets along their length.

Who built and checked this calculator

Daniel Reeves

Irrigation Design Engineer & Water-Efficiency Specialist

Licensed Professional Engineer and Irrigation Association Certified Irrigation Designer with more than 20 years in irrigation design, system auditing and landscape water management. Full profile

How this page was checked

  • Hazen-Williams and velocity formulas, and both worked examples, traced by hand against the calculator's code.
  • Pipe inside diameters cross-checked against two independent Class 200 PVC reference charts.
  • Unit conversions checked round-trip: converting US inputs to metric and back returns the original values.

Last reviewed . Methodology, editorial policy, report an error.

Sources