ThisCalculator

Everyday

Tank Volume Calculator: How to Find Any Tank’s Capacity

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 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 and the volume per unit depth. It is useful for fish tanks, fuel storage, water tanks, and mixing vessels.

Formula

The calculator uses the standard geometric volume formulas for each shape, then converts the result to liters. For a rectangular tank, volume = length × width × height. For a cylinder, volume = π × (diameter/2)² × height. For a sphere, volume = (4/3) × π × (diameter/2)³. All dimensions are entered in meters, so the raw volume is in cubic meters. Multiplying by 1000 converts cubic meters to liters (1 m³ = 1000 L).

Variables:

  • Length (L) – the longest horizontal dimension of the tank, in meters.
  • Width (W) – the shorter horizontal dimension, in meters. For a cylinder or sphere, set this to 0.
  • Height (H) – the vertical dimension, in meters. For a sphere, set this to 0.
  • Diameter (D) – for a cylinder or sphere, the full width across the center, in meters.
  • Volume (V) – the total internal capacity, in liters.

Worked Example

Using the default values from the calculator: a rectangular tank with length = 1.2 m, width = 0.6 m, height = 0.5 m.

  1. Calculate the volume in cubic meters: 1.2 × 0.6 × 0.5 = 0.36 m³.
  2. Convert to liters: 0.36 × 1000 = 360 L.
  3. Convert to US gallons: 360 / 3.78541 = 95.10 gal.
  4. The calculator shows a total volume of 360.00 L, 95.10 gal, and 0.36 m³.

How to Choose the Right Tank Shape

Most tanks are rectangular or cylindrical, but the shape affects how you measure and how much volume you actually get. Rectangular tanks are common for aquariums and storage containers because they are easy to stack and measure. Cylindrical tanks are used for fuel, water, and pressure vessels because they handle internal pressure better. Spherical tanks are rare but appear in some industrial applications and gas storage.

When measuring, always use the internal dimensions, not the external ones. The wall thickness reduces the available volume. If you only have external measurements, subtract twice the wall thickness from each dimension before calculating. For a cylinder, measure the internal diameter and internal height. For a sphere, internal diameter is sufficient.

Common Mistakes and How to Avoid Them

  • Using outside dimensions – This overestimates volume by the wall thickness. Always measure the inside.
  • Mixing units – If you enter centimeters but the formula expects meters, the result is off by a factor of 1,000,000. Convert all dimensions to meters first.
  • Forgetting the 1000 conversion – The raw cubic meters must be multiplied by 1000 to get liters. Many people stop at cubic meters and think that is the liter count.
  • Ignoring the liquid level – The calculator gives total capacity, not current content. For partial fill, multiply the total volume by the fill fraction (e.g., 0.5 for half full).
  • Assuming all cylinders are the same – A horizontal cylinder has a different partial volume formula than a vertical one. This calculator assumes vertical orientation.

When to Use This Calculator

Use this calculator when you need the total capacity of a tank for planning, purchasing, or safety reasons. For example, if you are setting up a fish tank, you need to know how many liters of water it holds to dose treatments or choose a filter. If you are installing a rainwater collection barrel, you need the volume to estimate how much water you can store. If you are designing a fuel storage tank, you need the volume to ensure it meets your storage needs.

The result is also useful for estimating weight: multiply the volume in liters by the density of the liquid (water = 1 kg/L, diesel ≈ 0.85 kg/L) to get the mass in kilograms. This is critical for structural support and transport.

Limitations of the Formula

The formulas assume perfect geometric shapes with flat, parallel ends and uniform walls. Real tanks may have rounded corners, dished heads (like pressure vessels), or internal baffles that reduce volume. For such tanks, the formula gives an overestimate. Also, the calculator does not account for the volume displaced by internal components such as heaters, pumps, or structural supports.

For a partially filled horizontal cylinder, the volume is not simply a fraction of the total; it requires a more complex integral. This calculator does not handle that case. If you need that, look for a dedicated horizontal cylinder calculator.

Safety and Accuracy Notes

Always measure carefully and double-check your dimensions. A small error in one dimension can cause a large error in volume because volume scales with the cube of the dimension for spheres and with the product of three dimensions for rectangular tanks. For example, a 1% error in diameter of a sphere results in about a 3% error in volume.

When storing liquids, never fill a tank to the absolute brim. Leave expansion space, especially for liquids that expand with temperature (like water or fuel). The calculator gives the theoretical maximum; your usable volume is typically 90–95% of that.

If you are using the volume for chemical dosing or medication, always verify with a trusted source, as dosing errors can be dangerous. The calculator is a tool for estimation, not a substitute for professional engineering advice.

Frequently Asked Questions

How do I convert liters to gallons? Divide the number of liters by 3.78541 to get US gallons, or by 4.54609 to get imperial gallons. The calculator shows US gallons by default.

What if my tank is not a perfect cylinder or rectangle? For irregular shapes, you can fill the tank with water and measure the volume directly, or use a displacement method. The formulas here work best for standard geometric shapes.

Can I use this for a fuel tank? Yes, but be aware that fuel tanks often have complex internal shapes. The calculator gives an approximation. For exact capacity, check the manufacturer’s specifications.

Does the calculator account for wall thickness? No, it assumes you enter internal dimensions. If you only have external dimensions, subtract the wall thickness from each measurement before entering.

How do I find the volume of a partially filled tank? Multiply the total volume by the fill percentage. For example, if the tank is 60% full, multiply the total volume by 0.6. This works for vertical cylinders and rectangular tanks, but not for horizontal cylinders.

Why does the sphere formula use (4/3)πr³? That is the standard mathematical formula for the volume of a sphere, derived from calculus. It gives the exact volume for a perfect sphere.

Related

Formula used
in shape | Tank shape | Rectangular=1, Cylinder=2, Sphere=3 | 1 | 0
in len | Length (or diameter) | m | 1.2 | 0
in wid | Width (cylinder: leave 0) | m | 0.6 | 0
in hei | Height (sphere: leave 0) | m | 0.5 | 0
out vol | Total volume | L | shape * len * wid * hei * 1000 + (shape==2 ? pi * (len/2)^2 * hei * 1000 : 0) + (shape==3 ? (4/3) * pi * (len/2)^3 * 1000 : 0) | 2
out gal | Volume in US gallons | gal | vol / 3.78541 | 2
out m3 | Volume in cubic meters | m3 | vol / 1000 | 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.