Skip to content
FiftyCalc Free calculators for all 50 states

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

Sample figures

Minimum inside diameter—in

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.

Pipe Size Calculator

Flow rate (US gallons per minute): enter 0 or more. Prefilled example: 50.

Design velocity, the most you allow, in ft/s: enter 0.1 or more. Prefilled example: 5.

Inside diameter of the pipe you plan to use, in in: enter 0.01 or more. Prefilled example: 2.

How to use this calculator

Fill in the fields in this order; each step takes you to its field.

  1. Flow rate (US gallons per minute): enter 0 or more.
  2. Design velocity, the most you allow, in ft/s: enter 0.1 or more.
  3. Inside diameter of the pipe you plan to use, in in: enter 0.01 or more.
  4. 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

  1. Qc=gpm×231÷1,72860
  2. D=4×Qcπ×v×12
Symbols used in the formula
SymbolMeaningUnit
gpmFlow rateUS gallons per minute
vDesign velocity, the most you allowft/s
QcResult of step 1
DMinimum inside diameterin

Worked example

Flow rate (US gallons per minute)50
Design velocity, the most you allow5 ft/s
Inside diameter of the pipe you plan to use2 in
Minimum inside diameter (mm)51.3
Velocity in your pipe (ft per second)5.11
Flow rate (cubic feet per second)0.1114
  1. Qc=50×231÷1,72860=0.1114
  2. D=4×0.11143.14159×5×12=2.02113

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.

Related calculators