Pipe Volume Calculator

The volume of water or any liquid inside a pipe or hose, in litres, gallons, cubic metres and cubic feet, with its weight.

The nominal size is a name, not a measurement. The calculator uses the real inside diameter of Schedule 40 steel or PVC.

m

Leave it at 1 for a single run. Use more for identical parallel pipes.

Water is 1. Only the weight changes with the liquid, not the volume.

Volume in the pipe

64.9 L

17.16 US gal

Litres
64.95 L
US gallons
17.16
Imperial gallons
14.29
Cubic metres
0.0649 m³
Cubic feet
2.294 ft³
Weight of the liquid
64.8 kg (142.9 lb)
Per metre of pipe
2.165 L (2.161 kg)
Per foot of pipe
0.1743 US gal (1.452 lb)
Inside diameter used
52.5 mm (2.067 in)

One length of 30 m pipe, 2 in Schedule 40, holds 64.9 L (17.2 US gal) and the liquid weighs about 64.8 kg.

Add this calculator to your website

Free to use on any site or blog. Paste this code where you want the calculator to appear. It stays up to date, needs no account, and keeps your visitors' numbers in their own browser.

Preview

How it works

A pipe is a long cylinder, so the water in it is the area of the circle inside the pipe times the length. The circle is set by the inside diameter, which is smaller than the outside diameter by two wall thicknesses.

Pick a nominal size from 1/2 inch to 12 inch and the calculator looks up the real inside diameter of Schedule 40 pipe. A 2 inch pipe, for example, is 2.067 inches inside and 2.375 inches outside. If your pipe is a different type, such as copper, PEX, a garden hose or an irrigation line, choose "My own inside diameter" and type what you measured or what the maker prints on the data sheet.

The result is shown in litres, US gallons, imperial gallons, cubic metres and cubic feet, plus the volume per metre and per foot, which is handy for a quick check. The weight uses water at 20 °C, or any other liquid if you enter its specific gravity.

Check it by hand: a 2 inch nominal pipe has an inside diameter of 52.5 mm, or 0.0525 m. The area of its cross section is 3.1416 × 0.02625 × 0.02625 = 0.002165 m². Over 30 m that is 0.0649 m³, which is 64.9 litres and 64.8 kg of water.

Volume = π ÷ 4 × inside diameter² × length
1 m³ = 1,000 litres; 1 US gallon = 3.785411784 litres; 1 ft³ = 28.316846592 litres
Weight = volume × 998.2 kg/m³ × specific gravity (water at 20 °C)
Schedule 40 inside diameter = outside diameter − 2 × wall thickness (ASME B36.10M; PVC per ASTM D1785)

Worked example

A 30 metre run of 2 inch Schedule 40 pipe. The inside diameter is 2.067 inches, which is 52.50 mm. The area is π ÷ 4 × 0.052502² = 0.002165 m².

Times 30 m gives 0.06495 m³, which is 64.9 litres or 17.2 US gallons. Water at 20 °C weighs about 64.8 kg for that volume.

Good to know

  • Real pipe varies a little. PVC is made to a minimum wall, so the true inside diameter can be slightly smaller than the table. Check the maker's data sheet if you need the last percent.
  • Fittings, valves, tanks and pumps are not counted. Add their volume separately if it matters.
  • The nominal size of copper, PEX, HDPE and cast iron pipe does not match Schedule 40. For those, type the inside diameter from the data sheet instead of choosing a size.
  • A pipe that is only partly full holds less. The tool gives the volume when the pipe is full.
  • The weight is for the liquid only. The pipe itself weighs extra.

Questions people ask

How do I calculate the volume of water in a pipe?

Square the inside diameter, multiply by π ÷ 4 (0.7854), then multiply by the length. Use consistent units, for example metres for both, and the answer is in cubic metres. Multiply by 1,000 for litres.

How many gallons are in 100 feet of 2 inch pipe?

About 17.4 US gallons when the pipe is Schedule 40, since the inside diameter is 2.067 inches. Change the units to feet and inches and enter 100 to see it with the weight.

Should I use the inside or the outside diameter?

The inside. The outside diameter includes the pipe wall, so using it overstates the volume by about 30% for a 2 inch pipe and over 80% for a 1/2 inch pipe. The Schedule 40 list here already uses the inside diameters.

How much does the water in a pipe weigh?

About 1 kg per litre, or 8.3 pounds per US gallon, at room temperature. Enter a specific gravity to get the weight of another liquid, such as 0.79 for ethanol or 1.26 for glycerine.

Is a garden hose volume calculated the same way?

Yes. Pick "My own inside diameter" and enter the bore, for example 5/8 inch (15.9 mm), then the hose length.

How much water is in 30 metres of 2 inch pipe?

About 65 litres, or 17.2 US gallons. For a 2 inch nominal pipe the calculator uses an inside diameter of 52.5 mm (2.067 inches), so each metre holds about 2.17 litres.

Part of the guide: Heating, cooling and water calculators: BTU, pipes, tanks, pumps and pools

Formulas and text last checked on 7 October 2026. Everything is calculated in your browser, so nothing you enter is sent or stored. Spotted a mistake? Tell us and we will fix it.