Plumbing, Piping & Hydraulics Pipe Flow & Hydraulics Right-circular-cylinder volume; 231 in³ per US gallon

Pipe Volume Calculator

Enter the inside diameter and length of a pipe run and this calculator returns how much liquid it holds — in US gallons, litres, cubic feet and cubic metres — plus the gallons per linear foot and the weight of the contained water. Those are the numbers you need to plan a flush, dose a chlorination, fill a hydrostatic test, size a glycol charge or work out what a full riser weighs before you hang it. Use the actual bore, not the nominal size: a nominal 4-inch Schedule 40 pipe has a 4.026 in inside diameter and holds 3% more than 4.000 in would suggest.

Calculator

This calculator runs in your browser. Enable JavaScript for live results — the inputs, formula and worked example below remain fully readable without it.

Inputs this calculator takes, with typical values
InputWhat to enterExample
Inside diameterThe bore, taken from the pipe schedule or SDR table — not the nominal trade size.4.026 in
Length of one runCentreline length of a single run. Fittings add a little, and this ignores them.100 ft
Number of identical runsUse this for parallel risers, loops or coils of the same size and length.1
Fluid specific gravity1.00 for water. Use the value from the product data sheet for glycol, brine or fuel.1
Fill or flush flow rateFlow you can actually deliver; used to work out how long one full volume exchange takes.20 gpm

It returns

  • Total volume — US gallons held by every run combined when the pipe is full.
  • Total volume
  • Total volume
  • Gallons per linear foot
  • Weight of contents
  • Time for one full exchange

The formula

V=π4D2L
galft=0.0408d2
W=V62.366SG

In plain text: V = π/4 · D² · L gallons = V(ft³) × 7.4805

  • VInternal volume of the run (ft³)
  • DInside diameter, in feet (ft)
  • LTotal length of pipe (ft)

One US gallon is exactly 231 cubic inches, and one cubic foot is 1,728 cubic inches, so a cubic foot is 1728/231 = 7.4805 gallons.

Updated Category Pipe Flow & Hydraulics Verified against published test cases Reading time 10 min

What pipe volume tells you and when you need it

A pipe is a cylinder, so its capacity is the cross-sectional area times the length. That sounds too simple to need a calculator, and it would be, except that four things trip people up: the bore is never the nominal size, area goes as the square of diameter, US gallons are defined in cubic inches while pipe lengths are in feet, and the answer is usually needed for several parallel runs at once.

The number matters in more jobs than most people expect. Disinfecting a new water main under AWWA C651 requires a known volume so the chlorine dose lands at the specified concentration. Flushing a line requires enough volume exchanges to be meaningful — you cannot claim three exchanges without knowing what one exchange is. Charging a hydronic loop with glycol requires the system volume before you can buy the right quantity of concentrate. And filling a large riser for a hydrostatic test loads the structure with a weight that is not in the empty-pipe hanger schedule.

The compact form worth memorising is gallons per foot = 0.0408 × d², with d in inches. A 2-inch bore holds 0.163 gal/ft, a 4-inch holds 0.653, a 6-inch holds 1.469. Because of the square, doubling the bore quadruples the capacity — which is also why a service upgrade from 3/4-inch to 1-inch pipe leaves 62% more water sitting in the line between draws.

Where the constant 0.0408 comes from

Work it through once and you never have to look it up again. Take a pipe of bore d inches. Convert to feet by dividing by 12, so the radius in feet is d/24 and the area is π/4 × (d/12)² = 0.0054542 × d² square feet.

One foot of that pipe therefore encloses 0.0054542 × d² cubic feet. A US gallon is defined as exactly 231 cubic inches and a cubic foot is 12³ = 1,728 cubic inches, so one cubic foot is 1,728 ÷ 231 = 7.48052 gallons. Multiply: 0.0054542 × 7.48052 = 0.0408 gallons per foot per square inch of diameter.

The weight follows from density. Water at 60 °F weighs 62.366 lb/ft³, so the contents weigh volume in cubic feet times 62.366 times the specific gravity of whatever is actually in the pipe. Expressed per gallon that is 8.337 lb — the familiar "a pint's a pound" rule is close but 4% light, because a US pint of water weighs 1.042 lb.

Metric users have the easier version: volume in litres equals π/4 × d(mm)² × L(m) ÷ 1,000,000, and a litre of water weighs a kilogram to within a fraction of a percent at room temperature.

Worked example: chlorinating 600 ft of new 6-inch main

You have laid 600 ft of nominal 6-inch Schedule 40 pipe and need to dose it for disinfection. The bore is 6.065 in.

  1. Diameter in feet. 6.065 ÷ 12 = 0.505417 ft.
  2. Area. π/4 × 0.505417² = 0.785398 × 0.255446 = 0.200627 ft².
  3. Gallons per foot. 0.200627 × 7.48052 = 1.50080 gal/ft. Cross-check against the shortcut: 0.0408 × 6.065² = 0.0408 × 36.784 = 1.5008. They agree.
  4. Total volume. 1.50080 × 600 = 900.5 gallons.
  5. Weight of the fill. 900.5 gal ÷ 7.48052 = 120.38 ft³; × 62.366 = 7,508 lb, or 3.75 tons of water sitting on the bedding.
  6. Chlorine dose. To reach 25 mg/L you need 25 mg per litre of system volume. 900.5 gal × 3.78541 = 3,408.6 litres, so 3,408.6 × 25 = 85,215 mg = 85.2 g of available chlorine. From 12.5% sodium hypochlorite at 1.2 kg/L of solution, that is 85.2 ÷ (0.125 × 1200) = 0.57 litres of product.
  7. Flushing time. At 100 gpm, one full volume exchange takes 900.5 ÷ 100 = 9.0 minutes, so three exchanges take 27 minutes of continuous flow.

Every figure above is derived from the same 1.5008 gal/ft. Get the bore wrong — use 6.000 in instead of 6.065 in — and every one of them drops by 2.1%, because (6.000/6.065)² = 0.979.

Gallons per foot for Schedule 40 pipe

Computed as 0.0408 × d² using ASME B36.10 Schedule 40 inside diameters. Multiply the middle column by your run length in feet.
Nominal sizeInside diameter (in)Gallons per footLitres per metreGallons in 100 ft
1/2 in0.6220.015780.1961.58
3/4 in0.8240.027700.3442.77
1 in1.0490.044900.5584.49
1-1/4 in1.3800.077700.9657.77
1-1/2 in1.6100.105761.31310.58
2 in2.0670.174322.16517.43
3 in3.0680.384034.76938.40
4 in4.0260.661318.21366.13
6 in6.0651.5007918.639150.08
8 in7.9812.5988032.275259.88

Litres per metre is the gallons-per-foot figure × 3.785412 ÷ 0.3048. Copper, PEX and CPVC have different bores at the same nominal size, so use the table for the material you are actually installing.

Nominal size is not bore, and the gap is not small

Nominal pipe size is a label, not a dimension. Nominal 1-inch Schedule 40 steel has a 1.049 in bore; nominal 1-inch Type L copper has a 1.025 in bore; nominal 1-inch PEX has roughly a 0.86 in bore. Because volume goes as the square of diameter, that PEX run holds 33% less water per foot than the steel one. If you charge a glycol system from a nominal-size table you will be short.

The same trap hits pressure work harder still. Friction loss goes roughly as the inverse fifth power of bore, which is why the Darcy-Weisbach calculator and the Hazen-Williams calculator both insist on the actual inside diameter.

What this calculation does not include

  • Fittings and valves. Elbows, tees and valve bodies hold extra volume that the straight-run formula misses. On a fitting-dense mechanical room the omission can reach several percent; on a long main it is negligible.
  • Tanks, coils and equipment. A hydronic system's volume is the piping plus the boiler, the buffer tank and every coil. Pipe volume alone will understate a glycol charge badly.
  • Partial fill. This assumes the pipe runs completely full. A gravity drain or sewer carries much less; use the Manning's equation calculator, which computes the flow area at a given depth.
  • Thermal expansion. Water expands about 4% between 40 °F and 200 °F, which is what an expansion tank absorbs. Volume computed here is the cold figure.
  • Wall thickness and pipe weight. The output is the weight of the contents only. Add the empty pipe weight from the material's own schedule before checking hangers or structural loads.
  • Entrained air. A freshly filled system holds air at high points until it is vented, so the volume you actually pump in on the first fill is less than the geometric volume.

Volume, velocity and residence time

Volume and flow together give you residence time, and residence time is what water-quality problems are really about. A 200 ft run of 2-inch pipe holds 34.9 gallons; at a household draw of 5 gpm the water in it is replaced every 7 minutes, but between draws overnight it sits for hours. That is why oversizing a service line has a real cost — chlorine residual decays, temperature drifts toward the ambient, and the first draw in the morning is the water that has been sitting longest.

The same volume, divided differently, gives velocity. Flow rate divided by cross-sectional area is the mean velocity, which the pipe water velocity calculator computes directly and checks against material limits. Volume per foot and area are the same quantity in different clothing: gallons per foot is just the area expressed in a unit plumbers use.

For test and commissioning work, keep the weight output in view. A 100 ft vertical riser of 8-inch pipe holds 260 gallons weighing 2,166 lb, and a hydrostatic test imposes that load on hangers that may have been designed for an air-filled line. The psi to feet of head converter handles the other half of that check: the static pressure at the bottom of the same riser.

Why fill time from flow rate alone is a floor, not a promise

The fill-time output divides the pipe's volume by the flow rate you enter, which gives the time to deliver that much water if every gallon leaving the source arrives in the pipe without delay. In practice a run with high points rarely fills that cleanly, and the gap between the calculated time and the real one is a genuine failure mode on commissioning day, not a rounding error.

Air has to go somewhere as water enters an empty pipe. On a straight, sloped run with a vent at the high end, air is pushed ahead of the water and escapes with little resistance, so the calculated time is close to the real one. On a run with an unvented high point — a loop, a low-pitched section, a riser whose air valve isn't installed yet — incoming water compresses the trapped air instead of displacing it, and the flow slows or stalls until someone finds and opens a vent. The symptom is a fill that appears to stop making progress well short of the calculated time, followed by a lurch once the air finds a way out.

The practical fix is procedural rather than mathematical: identify every high point on the isometric before starting the fill, confirm each one has a working vent or a valved bleed point, and fill slowly enough that trapped air has time to migrate to it. None of that changes the gallons this calculator reports — the geometric volume is fixed by the pipe's own dimensions — but it changes how long delivering that volume actually takes, sometimes by a large margin on a run with several unvented high points.

Frequently asked questions

How many gallons are in 100 feet of 1-inch pipe?

About 4.5 gallons for Schedule 40 steel or PVC, whose bore is 1.049 in: 0.0408 × 1.049² = 0.0449 gal/ft, times 100 ft. Type L copper at a 1.025 in bore holds 4.29 gallons over the same run, and 1-inch PEX at roughly a 0.86 in bore holds about 3.0 gallons. The nominal size is the same in all three cases; the capacity differs by half as much again.

What is the quickest way to estimate gallons per foot in the field?

Square the bore in inches and divide by 25. That gives 0.04 × d², which is within 2% of the exact 0.0408 × d² and needs no calculator. A 2-inch bore: 4 ÷ 25 = 0.16 gal/ft against the exact 0.163. A 6-inch bore: 36 ÷ 25 = 1.44 against the exact 1.469. Use it for scoping and the exact figure for dosing.

Should I use the inside or outside diameter?

The inside diameter, always. The volume of a pipe is the volume of the hole, not of the material. This trips people up on copper and PEX in particular, where the trade size refers to neither dimension: nominal 1/2-inch Type L copper has a 0.625 in outside diameter and a 0.545 in bore, and using the outside diameter would overstate the capacity by 32%.

How much does the water in my pipe weigh?

Multiply the volume in gallons by 8.337 lb for water at 60 °F, or the volume in cubic feet by 62.366 lb. A 100 ft run of 4-inch pipe holds 66.1 gallons and therefore about 551 lb of water. For glycol mixes multiply again by the specific gravity — a 50% propylene glycol solution runs about 1.04, so it is 4% heavier than water at the same volume.

How do I work out a chlorine dose from this volume?

Convert gallons to litres by multiplying by 3.78541, then multiply by the target concentration in mg/L to get milligrams of available chlorine. For 900 gallons at 25 mg/L: 900 × 3.78541 = 3,407 litres, × 25 = 85,175 mg = 85.2 g. Divide by the strength and density of your product to get the volume to add. AWWA C651 sets the concentrations and contact times for potable main disinfection.

How many volume exchanges does a proper flush need?

Three full volume exchanges is the common specification, and this calculator's exchange time tells you how long that takes at your available flow. The flow matters as much as the duration: flushing is only effective if the velocity is high enough to scour, which typically means at least 2.5 to 3 ft/s. Check that with the pipe velocity calculator before you time anything.

Does this work for a pipe that is not full?

No. It assumes a completely full circular bore. A gravity drain, sewer or culvert normally runs partly full, and the flow area at a given depth is a circular-segment calculation rather than a full circle — at half depth the area is exactly half, but at a quarter depth it is only 19.6%. The Manning's equation calculator handles partial depths directly.

Why does the calculator ask for a number of runs?

Because most real jobs involve several identical lengths — parallel risers, radiant loops, a coil of tubing cut into equal circuits. Entering the length of one run and the count is less error-prone than multiplying in your head, and the intermediate step is shown so you can check it. Runs of different sizes have to be added separately.

References

  • ASME B36.10M, Welded and Seamless Wrought Steel Pipe — American Society of Mechanical Engineers
  • AWWA C651, Disinfecting Water Mains — American Water Works Association
  • NIST Handbook 44, Appendix C — General Tables of Units of Measurement — National Institute of Standards and Technology
  • Copper Tube Handbook — Copper Development Association