ThisCalculator

Home and garden

Fuel Tank Calculator Gallons: How to Estimate

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.

Fuel Tank Calculator Gallons: How to Estimate

This fuel tank calculator estimates the volume of a rectangular or cylindrical tank in gallons (US or imperial) and liters. You enter the tank’s dimensions — length, width, and height for a rectangle, or diameter and length for a cylinder — and it returns the total capacity in gallons and liters. The tool uses standard geometric volume formulas and converts cubic units to gallons for you.

Formula

For a rectangular tank: Volume (cubic inches) = Length × Width × Height. To get US gallons, divide by 231 (since 1 US gallon = 231 cubic inches). For imperial gallons, divide by 277.42. To get liters, multiply cubic inches by 0.0163871.

For a cylindrical tank: Volume (cubic inches) = π × (Diameter/2)² × Length. Then apply the same conversions.

Variables:

  • L = length of the tank (in inches, but any consistent unit works)
  • W = width (for rectangular tanks)
  • H = height (for rectangular) or diameter (for cylindrical)
  • D = diameter of a cylindrical tank
  • L_cyl = length of a cylindrical tank

Worked Example

Using the defaults: a rectangular tank with length 36 in, width 18 in, height 12 in.

  1. Volume in cubic inches: 36 × 18 × 12 = 7,776 in³
  2. US gallons: 7,776 ÷ 231 = 33.66 gal
  3. Imperial gallons: 7,776 ÷ 277.42 = 28.03 gal
  4. Liters: 7,776 × 0.0163871 = 127.4 L

The calculator shows 33.66 US gallons, 28.03 imperial gallons, and 127.4 liters — matching these steps.

When to Use This Calculator

You might need tank capacity for a fish tank, a fuel tank on a boat or vehicle, a water storage tank, or a custom-built container. The math is the same for any rectangular or cylindrical tank. Just measure the inside dimensions (not the outside) to get the actual usable volume. For fuel tanks, the usable capacity is often less than the total because of internal baffles, pickups, or expansion space.

Common Mistakes and Unit Mix-Ups

The biggest error is mixing units. If you measure in feet, you must convert to inches or use the correct conversion factor. For example, 1 cubic foot = 7.48 US gallons. If you measure in centimeters, 1 liter = 1,000 cubic centimeters. Always keep all dimensions in the same unit before multiplying.

Another mistake: using the outside dimensions. Tank walls take up space, so a 1/4-inch wall on a steel tank reduces the interior volume noticeably. For accurate capacity, measure inside the tank.

Also, don’t confuse US gallons with imperial gallons. A US gallon is about 3.785 liters, while an imperial gallon is about 4.546 liters. The difference is roughly 20% — significant for large tanks.

How to Choose the Right Formula

If your tank is a box with flat sides, use the rectangular formula. If it’s a pipe or a drum, use the cylindrical formula. For irregular shapes (like a car’s fuel tank that is molded to fit under the chassis), this calculator gives only an approximation. In those cases, the manufacturer’s spec or a dip chart is more accurate.

Limits of the Formula

This calculator assumes a perfect geometric shape. Real tanks often have rounded corners, sloped bottoms, or internal components that reduce volume. For a fuel tank, the actual fill volume may be less than the calculated capacity because of the filler neck and the need to leave air space for expansion. For a fish tank, you usually fill it below the top, so the actual water volume is less than the total capacity.

Also, the formula gives the total volume when full. If you need to know how much fuel is left at a certain level, you need a different calculation (partial volume), which is more complex for cylinders lying on their side.

Safety and Accuracy Notes

When measuring a fuel tank, always work in a well-ventilated area and avoid sparks. Never rely on a calculated capacity for critical applications like aircraft or pressure vessels — use manufacturer data. For water tanks, the weight of water (about 8.34 lbs per US gallon) can be significant; a 100-gallon tank weighs over 800 lbs when full, so ensure your support structure can handle it.

For dip readings, note that the volume per inch of height is not linear for a horizontal cylinder. The first and last inches hold less fuel than the middle inches. If you need a dip chart, use a specialized calculator that accounts for the cylinder’s orientation.

Frequently Asked Questions

How do I convert cubic feet to gallons?

Multiply cubic feet by 7.48 to get US gallons, or by 6.23 to get imperial gallons. For example, a 10 cubic foot tank holds about 74.8 US gallons.

What is the difference between US and imperial gallons?

A US gallon is 231 cubic inches (about 3.785 liters). An imperial gallon is 277.42 cubic inches (about 4.546 liters). The imperial gallon is about 20% larger. Most of the world uses liters; the US uses the US gallon; the UK and some Commonwealth countries use the imperial gallon for fuel, but also use liters.

Can I use this for a round (spherical) tank?

No, this calculator handles rectangular and cylindrical tanks. For a sphere, the volume is (4/3)πr³. For a spherical tank, you would need a different calculator.

Why does my fuel tank hold less than the calculator says?

Manufacturers often rate tanks based on the geometric volume, but the usable capacity is less due to internal baffles, the filler neck, expansion space, and the pickup tube not reaching the very bottom. Also, the tank may not be perfectly rectangular or cylindrical.

How do I measure a tank that’s already installed?

For a rectangular tank, measure the outside dimensions and subtract twice the wall thickness. For a cylinder, measure the circumference (wrap a tape around) and divide by π to get the diameter. Then measure the length. Use those inside dimensions in the calculator.

Does the calculator work for liters?

Yes, the third output gives liters directly. You can also enter dimensions in centimeters and convert to liters by dividing by 1,000 (since 1 liter = 1,000 cm³), but this calculator expects inches for the formula outputs.

Related

Formula used
in t | Tank type | Rectangular=1, Cylindrical=2 | 1 | 0
in l | Length | in | 36 | 0
in w | Width | in | 18 | 0
in h | Height / Diameter | in | 12 | 0
in cyl_len | Cylinder length (if cylindrical) | in | 36 | 0
out gallons_us | Volume (US gallons) | gal | (t == 1 ? (l * w * h) : (pi * (h/2)^2 * cyl_len)) / 231 | 2
out gallons_imp | Volume (imperial gallons) | gal | (t == 1 ? (l * w * h) : (pi * (h/2)^2 * cyl_len)) / 277.42 | 2
out liters | Volume (liters) | L | (t == 1 ? (l * w * h) : (pi * (h/2)^2 * cyl_len)) * 0.0163871 | 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.