Skip to content

Pipe Volume Calculator

Get the volume of water in a pipe run, in gallons and litres, from its size and length.

  • Gallons and litres
  • Water in a pipe run
  • From size and length
  • US and metric

Enter your pipe

Units
in

The inside of the pipe, not the outside. Use the inside diameter from the pipe’s data sheet.

ft

For example, two identical loops. Different sizes need one calculation each.

gal/min

Leave blank if you do not need the time to fill or flush the pipe.

Volume of water in the pipe

8.16 gal

The same volume in the other unit system
30.89 L
Volume as a solid
1.091 ft³
Volume per unit of length (one run)
0.1632 gal/ft
Inside cross-section area
3.142 in²
Time to fill at the flow rate (only with a flow rate)
Enter a flow rate

The full pipe holds about 8.16 gal of water. This is geometry only: fittings, air in the line and other draws are not counted, and it is not a design.

Show the working

  1. Inside diameter, as you entered it = 2.000 in
  2. Inside area = π ÷ 4 × (2.000 in)² = 3.142 in²
  3. Volume = 3.142 in² × 50.00 ft = 8.16 gal

What you can do with this calculator

  1. Use it as a pipe volume calculator in gallons. Enter the inside diameter and the length and get US gallons and litres.
  2. Find the water in a pipe run. See how much water a line holds before you fill, drain or flush it, and how long a fill takes at your flow rate.
  3. Work out PVC pipe volume. Type the inside diameter from the pipe’s data sheet; sizes for PVC are not built in.

How to read the result

  • Gallons and litres: the result is the water in a full pipe, shown in US gallons and in litres side by side, plus cubic feet or cubic metres and the volume of each foot or metre of pipe.
  • Inside diameter, not outside: the pipe wall takes up room, so use the inside diameter from the pipe’s data sheet. A copper tube size such as “1/2 in.” is a name, not a diameter; choose copper tube and the calculator uses the inside diameter from the CDA table.
  • Several runs: enter the number of identical runs and the volume is multiplied. A different size needs its own calculation.
  • Time to fill: enter a flow rate and the volume is divided by it. It leaves out trapped air, other draws on the supply and pressure changes, so treat it as a guide.

To see how fast water moves through the same pipe, use the Pipe Flow Calculator. If the pipe feeds or drains a tank, the Tank Volume Calculator gives the tank's capacity.

Worked example

A pipe with a 2 in. inside diameter, 50 ft long, one run, filled at 10 gal/min.

  1. Inside area = π × 2² ÷ 4 = 3.142 in²
  2. Length = 50 ft × 12 = 600 in., so volume = 3.142 × 600 = 1,884.96 in³, which is 1.091 ft³
  3. Gallons: 1,884.96 ÷ 231 in³ per gallon = 8.16 gal
  4. Litres: 8.16 gal × 3.785 = 30.89 L
  5. Per foot: 8.16 gal ÷ 50 ft = 0.1632 gal/ft
  6. Fill time: 8.16 gal ÷ 10 gal/min = 0.8 min

Two identical runs hold 16.32 gal. The same line in copper tube Type L, 2 in. nominal, has a smaller inside diameter (1.985 in.) and holds 8.04 gal. Metric check: 50.8 mm by 15.24 m is the same pipe and holds 30.89 L.

Method and formulas

Inside area A = π × D² ÷ 4
Volume of one run V = A × L
Total volume = V × number of runs
Gallons = volume in cubic inches ÷ 231 · litres = volume in cubic metres × 1000
Time to fill = total volume ÷ flow rate

D
Inside diameter of the pipe; for copper tube Type L, the inside diameter in the CDA table
L
Length of one run of pipe
231 in³
One US gallon (3.785411784 L); 1 in = 25.4 mm exactly

Assumptions and limits

  • The pipe is a full round tube, so its volume is the inside circle area times the length; the wall thickness does not enter except through the inside diameter.
  • Copper tube sizes use the inside diameter column of the CDA Type L table; the printed volume column of that table is not used.
  • The pipe is treated as straight and full; fittings, valves and fixtures are not counted.
  • Fill time assumes a steady flow rate and a pipe that is full only at the end.
  • Sizes are built in for copper tube Type L only; for PVC, PEX, steel, ductile iron or any other pipe, enter the inside diameter from the pipe’s data sheet.
  • Not for partly full pipes or sloped drains; see the Pipe Flow Calculator for flow in a partly full gravity pipe.
  • No water weight, no disinfection dose, no pressure or friction loss; this page is geometry only.
  • Fill time ignores air trapped in the line, the draw of other fixtures and pressure changes.
  • Not a design and not a quote; check the pipe data sheet and the local rules.

Reference tables

Volume per foot and per metre by inside diameter
Inside diameterInside diameter, mmUS gallons per footLitres per metre
1/4 in.6.40.00250.0317
1/2 in.12.70.01020.1267
3/4 in.19.10.02290.2850
1 in.25.40.04080.5067
1 1/4 in.31.80.06370.7917
1 1/2 in.38.10.09181.1401
2 in.50.80.16322.0268
3 in.76.20.36724.5604
4 in.101.60.65288.1073
6 in.152.41.468818.2415
8 in.203.22.611232.4293
10 in.254.04.080050.6707
12 in.304.85.875272.9659

Source: Calculated with the EngiFormula pipe volume engine (method v1.0) from the inside circle area times one foot or one metre. 1 in = 25.4 mm, 1 US gallon = 231 in³ = 3.785411784 L, exact; NIST SP 811 (2008 edition).

Copper tube Type L

Copper tube Type L: inside diameter and volume per foot by nominal size
Nominal sizeInside diameter, in.Inside diameter, mmUS gallons per footLitres per metre
1/4 in.0.3158.00.00400.0503
3/8 in.0.43010.90.00750.0937
1/2 in.0.54513.80.01210.1505
5/8 in.0.66616.90.01810.2248
3/4 in.0.78519.90.02510.3122
1 in.1.02526.00.04290.5324
1 1/4 in.1.26532.10.06530.8108
1 1/2 in.1.50538.20.09241.1477
2 in.1.98550.40.16081.9965
2 1/2 in.2.46562.60.24793.0789
3 in.2.94574.80.35394.3947
3 1/2 in.3.42587.00.47865.9440
4 in.3.90599.20.62227.7268
5 in.4.875123.80.969612.0422
6 in.5.845148.51.393917.3112
8 in.7.725196.22.434830.2381
10 in.9.625244.53.779746.9417
12 in.11.565293.85.457067.7717

Source: Copper Development Association (CDA), Copper Tube Handbook, Table 14.2b, Type L: the nominal size and inside diameter columns, read 14 October 2026. The volumes are calculated here from the inside diameter, not copied from the handbook table.

Charts and diagrams

Pipe, inside diameter and length A pipe drawn as a cylinder with its length L marked along the axis, the inside diameter D marked across the open end, the pipe wall shaded between the inside and outside diameters, and the shaded inside circle labelled as the cross-section area A. length L inside D water inside the pipe pipe wall (not part of the volume) area A = π D² ÷ 4
Volume = inside circle area A × length L. Only the inside of the pipe counts; the wall is the shaded band between the inside and outside diameters.

Common uses

  • Plumbing line before fill, drain or flush: how much water the run holds.
  • Irrigation or radiant heating loop: the volume of a loop, and of several identical loops.
  • Hot water recirculation or wait-time check: the water in the line and how long it takes to run through at your flow rate.
  • Site pipework and temporary water lines: a quick figure for a long run.

Frequently asked questions

How do you calculate the volume of a pipe?

Find the area of the inside circle (π × D² ÷ 4) and multiply by the length. For a 2 in. inside diameter and 50 ft of pipe that is 3.142 in² × 600 in. = 1,884.96 in³, or 8.16 gal.

How many gallons are in a foot of pipe?

It depends on the inside diameter. A 2 in. inside diameter holds 0.1632 gal/ft; a 1 in. holds 0.0408 gal/ft and a 4 in. holds 0.6528 gal/ft. The tables above list more sizes, and this pipe volume calculator gallons result also shows the litres per metre.

How do I find the volume of a pipe in litres or in gallons?

Work in one unit system, then convert: one US gallon is 231 cubic inches (3.785411784 L) and one cubic metre is 1,000 litres. The calculator shows both side by side, so the 50 ft pipe above is 8.16 gal and 30.89 L.

Do I use the inside or the outside diameter?

The inside diameter, because the water is inside the wall. Take it from the pipe’s data sheet, or subtract twice the wall thickness from the outside diameter. For copper tube Type L the nominal size is neither: a 2 in. nominal tube has a 1.985 in. inside diameter, so 50 ft holds 8.04 gal, not the 8.16 gal of a true 2 in. bore.

Does the pipe material change the volume?

Only through the wall thickness, which sets the inside diameter. The same outside size can have different inside diameters in different materials and schedules. This water pipe volume calculator takes the inside diameter you type, so use it for PVC, PEX, steel or any other pipe, and use the copper option for Type L tube.

How long does it take to fill or flush a pipe?

Divide the volume by the flow rate. The 50 ft pipe at 10 gal/min takes 0.8 min. Trapped air, other draws on the supply and pressure changes make a real fill different.

Can I use this for gas, air or other fluids?

The volume of the pipe is geometry and does not depend on what is in it. Weight, pressure and flow behaviour do, and this page does not cover them.

Is there a PVC pipe volume calculator?

Yes. Enter the inside diameter of the PVC pipe (it depends on the schedule, not only the nominal size) and the length, and this calculator gives the gallons and litres the pipe holds. The same steps work for any pipe material.

Sources and references

  • Copper Development Association (CDA), Copper Tube Handbook, Table 14.2b, Dimensions and Physical Characteristics of Copper Tube, Type L: nominal size and inside diameter (online table, read 14 October 2026; the page prints no edition).
  • NIST Special Publication 811, Guide for the Use of the International System of Units (SI), 2008 edition, Appendix B (exact value for the inch; the US gallon and cubic foot).
  • Area and volume of a cylinder: plane and solid geometry, as set out in the Method section above.

About this calculator

Method version: 1.0 Last technical update:

Scope and disclaimer

Works out the volume of water a full, straight round pipe holds from its inside diameter and length, and the time to fill it at a flow rate. Geometry only. Not a design and not a quote.

This calculator gives information and preliminary estimates only. It is not professional design advice and does not replace the governing code, product instructions or a qualified professional's judgement for your project.