ThisCalculator

Everyday

Gallon Calculator for Pipe: Volume in Gallons

Updated · Standard formula, shown below

The calculator for this page is switched off while it is checked. The formula is below, and the worked example in the article shows how to use it by hand.

Gallon Calculator for Pipe: Volume in Gallons

This calculator works out the internal volume of a pipe in US gallons. You enter the pipe’s inside diameter and its length, and you get back the volume in gallons, plus the volume in cubic feet and liters as secondary outputs. It is useful for estimating water volume in plumbing, irrigation, or aquarium piping systems.

Formula

The volume of a pipe is the cross-sectional area of the inside circle times the length. The formula in symbols is:

V = π × (d/2)² × L

Where:

  • V = volume in cubic feet (ft³)
  • d = inside diameter of the pipe in inches (in)
  • L = length of the pipe in feet (ft)
  • Ï€ ≈ 3.14159

To convert cubic feet to US gallons, multiply by 7.48052 (since 1 ft³ = 7.48052 US gal). In the calculator above, the formula first converts the diameter from inches to feet by dividing by 12, then multiplies by 231 (the number of cubic inches in a US gallon) to get gallons directly. Both methods give the same result.

Worked Example

Using the default values: inside diameter = 2 inches, length = 10 feet.

  1. Radius = d/2 = 2/2 = 1 inch.
  2. Convert radius to feet: 1 in ÷ 12 = 0.08333 ft.
  3. Cross-sectional area = π × (0.08333)² = 3.14159 × 0.006944 = 0.02182 ft².
  4. Volume in cubic feet = area × length = 0.02182 × 10 = 0.2182 ft³.
  5. Convert to gallons: 0.2182 × 7.48052 = 1.63 US gallons.

The calculator gives 1.63 US gallons, matching the manual calculation.

When to Use This Calculator

You need the inside diameter, not the outside diameter. The inside diameter determines the actual space available for fluid. If you only know the outside diameter and wall thickness, subtract twice the wall thickness to get the inside diameter. For example, a 2-inch nominal PVC pipe has an outside diameter of about 2.375 inches and a wall thickness of 0.154 inches, giving an inside diameter of 2.067 inches – not 2 inches. Using the nominal size alone will overestimate volume by roughly 6–7%.

This calculator is handy for:

  • Estimating how much water is in a length of pipe for a water feature or aquarium return line.
  • Calculating the volume of a pipe used as a surge tank or expansion chamber.
  • Determining how much antifreeze or cleaning solution is needed to fill a pipe system.
  • Comparing different pipe sizes for the same length to see which holds more fluid.

How to Read the Result

The primary result is in US gallons. Note that a US gallon is 231 cubic inches, while an Imperial gallon (used in the UK and Canada) is 277.42 cubic inches. If you need Imperial gallons, multiply the US gallon result by 0.83267. The calculator also shows cubic feet and liters for convenience. One cubic foot is 7.48052 US gallons, and one liter is 0.264172 US gallons.

For a 10-foot length of 2-inch pipe, the result is about 1.63 gallons. That is a small amount – less than two large milk jugs. If you are filling a long run of pipe, the volume adds up quickly. A 100-foot run of 6-inch pipe holds about 146 gallons.

Common Mistakes and Misconceptions

The most common mistake is using the nominal pipe size instead of the actual inside diameter. Nominal sizes are approximations. For example, a 1-inch PVC pipe has an inside diameter of about 1.049 inches, not 1.000 inch. The difference may seem small, but over long lengths it matters.

Another mistake is mixing units. If you measure the diameter in inches and the length in feet, you must convert one to the other before calculating. The calculator above handles that conversion internally, but if you do it by hand, be consistent.

Also, be aware that pipe volume is for the inside of the pipe only. It does not include fittings, valves, or tanks. If you are calculating the total volume of a system, add the volume of each component separately.

Limits of the Formula

The formula assumes a perfectly cylindrical pipe with a constant inside diameter. Real pipes may have slight variations due to manufacturing tolerances, and fittings or bends may alter the effective volume. For most practical purposes, the error is negligible. However, for highly accurate volume measurements (e.g., for chemical dosing), you should measure the actual inside diameter with a caliper at several points and use the average.

The formula also ignores the volume of the pipe wall itself – which is correct, since you want the interior volume. If you need the volume of the pipe material (e.g., for buoyancy calculations), you would use the outside diameter and subtract the interior volume.

Frequently Asked Questions

How do I find the inside diameter of a pipe?

If you have a pipe in hand, measure the inside width directly with a caliper or ruler. If you only have the outside diameter and wall thickness, subtract twice the wall thickness: inside diameter = outside diameter − 2 × wall thickness. For standard PVC or copper pipe, you can also look up the actual inside diameter from manufacturer tables, which are widely available online.

Does this work for any pipe material?

Yes, the formula is purely geometric and does not depend on the material. Whether the pipe is PVC, copper, steel, or PEX, the volume is determined by the inside diameter and length. However, different materials have different wall thicknesses for the same nominal size, so the inside diameter may vary. Always use the actual inside diameter for your specific pipe.

What is the difference between US gallons and Imperial gallons?

A US gallon is 231 cubic inches (3.785 liters), while an Imperial gallon is 277.42 cubic inches (4.546 liters). The Imperial gallon is about 20% larger. If you are in a country that uses Imperial gallons, multiply the US gallon result by 0.83267 to get Imperial gallons. The calculator gives US gallons by default.

Can I use this for a pipe that is not full?

No, this calculator assumes the pipe is completely full. If the pipe is partially filled, the volume depends on the fill level and the shape of the cross-section. For a partially filled horizontal pipe, the calculation is more complex and requires the depth of the fluid. This calculator is only for full-pipe volume.

How accurate is the result?

Accuracy depends on how precisely you measure the inside diameter and length. If your measurements are within 1%, the volume calculation will be within about 1–2% as well. Manufacturing tolerances for pipes are typically small, but not zero. For most plumbing and irrigation purposes, this level of accuracy is more than sufficient.

Related

Formula used
in d | Inside diameter | in | 2 | 0
in L | Length | ft | 10 | 0
out gal | Volume | US gal | (pi * (d/2)^2 * L * 12) / 231 | 2
out ft3 | Volume | ft³ | pi * (d/2)^2 * L | 2
out ltr | Volume | L | (pi * (d/2)^2 * L * 12) / 231 * 3.78541 | 2

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.