sodcalculator

08 Everyday Math

Calculate Gallons by Dimensions: Simple Volume Formula

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

Volume 14.96 US gal
Volume
2.00 ft³
Result
Length
24 in
You entered
Width
12 in
You entered
You enter
Length, Width, Depth
You get
Volume, Volume
Rounding
2 dp

Calculate gallons by dimensions by entering a container’s inside length, width, and liquid depth. The calculator converts the measured volume to US gallons and also shows cubic feet, so you can estimate capacity before filling a tank, bin, or other rectangular container.

Formula

For a rectangular container, multiply its inside length by its inside width and by the depth of liquid. Divide the resulting cubic inches by 231 to get US gallons.

US gallons = length × width × depth ÷ 231

  • Length (l): inside length, in inches.
  • Width (w): inside width, in inches.
  • Depth (d): the liquid’s depth, in inches—not necessarily the container’s full height.
  • 231: cubic inches in one US liquid gallon.

The second result uses the same volume in cubic feet: multiply the three dimensions in inches and divide by 1,728, the number of cubic inches in a cubic foot. The calculator reports US liquid gallons, not Imperial gallons. One US gallon is about 3.785 litres; one Imperial gallon is about 4.546 litres.

Worked Example

Using the calculator’s default dimensions—24 inches long, 12 inches wide, and 12 inches deep:

  1. Multiply the dimensions: 24 × 12 × 12 = 3,456 cubic inches.
  2. Convert to US gallons: 3,456 ÷ 231 = 14.96 US gallons, rounded to two decimal places.
  3. Convert to cubic feet: 3,456 ÷ 1,728 = 2.00 cubic feet.

The calculator therefore displays 14.96 US gallons and 2.00 cubic feet. These are volume estimates for a rectangular space filled to the measured depth.

What You’ll Need

  • A tape measure or ruler.
  • The container, measured on the inside if you want its usable capacity.
  • A calculator, or the calculator above.
  • A note of the units used for each measurement so they can be made consistent.

Step-by-Step

  1. Identify the shape. This method directly applies to a rectangular box or tank with flat sides and a flat bottom. For a cylinder, irregular pond, or sloped-sided container, see the troubleshooting section rather than treating it as a box.
  2. Measure the inside length. Measure from one interior end to the other, in inches. Measure the space liquid can occupy, not the outside dimensions, which include wall thickness.
  3. Measure the inside width. Measure across the interior at a right angle to the length. Record the number in inches as well.
  4. Measure the liquid depth. If estimating a partially filled container, measure vertically from the inside bottom to the liquid surface. If estimating full capacity, use the fill depth you actually intend to reach; do not assume liquid should reach the rim.
  5. Enter the three values. Type length, width, and depth into the calculator. All three entries must be in the same unit—this calculator expects inches. Do not enter feet or centimetres without converting them first.
  6. Read the gallon result. The first result is US liquid gallons, rounded to two decimal places. Use the cubic-foot result as a second check or when another calculation calls for cubic feet.
  7. Allow for real-world capacity. The calculation gives the geometric volume up to the measured liquid depth. If the container has internal fittings, rounded corners, a false bottom, or displacement from objects, its actual fillable volume will be lower.

Common Mistakes

  • Mixing measurement units: multiplying 2 feet by 12 inches by 1 foot does not give a valid result. Convert every dimension to inches first, or use one consistent unit and the matching conversion factor.
  • Using outside measurements: wall thickness makes the inside volume smaller. Measure interior dimensions when calculating usable capacity.
  • Using the container height instead of liquid depth: a partly filled container holds less than its full capacity. Measure from the bottom to the actual or planned waterline.
  • Confusing US and Imperial gallons: the calculator uses US liquid gallons. Check which gallon a product label or reference uses before comparing figures.
  • Rounding too early: keep the measured dimensions as accurately as practical, multiply first, and round the final result. The displayed value is already rounded to two decimal places.
  • Assuming every shape is rectangular: a curved or tapered container will not match the box formula. Using its maximum length, width, and height can substantially overstate capacity.

Tips

  • Measure in inches for this calculator. To convert feet to inches, multiply by 12; to convert centimetres to inches, divide by 2.54.
  • For metric volume, multiply cubic centimetres by 0.001 to get litres. If you entered inches, first convert each dimension: 1 inch = 2.54 centimetres. One US gallon is approximately 3.785 litres.
  • Take measurements in more than one place if the container is old or distorted. Use the dimensions that represent the space you intend to fill.
  • For storage planning, leave headspace when appropriate and follow any instructions for the specific container or liquid. The formula calculates volume; it does not determine a safe fill level.
  • Use the cubic-foot output to check the arithmetic: 1 cubic foot is about 7.48 US gallons, so the example’s 2 cubic feet corresponds to about 14.96 gallons.

Troubleshooting

The answer seems much too large or small: check whether a measurement was entered in feet or centimetres as though it were inches. Because three dimensions are multiplied, a unit mistake can change the result dramatically. Re-measure and convert all three values consistently.

The real container holds less than the estimate: confirm that you used inside measurements and the actual liquid depth. Account for thick walls, corner curves, internal supports, equipment, or objects that take up space. The formula assumes a clear rectangular volume.

The container has sloping sides: do not multiply the top length and width by the full depth. For a rectangular tank whose horizontal footprint changes evenly from bottom to top, a more appropriate method is to find the average of the top and bottom footprint areas, then multiply by depth. For irregular shapes, divide the space into simpler shapes or use a measured fill volume.

The container is round: for a vertical cylinder, use the cylinder formula instead: volume in cubic inches = π × radius² × liquid depth; divide by 231 for US gallons. Measure the inside radius, which is half the inside diameter.

The result differs from a product’s stated capacity: product capacity may be measured to the brim, use rounded dimensions, or account for a shape not captured by the rectangular formula. Check the measurement method and use the manufacturer’s stated usable capacity when it is available.

Frequently Asked Questions

How do I calculate gallons from length, width, and height?
For a rectangular container measured in inches, multiply length × width × height, then divide by 231. Use the height only if it is the intended fill depth.

What if my dimensions are in feet?
Convert each measurement to inches by multiplying by 12, then use the calculator. Alternatively, multiply cubic feet by about 7.48 to estimate US gallons.

How many gallons are in a cubic foot?
One cubic foot is approximately 7.48 US liquid gallons. The exact conversion is based on 1,728 cubic inches per cubic foot and 231 cubic inches per US gallon.

Does this calculate Imperial gallons?
No. It calculates US liquid gallons. To convert US gallons to Imperial gallons, multiply by approximately 0.833; check the relevant standard if precision matters.

Can I use this for a pool or pond?
Only if the measured volume is reasonably rectangular. Sloped, curved, or irregular sides need a shape-specific formula or measurements divided into simpler sections.

Should I measure the outside or inside?
Measure the inside for usable liquid capacity. Outside dimensions include wall thickness and will overstate the volume available to hold liquid.

Related

Formula used
in l | Length | in | 24 | 0 | 100000
in w | Width | in | 12 | 0 | 100000
in d | Depth | in | 12 | 0 | 100000
out gal | Volume | US gal | l * w * d / 231 | 2
out ft3 | Volume | ft³ | l * w * d / 1728 | 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.

More in this bed

The whole Everyday Math bed →