ThisCalculator

Everyday

Fuel Tank Volume Calculator 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.

This calculator works out the volume of a fuel tank in US gallons from its dimensions. You enter the tank’s shape, length, width, height (or diameter), and it returns the total capacity in gallons, plus the volume in liters and cubic feet. The result is the maximum amount of fuel the tank can hold when filled to the brim, not the usable fuel you can safely draw from it.

Formula

The formula depends on the tank shape. For a rectangular tank, volume in cubic inches is length × width × height. To convert to US gallons, divide by 231 (since 1 US gallon = 231 cubic inches). For a vertical cylindrical tank, volume is π × (radius)² × height, then divide by 231. For a horizontal cylindrical tank with flat ends, the formula is more complex because the liquid height matters; the full volume is π × (diameter/2)² × length, but the calculator above uses the general formula for a partially filled horizontal cylinder, where the liquid height is entered as the height. When the height equals the diameter, it simplifies to the full cylinder volume.

Variables:

  • Length (L) – tank length in inches (or any consistent unit).
  • Width (W) – tank width in inches (for horizontal cylinder, this is the diameter).
  • Height (H) – tank height in inches (for horizontal cylinder, this is the liquid depth; for vertical cylinder, it’s the tank height).
  • π (pi) ≈ 3.14159.

Worked Example

Using the default values from the calculator: rectangular tank, length = 24 in, width = 12 in, height = 12 in.

  1. Calculate volume in cubic inches: 24 × 12 × 12 = 3,456 in³.
  2. Convert to US gallons: 3,456 ÷ 231 = 14.96 gallons.
  3. Convert to liters: 14.96 × 3.7854 = 56.6 L.
  4. Convert to cubic feet: 3,456 ÷ 1,728 = 2.0 ft³.

The calculator shows 14.96 gallons, matching the manual calculation.

When to Use This Calculator

Use this calculator when you need to know the total capacity of a fuel tank for planning purposes, such as estimating range, comparing tank sizes, or checking if a tank meets regulations. It is also useful for DIY projects like building a fuel storage tank or modifying a vehicle. However, note that the calculated volume is the geometric volume; actual usable fuel is less due to the pickup tube position, expansion space, and tank baffles.

How to Measure a Fuel Tank Accurately

Measuring a fuel tank correctly is critical for an accurate volume. Use a tape measure and measure the outside dimensions, then subtract the wall thickness if you need the internal volume. For cylindrical tanks, measure the diameter at the widest point and the length from end to end, excluding any domed or dished heads. If the tank has irregular shapes, such as sumps or indentations, measure those separately and subtract or add as needed. For horizontal tanks, the height in the calculator refers to the liquid depth, not the tank height; if you want full capacity, enter the diameter as the height.

Common Mistakes and Misconceptions

  • Using the wrong gallon: US gallon (231 in³) vs. imperial gallon (277.42 in³). This calculator uses US gallons.
  • Forgetting to convert units: If you measure in feet, convert to inches (1 ft = 12 in) before using the formula, or use a consistent unit throughout.
  • Mixing up diameter and radius: For cylinders, the radius is half the diameter. Using diameter in the formula that requires radius gives a volume 8 times too large.
  • Assuming the tank is a perfect shape: Real tanks have rounded corners, baffles, and internal components that reduce volume.

Safety and Practical Considerations

When filling a fuel tank, never fill it to the absolute brim. Leave expansion space for temperature changes, especially for gasoline, which expands significantly. For vehicle fuel tanks, the filler neck and vent system are designed to leave room for expansion. For stationary storage tanks, follow local fire codes and environmental regulations regarding fill levels and secondary containment. Always use approved containers and grounding when transferring fuel.

Alternatives to Calculating Volume

If you cannot measure the tank or need a more precise number, consider these methods:

  • Check the manufacturer’s specifications: Most tanks have a rated capacity stamped on a plate or in the manual.
  • Use a dipstick or sight glass: For installed tanks, measure the liquid level and use a calibration chart.
  • Weigh the tank: If empty and full, the difference in weight divided by fuel density gives volume.
  • Use an ultrasonic sensor: For industrial tanks, these measure liquid level non-invasively.

Frequently Asked Questions

How many gallons are in a cubic foot? There are 7.48052 US gallons in one cubic foot. To convert cubic feet to gallons, multiply by 7.48.

What is the difference between US and imperial gallons? A US gallon is 231 cubic inches (about 3.785 liters), while an imperial gallon is 277.42 cubic inches (about 4.546 liters). The imperial gallon is about 20% larger. This calculator uses US gallons.

How do I calculate the volume of a rectangular tank in gallons? Multiply length × width × height in inches to get cubic inches, then divide by 231. For example, a 24×12×12 inch tank is 3,456 in³ ÷ 231 = 14.96 gallons.

Can I use this calculator for a horizontal cylindrical tank? Yes, select the horizontal cylinder option and enter the length, diameter (as width), and liquid depth (as height). For full capacity, enter the diameter as the height.

Why is my actual fuel capacity less than the calculated volume? Because the tank has internal components, the fuel pickup doesn’t reach the very bottom, and you leave expansion space. Typically, usable fuel is 5-10% less than the geometric volume.

Does fuel temperature affect the volume? Yes, fuel expands when warm and contracts when cold. A tank filled on a cold day may overflow when it warms up. This is why you should never fill to the absolute top.

Related

Formula used
sel shape | Tank shape | Rectangular=1, Cylindrical horizontal=2, Cylindrical vertical=3
in len | Length | in | 24 | 0
in wid | Width | in | 12 | 0
in hei | Height | in | 12 | 0
out gal | Volume (US gallons) | gal | (shape==1 ? len*wid*hei/231 : shape==2 ? (acos(1-2*hei/wid)/pi*((wid/2)^2*len) - (wid/2-hei)*sqrt(hei*(wid-hei))*len)/231 : pi*(wid/2)^2*hei/231) | 2
out lit | Volume (liters) | L | gal * 3.785411784 | 1
out ft3 | Volume (cubic feet) | ft³ | gal / 7.48051948 | 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.