Saved

Press the star next to a tool's name to save it.

All my tools

Pipe Volume Calculator

Use this pipe volume calculator to find how much water a length of pipe holds. Enter the inside diameter and the length and it gives US gallons, litres, cubic feet and the volume per foot or metre.

Restored your last values ·

Enter the inside diameter of the pipe, not the outside. Then enter the length. Choose US for inches and feet, or Metric for centimetres and metres.

Everything is worked out in your browser. Nothing you type is sent anywhere.

–

–

Enter the inside diameter and the length of the pipe, then press Calculate.

See full result

A pipe volume calculator tells you how much liquid fits inside a length of pipe. People use it to size a water line, work out how much water drains out when a pipe is emptied, plan a sprinkler or irrigation run, or estimate how much antifreeze or chemical a closed loop needs. Enter the inside diameter and the length, and it returns US gallons, litres and cubic feet.

How to use the pipe volume calculator

  1. Pick US or Metric.
  2. Type the inside diameter of the pipe. Nominal sizes such as "4 inch" are close to the inside diameter for many drain pipes, but pressure pipe and thick walls hold less.
  3. Type the length of the run.
  4. Press Calculate to see the gallons, litres, cubic feet and volume per foot or metre.

The pipe volume formula

A straight pipe is a cylinder. The volume of a cylinder is pi times the radius squared times the length [1] In symbols: V = π × r² × L. The radius is half the inside diameter. This calculator works in cubic inches first, then divides by 231, because the US liquid gallon is defined as exactly 231 cubic inches, which is 3.785411784 litres [2] Cubic feet are cubic inches divided by 1,728.

Worked example

A 4 inch inside diameter pipe is 50 feet long. The radius is 2 inches and the length is 600 inches. The volume is 3.14159 × 4 × 600 = 7,539.8 cubic inches. Divided by 231 that is 32.64 US gallons, or 123.55 litres, or 4.363 cubic feet. That works out to 0.653 gallons per foot of pipe.

Volume per foot for common inside diameters

The table shows the gallons held by one foot of straight pipe at several inside diameters. It uses the same formula as the calculator.

Inside diameterGallons per footLitres per metre
0.5 in0.01020.127
1 in0.04080.507
2 in0.16322.027
3 in0.36724.561
4 in0.65288.108
6 in1.46918.24

Volume grows with the square of the diameter. Doubling the diameter holds four times as much, so a 4 inch pipe holds four times what a 2 inch pipe holds for the same length.

Why inside diameter matters

The outside size of a pipe is what you buy, but the water only fills the inside. A thick wall takes a lot off the diameter, and the effect is squared in the volume. For example, a pipe with a 1.049 inch inside diameter holds noticeably less than one with a 1.25 inch inside diameter. If you can, measure the inside, or read it from the maker's data sheet.

Metric inputs

Choose Metric to enter the diameter in centimetres and the length in metres. The calculator converts to inches and feet in the background so the gallon definition above still applies, then shows litres per metre. One litre is one thousand cubic centimetres, so a 10 cm pipe 15 m long holds about 117.8 litres.

Uses for a pipe volume figure

  • Estimating how much water will drain from a line when you shut it off.
  • Working out how much liquid a hydronic or solar loop needs to fill.
  • Sizing a priming charge or a chemical dose for a closed system.
  • Checking how long it takes to flush the line at a known flow rate.
  • Planning irrigation, where each zone must be filled before water reaches the heads.

Pipe volume and flow time

Once you know the volume, you can estimate how long it takes to fill or flush the pipe. Divide the gallons by the flow rate in gallons per minute. For the 50 foot pipe above, holding 32.6 gallons, a flow of 10 gallons per minute fills it in about 3.3 minutes. This is our own working and assumes a steady flow and a pipe that starts empty. In real systems, pressure, air in the line and pump behaviour change the time.

Pipe volume for long runs and many pipes

For several pipes of the same size, add the lengths together and enter the total. For pipes of different sizes, run the calculator once for each size and add the results. A pipe network with branches is the sum of its parts. Keep the units the same for every run so the totals add up. If you work in metric, the litres per metre figure makes it easy to scale: multiply it by the total length in metres.

Rounding and accuracy

The answer is only as good as the inside diameter you enter. A 5 percent error in the diameter gives about a 10 percent error in the volume, because the diameter is squared. Measure carefully or use the maker's published bore. Results are shown to five significant figures, which is more than the input can support, so round them sensibly when you buy or plan.

Common mistakes

  • Using the outside diameter. This makes the answer too big.
  • Mixing units, such as inches for the diameter and metres for the length. Use the Units switch instead.
  • Forgetting fittings. Elbows, valves and tees add a little volume that a straight-pipe figure ignores.
  • Reading US gallons as imperial gallons. An imperial gallon is about 20 percent bigger.

Limits of this calculator

It models a full, straight, round pipe. Partly filled pipes, sloped pipes, corrugated pipe and non-round ducts hold different amounts. It is a planning estimate, not a design figure for tanks, pressure systems or anything where an error could cause harm. For those, use the manufacturer's data or ask a qualified plumber or engineer.

What next

Use this often? Add Pipe Volume to your Home screen.

Frequently asked questions

How do I use a pipe volume calculator?

Enter the inside diameter and the length of the pipe, choose US or Metric, and press Calculate. It returns US gallons, litres and cubic feet.

How many gallons are in a foot of 4 inch pipe?

A foot of pipe with a 4 inch inside diameter holds about 0.653 US gallons, from pi times 2 squared times 12 cubic inches divided by 231.

Should I use inside or outside diameter?

Use the inside diameter. Liquid only fills the bore of the pipe, so the outside diameter makes the answer too big, especially for thick-walled pipe.

How many cubic inches are in a gallon?

A US liquid gallon is exactly 231 cubic inches, which equals 3.785411784 litres.

Does this work for a partly full pipe?

No. It assumes the pipe is full and level. A partly full or sloped pipe holds less than the figure shown.

What went wrong?

We only receive the reason you pick, never what you typed into the tool.

Thanks for your feedback.

More Everyday Life Tools