Work out how much a tank holds, and how much liquid is in it right now. Choose a vertical cylinder, horizontal cylinder or rectangular tank, enter its inside dimensions and, optionally, the depth of the liquid.
In a horizontal cylinder the volume does not rise in step with the level — the tank is wider in the middle — so the calculator uses the exact circular-segment formula.
Choose a vertical cylinder, horizontal cylinder or rectangular tank and enter its size to get the total capacity, and the liquid in it from a depth reading.
How do you calculate tank volume?
A vertical cylindrical tank holds π × r² × height. A horizontal cylinder holds the same when full, but a partly filled one is harder: the liquid fills a circular segment, so the volume isn’t simply proportional to the depth. A rectangular tank is length × width × height.
Tank volumes are usually wanted in gallons or liters for heating oil, water storage and fuel. One US gallon is exactly 231 cubic inches, and one liter is 1,000 cm³.
How to use the tank volume calculator
- Choose the tank shape.
- Enter the tank’s dimensions.
- Enter the liquid depth if you want the current contents, and read the volumes.
Formula
Cylinder = π × r² × length · Rectangle = L × W × H
For a horizontal cylinder filled to height h: area = r² × arccos((r − h) ÷ r) − (r − h) × √(2rh − h²), multiplied by the length. 1 US gallon = 231 in³ = 3.785 L.
Worked examples
A vertical water tank
- Units
- Imperial (in, gallons)
- Tank shape
- Vertical cylinder
- Diameter
- 48 in
- Height
- 60 in
- Liquid level (optional)
- NaN in
- Total capacity
- 470 gal
π × 24² × 60 = 108,573 in³. Divide by 231: 470 gal.
A horizontal tank, partly full
- Units
- Metric (cm, litres)
- Tank shape
- Horizontal cylinder
- Diameter
- 120 cm
- Length
- 250 cm
- Liquid level (optional)
- 40 cm
- Liquid in tank
- 825 L
- Total capacity
- 2,827.4 L
A 1.2 m by 2.5 m horizontal tank holds 2.83 m³ when full. With 40 cm of liquid, the circular-segment formula gives 825 L — less than a third, because the bottom of a cylinder is narrow.
Horizontal cylinder: share of volume by fill depth
| Depth (% of diameter) | Volume (% of full) |
|---|---|
| 10% | 5.2% |
| 20% | 14.2% |
| 25% | 19.6% |
| 30% | 25.2% |
| 40% | 37.4% |
| 50% | 50% |
| 60% | 62.6% |
| 75% | 80.4% |
| 90% | 94.8% |
Gallons, liters and cubic feet
A cubic foot holds about 7.48 US gallons and a cubic meter 1,000 liters. Measure the inside of the tank for capacity, since the outside dimensions include the walls.
Common mistakes
- Assuming a half-depth horizontal tank is a third or two-thirds full — at half depth it is exactly half full, but other depths aren’t proportional.
- Using the outside diameter of a tank with thick walls.
- Mixing US and imperial gallons when reading tank labels.
Frequently asked questions
How do I calculate the volume of a cylinder tank?
Multiply π by the radius squared and by the height (or length). Use inside dimensions for the usable capacity.
Why is a horizontal tank not half full at half its volume until the middle?
The tank is narrowest at the top and bottom, so each inch of level near the middle holds more liquid than an inch near the bottom.
Why doesn’t my tank hold its rated capacity?
Rated figures are often nominal, and tanks are rarely filled to the brim. Use the depth reading to find what is actually in it.
Sources
- Cylinder, Wolfram MathWorld
- NIST Handbook 44, Appendix C: General Tables of Units of Measurement, National Institute of Standards and Technology (NIST)
Last updated · Calculations checked by automated tests· Editorial policy