Tank Volume Calculator

The Tank Volume Calculator instantly computes the total capacity and partial fill volume of six standard tank geometries using precise mathematical formulas.

Select Tank Shape

HfhL

You can only use the period (.) as the decimal separator.

Enter Tank Dimensions

What is the most accurate way to calculate tank volume?

Manual estimation in industrial and construction environments leads to costly over-ordering of materials, structural foundation failures, or hydrostatic testing errors. The most accurate method relies on precise geometric formulas tailored to the specific internal geometry of the tank, accounting for wall thickness and internal fixtures.

This calculator executes these geometric formulas instantly using IEEE 754 double-precision arithmetic. It supports bidirectional logic, allowing engineers to input physical dimensions to find volume, or input a target volume to reverse-engineer required dimensions. It also calculates partial fill levels using exact circular segment integration and converts inputs universally from millimeters to feet into outputs like liters, US gallons, or cubic meters.

Tank Volume Formulas for Different Shapes

Different tank geometries serve distinct engineering purposes, from atmospheric storage to high-pressure containment. Here are the standard total volume formulas used across construction, oil and gas, and chemical processing.

Tank Type Tank Shape Total Volume Formula Primary Application
Rectangular Box $V = L \times W \times H$ Concrete reservoirs, fire water tanks
Vertical Cylinder Round Tower $V = \pi r^2 h$ Silos, water towers, API storage
Horizontal Cylinder Transport Tank $V = \pi r^2 L$ Fuel trucks, underground USTs
Capsule Pill Shape $V = \pi r^2 L + \frac{4}{3}\pi r^3$ Pressure vessels, LPG storage
Elliptical Oval Tank $V = \pi a b L$ Aerospace, space-constrained transport
Frustum Conical $V = \frac{\pi H}{3}(R^2 + Rr + r^2)$ Mixing vats, chemical drainage

Why does tank shape matter for structural integrity?

Tank shape directly dictates how the structure handles hydrostatic pressure, wind loads, and physical space constraints. Understanding these physics is critical for foundation design, material selection, and wall thickness calculations.

Is a vertical tank more efficient than a horizontal one?

Vertical tanks offer a minimal ground footprint, making them ideal for space-constrained sites like urban construction projects or rooftop installations. However, they require significant vertical clearance and heavily reinforced concrete foundations to handle the concentrated point load of the liquid column.

Horizontal tanks spread the weight over a larger surface area, drastically reducing ground pressure (PSI). They are the mandatory standard for transport and underground storage because they maintain a low center of gravity, preventing rollovers during transit and reducing seismic shear forces during earthquakes.

How much pressure does the liquid put on the walls?

Hydrostatic pressure increases linearly with depth, governed by the formula $P = \rho g h$, where $\rho$ is fluid density, $g$ is gravity, and $h$ is depth. A vertical tank holding 10 meters of water exerts roughly 98.1 kPa (14.2 PSI) of pressure at the bottom wall, and zero at the top.

This non-uniform pressure distribution is why vertical tanks and silos require significantly thicker steel plates or concrete at the base. Engineers use this pressure calculation to determine the spacing of external reinforcing rings on large atmospheric storage tanks to prevent catastrophic bursting.

How do I calculate the volume of rectangular and vertical cylindrical tanks?

These are the most common stationary storage shapes. The math is straightforward, but practical engineering application requires accounting for usable space, internal baffles, and dead zones.

The Formulas

For a rectangular tank, multiply the internal length, width, and height:

$$V = L \times W \times H$$

For a vertical cylinder, square the internal radius, multiply by pi, and multiply by the internal height:

$$V = \pi r^2 h$$

Step-by-Step Calculation: Vertical Water Tower

Scenario: Calculate the capacity of a vertical cylindrical water tower with an internal diameter of 4 meters and a height of 10 meters.

  1. Find the radius: $r = \text{Diameter} \div 2 = 4 \div 2 = 2$ meters.
  2. Apply the formula: $V = \pi \times 2^2 \times 10$.
  3. Calculate: $V = 3.14159 \times 4 \times 10 = 125.66$ cubic meters.
  4. Convert to liters: $125.66 \times 1,000 = 125,660$ liters.

Step-by-Step Calculation: Rectangular Fire Water Tank

Scenario: A concrete fire suppression tank measures 8 meters long, 4 meters wide, and 3 meters deep internally.

  1. Identify dimensions: $L = 8$, $W = 4$, $H = 3$.
  2. Apply the formula: $V = 8 \times 4 \times 3$.
  3. Calculate: $V = 96$ cubic meters.
  4. Convert to US gallons: $96 \times 264.172 = 25,360$ gallons.

The "Dead Volume" and Baffle Problem

Calculated geometric volume is rarely usable volume. In construction, the outlet pipe is rarely at the absolute bottom of the tank. The space below the pipe is "dead volume"—it holds sediment, sludge, and water that cannot be pumped out. To find usable capacity, calculate the total volume, then subtract the volume of the dead zone. For a vertical cylinder with an outlet 0.5 meters from the bottom, subtract $\pi r^2 \times 0.5$ from your total.

Additionally, rectangular tanks often contain internal baffles to prevent fluid sloshing during seismic events. These baffles displace fluid. If a tank has four baffles each measuring 0.1m thick, 3m high, and 4m wide, you must subtract their total displaced volume ($4 \times 0.1 \times 3 \times 4 = 4.8$ m³) from the total capacity.

Is a horizontal tank really 50% full at half-height?

This is a common engineering trap. For a standard horizontal cylindrical tank, the answer is yes. Because the cylinder has a uniform circular cross-section, a liquid level at exactly 50% of the diameter represents exactly 50% of the total volume.

However, this rule fails completely for capsule and elliptical tanks. Because the ends of these tanks curve inward, the cross-sectional area changes non-linearly as the liquid level rises. A capsule tank at 50% height is actually less than 50% full because the curved hemispherical ends hold significantly less volume than the straight middle section.

Calculating Partial Fill for Horizontal Cylinders

To calculate partial volume in a horizontal cylinder, you must use the circular segment formula. This calculates the area of the liquid's cross-section and multiplies it by the tank's length.

$$V_{fill} = L \times \left( r^2 \arccos\left(\frac{r-h}{r}\right) - (r-h)\sqrt{2rh - h^2} \right)$$

Step-by-Step Calculation: Partial Fuel Tank

Scenario: A horizontal fuel tank has a radius of 1 meter and a length of 5 meters. The fuel level is 0.5 meters (exactly half).

  1. Identify variables: $r = 1$, $h = 0.5$, $L = 5$.
  2. Calculate the arccos term: $\arccos((1 - 0.5) / 1) = \arccos(0.5) = 1.047$ radians.
  3. Calculate the square root term: $\sqrt{2(1)(0.5) - 0.5^2} = \sqrt{1 - 0.25} = 0.866$.
  4. Solve the bracket: $(1^2 \times 1.047) - (0.5 \times 0.866) = 1.047 - 0.433 = 0.614$ square meters.
  5. Multiply by length: $V = 5 \times 0.614 = 3.07$ cubic meters.

The Ullage Method for Transport

In fuel transport, operators often measure "ullage"—the empty space from the top of the tank down to the liquid surface. To calculate the remaining fuel, calculate the total volume of the tank, then calculate the volume of the ullage space using the circular segment formula (where $h$ is the ullage depth), and subtract the ullage volume from the total volume.

How do I calculate the volume of a partially filled curved tank?

Capsule and elliptical tanks require splitting the calculation into multiple geometric zones because the cross-sectional area is not constant along the length of the tank.

The Math Behind the Curve

For a capsule tank, treat the middle as a horizontal cylinder and the two ends as halves of a sphere. Calculate the cylinder volume using the segment formula above. For the spherical ends, use the spherical cap formula: $V_{cap} = \frac{\pi h^2}{3}(3r - h)$, where $h$ is the fill height in the spherical section.

For an elliptical tank, the math is highly complex because the width changes continuously along the vertical axis. The most accurate field method is to use a calibrated strapping table, which maps specific dipstick heights to exact volumes based on the tank's specific elliptical eccentricity.

Step-by-Step Calculation: Capsule Transport Truck

Scenario: A capsule tank has a cylindrical middle section of 3 meters length and hemispherical ends with a radius of 1 meter. It is filled to a height of 1 meter (full).

  1. Calculate cylinder volume: $V_{cyl} = \pi r^2 L = 3.14159 \times 1^2 \times 3 = 9.42$ m³.
  2. Calculate sphere volume (two halves make one sphere): $V_{sphere} = \frac{4}{3}\pi r^3 = 1.333 \times 3.14159 \times 1^3 = 4.19$ m³.
  3. Add them together: Total Volume = $9.42 + 4.19 = 13.61$ m³.

When should I use a conical (frustum) tank?

Frustum tanks—wider at the top and narrower at the bottom—are the industry standard for mixing vats, chemical reactors, and drainage systems. The sloped walls prevent sediment buildup, ensure complete drainage via gravity, and create a natural vortex when mixed.

The Formula

The volume of a frustum depends on the top radius ($R$), bottom radius ($r$), and height ($H$).

$$V = \frac{\pi H}{3}(R^2 + Rr + r^2)$$

Step-by-Step Calculation: Chemical Mixing Vat

Scenario: A mixing vat has a top radius of 2 meters, a bottom radius of 0.5 meters, and a height of 3 meters.

  1. Square the radii: $R^2 = 4$, $r^2 = 0.25$.
  2. Multiply the radii: $Rr = 2 \times 0.5 = 1$.
  3. Sum the terms: $4 + 1 + 0.25 = 5.25$.
  4. Apply the formula: $V = \frac{3.14159 \times 3}{3} \times 5.25 = 3.14159 \times 5.25 = 16.49$ m³.

Calculating Partial Fill in a Frustum

Because the walls slope, the radius at any given liquid height ($h$) changes. You must first calculate the radius at the liquid surface ($r_h$) using similar triangles: $r_h = r + (R-r) \times (h/H)$. Then, apply the frustum formula using $r$ and $r_h$ instead of $R$.

How do I measure a tank if I don't have the original blueprints?

Field measurement is often required for retrofitting, auditing existing infrastructure, or verifying as-built conditions. You do not need to measure the radius directly if you can measure the circumference, but you must account for physical variables.

The String Method and Tape Calibration

Wrap a non-stretch steel tape measure around the widest part of a cylindrical tank to get the circumference ($C$). Divide this number by $2\pi$ (approximately 6.283) to find the exact radius. Note: Steel tapes expand in heat. If measuring in direct sunlight above 30°C, apply a thermal correction factor to the tape length to avoid a 0.1% measurement error, which equals 10 liters in a 10,000-liter tank.

$$r = \frac{C}{2\pi}$$

The Dipstick Trick and Tilt Correction

For horizontal tanks, insert a clean dipstick vertically until it hits the bottom. Measure the wet mark. However, tanks are rarely perfectly level. If a tank is tilted by even 1 degree, the liquid pools at one end, making the dipstick reading inaccurate. To correct for tilt, take dipstick readings at both the front and rear of the tank, average them, and use that average height in the calculator.

What is the fastest way to convert between liters, gallons, and cubic meters?

International projects often mix metric and imperial units. Using the wrong conversion factor in a construction specification can lead to a 20% error in fluid volume ordering, resulting in massive budget overruns.

From To Multiply By
Cubic Meters (m³)Liters (L)1,000
Cubic Meters (m³)US Gallons264.172
Cubic Meters (m³)UK Gallons219.969
Liters (L)US Gallons0.264172
US GallonsLiters (L)3.78541
Cubic Feet (ft³)US Gallons7.48052
Cubic Meters (m³)Oil Barrels (bbl)6.28981

US vs. UK Gallons and Temperature Correction

Never assume a "gallon" is universal. A US gallon is 3.785 liters, while a UK (Imperial) gallon is 4.546 liters. Furthermore, liquids expand under thermal load. A 10,000-gallon diesel tank filled to 100% at 50°F will overflow if the temperature rises to 90°F. For precise chemical and fuel storage, always calculate volume at the standard reference temperature (usually 15°C or 60°F) and apply a volume correction factor (VCF) based on the fluid's specific thermal expansion coefficient.

Frequently Asked Questions

How do I account for thermal expansion in a closed tank calculation?

Liquids expand when heated. For closed tanks, you must leave an "ullage" or vapor space at the top—typically 5% to 10% of the total volume—to prevent the tank from rupturing as the liquid expands. Never fill a closed chemical or fuel tank to 100% geometric capacity. Calculate the maximum expected temperature rise and use the fluid's coefficient of thermal expansion to determine the required vapor space.

Why is my horizontal tank volume calculation different from the dipstick reading?

Dipsticks measure vertical height, but horizontal tanks have curved bottoms. The relationship between height and volume is non-linear. A tank that is 10% full by height might only be 5% full by volume because the bottom curve holds very little liquid. Always use a calculator to convert dipstick height to actual volume, and ensure the tank is perfectly level before taking the reading.

How much does a full water tank weigh?

Water has a density of 1,000 kg per cubic meter (or 8.34 lbs per US gallon). A 10 cubic meter tank holds 10,000 kg (10 metric tons) of water alone. You must add the dead load (the weight of the empty tank structure) to calculate the total live load for your foundation. For chemicals, multiply the volume by the fluid's specific gravity to find the exact weight.

Can I use this calculator for underground septic tanks?

Yes, but you must measure the internal dimensions, not the external. Septic tanks have thick concrete or plastic walls. Also, remember to subtract the volume taken up by internal baffles, tees, and the "dead volume" below the outlet pipe to find the actual holding capacity required by local environmental codes.

How do I calculate the volume of a tank with a flat bottom but dished (curved) top?

Treat the tank as two separate geometric shapes. Calculate the volume of the cylindrical bottom section using $V = \pi r^2 h$. Then, identify the geometry of the dished top (often a shallow cone, ellipsoid, or hemispherical cap) and calculate its volume separately. Add the two volumes together. Most ASME engineering drawings will specify the exact geometry and knuckle radius of the dish.

What is the difference between a capsule tank and a horizontal cylinder?

A horizontal cylinder has flat, vertical ends. A capsule tank has hemispherical (rounded) ends. The capsule shape distributes internal pressure evenly across the entire surface, making it significantly stronger. This is why it is used for propane, oxygen, and high-pressure chemical transport, while flat-ended cylinders are only used for low-pressure atmospheric storage like water or diesel.

How do I find the volume of an irregularly shaped tank?

If the tank is too irregular for geometric formulas, use the volumetric displacement method. Fill the tank with water using a calibrated flow meter and record the total liters dispensed. Alternatively, fill it with a known number of standard containers (like 5-gallon buckets) and count them. For existing tanks, consult the manufacturer's strapping table, which maps specific dipstick heights to exact volumes.

Why are frustum tanks preferred for mixing?

The sloped walls of a frustum tank create a natural funnel effect. When a mixer agitator is placed in the center, the slopes direct fluid back toward the center, creating a strong vortex that ensures thorough mixing. Flat-bottomed tanks often have "dead zones" in the corners where fluid stagnates, leading to uneven chemical reactions or sediment buildup.

How do API and ISO standards affect tank volume calculation?

In the oil and gas industry, tank volumes are calculated according to API Manual of Petroleum Measurement Standards (MPMS) or ISO 7507. These standards require complex corrections for shell thermal expansion, hydrostatic pressure bulging (the tank walls physically expand when full), and bottom plate displacement. For standard construction, geometric formulas are sufficient, but for custody transfer of petroleum, API strapping tables are legally required.

How do I calculate the volume of a tilted cylindrical tank?

If a vertical tank is tilted, the liquid surface is no longer parallel to the base. The volume calculation requires integrating the area of the elliptical liquid surface across the height of the tank. For small tilts (under 2 degrees), the error is negligible. For larger tilts, you must use specialized software or advanced calculus formulas that account for the tilt angle $\theta$ and the tank's radius.