Pipe Volume Calculator — Gallons, Liters & Fill Time
Compute pipe volume in US gallons, imperial gallons, liters, cubic feet and cubic meters from diameter and length — with wall-thickness correction, PVC and carbon steel standard pipe size lookups, a multi-segment batch mode for entire pipelines, and a fill-time estimator from pump GPM.
Pipe Volume
66.1
US gallons
250.3
liters
8.84 ft³
cubic feet
0.250 m³
cubic meters
55.1 gal
imperial gallons
0.661
gal per ft
Total length: 100.0 ft
📊 Excel Formula Generator
Paste this formula into any spreadsheet. Enter inside diameter in inches in cell B2, length in feet in B3 (or leave as SUM(C:C) for batch).
=PI()*(B2/2)^2*B3*12/231💡 Tip — quick ID estimate: If you only know the outside diameter of a rigid pipe, multiply by 0.88 to get a fast inside-diameter estimate. For flexible irrigation poly pipe, use ×0.90. This gets you within 5% on the first try.
⚠️ Warning — ignoring wall thickness causes 10–20% error: Using OD directly overestimates volume because the pipe wall takes up space. A 4-inch pipe measured at 4.500" OD gives 0.826 gal/ft if you skip wall correction, vs. 0.662 gal/ft true — 25% too high.
❌ Do not use nominal pipe size (NPS label like "4-inch") as diameter in the cylinder formula. "4-inch" pipe means 4.500" outside diameter with a true ID around 4.0" — the label is an old naming convention, not an actual measurement.
The Pipe Volume Formula — Cylinder Geometry
Every pipe is a hollow cylinder. The internal volume — the space the fluid actually fills — uses the same πr²L formula you learned in grade school, but with one critical difference: you have to use the inside radius, not the pipe's nominal label or its outside diameter.
Core formula
V = π × (dinner / 2)² × L
dinner = true inside diameter. L = total developed length of the pipe.
US gal shortcut: gal/ft = 0.0408 × d²
Wall-Thickness Correction: Why OD ≠ ID
Pipe labels like "4-inch" or "NPS 4" are nominal sizes, not physical dimensions. The actual outside diameter of NPS 4 pipe is 4.500 inches — and the inside diameter depends on the schedule (wall thickness). Sch 40 is the most common standard: for NPS 4 it has a 0.237-inch wall, so true ID = 4.500 − 2×0.237 = 4.026 inches.
If you calculate volume with the 4.500-inch OD, you get 25% too much capacity. The table below gives you the exact ID and gallons-per-foot for the most common sizes:
PVC Sch 40 vs Carbon Steel Sch 40速查表
| Nominal | OD (in) | Wall (in) | True ID (in) | Gal / ft |
|---|---|---|---|---|
| 1/2" | 0.840 | 0.109 | 0.622 | 0.016 |
| 3/4" | 1.050 | 0.113 | 0.824 | 0.028 |
| 1" | 1.315 | 0.133 | 1.029 | 0.043 |
| 1 1/4" | 1.660 | 0.140 | 1.360 | 0.075 |
| 1 1/2" | 1.900 | 0.145 | 1.610 | 0.106 |
| 2" | 2.375 | 0.154 | 2.047 | 0.171 |
| 2 1/2" | 2.875 | 0.203 | 2.469 | 0.249 |
| 3" | 3.500 | 0.216 | 3.068 | 0.384 |
| 4" | 4.500 | 0.237 | 4.026 | 0.661 |
| 6" | 6.625 | 0.280 | 6.065 | 1.501 |
| 8" | 8.625 | 0.322 | 7.981 | 2.599 |
| 10" | 10.750 | 0.365 | 10.020 | 4.096 |
| 12" | 12.750 | 0.375 | 12.000 | 5.875 |
PVC and carbon steel Sch 40 share the same OD and wall thickness for most sizes — the difference is in material density, which matters for pipe weight but not for fluid volume. Brass pipe and some specialty CPVC or PEX sizes use different schedules, so always cross-check if your application is outside the standard Sch 40 universe.
Worked Example — 100 ft of 4-inch Pipe
Practical problem: a 100 ft run of 4-inch Sch 40 PVC
Step 1 — find true ID from the table:
NPS 4, OD 4.500", wall 0.237"
ID = 4.500 − 2×0.237 = 4.026"
Step 2 — calculate cross-sectional area:
A = π × (4.026/2)² = 12.72 in²
Step 3 — volume in cubic inches:
V = 12.72 × 1200" (100 ft) = 15,264 in³
Step 4 — convert to gallons and liters:
US gal = 15,264 ÷ 231 = 66.1 gal
Liters = 66.1 × 3.785 = 250.2 L
Shortcut check using gal/ft formula:
0.0408 × 4.026² × 100 = 66.1 gal ✓
Common mistake to avoid: plugging 4.500" OD directly into the formula would give 82.6 gal — a 25% overestimate. Always use ID.
Fill Time Calculation — Gallons ÷ GPM
Once you know how many gallons the pipeline holds, fill time is straightforward division:
Fill Time (minutes) = Volume (US gallons) ÷ Flow Rate (GPM)
Real-world pumps deliver roughly 80–90% of their nameplate rating due to friction loss in hose, fittings, and the pipe itself, plus suction lift constraints. So a pump advertised as 15 GPM will likely deliver only 12–13 GPM on site. When scheduling fills or draindowns, budget on 85% of nameplate output and build in a safety margin — the pump's curve is always worse than the brochure suggests.
Batch Pipeline Mode — Multiple Segments Total
Real pipe systems are almost never a single straight run — they have multiple spool pieces, risers, and laterals. Use the Batch Pipeline toggle in the calculator to enter several lengths and have them summed automatically. The formula is the same regardless of how many segments you split the pipe into — volume depends only on the total developed length and the inside diameter. This tool adds every segment's length, then runs the cylinder math once.
The only subtlety: fittings, elbows, and tees add a tiny amount of extra path length that you can either ignore for rough estimates (total contribution is typically under 2% of straight run) or count explicitly by converting each fitting to its equivalent straight-length value — a standard 90° elbow in 4-inch pipe is roughly equivalent to 3–4 feet of straight run for friction purposes, but adds negligible internal volume.
Pipe Volume as an Excel Formula — Copy & Paste
Spreadsheets are where most engineering work actually happens. The calculator above generates a ready-to-paste formula for Microsoft Excel, Google Sheets, and LibreOffice Calc. Here is the anatomy of the formula it produces for a single pipe:
=PI()*(B2/2)^2*B3*12/231
Breaking this down:
- B2 = inside diameter in inches (you enter this)
- (B2/2)^2 = radius squared, giving the cross-sectional area
- PI() = π from the spreadsheet's built-in constant
- * B3 = multiply by pipe length in feet
- * 12 = convert feet to inches (to match diameter units)
- / 231 = convert cubic inches to US gallons
For a batch pipeline, replace B3 with SUM(C:C)where column C holds each segment's length in feet. The formula works identically whether you have 3 segments or 300.
Four Common Mistakes in Pipe Volume Estimation
1. Using OD or NPS Label as Diameter
The most common and most expensive mistake. A "4-inch" pipe is not 4 inches across — it is 4.500" outside with a true ID around 4.0". If you use either of those wrong numbers, your estimate is 10–25% off. Always look up the wall thickness from a standard schedule (Sch 40, Sch 80) or measure the ID directly with a bore gauge.
2. Forgetting Wall Thickness Changes by Schedule
Sch 80 pipe is thicker than Sch 40 — for NPS 4, Sch 80 wall is 0.337" vs Sch 40's 0.237", giving an ID of 3.826" instead of 4.026". That is a 4.9% smaller volume per foot. If your pipe uses a schedule other than Sch 40, look up the exact wall thickness and recalculate. This calculator's custom mode lets you enter any OD and wall combination.
3. Ignoring Internal Scaling in Old Lines
Existing water lines accumulate mineral scale, corrosion, biofilm, and tuberculation on the inside over decades. A 4-inch pipe that measured 4.026" ID new might only be 3.7" ID after 30 years in hard-water territory — a 16% reduction in usable volume. When calculating fill times or treatment doses for old lines, use an ultrasonic thickness gauge to measure the actual remaining ID, or assume a 10–15% shrinkage if you cannot measure.
4. Treating Coiled Tubing as Less Volume
Coiled tubing used in irrigation, well workovers, and heat exchangers has exactly the same internal volume per foot as straight pipe of the same ID. The bends do not compress the pipe — they only route it. The only real difference is that very tight coiling can introduce small manufacturing variations in wall thickness, but these average out across a full spool. Count the total developed length of the coil and treat it as straight pipe for volume purposes.
Frequently Asked Questions
How do I calculate pipe volume — what is the formula?▼
Pipe volume follows the cylinder formula: V = π × (d/2)² × L where d is the inside diameter and L is the length. For a pipe, you must use the true inside diameter, not the nominal pipe size (NPS) or the outside diameter. Once you have the volume in cubic inches, divide by 231 to get US gallons, or by 277.4 to get imperial gallons. This page's calculator handles the wall-thickness correction automatically when you select a standard pipe size or enter OD plus wall thickness.
How many gallons per foot of pipe — is there a quick rule?▼
Yes — the gallons-per-foot shortcut for US pipes is: gal/ft = 0.0408 × d² where d is the inside diameter in inches. This saves you from having to multiply by π every time. A 4-inch nominal pipe with a true ID of 4.026 inches gives 0.0408 × 4.026² ≈ 0.662 gallons per foot. Multiply by your pipe length in feet to get total gallons.
How much water does a 100-foot 4-inch pipe hold?▼
A standard 4-inch nominal pipe (NPS 4) has an outside diameter of 4.500 inches and, for Sch 40, a wall thickness of 0.237 inches — so the true inside diameter is 4.026 inches. Volume = π × (4.026/2)² × 1200 inches (100 ft in inches) ≈ 15,295 cubic inches. Divide by 231 to get ≈ 66.2 US gallons. Using the shortcut: 0.662 gal/ft × 100 ft ≈ 66.2 gal — same answer.
Straight pipe vs coiled tubing — does shape affect volume?▼
No. For the same inside diameter and same total developed length, a straight pipe and a coil have identical internal volume. The bends in a coil do not compress the cross-section — they only change the path. What can matter in practice: very tight coils may have slight manufacturing variations in wall thickness, and the fittings/elbows at coil ends add a tiny amount of extra volume, but for any engineering estimate you can treat coil length as equivalent to straight length.
How do I estimate inside diameter when I only know the outside?▼
Three shortcuts work in most real situations: (1) If you know the pipe is Sch 40 standard, look up the wall thickness from the table on this page and subtract twice the wall from the OD. (2) For cheap thin-wall tubing like irrigation poly pipe, wall thickness is usually 5–10% of the OD, so estimate ID ≈ 0.85 × OD and you will be within 5%. (3) For rigid PVC conduit, wall thickness is typically 8–12% of OD — ID ≈ 0.88 × OD works for quick estimates.
Why is ignoring wall thickness such a big mistake?▼
Using outside diameter instead of true inside diameter overestimates volume by 10–20% on average. For a 4-inch pipe, OD-based math gives 0.0408 × 4.5² = 0.826 gal/ft instead of the correct 0.662 — a 25% overstatement. That means you would buy a pump that is 25% too big for the fill time, or order 25% more water than the pipeline actually holds, or oversize a treatment chemical dose by a quarter. Always correct for wall thickness.
Does internal pipe scaling reduce usable volume?▼
Yes — and it adds up over time. A 1 mm mineral scale layer on the inside of a 4-inch pipe reduces the ID from 4.026 to about 3.947 inches, which drops capacity by roughly 4%. In older systems with heavy scaling, corrosion, or tuberculation, the effective ID can shrink by 5–15%, meaning the real volume is 10–25% below the new-pipe calculation. For existing lines, measure the ID with a bore gauge or use ultrasonic thickness rather than assuming factory dimensions.
How do I calculate fill time from a pump's GPM?▼
Fill time (minutes) = total volume (gallons) ÷ flow rate (GPM). A 500-gallon pipeline being filled by a 10 GPM pump takes 50 minutes theoretically. Real-world pumps deliver 80–90% of nameplate output due to suction lift, friction loss in hoses, and voltage drop, so plan on 55–65 minutes for safety. This calculator includes a fill-time mode where you paste GPM and get minutes automatically.
Pipe volume follows the same πr²L geometry as every tank on this site — it is just a very long, thin cylinder. Pair this calculator with the main tank volume tool for vessel-and-pipeline system planning, and bookmark the calculators hub for every conversion you need on site.
Related Calculators
Fish Tank Volume Calculator
Calculate fish tank volume in gallons and liters for rectang...
Propane Tank Size Calculator
Size a propane tank from BTU demand, check 80% fill rule cap...
Water Tank Capacity Calculator
Calculate water tank capacity in liters and gallons for roun...
Diesel & Fuel Tank Calculator
Calculate diesel and fuel tank capacity, weight at any fill ...
Horizontal Cylinder Tank Volume Calculator
Calculate horizontal cylinder tank volume with flat, hemisph...
Heating Oil Tank Size Calculator
Heating oil tank size calculator — 275-gal oval case study, ...
Tank Drain Time & Flow Rate Calculator
Calculate tank drain time, fill time and flow rate — Torrice...
Fish Tank Stocking Calculator
How many fish fit in your tank? Calculate stocking density f...
Air Receiver Tank Size Calculator
Size an air receiver from compressor CFM and demand — usable...
Cone Bottom Tank Volume Calculator
Cone bottom tank volume — frustum hopper plus cylindrical sh...
Aquarium Substrate Calculator
How much gravel, sand or planted tank soil do you need? Weig...
Tank Pressure Calculator
Hydrostatic pressure at any tank depth in psi, bar and kPa —...
Pipe Volume Calculator
Calculate pipe volume in gallons, liters and cubic feet from...
Gallons to Square Feet Converter
Convert gallons to square feet and back for ponds, pools, ir...
Liter to Gallon Converter
Live bidirectional liter to gallon converter supporting both...
Liquid Weight Calculator
Convert gallons to pounds and liters to kilograms for water,...