Skip to main content

Pipe Volume Calculator

Calculate the internal volume of a pipe from its inner diameter or radius and length. Get results in liters, gallons, cubic feet, and cubic meters for plumbing, pools, and irrigation.

Interested in Advertising?

Tell us more, and we'll get back to you.

Contact Us

About Pipe Volume Calculator

Practical context, assumptions, examples, and next steps for using the result well.

What a pipe volume calculator does

A pipe volume calculator tells you how much fluid the inside of a pipe can hold. Because a length of straight pipe is simply a hollow cylinder, its internal capacity is the cross-sectional area of the bore multiplied by the length of the run. That single number answers a surprising range of everyday questions: how many liters of water sit in a supply line, how much chemical it takes to fill a dosing loop, how long a pump needs to push water through a system, and how much fluid you have to drain before opening a fitting.

The calculation depends on the inner dimensions of the pipe, not the outer ones. The wall of a copper, PVC, steel, or PEX pipe takes up real space, so the capacity is always based on the bore, the open channel that the fluid actually travels through. Enter the inner diameter or radius and the length, choose your units, and the calculator returns the volume in liters, US gallons, UK gallons, cubic feet, and cubic meters at the same time so you can use whatever unit your project documents call for.

Key idea: volume scales with the square of the radius. A pipe twice as wide holds four times as much fluid per meter, which is why even a small change in bore makes a large difference in capacity.

The formula and inputs

The internal volume of a straight pipe uses the volume of a cylinder:

V = π × r² × L

Where:

  • V is the internal volume of the pipe.
  • r is the inner radius of the pipe (half the inner diameter).
  • L is the length of the pipe run.
  • π is the constant pi, roughly 3.14159.

If you measure the inner diameter (D) instead of the radius, you can use the equivalent form V = π × (D / 2)² × L, or the convenient version V = (π / 4) × D² × L. Both give the same answer. The most common mistake is mixing the diameter and the radius, so this calculator lets you choose explicitly whether the number you enter is the inner diameter or the inner radius. Whatever you pick, keep the bore and the length in compatible units before multiplying, then convert the result to your preferred volume unit.

Because the radius is squared, accuracy of the diameter measurement matters far more than accuracy of the length. A ten percent error in diameter produces roughly a twenty-one percent error in volume, while a ten percent error in length produces only a ten percent error. When precision counts, measure the bore carefully or look up the published inside diameter for the pipe's nominal size and schedule.

Units and conversions

This calculator supports both metric and imperial entry. In metric mode you enter the bore in centimeters and the length in meters; in imperial mode you enter the bore in inches and the length in feet. Internally the values are converted to meters, the volume is computed in cubic meters, and then it is expressed in several familiar units so you never have to convert by hand.

Useful volume conversions

  • 1 cubic meter = 1000 liters
  • 1 cubic meter ≈ 264.17 US gallons
  • 1 cubic meter ≈ 219.97 UK gallons
  • 1 cubic meter ≈ 35.315 cubic feet
  • 1 liter ≈ 0.2642 US gallons

Length conversions used

  • 1 inch = 2.54 cm = 0.0254 m
  • 1 foot = 0.3048 m
  • 1 cm = 0.01 m
  • Radius = inner diameter ÷ 2

Note the difference between US and UK (imperial) gallons. A US gallon is about 3.785 liters while a UK gallon is about 4.546 liters, so the same pipe holds a smaller number of UK gallons than US gallons. Always confirm which gallon a specification uses before sizing a pump or ordering chemicals.

Worked examples

Working through a few examples makes the formula concrete and helps you sanity-check the calculator's output.

Example 1: A garden hose run (metric)

Suppose a hose has an inner diameter of 1.6 cm and a length of 20 meters. The radius is 0.8 cm = 0.008 m. Volume = π × (0.008)² × 20 ≈ 0.00402 m³, which is about 4.02 liters or roughly 1.06 US gallons. That is how much water remains in the hose after the tap is closed.

Example 2: A copper supply line (imperial)

A copper line has an inner diameter of about 0.811 inches and runs 50 feet. Converting, the radius is roughly 0.0103 m and the length is 15.24 m. Volume = π × (0.0103)² × 15.24 ≈ 0.00508 m³, about 5.08 liters or 1.34 US gallons. This is the holdup volume you would need to flush when sanitizing the line.

Example 3: Why bore dominates

A 2.5 cm bore pipe holds about 0.49 liters per meter, while a 5 cm bore pipe holds about 1.96 liters per meter. Doubling the diameter quadrupled the volume, a direct consequence of the radius being squared in the formula.

Where pipe volume is used

Knowing the internal volume of a pipe is useful across many trades and disciplines. A few of the most common applications include:

  • Plumbing and water systems: estimate how much water sits in supply and recirculation lines, plan flushing and disinfection volumes, and size expansion tanks.
  • Swimming pools and spas: calculate the plumbing holdup volume that adds to the total water volume of the system, which matters for chemical dosing and turnover.
  • Irrigation and agriculture: plan how much water a mainline or lateral holds, time fill and drain cycles, and avoid water hammer from rapid valve changes.
  • Process and chemical engineering: determine the fluid mass a line carries, estimate residence time, and size purge or batch volumes.
  • Heating and cooling: figure the water content of hydronic loops so you can dose inhibitor or antifreeze correctly.
  • Fuel, oil, and gas lines: estimate the inventory of fluid held in a pipeline section for accounting or safety.

Accuracy and practical tips

The formula is exact for a perfectly straight, uniform cylinder, but real installations introduce small differences. Keep these points in mind to get a trustworthy number.

  • Use the inner diameter. Pipe is usually sold by nominal size, which is close to but not equal to the actual bore. Look up the published inside diameter for the schedule or class you are using rather than measuring the outside.
  • Account for wall thickness. Thicker-walled pipe of the same nominal size has a smaller bore and therefore less volume. Pressure-rated and schedule 80 pipe hold less than thin-walled equivalents.
  • Fittings add a little volume. Elbows, tees, and valves contain extra fluid this straight-cylinder model ignores. For most estimates the difference is negligible, but for precise holdup you can add manufacturer figures.
  • Measure developed length. For a coiled or routed run, use the true length of pipe along the centerline, not the straight-line distance between endpoints.
  • Mind the units. Mixing centimeters with meters or inches with feet is the most common source of error. Let the calculator handle the conversions by entering each value in the unit its label requests.

Step-by-step workflow

To get a reliable pipe volume in a few seconds, follow this simple sequence:

  1. Choose metric or imperial units to match how you measured the pipe.
  2. Decide whether you know the inner diameter or the inner radius, and select that measurement type.
  3. Enter the bore value in centimeters (metric) or inches (imperial). Use the manufacturer's published inside diameter when possible.
  4. Enter the length of the run in meters (metric) or feet (imperial), using the developed length along the pipe.
  5. Pick the output unit your project needs: liters, US or UK gallons, cubic feet, or cubic meters.
  6. Read the result and the additional conversions. Cross-check the order of magnitude against a rough estimate so an obvious unit slip does not slip through.

With those steps the calculator gives a fast, repeatable answer you can use for plumbing, pools, irrigation, and engineering estimates, and you can pair it with the related pipe sizing and volume tools to move from capacity to flow and pressure planning.

Frequently Asked Questions

How do you calculate the volume of a pipe?

A pipe is a cylinder, so its internal volume is V = π × r² × L, where r is the inner radius and L is the length. If you only know the inner diameter, divide it by two to get the radius first. Keep the radius and length in the same length unit, then convert the result to liters, gallons, or cubic feet as needed.

Should I use the inner or outer diameter?

Use the inner diameter (the bore) when you want the fluid capacity, because that is the space available for water, air, or other media. The outer diameter includes the wall thickness, so using it overestimates capacity. For copper, PVC, and steel pipe, the nominal size and schedule determine how much wall thickness to subtract.

How many liters are in a meter of pipe?

It depends on the bore. A pipe with a 25 mm (2.5 cm) inner diameter holds about 0.49 liters per meter, while a 50 mm pipe holds roughly 1.96 liters per meter because volume grows with the square of the radius. Doubling the diameter quadruples the volume per unit length, which is why pipe sizing has such a large effect on capacity.

How do I convert pipe volume to gallons?

First calculate the volume in cubic meters or liters, then multiply. One cubic meter equals about 264.17 US gallons or 219.97 UK (imperial) gallons, and one liter equals about 0.264 US gallons. This calculator shows US gallons, UK gallons, liters, cubic feet, and cubic meters at the same time so you can pick the unit your project uses.

Why does pipe volume matter for plumbing and pools?

Knowing internal volume helps you size pumps, estimate how long it takes to fill or drain a line, dose chemicals correctly, and calculate purge or flush quantities. Pool and spa technicians use it to figure plumbing holdup volume, irrigation designers use it to plan flow and pressure, and engineers use it to estimate the mass of fluid a line carries.

Does pipe length include fittings and bends?

This calculator treats the pipe as a straight cylinder of constant bore, so it does not add the small extra volume inside elbows, tees, or valves. For most estimates that difference is negligible, but for precise system holdup you can add the manufacturer's published volume for each fitting or measure the developed length along the centerline of every bend.