sodcalculator

08 Everyday Math

Calculating Volume in Gallons: Formulas and Examples

Tag 08-0349 · Updated · Standard formula, shown below

Volume 44.88 US gal
Volume
6.00 ft³
Result
Volume
0.222 yd³
Result
Inside length
36 in
You entered
You enter
Inside length, Inside width, Liquid depth
You get
Volume, Volume, Volume
Rounding
2 dp · 3 dp

To calculate volume in gallons, first find the container’s volume in cubic inches, cubic feet, or another unit, then convert it: 231 cubic inches or 0.133680556 cubic feet equals one US liquid gallon. Enter a rectangular container’s inside length, width, and liquid depth below to calculate US gallons; the calculator also shows cubic feet and cubic yards.

Formula

For a rectangular container, multiply its inside length, inside width, and filled depth to get cubic inches, then divide by 231:

Volume (US gallons) = length (in) × width (in) × depth (in) ÷ 231

  • Length is the inside measurement from end to end, in inches.
  • Width is the inside measurement from side to side, in inches.
  • Depth is the actual liquid depth, in inches—not necessarily the container’s full height.

The calculator uses the same cubic-inch product for its other outputs. Cubic feet equal cubic inches divided by 1,728, and cubic yards equal cubic inches divided by 46,656. These are volume conversions, not estimates of how much a particular container can hold after accounting for curved sides or fittings.

Worked Example

Use the calculator’s default inside measurements: length 36 inches, width 24 inches, and liquid depth 12 inches.

  1. Find the volume in cubic inches: 36 × 24 × 12 = 10,368 cubic inches.
  2. Convert to US gallons: 10,368 ÷ 231 = 44.8831…, which rounds to 44.88 US gallons.
  3. Convert to cubic feet: 10,368 ÷ 1,728 = 6.00 cubic feet.
  4. Convert to cubic yards: 10,368 ÷ 46,656 = 0.2222…, which rounds to 0.222 cubic yards.

The gallon result is the headline quantity; the other figures express the same volume in different units.

When to Use This Calculation

This method is useful when estimating the capacity of a rectangular tank, storage box, trough, or other straight-sided container. It can also help estimate how much liquid is present when you know the container’s interior dimensions and the current fill depth. Measure the space the liquid occupies, rather than the outside dimensions, because wall thickness does not hold liquid.

For a partly filled container, use the liquid’s depth from the bottom to its surface. For example, a container that is 20 inches tall but holds liquid to a depth of 15 inches should be calculated using 15 inches, not 20. If the walls taper, bulge, or have rounded corners, the rectangular formula gives an approximation rather than an exact capacity.

Units and Gallon Types

The calculator reports US liquid gallons. A US liquid gallon is 231 cubic inches, about 3.785 liters. Do not confuse it with an imperial gallon, used in some countries: one imperial gallon is about 4.546 liters, so the same physical volume has fewer imperial gallons than US gallons.

Metric measurements work just as well if you convert consistently. One liter equals 1,000 cubic centimeters, and one cubic meter equals 1,000 liters. For a rectangular container measured in centimeters, multiply length × width × depth to get cubic centimeters, then divide by 1,000 to obtain liters. To convert liters to US gallons, divide by about 3.785. Avoid mixing centimeters with inches in a single multiplication unless you convert the measurements first.

Other common US customary conversions include 7.48052 US gallons per cubic foot and 27 cubic feet per cubic yard. Thus, cubic feet × 7.48052 gives US gallons. These conversion factors are rounded for practical use; retain more digits during intermediate steps when a close measurement matters.

Other Container Shapes

A rectangular formula cannot directly describe every vessel. For a cylinder, measure the inside radius and liquid height, then use π × radius² × height to find cubic units. Keep radius and height in the same unit, then convert the resulting cubic inches to gallons by dividing by 231. The radius is half the inside diameter.

For a cone or a container with sloped sides, volume depends on how its cross-section changes with height. A simple full cone has one-third the volume of a cylinder with the same base and height, but a truncated cone or irregular tank needs its own geometry or reliable capacity markings. When a vessel has a complicated shape, consult its measurement chart or estimate separate sections and add their volumes.

Common Measurement Mistakes

  • Using outside dimensions: wall thickness makes the interior smaller, especially in compact containers.
  • Using the wrong depth: calculate the liquid currently present with its fill depth, not the full height unless it is filled to the top.
  • Mixing units: convert every dimension to inches before using the calculator, or use a fully metric calculation.
  • Confusing US and imperial gallons: state which gallon you mean when sharing or comparing a result.
  • Rounding too early: keep the unrounded volume through conversions and round the final answer to a sensible precision.

The result is a mathematical volume, not a guarantee that a container should be filled to its rim. Leave appropriate space for expansion, movement, or operating requirements where relevant, and follow the container’s instructions. For a tank with internal equipment, subtract the volume displaced by those objects if you need the actual liquid capacity.

Frequently Asked Questions

How many cubic inches are in a US gallon?
One US liquid gallon contains exactly 231 cubic inches. Divide a volume in cubic inches by 231 to convert it to US gallons.

How do I calculate gallons from cubic feet?
Multiply cubic feet by about 7.48052 to get US gallons. For example, 5 cubic feet is about 37.40 US gallons.

How do I calculate gallons in a round tank?
For a straight-sided cylinder, calculate π × inside radius² × liquid depth in cubic inches, then divide by 231. Use the inside radius and keep measurements in consistent units.

Are US gallons and imperial gallons the same?
No. A US liquid gallon is about 3.785 liters, while an imperial gallon is about 4.546 liters. Check which one a label or measurement uses before comparing values.

Should I use the tank’s full height?
Only if the tank is filled to that height. To calculate the amount currently inside, use the liquid depth measured from the interior bottom to the liquid surface.

Related

Formula used
in l | Inside length | in | 36 | 0 | 100000
in w | Inside width | in | 24 | 0 | 100000
in d | Liquid depth | in | 12 | 0 | 100000
out gal | Volume | US gal | l * w * d / 231 | 2
out ft3 | Volume | ft³ | l * w * d / 1728 | 2
out yd3 | Volume | yd³ | l * w * d / 46656 | 3

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.

More in this bed

The whole Everyday Math bed →