Pipe Size Calculator
Test cases replayed : 2 of 2 match · Methodology · No outside source listed
Enter the flow in gallons per minute and the highest velocity you want in the pipe. The calculator gives the smallest inside diameter that keeps the flow at or below that velocity, and the velocity in a pipe of the inside diameter you enter.
Result
Minimum inside diameterin
Minimum inside diameter (mm)
- Velocity in your pipe (ft per second)
- Flow rate (cubic feet per second)
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Flow rate (US gallons per minute): enter 0 or more.
- Design velocity, the most you allow, in ft/s: enter 0.1 or more.
- Inside diameter of the pipe you plan to use, in in: enter 0.01 or more.
- Read the result: Minimum inside diameter; the panel also shows Minimum inside diameter (mm), Velocity in your pipe (ft per second) and Flow rate (cubic feet per second).
How this calculator works
Continuity equation: flow = area × velocity, so the inside area A = Q ÷ v and the diameter d = √(4A ÷ π). A US gallon is 231 cubic inches, so ft³/s = gpm × 231 ÷ 1,728 ÷ 60.
Choose a pipe whose actual inside diameter is at least the result. Nominal pipe and tube sizes do not equal their inside diameters, and the inside diameter changes with the schedule or type (wall thickness); read it from the manufacturer's data.
The design velocity is your choice or your designer's: higher speeds raise friction loss, noise and erosion. Plumbing codes size water supply piping by fixture units and pressure loss, which this velocity check does not replace; use a friction-loss calculation for long runs.
The formula
| Symbol | Meaning | Unit |
|---|---|---|
| Flow rate | US gallons per minute | |
| Design velocity, the most you allow | ft/s | |
| Result of step 1 | ||
| Minimum inside diameter | in |
Worked example
| Flow rate (US gallons per minute) | 50 |
|---|---|
| Design velocity, the most you allow | 5 ft/s |
| Inside diameter of the pipe you plan to use | 2 in |
| Minimum inside diameter (mm) | 51.3 |
|---|---|
| Velocity in your pipe (ft per second) | 5.11 |
| Flow rate (cubic feet per second) | 0.1114 |
Minimum inside diameter 2.02 in
Each step uses the unrounded value of the step before it; figures on this page are rounded for display.
Frequently asked questions
What size pipe do I need for 50 gpm?
At 5 ft/s the inside diameter must be at least 2.02 in. A lower design velocity needs a larger pipe: diameter grows with the square root of flow ÷ velocity.
Why does halving the velocity not double the diameter?
Area doubles, and diameter grows with the square root of area, so it increases about 41%.
Does this work for gases?
It works for any flow given in volume per time at the conditions in the pipe. For gas, convert to actual (not standard) cubic feet at the pipe's pressure and temperature first.