How this mainline velocity calculator works
Velocity in a pressurized pipe comes from the continuity equation: the speed of the water depends only on how much is flowing and how much open cross-section it has to flow through. Pipe material doesn't enter into velocity at all — it only affects how much pressure the flow loses to friction along the way, through a roughness factor called the Hazen-Williams C-factor.
1. Velocity
US units
Velocity (ft/s) = 0.408 × Flow (gpm) ÷ Inside diameter² (in)
The 0.408 constant comes from converting gallons per minute and inches into consistent units for the area of a circle; it isn't specific to any pipe material.
Metric units
Velocity (m/s) = Flow (L/s) ÷ Cross-sectional area (m²)
Area = π/4 × (Inside diameter in meters)². This calculator converts your metric inputs to gpm and inches internally, then converts the result back, so switching units never changes the underlying answer.
2. Friction loss (Hazen-Williams equation)
Friction loss
Loss (psi per 100 ft) = 0.0902 × (100 ÷ C)1.852 × Flow (gpm)1.852 ÷ Inside diameter4.8655 (in)
This is the standard Hazen-Williams friction equation in the practical US form Rain Bird publishes for irrigation pipe (feet-of-head form × 0.433 to convert to psi). C is the roughness factor: higher C means a smoother pipe and less loss at the same flow.
If you enter a pipe length, the calculator multiplies the per-100-foot (or per-100-meter) rate by your length to get a total pressure loss for the run. That total covers straight-pipe friction only — it doesn't include the extra loss from fittings, valves, filters or elevation change, which need their own allowance. The multiple-outlet friction loss calculator and valve pressure loss calculator cover those separately.
3. Maximum flow (reverse mode)
Maximum flow at a velocity limit
Max flow (gpm) = Velocity limit (ft/s) × Inside diameter² (in) ÷ 0.408
This is the velocity formula solved for flow instead of velocity. It answers "how much can I push through this pipe before it exceeds my chosen limit," using the same continuity equation.
When this calculator isn't the right tool
It checks a pipe you've already chosen. It doesn't pick a pipe size for you. To size a mainline from a required flow and an acceptable friction loss budget, start with the irrigation pipe size calculator, then bring the result back here to confirm the velocity. Use a different tool for:
- Choosing a pipe size from scratch — see the irrigation pipe size calculator.
- Lateral lines feeding multiple sprinkler heads, where flow drops along the run — see the multiple-outlet friction loss calculator or the lateral line design calculator.
- Total available pressure at a head or valve, accounting for source pressure, elevation and every loss in the system — see the available irrigation pressure calculator.
- Checking your water source's capacity rather than the pipe — see the water meter capacity calculator or service line capacity calculator.
Mainline velocity calculation example
A 3-inch Class 200 PVC mainline (3.146 in inside diameter, C=150) carries 80 gpm over a 400-foot run.
- Velocity: 0.408 × 80 ÷ 3.146² = 0.408 × 80 ÷ 9.897 ≈ 3.3 ft/s — below the 5 ft/s NRCS Standard 430 limit.
- Friction loss rate: 0.0902 × (100/150)1.852 × 801.852 ÷ 3.1464.8655 ≈ 0.539, shown as 0.5 psi per 100 ft.
- Total loss over 400 ft: 0.539 × (400 ÷ 100) ≈ 2.2 psi, before fittings, valves or elevation change.
The same calculation in metric
A 75 mm inside-diameter polyethylene pipe (C=150) carries 3.5 L/s over a 120 m run:
- Velocity: flow ÷ cross-sectional area ≈ 0.79 m/s — well under the 1.5 m/s limit.
- Friction loss rate: ≈ 8 kPa per 100 m.
- Total loss over 120 m: ≈ 10 kPa.
Both examples use the same formulas; the calculator converts metric inputs to US units internally before computing, so the physical answer never changes when you switch units — only how it's displayed.
Why 5 ft/s (1.5 m/s) is the usual limit
USDA NRCS Conservation Practice Standard 430, Irrigation Pipeline, states that plastic pipe should not exceed 5 feet per second in full-pipe flow where the pipeline includes valves or another flow-control fitting. NRCS Conservation Practice Standard 441, Irrigation System, Microirrigation, sets the same 5.0 ft/s ceiling for mains and submains more broadly. Neither standard is a universal code requirement for every irrigation system, but the figure has become the de facto industry target: Rain Bird's own PVC and polyethylene friction loss reference charts flag any flow that pushes velocity above 5 ft/s as one to use with caution.
Why velocity matters for water hammer. A valve that closes quickly stops a moving column of water almost instantly. The pressure spike that results gets larger as the water's velocity (and therefore its momentum) increases. Keeping velocity at or below the sourced limit is one of the simplest ways to reduce that risk, alongside slow-closing valves and adequate air/vacuum relief.
Some designers use a lower limit, such as 3–4 ft/s, on long mainline runs, where valves close very quickly, or where the pipe passes near structures. If your calculated velocity is close to the limit, that's a reasonable reason to move up a pipe size rather than treat 5 ft/s as a hard pass/fail line.
What changes the result
| Factor | Effect on the result | What to adjust |
|---|---|---|
| Flow rate | Velocity and friction loss both increase with flow; friction loss rises faster (roughly the 1.85 power). | Use your actual design or metered flow, not a rounded guess. |
| Inside diameter, not nominal size | The exponent on diameter is high (nearly 5 for friction loss), so a small error in inside diameter changes the result a lot. | Use the pipe's actual inside diameter. Nominal size is a naming convention, not a measurement. |
| Pipe material and age (C-factor) | Doesn't affect velocity. Lower C means much higher friction loss at the same flow and diameter. | Use the C for new pipe of that material as a starting point; lower it for pipe with years of scale or corrosion. |
| Pipe length | Total pressure loss scales directly with length; the per-100-unit rate doesn't change with length. | Enter the actual run length to see a total, or leave it blank for just the rate. |
| Fittings, valves and elevation | Add loss (or, downhill, gain) beyond what this calculator computes for straight pipe. | Add those separately with the valve pressure loss calculator and elevation math. |
Typical Hazen-Williams C-factors
Rain Bird's published irrigation pipe friction loss charts use the following C-factors for new pipe. Treat them as typical starting points, not guarantees for a specific installation's condition.
| Pipe material | C-factor | Notes |
|---|---|---|
| PVC (Class 200 or Schedule 40) | 150 | New pipe. A very smooth interior that changes little with age. |
| Polyethylene (PE) | 150 | New pipe, comparable smoothness to PVC. |
| Steel, standard | 100 | Rain Bird's reference value; older or corroded steel can be rougher still. |
For pipe that's been in service for years, especially steel or older concrete, consider a lower C than the new-pipe value, and cross-check the calculated friction loss against a measured pressure drop in the field where you can.
Frequently asked questions
What is a safe water velocity for an irrigation mainline?
USDA NRCS Conservation Practice Standard 430 (Irrigation Pipeline) sets 5 feet per second (1.5 m/s) as the velocity not to exceed in plastic pipelines that have valves or other flow-control fittings, and NRCS Standard 441 applies the same 5 ft/s limit to mains and submains generally. Staying at or under that figure is the most common industry target for reducing water hammer risk, though some designers use a lower limit on long runs or where valves close quickly.
How do you calculate water velocity in a pipe?
Velocity equals flow divided by the pipe's inside cross-sectional area, which comes from the continuity equation. In the practical US form used throughout the irrigation industry, velocity in feet per second equals 0.408 times the flow in gallons per minute, divided by the inside diameter in inches squared. The same relationship in metric form uses liters per second and millimeters.
What is the maximum GPM for a given pipe size?
It depends on the inside diameter and the velocity limit you design to. Rearranging the velocity equation gives maximum GPM equals the velocity limit times 2.448 times the inside diameter in inches squared. At the common 5 ft/s limit, a 3-inch Class 200 PVC mainline (3.15 in inside diameter) carries roughly 120 gpm before exceeding it; a 4-inch mainline (4.05 in inside diameter) carries about 200 gpm, roughly 1.6 times as much, since capacity scales with the diameter squared rather than the diameter itself.
Does pipe material affect velocity, or only friction loss?
Velocity depends only on flow and the pipe's actual inside diameter, not on what the pipe is made of. Material matters for friction loss through its Hazen-Williams C-factor: a smoother interior, like new PVC or polyethylene, carries water with less pressure loss than a rougher one, like aged steel, even at the identical flow and inside diameter.
What size mainline do I need for my flow rate?
This calculator checks a pipe size you already have in mind; it does not choose one for you. To size a mainline from your required flow and an acceptable friction loss budget, use the irrigation pipe size calculator, then come back here to confirm the resulting velocity stays within your limit.
See the irrigation pipe size calculator.
What Hazen-Williams C-factor should I use?
Rain Bird's published friction loss tables use C=150 for new PVC and polyethylene irrigation pipe and C=100 for standard steel pipe. Those are reasonable starting points for new pipe, but C drops as pipe ages and scales or corrodes internally, so an older system can have meaningfully higher friction loss than a new-pipe calculation predicts. When in doubt, use a lower C for older pipe and check the result against field pressure readings.
Does high velocity in a pipe cause water hammer?
Velocity itself does not cause water hammer, but higher velocity means more kinetic energy has to go somewhere when a valve closes quickly, which makes the pressure surge larger. That's the reasoning behind NRCS Standard 430's 5 ft/s limit for pipelines with valves: keeping velocity down keeps a sudden valve closure from producing a damaging pressure spike.
Why does friction loss rise so fast when flow increases a little?
The Hazen-Williams equation raises flow to about the 1.85 power, so friction loss grows much faster than flow does. Roughly doubling the flow through the same pipe raises friction loss by a factor of about 3.6, not 2. That's also why a modest increase in flow, from adding a zone to a manifold, can push an existing mainline's friction loss up sharply even though the pipe itself hasn't changed.
Who built and checked this calculator
Sources
- USDA Natural Resources Conservation Service. Conservation Practice Standard: Irrigation Pipeline (Code 430).
- USDA Natural Resources Conservation Service. Conservation Practice Standard: Irrigation System, Microirrigation (Code 441). [VERIFY URL]
- Rain Bird Corporation. PVC Class 200 IPS Plastic Pipe, friction loss reference chart.
- Rain Bird Corporation. PVC Schedule 40 IPS Plastic Pipe, friction loss reference chart.
- Hazen, A. and Williams, G.S. (1905). The Hazen-Williams equation for friction loss in pressurized pipe, as applied in NRCS Standard 430 and standard irrigation hydraulics practice.