Tank volume calculator
This tank volume calculator gives the total capacity of a tank and the liquid volume at any level for vertical and horizontal cylinders, rectangular tanks, spheres, cone-bottom silos and horizontal vessels with 2:1 elliptical heads, in m³, liters, US gallons and oil barrels.
Calculate tank volume and filled volume
Liquid level for a given volume
How to use the tank volume calculator
Select the tank shape, then enter the inside dimensions and the liquid level measured from the lowest inside point. The tank volume calculator shows the liquid volume at that level, the total capacity, the fill percentage by volume and the empty space above the liquid, in cubic meters, liters, US gallons, cubic feet and 42-gallon oil barrels. Every dimension has its own unit menu, so you can enter feet and inches directly. The second panel works the other way round: give it a target volume and it returns the level, which is handy for setting high and low level alarms or marking a dipstick.
Tank volume calculator formulas by shape
The tank volume calculator uses the formulas below. All formulas use the inside radius R = D/2 and the liquid level h. Total volume is the same formula with h set to the full inside height.
| Tank shape | Total volume | Volume at liquid level h |
|---|---|---|
| Vertical cylinder | π·R²·H | π·R²·h |
| Rectangular tank | L·W·H | L·W·h |
| Horizontal cylinder, flat ends | π·R²·L | L·[R²·acos((R − h)/R) − (R − h)·√(2Rh − h²)] |
| Sphere | 4/3·π·R³ | π·h²·(3R − h)/3 |
| Cone bottom + cylinder | π·R²·hc/3 + π·R²·H | h ≤ hc: π·(R·h/hc)²·h/3; above: π·R²·hc/3 + π·R²·(h − hc) |
| Horizontal, two 2:1 elliptical heads | π·R²·L + π·D³/12 | cylinder segment above + π·h²·(3R − h)/6 |
Partially filled horizontal cylinder
A horizontal tank is the shape where a simple tank volume calculator is most useful, because volume is not proportional to level. The liquid cross-section is a circular segment of area R²·acos((R − h)/R) − (R − h)·√(2Rh − h²); multiplying by the length gives the volume:
At h = R the segment is exactly half the circle; below the centerline each centimeter of level holds less liquid than near the middle. The geometry of the segment is summarized on the circular segment reference page.
Spheres and 2:1 elliptical heads
The liquid in a sphere filled to level h is a spherical cap, V = π·h²·(3R − h)/3, as given in the spherical cap formula. A 2:1 semi-elliptical head is half of an ellipsoid with semi-axes R, R and R/2. Squeezing a sphere along the vessel axis keeps every horizontal slice at the same height, so the liquid in both heads of a horizontal vessel is exactly half of a spherical cap: π·h²·(3R − h)/6. Full, the two heads hold π·D³/12, which is the familiar π·D³/24 per head. Each head adds D/4 to the overall length, and the tank volume calculator reports the overall length with heads.
Worked example with the tank volume calculator
Vertical tank (default values). A flat-bottomed vertical cylinder has an inside diameter of 2 m and a height of 3 m, so R = 1 m and the total volume is π × 1² × 3 = 9.425 m³ (9,425 L, 2,490 US gal, 59.3 bbl). At a liquid level of 1.2 m the tank holds π × 1² × 1.2 = 3.770 m³, or 3,770 L, a fill of 40 %. For a vertical cylinder, fill by volume always equals the level fraction.
Same dimensions lying horizontal. Switch the shape to a horizontal cylinder with D = 2 m and L = 5 m: the capacity is π × 1² × 5 = 15.71 m³. With 1.2 m of liquid, (R − h)/R = −0.2, acos(−0.2) = 1.7722 rad and √(2 × 1 × 1.2 − 1.2²) = 0.9798, so the segment area is 1.7722 + 0.2 × 0.9798 = 1.9681 m² and V = 5 × 1.9681 = 9.841 m³. The level is 60 % of the diameter but the fill by volume is 62.6 %. The second panel of the tank volume calculator answers the reverse question: 4 m³ in the vertical tank stands 1.273 m deep.
Common tank sizes to check with the tank volume calculator
| Tank | Typical inside dimensions | Nominal capacity |
|---|---|---|
| IBC tote | 1.0 × 1.2 m footprint | 1,000 L (264 US gal) |
| Steel drum | 0.57 m diameter × 0.85 m | 208 L (55 US gal) |
| Home heating oil tank (US, oval) | 27 × 44 in, 60 in long | 275 US gal |
| Road fuel tanker | about 2.4 m wide, elliptical shell | 30 – 40 m³ in several compartments |
| Small vertical storage tank | 3 m diameter × 4 m | 28.3 m³ |
Capacities are nominal: drums and totes are filled to about 95 % to leave expansion room, and the working volume of a process tank is set between the low-low and high-high level alarms, often 80 to 90 % of the geometric volume.
Tank strapping and dipstick charts
Custody-transfer tanks are not measured with an ideal formula: they are “strapped” by measuring the real circumference, plate thickness and bottom shape to build a strapping table of volume versus level, as in API MPMS Chapter 2. For a quick dipstick chart, run the second panel of the tank volume calculator at 10 % steps of volume and mark the levels on a rod. Remember that sloped or dished bottoms, internal coils, agitators and nozzles all change the real volume, and that liquid expands with temperature, so convert to mass with the Density Calculator when inventory matters.
Common mistakes with a tank volume calculator
Outside instead of inside dimensions. A 2 m outside-diameter tank with 10 mm walls is 1.98 m inside, 2 % less volume. Mixing units. Diameter in feet and length in inches gives nonsense unless converted; the tank volume calculator converts each field separately, and the Volume Converter handles other volume units. Treating a horizontal tank as linear. Half the diameter is half full, but a quarter of the diameter is only about 20 % full. Forgetting the heads. Two 2:1 heads on a 2 m vessel add 2.09 m³, as much as 0.67 m of extra shell. Wrong level reference. Level must start at the lowest inside point; a gauge zeroed at a nozzle reads low.
Related calculators
Once you know the liquid volume, the residence time calculator gives the hold-up time for a given flow, and the mass balance calculator closes the inventory around the tank.
- Residence Time Calculator
- Mass Balance Calculator
- CSTR Volume Calculator
- Pressure Drop Calculator
- Volume Converter
- Density Calculator
- All chemical engineering calculators
Frequently asked questions
How do I calculate the volume of a horizontal cylindrical tank?
Full volume is π·R²·L. For a partly full tank, multiply the length by the circular segment area R²·acos((R − h)/R) − (R − h)·√(2Rh − h²). Choose “Horizontal cylinder” in the tank volume calculator to do this automatically.
How many liters are in a cubic meter?
The tank volume calculator shows every result in several units at once. One cubic meter is exactly 1,000 liters, about 264.17 US gallons or 6.29 oil barrels.
Why is my horizontal tank fill percentage different from the level percentage?
Because the width of the liquid surface changes with level. Near the bottom and top a horizontal tank holds less per centimeter than near the middle, so volume percentage and level percentage only match at 0, 50 and 100 %.
Does the tank volume calculator include the heads of a pressure vessel?
Yes, for 2:1 elliptical heads: choose “Horizontal cylinder with 2:1 elliptical heads” and enter the straight shell length. Other head types (torispherical, hemispherical) need their own formulas.
How do I convert tank volume to mass?
Multiply the liquid volume by the density at the storage temperature, for example 3.77 m³ of water at 998 kg/m³ is about 3,763 kg.
Is this tank volume calculator free?
Yes. It runs in your browser, needs no sign-up and does not store or send the values you enter.