Pipe Volume Calculator

Compute pipe interior volume from inner diameter and length.

Home Multi-unit Hydronics
Rate this calculator · 5.0 (1)

Pipe Volume

V = π(d/2)² × L · multi-unit input · multi-unit output

Instructions — Pipe Volume Calculator

1

Enter the inner diameter

Use the pipe interior diameter, not the outer or nominal size. NPS labels (Schedule 40, NPS 2) refer to outer diameter; look up the actual inside diameter from an ASME B36.10M table for accurate results.

2

Enter the pipe length

Total run from end to end. For long sections with fittings, sum the straight runs and add a small allowance for elbows and tees that hold extra fluid.

3

Read the volume

Output appears in US gallons, litres, cubic feet, and cubic metres. The "per unit length" figure helps when planning longer runs or sizing fill jobs against partial deliveries.

The formula: V = π(d/2)² × L. Volume scales with the square of diameter and linearly with length. Doubling diameter quadruples volume.
Inner versus outer: a 2-inch nominal Schedule 40 steel pipe has 2.067-inch inside diameter. Using 2.000 inches underestimates volume by 6.6%.

Formulas

Pipe volume is the volume of a cylinder. The math is one calculation but the inputs — especially diameter — require care because pipe sizing standards rarely match the actual inside dimension.

Cylinder volume
$$ V = \pi r^{2} L $$
r is the inside radius and L is the length. Both must be in the same units. The result comes out in cubic units of whatever you measured in.
Diameter form
$$ V = \pi \left(\frac{d}{2}\right)^{2} L = \frac{\pi d^{2} L}{4} $$
Easier form when you have diameter directly. Divides by 4 once at the end instead of squaring the half-diameter.
Inner diameter from OD and wall
$$ d_{i} = d_{o} - 2t $$
If you only have outer diameter (OD) and wall thickness, subtract twice the wall to get the inside diameter. A 2.375-inch OD Schedule 40 steel pipe with 0.154-inch wall has 2.067-inch ID.
Cubic feet to US gallons
$$ 1\,\text{ft}^{3} = 7.4805\,\text{US gal} $$
Useful for plumbing and hydronics where pipes are sized in feet but capacity is quoted in gallons. The factor is exact: 231 cubic inches per US gallon, 1,728 cubic inches per cubic foot.
Cubic metres to litres
$$ 1\,\text{m}^{3} = 1{,}000\,\text{L} $$
Exact by definition in the SI. Useful when working in metric pipe (DN sizes) and litres for fluid capacity.
Volume per length
$$ \frac{V}{L} = \pi r^{2} $$
The cross-sectional area, which gives capacity per unit length: gallons per foot or litres per metre. Constant along uniform-diameter sections.

Reference

Schedule 40 steel pipe capacity
NPSOD (in)ID (in)Gal/ftL/m
1/20.8400.6220.01580.196
3/41.0500.8240.02770.344
11.3151.0490.04490.558
1 1/41.6601.3800.07770.965
1 1/21.9001.6100.1061.32
22.3752.0670.1742.16
33.5003.0680.3844.77
44.5004.0260.6618.21
66.6256.0651.50118.64

Common pipe sizing references

From ASME B36.10M (welded and seamless wrought steel pipe). Inside diameters change with schedule.

Domestic plumbing
UseNPS
Faucet supply3/8 to 1/2
Hot water branch1/2
Cold water main3/4 to 1
Service entrance3/4 to 1 1/4
Drain (kitchen)1 1/2
Hydronic / industrial
UseNPS
Radiator branch1/2 to 3/4
Heating main1 to 1 1/2
Boiler header2 to 3
Process water2 to 6
Light industrial4 to 12

Schedule 80 has the same outer diameter as Schedule 40 but thicker walls and smaller ID. A 2-inch Schedule 80 has 1.939-inch ID, holding 12% less fluid per foot than Schedule 40.

Article — Pipe Volume Calculator

Pipe volume: the cylinder math that runs every plumbing job

Pipe volume is the volume of a cylinder: V = π × (inside radius)² × length, or equivalently πd²L/4 if you have diameter rather than radius. Both inputs must be in the same units. A 2-inch nominal Schedule 40 steel pipe (2.067-inch inside diameter) holds 17.4 US gallons per 100 feet of length. The math has no surprises; the traps are all in which diameter you use.

The single biggest error in pipe volume calculations is using the wrong diameter. NPS labels like "2-inch pipe" refer to the nominal pipe size, which roughly matches the outer diameter, not the inside one. Fluid fills the inside only. Picking the right number off a schedule chart matters more than the formula itself.

What pipe volume means

Pipe volume is the interior capacity of a length of pipe — the amount of water, oil, gas, or other fluid that fits inside it. For a uniform-bore pipe, the geometry is a cylinder, which makes the math straightforward. For real pipes with fittings, elbows, and valves, the calculation is the straight run plus modest allowances for what those fittings hold.

Plumbers and hydronics installers use pipe volume to size fill jobs, calculate boiler water capacity, plan flushing volumes, and check pressure-test water requirements. Process engineers use it to estimate inventory in a pipeline, calculate residence times for reactions, and size drain-down vessels. Pool installers use it to compute the water that lives in return lines independent of the pool body.

Did you know

The Trans-Alaska Pipeline holds about 9 million gallons of crude oil at any time — the equivalent of 18 hours of pumping. Calculating that requires no more than the same V = πr²L formula used to compute the water in a kitchen drain line. Scale changes; geometry does not.

The pipe volume formula

The formula is the volume of a right circular cylinder. Take the inside radius, square it, multiply by π, then multiply by length. If you only have diameter, divide by two first or use the equivalent form V = πd²L/4.

Pipe volume shorthand
V = π r² L V = π d² L / 4
1 ft³ = 7.4805 gal 1 m³ = 1,000 L

The volume scales with the square of the diameter and linearly with length. Doubling diameter quadruples volume. Doubling length only doubles volume. This is why small-bore pipes carry tiny amounts of water even over long runs: a 1/2-inch supply line at 100 feet holds only 1.6 US gallons, while a 4-inch service main at the same length holds 66 gallons.

Inner versus outer diameter

The fluid fills the inside of the pipe, so volume calculations use inside diameter (ID). Outer diameter (OD) measures the pipe across the metal or plastic walls and is what people typically see when they hold a pipe. For nominal pipe sizes (NPS), the named size usually approximates the OD, not the ID.

A 2-inch nominal Schedule 40 steel pipe under ASME B36.10M is 2.375 inches OD with 0.154-inch walls, giving a 2.067-inch ID. Using 2.000 inches for the volume calculation underestimates by 6.6%; using 2.375 inches overestimates by 32%. Always pull the actual ID from a schedule chart.

Nominal pipe size is a label, not a measurement

NPS values like "2 inch" or "3/4 inch" are nominal designations carried over from early-20th-century practice. They originally tracked inside diameter for thin-walled iron pipe, but modern schedules use thicker walls and the inside diameter has drifted from the label. Check ASME B36.10M or a manufacturer table before assuming dimensions.

Pipe volume reference chart

The numbers below come from ASME B36.10M Schedule 40 carbon steel pipe, the residential and light-industrial standard. Volumes are gallons per foot of straight run. PVC and copper differ slightly because of different wall thicknesses; check manufacturer tables for tight work.

  • 1/2 inch NPS — 0.622 in ID, 0.0158 gal/ft, 0.196 L/m
  • 3/4 inch NPS — 0.824 in ID, 0.0277 gal/ft, 0.344 L/m
  • 1 inch NPS — 1.049 in ID, 0.0449 gal/ft, 0.558 L/m
  • 1 1/4 inch NPS — 1.380 in ID, 0.0777 gal/ft, 0.965 L/m
  • 1 1/2 inch NPS — 1.610 in ID, 0.106 gal/ft, 1.32 L/m
  • 2 inch NPS — 2.067 in ID, 0.174 gal/ft, 2.16 L/m
  • 3 inch NPS — 3.068 in ID, 0.384 gal/ft, 4.77 L/m
  • 4 inch NPS — 4.026 in ID, 0.661 gal/ft, 8.21 L/m

A 1-inch service line is typical for single-family residential water service. At 0.0449 gallons per foot, 50 feet from the meter to the house holds about 2.25 gallons — the amount you need to flush after a plumbing sit-out.

Schedule and its effect on pipe volume

Schedule numbers (Schedule 40, Schedule 80, Schedule 160) indicate wall thickness, not diameter. Higher schedule means thicker walls within the same outside diameter envelope, which means smaller inside diameter and smaller pipe volume.

Schedule 40 (2 in)
2.067 in ID
0.174 gal/ft
Schedule 80 (2 in)
1.939 in ID
0.153 gal/ft

The volume gap matters most in high-pressure applications where Schedule 80 or higher is required. Process systems sized assuming Schedule 40 will hold about 12% more fluid than the actual Schedule 80 line in 2-inch nominal sizing; the over-estimate grows in larger diameters.

Tip

If you do not know the schedule, measure inside diameter directly with calipers at a cut end, or look up the manufacturer specification. Do not assume Schedule 40 for any pipe handling more than residential water pressure — gas lines, process steam, and high-pressure hydraulics use higher schedules routinely.

A worked pipe volume example

Suppose you want to know how much water sits in a 75-foot run of 3/4-inch Schedule 40 copper supply line. The 3/4-inch copper Type L has 0.785-inch inside diameter (Type L is the residential plumbing default in the US). Plugging in: V = π × (0.3925)² × 900 in = 436 cubic inches = 1.89 US gallons = 7.15 litres.

Switching to the metric form: a 20 mm ID line over 23 metres gives V = π × (10 mm)² × 23,000 mm = 7,226 cubic centimetres = 7.23 litres. Different units, same result within rounding. The formula does not care which system you use as long as the diameter and length share units.

Common pipe volume mistakes

Three errors dominate. First, mixing diameter and radius. The formula needs radius squared, not diameter squared. Forgetting to divide by 2 (or to use the d²/4 form) inflates volume by a factor of four.

Second, mixing units. Diameter in inches and length in feet, plugged into the cylinder formula without conversion, give a meaningless result. Convert to a single unit first, then run the math, then convert the final volume to whatever output unit you want.

Third, using nominal pipe size as if it were inside diameter. NPS labels and the actual ID can differ by 5 to 15% depending on schedule and material. For accurate work, always pull ID from the manufacturer datasheet or a schedule chart, never from the label on the pipe.

FAQ

Volume = π × (inner diameter ÷ 2)² × length. All inputs must be in the same units. Volume comes out in cubic units of whatever you measured. Convert to gallons or litres as needed.
Always use inner diameter for volume. Outer diameter includes the wall thickness, which the fluid does not fill. A 2-inch nominal Schedule 40 steel pipe has 2.375-inch OD but only 2.067-inch ID.
For a Schedule 40 steel 2-inch pipe (ID 2.067 in): V = π × (1.0335)² × 1200 in / 231 in³/gal = 17.4 US gallons. The calculator returns the same answer with the diameter and length entered.
Schedule indicates wall thickness, not strength rating directly. Higher schedule means thicker walls and smaller inside diameter. Schedule 40 is residential standard; Schedule 80 is heavier-duty; Schedule 160 is high-pressure. ASME B36.10M defines the exact dimensions.
ID = OD − 2 × wall thickness. A 1-inch nominal Schedule 40 pipe has 1.315-inch OD and 0.133-inch wall, so ID = 1.315 − 0.266 = 1.049 inches. Schedule tables in any pipe handbook list both.
For a simple capacity calculation, no — just use straight run. For more accuracy, add equivalent length for each fitting (an elbow is roughly 30 pipe diameters of equivalent length for flow purposes, but only adds its physical interior volume to capacity calculations).
Use the same formula with the plastic pipe's inside diameter. PVC Schedule 40 has slightly larger ID than steel Schedule 40 of the same nominal size because PVC walls are thinner. Manufacturer datasheets give exact dimensions.
Volume per unit length is just the cross-sectional area: π × r². For a 25 mm ID pipe: π × (12.5 mm)² = 491 mm² = 0.491 L/m. Multiply by the length in metres to get total litres.
No, this assumes the pipe is fully filled. For partially filled (gravity drain, open channel), use a partial-area formula based on flow depth — the math involves the circular segment area, which is more complicated.