ThisCalculator

Everyday

Tank Volume Calculator: How to Size Any Tank

Updated · Standard formula, shown below

Volume (cubic meters) 2.00 m³
Volume (liters)
2,000 L
Result
Volume (US gallons)
528.3 gal
Result
Length
2 m
You entered

This tank volume calculator works out the capacity of rectangular, cylindrical, and spherical tanks in liters, gallons, and cubic meters. You enter the tank’s dimensions (length, width, height, or diameter), and it returns the total volume and, for horizontal cylinders, the partially filled volume. It is a free online tool that uses standard geometric formulas, so you can trust the numbers for planning water storage, fuel tanks, or aquariums.

Formula

The calculator uses the basic geometric volume formulas for each tank shape. For a rectangular tank (like a box or an aquarium), the volume is:

V = L × W × H

  • V = volume (cubic meters, m³)
  • L = internal length (m)
  • W = internal width (m)
  • H = internal height (m)

For a vertical cylinder, the formula is V = π × r² × h, where r is the radius (half the diameter) and h is the height. For a horizontal cylinder, the partially filled volume uses a more complex formula involving the segment area of a circle. For a sphere, V = (4/3) × π × r³.

The calculator above shows the rectangular case, but the same logic applies to all shapes. Always use internal dimensions (not the outer shell) to avoid overestimating usable capacity.

Worked Example

Using the default values from the calculator: length = 2 m, width = 1 m, height = 1 m.

  1. Multiply the dimensions: 2 × 1 × 1 = 2 m³.
  2. Convert to liters: 2 m³ × 1000 = 2000 L.
  3. Convert to US gallons: 2 m³ × 264.172 = 528.3 gal.

The calculator shows 2.00 m³, 2000 L, and 528.3 gal. If you measured in feet, convert to meters first (1 ft = 0.3048 m) or use a version that accepts feet. The key is to keep all units consistent.

When to Use This Calculator

Use a tank volume calculator whenever you need to know how much liquid a container can hold, such as:

  • Designing a rainwater harvesting system
  • Sizing a fish tank or aquarium
  • Planning fuel storage for a generator
  • Estimating water capacity for a camper or RV
  • Checking the volume of a septic tank or sump pit

It is also useful for mixing chemicals or fertilizers, where you need to know the exact volume to calculate doses. The calculator gives you the theoretical maximum volume, but real tanks have fittings, baffles, or rounded corners that reduce usable space.

How to Read the Result

The first output is the volume in cubic meters, which is the base unit. The second and third outputs convert that to liters and US gallons. If you need imperial gallons (UK), multiply the cubic meters by 219.969. For practical purposes, 1 cubic meter is exactly 1000 liters, which is about 264 US gallons. If your tank is not full, you can adjust the height input to represent the liquid level, but for horizontal cylinders you need a dedicated partial-volume calculator because the cross-section is not a simple rectangle.

Remember that the volume is the internal capacity. If you measure the outside, subtract the wall thickness. For a typical plastic tank, the walls are a few millimeters thick, which makes a small difference. For large concrete tanks, the difference can be significant.

Common Mistakes and Unit Mix-Ups

The most common error is mixing units. For example, measuring length in feet and width in inches, then multiplying without converting. Always convert to a single unit system first. Another mistake is using the outer diameter instead of the inner diameter for a cylinder. Also, be careful with the difference between US and UK gallons—they are not the same. One US gallon is 3.785 liters, while a UK gallon is 4.546 liters. The calculator uses US gallons by default, which is standard for most applications in the United States.

Rounding too early can also cause errors. If you round the volume in cubic meters to two decimals, you might lose precision when converting to liters. It is better to keep full precision until the final step.

Limits of the Formula

The formulas assume perfect geometric shapes. Real tanks often have sloped bottoms, dished heads (like pressure vessels), or irregular shapes. For those, the simple formulas are only approximations. For a horizontal cylinder with flat ends, the volume is the cross-sectional area times the length. For a tank with elliptical or torispherical heads, you need more complex head-volume formulas. The calculator also does not account for the volume displaced by internal components like heaters, pumps, or baffles. If you need high accuracy, measure the actual tank or use a calibration chart from the manufacturer.

Safety and Accuracy Notes

When using tank volume for storing flammable liquids or chemicals, always check the material compatibility and safety regulations. The volume calculation is a starting point, not a substitute for engineering judgment. For pressure vessels, the wall thickness and design code matter more than the volume. For potable water tanks, ensure the material is food-grade. Also, never fill a tank to the absolute brim—leave expansion space, especially for liquids that expand with temperature. The calculator gives the geometric volume, but the safe working volume is typically 90-95% of that.

Frequently Asked Questions

How do I calculate the volume of a cylindrical tank in liters? Measure the radius (half the diameter) in meters and the height in meters. Use V = π × r² × h to get cubic meters, then multiply by 1000 to get liters. For example, a 1 m diameter tank that is 2 m tall has r = 0.5 m, so V = 3.1416 × 0.25 × 2 = 1.57 m³, which is 1570 liters.

What is the difference between a horizontal and vertical tank calculator? A vertical tank is a cylinder standing on its end, so the volume is simply the base area times the height. A horizontal tank lies on its side, and the liquid level does not fill the cross-section uniformly. For partial filling, you need the segment area formula, which is more complex. Many online calculators have a separate mode for horizontal tanks.

How many gallons are in a 1 cubic meter tank? There are 264.172 US gallons in one cubic meter. If you use UK gallons, it is 219.969. So a 1 m³ tank holds about 264 US gallons or 220 UK gallons.

Can I use this calculator for an irregularly shaped tank? No, the formulas work only for rectangular, cylindrical, and spherical shapes. For irregular tanks, you can either approximate by breaking the shape into simpler parts, or use a water displacement method: fill the tank with a known volume of water and measure the rise in level.

Why does my tank hold less than the calculated volume? Real tanks have internal fittings, sloped bottoms, or walls that reduce the usable volume. Also, you might have measured the outside dimensions. Always use internal dimensions and account for any obstructions. For safety, never fill to the absolute top; leave some air space for expansion.

Related

Formula used
in l | Length | m | 2 | 0
in w | Width | m | 1 | 0
in h | Height | m | 1 | 0
out vol_m3 | Volume (cubic meters) | m³ | l * w * h | 2
out vol_l | Volume (liters) | L | vol_m3 * 1000 | 0
out vol_gal | Volume (US gallons) | gal | vol_m3 * 264.172 | 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.