ThisCalculator

Everyday

Fuel Tank Volume Calculator: How to Find Tank Size

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 fuel tank volume calculator works out the capacity of a rectangular, cylindrical, or spherical tank in liters, gallons, and cubic meters. You enter the tank’s dimensions (length, width, height, or diameter), and it returns the total volume, plus the volume for a given fill level if you provide one. The calculator uses standard geometric formulas and assumes a simple, regular shape—real tanks with baffles, domed ends, or irregular contours will differ slightly.

Formula

The calculator applies the standard volume formulas for each shape. For a rectangular tank (a box), the volume is length × width × height. For a cylinder lying on its side, the volume is π × (diameter/2)² × length. For a sphere, the volume is (4/3) × π × (diameter/2)³. All dimensions are in meters, and the result is converted to liters (1 m³ = 1000 L) and US gallons (1 L ≈ 0.264172 gallons).

When you enter a fill level, the calculator computes the partial volume using the appropriate formula. For a rectangular tank, partial volume is simply length × width × fill height. For a horizontal cylinder, it uses the formula for the area of a circular segment times the length. For a sphere, it uses the spherical cap volume formula. These are exact for the given geometry, assuming the tank is perfectly regular.

Worked Example

Let’s use the default values: a rectangular tank with length 2 m, width 1 m, height 1 m, and a fill level of 0.5 m.

  1. Total volume = 2 × 1 × 1 = 2 m³.
  2. Convert to liters: 2 × 1000 = 2000 L.
  3. Convert to US gallons: 2000 / 3.785411784 ≈ 528.3 gallons.
  4. Fill volume (rectangular) = 2 × 1 × 0.5 = 1 m³ = 1000 L.

The calculator shows 2000.0 L total, 528.3 gallons, and 1000.0 L at the fill level. That matches the formula output exactly.

When to Use This Calculator

You might need tank volume for a variety of practical reasons:

  • Estimating how much fuel a storage tank can hold before ordering a delivery.
  • Checking whether a custom-built tank (e.g., for a boat, RV, or generator) meets your range or runtime needs.
  • Calculating the volume of water in a fish tank or rainwater cistern, using the same math.
  • Converting between metric and imperial units for international specifications.

The calculator is most useful for planning and estimation, not for precise legal or commercial measurement. For official purposes, you’d use calibrated dip charts or manufacturer data.

How to Read the Results

The first output is the total volume in liters—the headline number. The second is the same volume in US gallons. The third is the volume at the fill level you entered, also in liters. If you leave the fill level at 0, the third output will be 0, which is correct. If you enter a fill level greater than the tank height, the partial volume formula may exceed the total—this is a sign that you’ve entered an impossible fill level.

Note that the calculator uses US gallons (231 cubic inches). If you need imperial gallons (which are larger, about 1.2 US gallons), you’ll need to multiply the gallon result by 0.832674.

Common Mistakes and Limitations

The most frequent error is mixing units. If you enter dimensions in feet, the calculator assumes meters, so the result will be off by a factor of 35.3147 (since 1 ft³ = 0.0283168 m³). Always convert to meters first. Another common mistake is using the diameter instead of the radius in the cylinder formula—the calculator uses the diameter, but if you’re doing it by hand, remember the radius is half the diameter.

Real fuel tanks are rarely perfect geometric shapes. Many have dished or elliptical ends, internal baffles, or are mounted at an angle. The calculator gives a close estimate, but for exact capacity, you should refer to the tank’s nameplate or manufacturer documentation. Also, fuel expands with temperature, so the actual volume of fuel you can pour in may be slightly less than the calculated volume, especially in hot weather.

Comparing Tank Shapes

For the same maximum dimension, a sphere holds the most volume per surface area, followed by a cylinder, then a rectangular box. For example, a 1 m cube holds 1000 L, while a sphere of 1 m diameter holds only about 524 L. If you’re designing a tank to fit a specific space, the rectangular shape is often the most practical, but it uses more material for the same capacity. Cylindrical tanks are common for fuel storage because they handle pressure well and are easier to manufacture.

For a horizontal cylinder, the partial volume calculation is more complex because the cross-section is a circular segment. The calculator handles this automatically, but if you’re doing it by hand, you need to use the formula: area = r² × acos((r – h)/r) – (r – h) × sqrt(2rh – h²), where r is the radius and h is the fill height.

Safety and Accuracy Notes

When filling any fuel tank, never fill it to the absolute brim. Leave room for expansion—most tanks have a recommended fill level (often 90-95% of capacity). Overfilling can cause spills, pressure buildup, and environmental hazards. Also, be aware that the volume of a tank changes slightly with temperature; fuel expands when warm, so a tank filled on a hot day may overflow when it cools.

For underground or aboveground storage tanks, local regulations often require specific measurement methods and spill prevention equipment. This calculator is for general estimation only and does not replace professional gauging or calibration. If you’re dealing with large quantities of fuel, consult a certified professional.

Frequently Asked Questions

How do I convert liters to gallons?

Divide the number of liters by 3.785411784 to get US gallons. For example, 100 liters ÷ 3.7854 ≈ 26.42 US gallons. For imperial gallons, divide by 4.54609.

What is the best shape for a fuel tank?

There’s no single best shape—it depends on your space, pressure requirements, and cost. Cylinders are common for fuel because they’re strong and easy to manufacture. Spheres are most efficient per unit of material but are harder to build and install. Rectangular tanks fit into tight spaces but require more material for the same volume.

Can I use this calculator for water tanks?

Yes, the math is identical. The calculator works for any liquid in a regular-shaped tank, whether it’s fuel, water, or another fluid. Just be sure to use the correct density if you need weight—for example, water weighs about 1 kg per liter, while diesel is about 0.85 kg per liter.

Why is my actual tank capacity different from the calculated volume?

Real tanks often have internal components like baffles, pipes, or sensors that reduce usable volume. Also, the tank may not be perfectly level, or the manufacturer may have rounded the dimensions. For exact capacity, check the tank’s nameplate or calibration chart.

How do I measure a tank that isn’t a perfect shape?

For irregular tanks, the most accurate method is to fill it with a known quantity of liquid (e.g., using a flow meter) and record the level. Repeat at several levels to create a dip chart. Alternatively, use a 3D scanning service or consult the manufacturer’s drawings.

Does fuel temperature affect volume?

Yes. Fuel expands when warm and contracts when cold. A tank that holds 1000 liters at 15°C might hold only 990 liters at 5°C for the same physical fill level. This is why fuel is often measured at a standard temperature (e.g., 15°C) in commercial transactions.

Related

Formula used
in shape | Tank shape | Rectangular=1, Cylindrical=2, Spherical=3 | 1 | 0
in len | Length | m | 2 | 0
in wid | Width (rectangular only) | m | 1 | 0
in hei | Height or diameter | m | 1 | 0
in fill | Fill level (height of liquid) | m | 0.5 | 0
out vol | Total volume | liters | shape * len * wid * hei * 1000 + (shape==2) * pi * (hei/2)^2 * len * 1000 + (shape==3) * (4/3) * pi * (hei/2)^3 * 1000 | 1
out volgal | Total volume | US gallons | vol / 3.785411784 | 1
out fillvol | Volume at fill level | liters | shape * len * wid * fill * 1000 + (shape==2) * len * ( (hei/2)^2 * acos((hei/2 - fill)/(hei/2)) - (hei/2 - fill) * sqrt(2*hei*fill - fill^2) ) * 1000 + (shape==3) * (pi * fill^2 * (3*hei/2 - fill) / 3) * 1000 | 1

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.