How to use the pipe volume calculator
- Choose US or metric. Diameters switch between inches and millimetres, lengths between feet and metres.
- Pick the pipe. Choose a standard size, enter a custom round pipe (outside diameter + wall, outside + inside, or just the inside), or a square/rectangular tube.
- Enter the length and how many pieces. Add more runs to total a whole plumbing or heating loop.
- Read the capacity in every unit, the liquid weight, the tube weight for your material and — if you enter a flow rate — the time to fill.
Pipe and tube volume formula (Tube Volume Calculator)
How much a pipe holds depends only on its inside diameter and its length:
Capacity = π × (ID ÷ 2)² × L
US gallons = cubic inches ÷ 231
Litres = cubic inches × 0.016387Example (US): 100 ft of 2 in Schedule 40 steel pipe has a 2.067 in inside diameter. π × 1.0335² × 1,200 in = 4,027 in³ ÷ 231 = 17.4 US gallons (66 L).
Example (metric): a 100 mm inside diameter, 10 m long: π × 0.05² × 10 = 0.0785 m³ = 78.54 L, or 7.85 L per metre.
Tube volume calculator: the hollow cylinder
When you need the material — to work out weight, coating or cost — you want the volume of the wall, not the hole. That is the outer cylinder minus the inner one:
Wall volume = π ÷ 4 × (OD² − ID²) × L
ID = OD − 2 × wall thickness
Weight = wall volume × densityA tube 2 in OD × 1.5 in ID × 10 ft has 164.9 in³ of material — about 46.8 lb in carbon steel — and holds 0.92 US gallons inside.
Inside diameter vs outside diameter vs nominal size
- Outside diameter (OD) is fixed for each nominal size, so fittings fit every schedule. A 1 in pipe is 1.315 in OD.
- Inside diameter (ID) is what holds water. Schedule 40 1 in pipe is 1.049 in inside; Schedule 80 is 0.957 in.
- Nominal size is a name. For steel and PVC it matches neither diameter from ⅛ to 12 in. For copper tube, the OD is the nominal size plus ⅛ in (½ in copper is ⅝ in OD).
- Use the inside diameter for capacity. Using the outside diameter overstates a ½ in Schedule 40 pipe by about 82%, and the nominal size can be wrong in either direction.
Gallons per foot and litres per metre by pipe size
Steel and PVC pipe, Schedule 40 and 80
| Size | OD | Sch 40 ID | Sch 40 gal/ft | Sch 40 L/m | Sch 80 gal/ft | Steel Sch 40 lb/ft |
|---|---|---|---|---|---|---|
| 1/2" | 0.840 in | 0.622 in | 0.0158 | 0.1960 | 0.0122 | 0.85 |
| 3/4" | 1.050 in | 0.824 in | 0.0277 | 0.3440 | 0.0225 | 1.13 |
| 1" | 1.315 in | 1.049 in | 0.0449 | 0.5576 | 0.0374 | 1.68 |
| 1-1/4" | 1.660 in | 1.380 in | 0.0777 | 0.9650 | 0.0666 | 2.28 |
| 1-1/2" | 1.900 in | 1.610 in | 0.1058 | 1.31 | 0.0918 | 2.72 |
| 2" | 2.375 in | 2.067 in | 0.1743 | 2.16 | 0.1534 | 3.66 |
| 2-1/2" | 2.875 in | 2.469 in | 0.2487 | 3.09 | 0.2202 | 5.80 |
| 3" | 3.500 in | 3.068 in | 0.3840 | 4.77 | 0.3431 | 7.58 |
| 4" | 4.500 in | 4.026 in | 0.6613 | 8.21 | 0.5972 | 10.80 |
| 6" | 6.625 in | 6.065 in | 1.50 | 18.6 | 1.35 | 18.99 |
| 8" | 8.625 in | 7.981 in | 2.60 | 32.3 | 2.37 | 28.58 |
| 10" | 10.750 in | 10.020 in | 4.10 | 50.9 | 3.73 | 40.53 |
| 12" | 12.750 in | 11.938 in | 5.81 | 72.2 | 5.28 | 53.58 |
Copper tube Type L and PEX
| Tube | OD | ID | gal/ft | gal per 100 ft | L/m |
|---|---|---|---|---|---|
| 3/8" Type L | 0.500 in | 0.430 in | 0.0075 | 0.7544 | 0.0937 |
| 1/2" Type L | 0.625 in | 0.545 in | 0.0121 | 1.21 | 0.1505 |
| 3/4" Type L | 0.875 in | 0.785 in | 0.0251 | 2.51 | 0.3122 |
| 1" Type L | 1.125 in | 1.025 in | 0.0429 | 4.29 | 0.5324 |
| 1-1/4" Type L | 1.375 in | 1.265 in | 0.0653 | 6.53 | 0.8108 |
| 1-1/2" Type L | 1.625 in | 1.505 in | 0.0924 | 9.24 | 1.15 |
| 2" Type L | 2.125 in | 1.985 in | 0.1608 | 16.1 | 2.00 |
| 3" Type L | 3.125 in | 2.945 in | 0.3539 | 35.4 | 4.39 |
| 4" Type L | 4.125 in | 3.897 in | 0.6196 | 62.0 | 7.70 |
| 3/8" PEX | 0.500 in | 0.360 in | 0.0053 | 0.5288 | 0.0657 |
| 1/2" PEX | 0.625 in | 0.485 in | 0.0096 | 0.9597 | 0.1192 |
| 3/4" PEX | 0.875 in | 0.681 in | 0.0189 | 1.89 | 0.2347 |
| 1" PEX | 1.125 in | 0.875 in | 0.0312 | 3.12 | 0.3879 |
Metric PE pipe, SDR 11
| OD × wall | ID | Litres per metre | Litres per 100 m |
|---|---|---|---|
| 20 × 2.0 mm | 16.0 mm | 0.2011 | 20.1 |
| 25 × 2.3 mm | 20.4 mm | 0.3269 | 32.7 |
| 32 × 2.9 mm | 26.2 mm | 0.5391 | 53.9 |
| 40 × 3.7 mm | 32.6 mm | 0.8347 | 83.5 |
| 50 × 4.6 mm | 40.8 mm | 1.31 | 131 |
| 63 × 5.8 mm | 51.4 mm | 2.07 | 207 |
| 75 × 6.8 mm | 61.4 mm | 2.96 | 296 |
| 90 × 8.2 mm | 73.6 mm | 4.25 | 425 |
| 110 × 10.0 mm | 90.0 mm | 6.36 | 636 |
How much water is in my pipes?
Total every run by size. A typical example: 40 ft of ¾ in Type L copper, 25 ft of 1 in Type L copper and 60 ft of ½ in PEX hold 2.7 US gallons (10.0 L), about 22 lb of water. That is the volume to flush, drain or fill with antifreeze for a heating loop — add the boiler, water heater and radiators separately. Use Add another run in the calculator to total your own system.
Tube weight by material
Weight = wall volume × density. The calculator uses typical densities: carbon steel 7,850 kg/m³, stainless 8,000, copper 8,940, brass 8,500, aluminium 2,700, PVC 1,400 and HDPE 950. As a check, it gives 1.68 lb/ft for 1 in Schedule 40 steel, matching the plain-end weight published for that size (1.68 lb/ft). Coatings, galvanizing and threads add a little.
Square and rectangular tubes
For box section, the inside is (width − 2 × wall) × (height − 2 × wall). A 4 × 2 in tube with a ⅛ in wall, 20 ft long, holds 6.82 US gallons; its wall is 345.0 in³ — about 33.7 lb in aluminium or 97.8 lb in steel. Real tubes have rounded corners, which slightly increase the inside and reduce the wall.
Unit conversions used
- 1 US gallon = 231 in³ = 3.785411784 L (exact)
- 1 imperial gallon = 4.54609 L (exact)
- 1 ft³ = 1,728 in³ ≈ 7.48052 US gallons ≈ 28.3168 L
- 1 L = 1,000 cm³ = 61.0237 in³; 1 m³ = 1,000 L
- Water ≈ 1 kg per litre ≈ 8.34 lb per US gallon
Frequently asked questions
How do you calculate the volume of a pipe?
Use the inside diameter: volume = π × (ID ÷ 2)² × length. Keep the units the same, then convert — in cubic inches, divide by 231 for US gallons. 100 ft of 2 in Schedule 40 pipe (ID 2.067 in) holds 17.4 US gallons (66 L).
How do you calculate the volume of a tube (hollow cylinder)?
The material in a tube is the outer cylinder minus the hole: V = π ÷ 4 × (OD² − ID²) × length. A tube 2 in OD, 1.5 in ID and 10 ft long has 164.9 in³ of material — about 46.8 lb in steel.
How many gallons per foot are in a pipe?
It depends on the inside diameter. Schedule 40 pipe holds about 0.0449 gal/ft at 1 in, 0.1743 gal/ft at 2 in and 0.6613 gal/ft at 4 in. ½ in Type L copper holds about 0.0121 gal/ft. See the tables on this page.
How many litres per metre are in a pipe?
Litres per metre = π × (ID in mm ÷ 2)² ÷ 1,000. A 100 mm inside diameter holds 7.85 L per metre; a 32 mm × 2.9 mm PE pipe (ID 26.2 mm) holds about 0.54 L per metre.
Should I use the inside or outside diameter?
Inside diameter for how much a pipe holds; outside diameter (with the inside) for how much material the tube contains and what it weighs. The difference matters — a 1 in Schedule 40 pipe is 1.315 in outside but only 1.049 in inside.
What is nominal pipe size, and why isn’t it the real diameter?
Nominal pipe size is a name, not a measurement. For steel and PVC pipe the outside diameter is fixed for each size (1 in = 1.315 in OD) and heavier schedules add wall on the inside, so the inside diameter shrinks. Copper tube is different again: its outside diameter is the nominal size plus ⅛ in.
How much water is in my house’s pipes?
Add up every run by size. For example 40 ft of ¾ in and 25 ft of 1 in Type L copper plus 60 ft of ½ in PEX hold about 2.7 US gallons. Add the water heater and any tanks separately.
How do I find the inside diameter from the outside diameter and wall thickness?
Inside diameter = outside diameter − 2 × wall thickness. A 2.375 in pipe with a 0.154 in wall has a 2.067 in inside diameter. Choose “Outside diameter + wall” in the calculator to do this automatically.
How do I calculate the volume of a square or rectangular tube?
Inside area = (width − 2 × wall) × (height − 2 × wall); multiply by length for capacity. A 4 × 2 in tube with ⅛ in walls, 20 ft long, holds 6.82 US gallons and its wall weighs about 33.7 lb in aluminium (sharp corners assumed).
How much does a pipe full of water weigh?
Water weighs about 1 kg per litre (≈ 8.34 lb per US gallon), so 100 ft of 2 in Schedule 40 pipe carries about 145 lb of water on top of about 366 lb of steel.
How This Calculator Works: Formula, Defaults & Sources
Formula
- Capacity (round) = π × (inside diameter ÷ 2)² × length; inside diameter = outside diameter − 2 × wall
- Tube wall volume = π ÷ 4 × (OD² − ID²) × length
- Rectangular tube: capacity = (W − 2t) × (H − 2t) × length; wall = (W × H − inner area) × length
- US gallons = cubic inches ÷ 231; litres = cubic inches × 0.016387064; imperial gallons = litres ÷ 4.54609
- Liquid weight = litres × density (kg/L); tube weight = wall volume × material density; fill time = litres ÷ flow rate
Default values (you can change them)
- Steel & PVC Schedule 40/80: outside diameter and wall from ASME B36.10M (PVC to ASTM D1785 uses the same OD and walls for these sizes)
- Copper Types K, L, M: ASTM B88: OD = nominal size + ⅛ in, wall per type
- PEX: copper tube size OD, SDR 9 (wall = OD ÷ 9, at least 0.070 in) — ASTM F876
- Metric PE: SDR 11 (e.g. 32 mm × 2.9 mm) — EN 12201 / ISO 4427
- Liquid: water 1.0 kg/L, seawater 1.025 kg/L, or your own density
- Material densities: steel 7,850 · stainless 8,000 · copper 8,940 · aluminium 2,700 · brass 8,500 · PVC 1,400 · HDPE 950 kg/m³ (typical)
Sources
- Engineers Edge — Schedule 40 steel pipe dimensions (ASME B36.10M)
- Engineers Edge — Schedule 80 steel pipe dimensions (ASME B36.10M)
- The Engineering ToolBox — ASTM B88 seamless copper water tube dimensions
- Material densities — typical handbook values; check the grade you are using
- NIST Special Publication 811, Guide for the Use of the International System of Units — unit conversion factors (1 yd³ = 27 ft³, 1 ft = 0.3048 m, 1 lb = 0.45359237 kg)
Results are planning estimates, not engineering advice. Confirm quantities with your supplier and follow your plans and local building code. Last updated: November 15, 2026. Spotted a wrong number? Email us or use the contact page.
Related calculators
Pipe dimensions are nominal values from the published standards; real pipes vary within the standard’s tolerances. Results are for planning — check product data for critical work.