ThisCalculator

Math

Gallon Volume Calculator: How to Find Gallons

Updated · Standard formula, shown below

Volume (US gallons) 2.49 gal
Volume (cubic inches)
576 in³
Result
Volume (liters)
9.44 L
Result
Length
12 in
You entered

Gallon Volume Calculator: How to Find Gallons

This gallon volume calculator works out the volume of a rectangular tank, box, or container in US gallons. You enter the length, width, and height (in inches, feet, centimeters, or meters), and it returns the volume in gallons, along with the volume in cubic units. The formula is straightforward: multiply the three dimensions to get cubic volume, then convert to gallons using the standard conversion factor.

Formula

The volume of a rectangular prism (a box) is:

V = L × W × H

Where:

  • V = volume in cubic units (e.g., cubic inches, cubic feet, cubic centimeters)
  • L = length of the container
  • W = width of the container
  • H = height of the container

To convert cubic inches to US gallons, divide by 231 (since 1 US gallon = 231 cubic inches). To convert cubic feet to gallons, multiply by 7.48052. To convert cubic centimeters to gallons, divide by 3785.41.

Worked Example

Using the default values from the calculator above (length = 12 in, width = 8 in, height = 6 in):

  1. Calculate the cubic volume: 12 × 8 × 6 = 576 cubic inches.
  2. Convert to US gallons: 576 ÷ 231 = 2.4935 gallons.
  3. Rounded to two decimals: 2.49 gallons.

That matches the calculator’s output. The calculator also shows the volume in cubic inches (576) and liters (576 × 0.016387064 = 9.44 L).

How to Use the Calculator

Enter the three internal dimensions of your container. If you are measuring a tank or aquarium, use the inside measurements, not the outside, because wall thickness reduces the actual capacity. The calculator accepts any unit for each dimension, but they must all be the same unit. For example, if you enter length in inches, width and height must also be in inches.

The result is given in US gallons. If you need imperial gallons (used in the UK and some Commonwealth countries), note that 1 imperial gallon = 4.54609 liters, while 1 US gallon = 3.78541 liters. The difference is about 20%. This calculator uses US gallons.

Common Mistakes and Misconceptions

  • Mixing units: Entering length in feet and width in inches will give a wrong answer. Always convert to a single unit first.
  • Using outside dimensions: For a tank with thick walls, the outside dimensions overestimate the true capacity. Measure the inside.
  • Confusing US and imperial gallons: They are not the same. A US gallon is smaller than an imperial gallon.
  • Forgetting that 1 cubic foot = 7.48 gallons: Many people think it’s 7.5, which is close but not exact.

Another common misconception is that a gallon is a unit of weight. It is a unit of volume. A gallon of water weighs about 8.34 pounds, but a gallon of oil weighs less because oil is less dense.

When to Use This Calculator

Use this calculator when you need to know the capacity of a rectangular container:

  • Aquarium or fish tank volume
  • Storage tote or bin capacity
  • Cooler or ice chest volume
  • Planter box soil volume (though you might want cubic feet or liters instead)
  • Shipping box volume for freight calculations

For cylindrical containers (like a water heater or a barrel), the formula is different: V = π × r² × h, where r is the radius. This calculator only handles rectangular shapes.

Limitations and Accuracy

The formula assumes a perfect rectangular prism with straight sides and flat bottom. Real containers often have rounded corners, sloped sides, or a curved bottom, which will make the actual volume slightly less than the calculated value. For most practical purposes, the difference is small, but for precise measurements (like medication dosing or chemical mixing), always use a calibrated measuring device.

Also, the calculator gives the total volume when filled to the brim. In practice, you rarely fill a container to the very top. For aquariums, you usually leave an air gap at the top, so the actual water volume is less than the total volume.

Frequently Asked Questions

How many gallons is a 10×10×10 inch box?

10 × 10 × 10 = 1000 cubic inches. Divide by 231: 1000 ÷ 231 = 4.33 US gallons. That’s a cube about the size of a small cooler.

How do I convert cubic feet to gallons?

Multiply the cubic feet by 7.48052 to get US gallons. For example, 2 cubic feet × 7.48052 = 14.96 gallons. If you need imperial gallons, multiply by 6.22884.

What is the difference between US and imperial gallons?

A US gallon is 231 cubic inches (3.78541 liters). An imperial gallon is 277.42 cubic inches (4.54609 liters). So an imperial gallon is about 1.2 times larger than a US gallon. When reading product labels or recipes, check which gallon is being used.

Does the calculator work for round or oval tanks?

No, it only works for rectangular boxes. For a cylinder, use V = π × r² × h. For an oval or irregular shape, you may need to use a different method, like water displacement or a specific formula for that shape.

Why does my aquarium calculator give a different number?

Many aquarium calculators use the nominal size (e.g., a “20-gallon� tank) which is based on outside dimensions and may include the glass thickness. This calculator gives the exact internal volume. Also, some calculators use imperial gallons or assume a different fill level. Check the units and whether they use inside or outside measurements.

Can I use this for soil or gravel volume?

Yes, but you’ll likely want the result in cubic feet or liters, not gallons. The calculator gives cubic inches and liters as well. For soil, you usually buy by the cubic foot or cubic yard. To get cubic feet, divide the cubic inches by 1728. For liters, the calculator already shows that.

Related

Formula used
in l | Length | in | 12 | 0
in w | Width | in | 8 | 0
in h | Height | in | 6 | 0
out gal | Volume (US gallons) | gal | (l * w * h) / 231 | 2
out cu_in | Volume (cubic inches) | in³ | l * w * h | 0
out liters | Volume (liters) | L | (l * w * h) * 0.016387064 | 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.