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.
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.
V = π r² L V = π d² L / 41 ft³ = 7.4805 gal 1 m³ = 1,000 LThe 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.
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.
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.
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.