How to calculate pipe volume (litres and gallons)
Pipe volume formula: V = π × r² × L, where r is the inside radius and L is the pipe length. For a ¾-inch pipe 120 feet long: V = π × (0.03125 ft)² × 120 ft = 0.368 ft³ ≈ 2.75 US gallons. The calculator below does this instantly — enter any diameter and length in imperial or metric and it returns the volume in gallons and litres.
Open the pipe volume calculator → Switch between imperial (inches, feet, US gallons) and metric (millimetres, metres, litres) with the unit toggle. It also shows the volume in cubic feet and cubic metres.
1. The formula
A pipe is a cylinder, so its internal volume is the area of the circular cross-section multiplied by the length:
V = π × r² × L where: r = inside radius (= inside diameter ÷ 2) L = length of the pipe run π ≈ 3.14159265
You can also write it using the full diameter instead of the radius:
V = (π ÷ 4) × D² × L
The result of the formula is in cubic units — cubic feet if you used feet, cubic metres if you used metres. From there:
- Cubic feet → US gallons: multiply by 7.4805 (exact: 1 ft³ = 1728 ÷ 231 gal)
- Cubic metres → litres: multiply by 1,000 (exact)
- US gallons → litres: multiply by 3.7854 (exact: 1 US gal = 3.785411784 L)
2. Inside diameter vs nominal diameter
The formula uses the inside diameter, not the outside diameter or the nominal (label) size. Nominal pipe sizes are historical labels that do not directly equal either inside or outside dimensions — they exist so fittings line up on site.
For water-volume calculations the difference between nominal and actual inside diameter is usually small (a few percent), so the nominal size is a reasonable starting point. For precision work — commissioning a large system, calculating chemical doses for a boiler loop, or checking water hammer — use the actual inside diameter from the pipe manufacturer's data sheet. Wall thickness varies by schedule (Sch 40, Sch 80) and material (copper type L vs type M, PVC, HDPE).
In practice: enter the diameter you know (the label on the pipe) and treat the result as an estimate accurate to within a few percent. The tables below are computed on the nominal diameter, which is also what the calculator defaults to.
3. Worked examples
Example A — ¾-inch pipe, 120 ft run (imperial)
A ¾-inch supply line running 120 feet from the meter to a bathroom:
r = 0.75 in ÷ 2 = 0.375 in = 0.03125 ft V = π × (0.03125)² × 120 V = π × 0.000977 × 120 V = 0.3681 ft³ V = 0.3681 × 7.4805 = 2.75 US gal (10.4 litres)
That run holds 2.75 gallons — the amount to drain before cutting into it, or the volume to calculate how long a flushing sequence takes.
Example B — 1-inch main, 200 ft (imperial)
A 1-inch main service line running 200 feet from the street to the house:
r = 1.0 in ÷ 2 = 0.5 in = 0.04167 ft V = π × (0.04167)² × 200 V = π × 0.001736 × 200 V = 1.0908 ft³ V = 1.0908 × 7.4805 = 8.16 US gal (30.9 litres)
Over 8 gallons in the service line alone — relevant when testing for lead or when planning a full flush-and-test sequence after work on the main.
4. Quick-reference table
Volumes are computed on the nominal diameter as entered. Actual inside capacity is slightly less (by wall thickness), so treat these as close estimates.
Imperial sizes — US gallons per foot and per 100 ft
| Nominal diameter | Gal per foot | Gal per 100 ft | L per metre |
|---|---|---|---|
| ½" | 0.0102 | 1.02 | 0.127 |
| ¾" | 0.0229 | 2.29 | 0.285 |
| 1" | 0.0408 | 4.08 | 0.507 |
| 1½" | 0.0918 | 9.18 | 1.140 |
| 2" | 0.163 | 16.3 | 2.027 |
| 3" | 0.367 | 36.7 | 4.560 |
| 4" | 0.653 | 65.3 | 8.107 |
Formula check (1-inch): r = 0.5 in = 0.04167 ft → V/ft = π × (0.04167)² × 7.4805 = 0.04079 gal/ft ✓
The pipe volume calculator handles any diameter and length combination and shows all units at once — gallons, litres, cubic feet, and cubic metres.
5. Why pipe volume matters
Draining a pipe run before cutting
Before cutting into any pressurised pipe, a plumber isolates it and drains the water out. Knowing the volume tells you how big a bucket to have ready, whether you need a wet/dry vacuum, and roughly how long draining will take. A 100-foot run of 1-inch pipe holds over 4 gallons — more than one standard bucket.
Water hammer and surge analysis
Water hammer (the bang when a valve closes fast) depends partly on the volume of water in the pipe system. Larger systems have more momentum, which is why long runs and large diameters need surge arrestors or slow-closing valves. Calculating the system volume is the first step in a surge analysis.
Chemical dosing and water treatment
Boiler and hydronic systems require inhibitors or biocides dosed by system volume. If the total system volume is 60 litres, you add inhibitor for 60 litres, not for the boiler vessel alone. An undersized dose leaves the pipework corrosion-prone; an oversized dose is wasteful and can cause foaming. Pipe volume is usually the majority of a heating system's total water volume.
Flushing and water sampling
Lead and Legionella testing protocols often require flushing a specific number of system volumes before drawing a sample — typically one to three full volumes. For a house with 100 feet of mixed ¾-inch and 1-inch pipe (roughly 6–8 gallons of supply-line volume), a three-volume flush means running at least 18–24 gallons before sampling. Knowing the volume turns a vague “flush the taps” instruction into a measurable step.
Commissioning new systems
When filling a new plumbing or hydronic system for the first time, the total volume tells you how long the fill will take at a given flow rate, how much air you need to bleed, and roughly how much water the expansion vessel or pressure tank needs to accommodate. It is also used in pressure testing: a 100-litre system pressurised to 6 bar and held for 30 minutes is a standard commissioning check for sealed heating circuits.
6. Related plumbing calculations
Pipe volume is one calculation in a broader plumbing design workflow. These calculators handle the steps before and after:
- GPM / flow rate calculator — measures how fast water is moving through the system; multiply by time to get volume used
- Pipe water velocity — checks if the flow rate gives a velocity within design limits (typically 2–8 ft/s for cold water)
- Pipe friction loss — how much pressure the pipe run consumes, using the Hazen-Williams equation
- Expansion tank sizing — uses the system water volume to size the thermal expansion tank for a closed hydronic loop
Common questions
- How many gallons of water does 100 feet of pipe hold?
- It depends on the diameter. Using the nominal diameter as the inside measurement: 1/2-inch pipe holds about 1.02 gallons per 100 feet; 3/4-inch holds 2.29 gallons; 1-inch holds 4.08 gallons; 2-inch holds 16.3 gallons. Actual capacity is slightly different because nominal and inside diameters differ by wall thickness.
- How do you calculate the volume of a pipe?
- Use V = π × r² × L, where r is the inside radius (half the inside diameter) and L is the pipe length. Work in feet for cubic feet, then multiply by 7.48 to convert to US gallons — or work in metres for cubic metres, then multiply by 1,000 for litres.
- How much water is in a typical house plumbing system?
- A small house with 3/4-inch and 1/2-inch supply lines totalling around 150 feet of pipe holds roughly 3–5 gallons of water in the supply system. Larger homes with 1-inch mains can easily hold 10–20 gallons, and a heated system with a boiler loop holds significantly more.
- What is the volume of a 4-inch pipe per foot?
- Using 4 inches as the diameter: V = π × (2/12)² × 1 = 0.08727 ft³/ft, which is 0.653 gallons (about 2.47 litres) per foot of pipe. A 10-foot run of 4-inch pipe holds roughly 6.5 gallons.
Reference & education only. Not professional, engineering, or code-compliance advice. Estimates are based on published model codes; local amendments and your Authority Having Jurisdiction (AHJ) govern. Always verify against the current adopted code and a licensed professional before doing work.
Last reviewed 2026-08.