Fuel Tank Capacity Calculator

Calculate fuel tank capacity from tank dimensions. Get gross capacity, safe fill volume, and current fuel volume for rectangular, vertical cylinder, and horizontal cylinder tanks now.

Inches
Inches
Inches
%
Inches
Gross Tank Capacity (Total)
Gallons (US)
Safe / Usable Capacity
Gallons (US)
Formulas & Definitions
Safe Fill Percentage:
Fuel tanks are rarely filled to 100% capacity. A safe fill standard (often 90% to 95%) allows space for thermal expansion (ullage) without overflowing.

Rectangular Tank Formula:
Volume = Length × Width × Height

Vertical Cylinder Formula:
Volume = π × (Diameter ÷ 2)² × Height

Horizontal Cylinder Formula:
Volume = π × (Diameter ÷ 2)² × Length

Volume Conversions:
– 1 US Gallon = 231 Cubic Inches
– 1 US Gallon = 3.78541 Liters
– 1 UK Gallon = 4.54609 Liters
– 1 Liter = 1000 Cubic Centimeters (cm³ or cc)
– 1 Liter = 61.0237 Cubic Inches
By: AxisCalc Published: April 13, 2026 Reviewed by: Marcus Vance

Figuring out how much fuel a tank can hold is essential whether you are building a custom fuel cell for a race car, outfitting a boat, or simply trying to understand the range of your generator. Our fuel tank capacity calculator takes the guesswork out of measuring tank volume. It quickly determines the gross volume, the safe usable capacity, and even tells you how much fuel is currently sitting in the tank based on a simple dipstick measurement.

What Is Fuel Tank Capacity?

Fuel tank capacity refers to the total volume of liquid a tank can hold inside its structural walls. However, in real-world applications, tanks are almost never filled to their absolute brim. Fuel expands when it gets warm, so a small amount of empty space—often called ullage—must be left at the top of the tank to prevent dangerous overflows or pressure buildup.

Because of this, we look at two different numbers: the gross tank capacity (the total geometric volume of the container) and the safe fill capacity (the usable volume after leaving room for expansion).

Why Use a Fuel Tank Capacity Calculator?

Calculating the volume of a simple box might seem straightforward, but things get complicated quickly when you deal with different shapes, different measurement units, and safety margins. You might measure your tank in inches, but need the final answer in US Gallons or Liters.

Furthermore, if you have a horizontal cylindrical tank, figuring out how much fuel is left based on a simple liquid depth measurement requires complex circular segment trigonometry. This calculator handles all the heavy lifting instantly. It prevents unit conversion errors, enforces safe fill limits, and accurately maps partial depths to actual liquid volumes regardless of the tank’s shape.

Formula / How It Is Calculated

The mathematical formulas used to find the volume depend entirely on the physical shape of your fuel tank. Here are the core volume formulas applied by the calculator.

For a rectangular tank, the total volume is found by multiplying its three primary dimensions:$$V = L \times W \times H$$

Where $L$ is length, $W$ is width, and $H$ is height.

For a vertical cylinder, the volume is the area of the circular base multiplied by the height:$$V = \pi \times (D/2)^2 \times H$$

Where $D$ is the diameter and $H$ is the height.

For a horizontal cylinder, the total volume formula is similar, but the length acts as the height of the cylinder:$$V = \pi \times (D/2)^2 \times L$$

Where $D$ is the diameter and $L$ is the length.

To convert the raw geometric volume into usable liquid measurements, the calculator applies standard conversion factors. For example, 1 US Gallon equals 231 cubic inches, and 1 Liter equals 1000 cubic centimeters. The safe capacity is simply the total volume multiplied by your chosen safe fill percentage.

Detailed Examples

Suppose you are fabricating a custom rectangular aluminum fuel tank for an off-road vehicle. You have measured the outside of the space and determined the internal dimensions will be 24 inches long, 18 inches wide, and 12 inches high.

You also want to leave a standard 5% expansion gap at the top, and you just put a dipstick in the tank which shows the current fuel level is sitting at 6 inches. You want to know your total capacity and how much fuel is in there right now.

You now have all the relevant information needed for the calculator. Select “Rectangular Box” from the Tank Shape dropdown. Now within the input boxes below, enter 24 for the Length, hit the tab key, enter 18 for the Width, hit the tab key again, and enter 12 for the Height. Leave the units as Inches. Ensure the Safe Fill Percentage is set to 95. Finally, in the Current Liquid Depth box, enter 6.

The calculator processes these dimensions instantly. Looking at the results, you will see your Gross Tank Capacity is 22.44 US Gallons. Your Safe / Usable Capacity is calculated as 21.32 US Gallons. Because you entered the optional dipstick depth of 6 inches, it also reveals your Current Fuel Volume is 11.22 US Gallons.

Common Rectangular Tank Sizes

To give you an idea of how physical dimensions translate into liquid volume, here is a reference table showing the gross capacity of some standard custom rectangular tank sizes.

Dimensions (Length × Width × Height)Volume in Cubic InchesGross Capacity (US Gallons)Gross Capacity (Liters)
16″ × 12″ × 8″1,536 in³6.6525.17
20″ × 16″ × 10″3,200 in³13.8552.44
24″ × 18″ × 12″5,184 in³22.4484.95
30″ × 20″ × 14″8,400 in³36.36137.64
36″ × 24″ × 16″13,824 in³59.84226.53

Getting the Most Out of This Tool

To get accurate results, it is important to measure the internal dimensions of your tank. If your tank is made from thick plastic or heavy-duty steel, measuring the outside walls will give you a slightly inflated capacity. Always measure the inside, or subtract the wall thickness from your external measurements.

The tool allows you to mix and match units. If you know the length in feet but the depth in inches, simply change the unit dropdown next to each specific input. The calculator handles all the conversions in the background.

The calculator defaults to 95% safe fill, but the appropriate usable-fill percentage depends on the tank design, fuel, and manufacturer or regulatory requirements.

The “Current Liquid Depth” feature is highly useful if you rely on a manual dipstick rather than an electronic fuel sender. It is especially handy for horizontal cylindrical tanks, where the relationship between the liquid height and the liquid volume is not linear.

Half the height means half the fuel, but a quarter of the height in a round tank does not equal a quarter of the volume. The calculator uses circular segment math to give you the calculated partial volume.

Frequently Asked Questions

  1. Why do I need a safe fill percentage?

    Liquid fuels expand when heated. If a tank is filled to the absolute brim, the expanding fuel can overflow from vent lines or rupture the tank seals. Leaving an empty space, called ullage, prevents this. While 95% is a common default, always follow the appropriate fill limits for your specific tank setup.

  2. How does the calculator measure partial volume in a horizontal cylinder?

    In a horizontal cylinder, the volume per inch of depth changes because the sides are curved. An inch of liquid at the bottom holds less volume than an inch at the middle. The calculator uses circular segment trigonometry to find the exact area based on depth, multiplying it by the tank’s length to find the accurate partial volume.

  3. Does this calculator work for water or holding tanks?

    Yes. Volume is just a measurement of 3D space. The geometric math works perfectly for fresh water tanks, grey water holding tanks, oil reservoirs, or any liquid container matching the supported shapes.

  4. What is the difference between US Gallons and UK Gallons?

    A US gallon is roughly 3.785 liters, while a UK (Imperial) gallon is larger at about 4.546 liters. Make sure to select the correct regional gallon from the results dropdown to avoid capacity discrepancies.

  5. Why does my vehicle hold less fuel than the gross capacity?

    Automakers design tanks with built-in expansion zones that fuel pump nozzles cannot bypass. Additionally, the fuel pickup tube cannot reach the absolute bottom, leaving a small “dead volume.” As a result, your usable capacity is always lower than the tank’s gross geometric volume.

Related Tools & Calculators: