Home/Calculators/Pipe volume calculator
Pipe volume calculator: gallons in a pipe run
You need to know how much liquid a pipe or section of pipe holds before you fill it, flush it or size a system, and you are not sure how to convert the size and length into gallons or liters. Pipe volume calculator. Nothing was tested for this page; the numbers come from the formula shown below and the inputs you enter.
You enter the inside diameter of the pipe in inches and the length in feet. You get the pipe volume in US gallons and in liters.
The automatic calculation needs JavaScript. With scripting off, the fields above do nothing and the result area stays empty. The formula is written out below, so you can do the same arithmetic on paper.
Pipe volume calculator: how to measure
- Measure the inside diameter across the clear opening of the pipe, wall to wall, not the outside shell.
- If the pipe is already installed, measure the inside opening at an open end, or look up the inside diameter for your pipe material and wall thickness.
- Measure the length in feet along the centerline of the section you care about.
- Enter both numbers, then read the result in gallons and liters. For a run with several sections, measure each part and add the volumes.
Pipe volume calculator formula, written out
- gallons = pi x radius squared x length in inches / 231
Pipe volume calculator worked example
With the inputs already in the form (inside diameter 2, length 100) the result is: us gallons: 16.32; liters: 61.78; cubic inches: 3,769.91.
- Gallons = pi x (2 / 2)^2 x (100 x 12) / 231 = 16.32
For flow and fill time, use the GPM calculator with pipe velocity.
What the pipe volume calculator assumes
- The pipe is round and has a constant inside diameter over its full length.
- The inside diameter is used, since wall thickness changes the clear opening.
- Fittings, valves and fixtures are not counted, so add a margin for them.
- One US gallon is 231 cubic inches, and one liter is 0.264 US gallons.
Pipe volume calculator questions people ask
Why do I use the inside diameter instead of the pipe size?
Nominal pipe size is a label, not a measurement. Wall thickness differs between schedules and materials, so the clear opening can be smaller than the label suggests. Measure the inside opening directly when you can.
How do I get the volume of a long run with elbows and tees?
The calculator gives the volume of straight pipe only. Measure each straight length separately and add them up, then add a little for the fittings. Small fittings hold little liquid, but on a long run the difference adds up.
Can I use this for a hose or a tube as well?
Yes, if it is round. Measure the inside diameter and the length in the same way, as long as the tube keeps the same inside diameter along its length.
What if I need the weight of the liquid instead of the volume?
Volume comes first, then multiply by the density of the liquid. Density varies with liquid and temperature, so check the label or ask your supplier for the figure.
This calculator belongs to the pool and plumbing calculators. To price the whole job, not just this part, use the job costing calculator and the pricing guide below.
How this site makes money. Affiliate links on this site are marked before you click them, and a commission will never change a price, a test result or a ranking. Details in the affiliate disclosure.