How to Calculate Tank Volume: Formulas & Worked Examples for Every Shape

How to calculate tank volume shown on a cylindrical tank and a rectangular tank with their volume formulas
Every tank volume calculation is cross-section area times length or height — then a unit conversion.

Whether you have a water tank, fuel tank, aquarium, or storage container, knowing how to calculate tank volume helps you determine exactly how much liquid it can hold.

You do not need an app to answer it. Every tank shape has a short formula, and once you see the one idea behind all of them, you can calculate tank volume for almost any container with a tape measure and a phone calculator.

This guide covers the formulas shape by shape, with worked examples showing every step of the arithmetic, the conversions into gallons and litres, how to handle a partly full tank, and the mistakes that quietly wreck otherwise correct maths.

Quick Answer: How to Calculate Tank Volume

To calculate tank volume, first identify the tank’s shape and measure its inside dimensions. Then, use the appropriate formula to find its capacity in cubic units before converting the result into gallons or litres.

Work out the volume in cubic units, then convert. Rectangular tank: V = length × width × height. Vertical cylinder: V = π × radius² × height. Horizontal cylinder (full): V = π × radius² × length. Sphere: V = (4/3) × π × radius³. Measure in inches and divide cubic inches by 231 for US gallons; multiply gallons by 3.785 for litres. Always use inside dimensions, and radius is half the diameter.

That is genuinely most of it. The rest is worked examples, the one shape that misbehaves when part-full, and avoiding measurement traps.

The One Idea Behind Every Tank Formula

Every tank formula here is the same sentence: volume = cross-section area × the dimension running through it.

For a box, the cross-section is a rectangle, length × width, stretched through the height. For a cylinder, it is a circle π, × r², stretched through the height or length. Think in those terms and the formulas stop being things to memorise.

It also explains why volume is three-dimensional: a flat area combined with a depth. Our guide to 3D dimensions examples applies the same thinking to rooms and boxes.

One ground rule before any numbers: use inside dimensions. The volume you care about is the space the liquid can occupy; wall thickness, lids and rims are not part of it.

The Conversions You Will Need

Formulas give you cubic units; real life asks for gallons and litres. Keep this table next to you:

FromToDo this
Cubic inchesUS gallonsDivide by 231
Cubic feetUS gallonsMultiply by 7.48052
US gallonsLitresMultiply by 3.785
Cubic centimetresLitresDivide by 1,000
Cubic metresLitresMultiply by 1,000
US gallonsImperial (UK) gallonsDivide by 1.201

Three facts explain the whole table: 1 US gallon = 231 cubic inches exactly; 1 US gallon = 3.785 litres; 1 cubic foot = 7.48052 gallons. Measure in inches and the divide-by-231 step is the one you will use most.

Watch the last row: a US gallon (3.785 L) and an imperial gallon (4.546 L) differ by about 20%, so check which gallon a British or Canadian label means. And pick one unit system per calculation, mixing inches and centimetres inside one formula produces a meaningless number.

How to Measure a Tank Before You Calculate

The formulas are exact; measurements are where accuracy is won or lost. Five habits:

  1. Measure the inside. Run the tape along the inner walls of an open tank. For a closed tank measured outside, subtract the wall thickness twice from each dimension, once per side.
  2. Measure depth from the bottom. Liquid depth (call it f) is the vertical distance from the inside floor to the liquid surface, not a measurement along a curved wall.
  3. For round tanks, measure diameter, then halve it. Diameter is what a tape across the top gives you; the formulas want the radius, diameter ÷ 2. This step causes more wrong answers than everything else combined.
  4. Measure twice, in two places. Tanks bulge, taper and settle slightly out of level. If readings differ, use the average for capacity, or the smaller one for a safe underestimate.
  5. Note the fill line. Measuring to the actual water line gives you the volume of liquid; measuring to the rim gives you capacity. Decide which question you are answering.

For a box-shaped tank this is no different from measuring a rigid container like the ones in our military ammo can size chart, length, width and height, taken inside.

Measuring the inside dimensions and liquid depth of a tank with a tape measure before calculating its volume
Inside dimensions and liquid depth measured from the bottom, the two habits that make every formula below accurate.

Rectangular Tank Volume: Length × Width × Height

To calculate tank volume for a rectangular tank, multiply its inside length by its width and height. This formula works for aquariums, storage containers, sumps, and other box-shaped tanks.

The simplest shape: aquariums, totes, sumps and troughs.

V = L × W × H

Worked example: a 48 × 24 × 24 inch tank

Say a rectangular tank measures 48 inches long, 24 inches wide and 24 inches tall (inside measurements).

  • Step 1: 48 × 24 × 24 = 27,648 cubic inches
  • Step 2: 27,648 ÷ 231 = 119.7 US gallons, call it about 120 gallons
  • Step 3 (litres): 119.7 × 3.785 = about 453 litres
  • Cross-check in cubic feet: 27,648 ÷ 1,728 = 16.0 ft³, and 16.0 × 7.48052 = 119.7 gallons, both routes agree.

Working in metric? The same tank is 121.92 × 60.96 × 60.96 cm = 453,070 cm³, and dividing by 1,000 gives the same ~453 litres. The method never changes, only the conversion at the end.

For a part-full rectangular tank, replace the height with the liquid depth: V = L × W × f. Half the depth is exactly half the volume, because the walls are straight. Hold that thought, it stops being true for the horizontal cylinder.

Rectangular tank volume worked example using inside length width and height in inches
Measure the inside, multiply the three numbers, then divide cubic inches by 231 for gallons.

Vertical Cylinder Tank Volume: π × r² × h

When you calculate tank volume for a vertical cylindrical tank, use the radius of its circular base and the tank’s height to determine its total capacity.

Rain tanks, water barrels, upright drums: cylinders standing on their round base.

V = π × r² × h, r is the radius (half the diameter), h the height, π ≈ 3.14159.

Worked example: 36 inches across, 48 inches tall

A vertical tank has a diameter of 36 inches and a height of 48 inches.

  • Step 1: radius = 36 ÷ 2 = 18 inches
  • Step 2: r² = 18 × 18 = 324
  • Step 3: π × 324 × 48 = 48,858 cubic inches
  • Step 4: 48,858 ÷ 231 = 211.5 US gallons
  • Step 5 (litres): 211.5 × 3.785 = about 801 litres

Sanity check in metric: a 100 cm diameter, 150 cm tall cylinder gives π × 50² × 150 = 1,178,097 cm³ ≈ 1,178 litres (about 311 gallons).

Partial fill works the easy way here too: with 30 inches of liquid, V = π × 18² × 30 = 132.2 gallons, exactly 62.5% of capacity, matching 30 ÷ 48.

Filled with water, those 211.5 gallons weigh roughly 1,764 pounds, which is why our guide to how much a gallon of water weighs is worth reading before you choose a stand or floor for it.

Horizontal Cylinder Tanks: Easy When Full, Tricky When Part-Full

To calculate tank volume for a full horizontal cylindrical tank, multiply π by the squared radius and the tank’s length. However, partially filled horizontal tanks require a different formula.

Fuel tanks and tanker barrels lie on their side. Full, the maths matches the upright cylinder, with length in place of height:

V = π × r² × L

A horizontal tank 36 inches in diameter (r = 18) and 72 inches long holds π × 18² × 72 ÷ 231 = 317.3 gallons when full.

Part-full is where this shape earns its reputation. The filled area is a circular segment, narrow at the bottom, widest at the middle. The exact formula, with f = liquid depth from the bottom:

V(filled) = L × [ r² × cos⁻¹((r − f) ÷ r) − (r − f) × √(2rf − f²) ] (use the arccos in radians)

Honest note on shortcuts: there is no good approximate formula, but there is a reliable pattern. Depth and volume only match at half full:

Liquid depthActual volume
25% of diameter~19.6% of capacity
50% of diameter50% of capacity
75% of diameter~80.4% of capacity

Worked example: the same tank, 9 inches of liquid

With r = 18, L = 72, and a dipstick reading of f = 9 inches (a quarter of the diameter):

  • (r − f) ÷ r = 9 ÷ 18 = 0.5, and cos⁻¹(0.5) = 1.0472 radians
  • Segment area = 18² × 1.0472 − 9 × √(2 × 18 × 9 − 81) = 339.3 − 140.3 = 199.0 in²
  • Volume = 199.0 × 72 = 14,328 in³ ÷ 231 = 62.0 gallons

A quarter of the depth, but only 62.0 of 317.3 gallons, about 19.6% full. Assuming a quarter of the capacity (79 gallons) would overestimate by more than a quarter. This is why horizontal fuel tanks use dip charts instead of evenly spaced gauge marks.

Horizontal tank fill levels showing quarter depth holds about a fifth of the volume and half depth holds half
In a horizontal tank the liquid surface widens and narrows, depth percent and volume percent only agree at half full.

Sphere and Capsule Tanks, Briefly

Sphere: V = (4/3) × π × r³. A spherical tank with a 12-inch radius holds (4/3) × π × 12³ ≈ 31.3 gallons. Spheres appear in water towers, gas storage, and in the ends of the next shape.

Capsule: a cylinder with a hemisphere on each end, propane tanks, air receivers. The hemispheres make one sphere, so add the two: V = π × r² × a + (4/3) × π × r³, where a is the straight section’s length (total length minus one diameter). With r = 12 and a = 24 inches: π × 12² × 24 + (4/3) × π × 12³ = 18,095 in³ ≈ 78.3 gallons.

Partial Fill: How Much Is in There Right Now?

Knowing how to calculate tank volume when a tank is partially filled helps you estimate how much water, fuel, or another liquid remains inside.

Capacity is one question; contents are another:

  • Rectangular and vertical cylinders: swap the full height for the liquid depth f in the same formula. Depth percent = volume percent, exactly.
  • Horizontal cylinders, spheres and capsules: the cross-section changes width as it fills, so use the segment or cap formula, or the pattern table above for a quick horizontal estimate.
  • Build your own dip chart: on a horizontal tank, mark the inside wall in even steps, say every 5 inches of depth, and calculate the volume at each: a permanent depth-to-gallons reference, exactly how professionals handle this shape.

Common Mistakes When You Calculate Tank Volume

When you calculate tank volume, even small measurement mistakes can lead to inaccurate capacity results. Avoid these common errors to get more reliable calculations.

  • Using the diameter as the radius. Plug the diameter into a formula that wants r and the answer comes out four times too big, because the radius gets squared. The single most common tank maths error.
  • Measuring outside instead of inside. Wall thickness inflates every dimension, and the errors multiply together. A tank “sold as” 120 gallons on outside measurements can hold closer to 100 gallons of water once walls and headspace are counted.
  • Assuming depth percent = volume percent in a horizontal tank. True only at exactly half full. A quarter depth is only about a fifth of the volume.
  • Mixing units mid-calculation. Inches for length, centimetres for width: the result is not slightly wrong, it is meaningless. One system, start to finish.
  • Confusing US and imperial gallons. A 20% difference, 3.785 versus 4.546 litres per gallon. Check which one a label or seller is using.
  • Forgetting that capacity is not working capacity. Real tanks need headspace for expansion and vents, propane tanks are filled to about 80% of geometric volume. The formula gives the total; safe fill level is a separate question.
  • Rounding π too hard. Using 3 instead of 3.14159 throws the answer off by about 4.5%. Keep π at full precision until the last step.

FAQs

How do I calculate the volume of a tank in gallons?
To calculate tank volume in gallons, first find the volume in cubic inches using the correct formula for your tank’s shape. Then divide the result by 231 to get US gallons.

What is the formula for a cylindrical tank?
V = π × r² × h, where r is the radius, half the diameter, and h is the height (or length, if the cylinder lies horizontally). A 36-inch diameter, 48-inch tall tank: π × 18² × 48 ÷ 231 ≈ 211.5 US gallons.

How do I calculate how much liquid is in a partially filled tank?
For rectangular tanks and vertical cylinders, replace the full height with the liquid depth, the proportion is exact. For a horizontal cylinder the fill is not proportional: use the segment formula above, or a dip chart.

Why is a horizontal tank harder to calculate?
Because its width changes with depth: the liquid sits in a circular segment, narrow at the bottom and widest at the centreline, so each inch of depth adds a different amount of volume. At 25% depth it holds only about 19.6% of capacity.

Should I use inside or outside dimensions?
Inside, wherever you can, volume is the space the liquid occupies, and outside measurements include the walls. If you can only measure outside a closed tank, subtract twice the wall thickness from each dimension first.

How do I calculate tank volume in litres?
Measure in centimetres, apply the same shape formula for cubic centimetres, and divide by 1,000. Or work in US gallons and multiply by 3.785. Both routes give the same answer.

What if my tank shape is not listed here?
Split it into shapes that are. Most unusual tanks are combinations, a cylinder on a cone, a box with a rounded end. Calculate each piece separately and add the results. For tapered (frustum) sections, use V = (π × h ÷ 3) × (R₁² + R₁R₂ + R₂²).

Summary

To calculate tank volume accurately, choose the correct formula for your tank’s shape: length × width × height for a rectangular tank, π × r² × h for a cylinder, and (4/3) × π × r³ for a sphere. Always measure the inside dimensions, use the correct radius, and convert cubic inches into US gallons by dividing by 231.

Work one example by hand and the method sticks for every tank you will meet, including the part-full horizontal one, where depth and volume tell different stories.

Leave a Reply

Your email address will not be published. Required fields are marked *