Pipe Volume Calculator
Calculate the internal volume of a pipe from its dimensions — by inner diameter, or by outer diameter and wall thickness.
Enter the pipe's inner diameter directly, or its outer diameter plus wall thickness if that's what you have on hand. Add multiple segments to the batch list to total up a multi-section run.
Step-by-Step Solution
Here's exactly how this answer was calculated, one step at a time.
- 1
Convert inner diameter to millimeters
50 Millimeters = 50 mm
Every unit is converted to millimeters first so the rest of the calculation stays consistent.
- 2
Convert length to millimeters
10 Meters = 10,000 mm
The pipe length is converted into the same unit system as the diameter.
- 3
Apply the cylinder volume formula
V = π × (50 ÷ 2)² × 10,000 mm = 19.635 L
Volume equals pi times the radius squared times the length — the standard formula for a cylinder, applied to the pipe's inner bore.
✓ Final Answer: Internal Volume ≈ 19.63 liters
Free Online Pipe Volume Calculator
This pipe volume calculator works out the internal (bore) volume of a straight, round pipe from its diameter and length, then converts the answer into every commonly used volume unit — liters, cubic meters, US gallons, imperial gallons, cubic feet, and cubic inches. You can enter the pipe's inner diameter directly, or enter its outer diameter and wall thickness instead and let the calculator work out the inner diameter for you. Add a pipe material and it will also estimate how much the pipe itself weighs, and the batch list lets you total up several pipe sections at once — handy for multi-segment runs or pipes with more than one diameter along their length.
Pipe volume calculations come up constantly in plumbing, irrigation, HVAC, industrial piping, oil and gas, and even home brewing — anywhere liquid or gas moves through a round pipe and someone needs to know exactly how much it holds.
The Pipe Volume Formula
A pipe is simply a hollow cylinder, so its internal volume uses the standard formula for the volume of a cylinder, applied to the inner bore rather than the outer surface:
- Volume = π × r² × Length, where r is the internal radius
- Volume = π × (D ÷ 2)² × Length, where D is the internal diameter
- If only the outer diameter is known: Internal Diameter = Outer Diameter − (2 × Wall Thickness)
How to Use This Calculator
First, choose whether you know the pipe's inner diameter directly, or its outer diameter and wall thickness instead. Many pipes are labeled by their outer or nominal size, so if that's what's printed on the pipe or the box, switch to "By Outer Diameter + Wall Thickness" and the calculator will subtract the wall on both sides automatically. Enter the pipe's length and pick whichever units match what you measured. If you want an estimated weight for the pipe itself, choose a material — the weight estimate needs both the outer diameter and wall thickness, since it depends on how much solid material makes up the pipe wall. For multi-segment pipe runs, calculate each section and use "Add This Pipe to Batch List" to keep a running total.
Worked Example
Say you have a pipe with an inner diameter of 5 centimeters (50 mm) and a length of 10 meters. The radius is 25 mm. Squaring that gives 625, multiplying by π gives about 1,963.5, and multiplying by the length of 10,000 mm gives roughly 19,635,000 cubic millimeters — which works out to about 19.6 liters, or about 5.2 US gallons. That matches what this calculator shows if you enter 50 mm for the inner diameter and 10 m for the length.
Now say the same pipe is actually PVC with an outer diameter of 60 mm and a 5 mm wall. Switching to "By Outer Diameter + Wall Thickness" and entering those numbers gives the same 50 mm inner diameter (60 − 2×5), the same 19.6 liter internal volume, plus an estimated pipe weight of a few kilograms based on PVC's density.
Why Wall Thickness Matters
Pipes are usually sold and labeled by their outer or nominal diameter, not the actual internal diameter. Once the wall thickness is subtracted from both sides, the real internal bore is smaller — sometimes noticeably so for thick-walled steel or cast iron pipe. Using the outer diameter by mistake instead of the inner diameter is one of the most common errors when estimating pipe capacity, and because volume scales with the diameter squared, even a small mix-up can throw the final number off by a meaningful margin.
Converting Between Volume Units
Pipe volume shows up in different units depending on the industry and country, so this calculator converts the result automatically:
- Cubic meters to liters: multiply by 1,000.
- Liters to US gallons: multiply by 0.264172.
- Liters to imperial gallons: multiply by 0.219969.
- Cubic meters to cubic feet: multiply by 35.3147.
- Cubic feet to cubic inches: multiply by 1,728.
Where Pipe Volume Calculations Are Used
This kind of calculation touches a wide range of everyday and professional piping work:
- Plumbing: sizing expansion tanks, estimating how much water is trapped in long supply lines, and dosing flushing chemicals at the right concentration.
- Irrigation and agriculture: working out how much water sits in a mainline or drip system at any moment, which affects pump sizing and fill time.
- HVAC and refrigeration: charging chilled water, glycol, or refrigerant loops with an accurate volume rather than a rough guess.
- Oil, gas, and industrial piping: pigging operations, pipeline product inventory during a shutdown, and general process piping design.
- Home brewing and winemaking: figuring out how much beer or wine is left behind in transfer tubing after moving a batch.
Common Mistakes to Avoid
A few errors come up again and again when people calculate pipe volume by hand:
- Using the outer or nominal diameter instead of the inner diameter, which overstates the real volume.
- Mixing units — entering millimeters but reading the length in feet, or vice versa — without converting first.
- Forgetting that fittings, valves, and bends add their own internal volume that a simple cylinder formula doesn't capture.
- Applying a single diameter to a pipe run that actually changes size partway through, instead of calculating each section separately.
Limitations of This Calculator
This calculator assumes a straight, uniform, round pipe with a constant internal diameter along its full length. It does not account for the extra volume inside fittings, valves, elbows, or reducers, and it assumes the pipe is completely full — a partially filled pipe or open channel needs a different calculation. The weight estimate covers the solid pipe wall only, using a standard density for the selected material, and does not include coatings, linings, insulation, or fittings. Use these figures for planning and general reference, and confirm exact specifications with a manufacturer's datasheet for critical engineering work.
Frequently Asked Questions
How do you calculate the volume of a pipe?
Use the cylinder volume formula: Volume = π × r² × Length, where r is the pipe's internal radius (half the internal diameter). If you only know the outer diameter, subtract twice the wall thickness first to find the internal diameter.
Do I use the inner or outer diameter to calculate pipe volume?
Always use the inner diameter for volume, since that's the space liquid or gas actually fills. The outer diameter includes the solid pipe wall, which holds no volume. This calculator lets you enter either one — if you only have the outer diameter, add the wall thickness and it will work out the inner diameter automatically.
How do I calculate pipe volume in liters?
Calculate the volume in cubic meters using π × r² × Length with the radius and length both in meters, then multiply by 1,000 to convert to liters. This calculator does that conversion for you automatically alongside gallons, cubic feet, and cubic inches.
How do I calculate pipe volume in gallons?
Find the volume in liters first, then multiply by 0.264172 for US gallons or 0.219969 for imperial gallons. One cubic meter equals about 264.17 US gallons.
How much water does a 100 ft pipe hold?
It depends entirely on the inner diameter — volume scales with diameter squared, so a wider pipe holds far more water over the same length. Enter your pipe's inner diameter and set the length to 100 feet in this calculator to get an exact figure.
How do I estimate the weight of a pipe, not just its water volume?
Select a material such as steel, copper, or PVC in the calculator, and make sure you've entered both the outer diameter and wall thickness. The tool multiplies the solid wall volume (outer cylinder minus inner cylinder) by the material's typical density to estimate the pipe's own weight, separate from any liquid inside it.
How do I calculate the volume of a pipe with varying diameter?
Break the pipe into straight sections of constant diameter, calculate the volume of each section separately, and add them together. Use the "Add This Pipe to Batch List" feature above to keep a running total across multiple sections.