Tank Volume Calculator

Pro grade calculator for accurate tank capacity and partial fill from simple rectangles to complex horizontal cylinders and spheres convert units on the fly save every run build a history and export to CSV or PDF with stepwise formulas and clear instructions designed for engineers builders fabricators students hobbyists field inspectors and planners everyday

Input
Used for partial volume where supported.
How to use
Result

Enter dimensions and click Calculate to see the result here.


Result history
Timestamp Shape Dimensions Full capacity (L) Filled volume (L) Fill %
Example dataset

These diverse shapes demonstrate full capacity and, where supported, partial fill. Volumes displayed in liters for easy comparison.

# Shape Dimensions Fill height Full capacity (L) Filled volume (L) Notes
1RectangularL=2.5 m, W=1.2 m, H=1.8 m0.9 m54002700
2Vertical CylinderD=1.2 m, H=1.6 m0.8 m1809.56904.779
3Horizontal CylinderD=1.2 m, L=1.5 m0.6 m1696.46848.23
4SphereD=1 m0.5 m523.599261.799
5Elliptical CylinderA=1.6 m, B=1 m, L=2 m2513.27Partial fill not implemented
Formulas used
  • Rectangular (box): \( V = L \times W \times H \). Partial: \( V_f = L \times W \times h \).
  • Cylinder: \( V = \pi r^2 H \). Partial vertical: \( V_f = \pi r^2 h \).
  • Horizontal cylinder partial: Segment area \( A = r^2 \cos^{-1}\left(\frac{r-h}{r}\right) - (r-h)\sqrt{2rh - h^2} \); \( V_f = A \times L \).
  • Sphere: \( V = \tfrac{4}{3}\pi r^3 \). Partial fill from bottom height \( h \): \( V_f = \pi h^2\left(r - \tfrac{h}{3}\right) \).
  • Elliptical cylinder: \( V = \pi a b L \) where \( a \) and \( b \) are semi-axes.

All computations use SI base (meters, cubic meters) internally and convert to your selected output unit at the end.

How to use this calculator
  1. Select the tank shape that best matches your vessel.
  2. Choose the length unit and enter the required dimensions. Use Fill height to compute partial volume where supported.
  3. Select an output unit for the result.
  4. Click Calculate. Review full capacity and partial volume in the Result panel.
  5. Click Save to history to add the result to the table, then export as CSV or PDF.
FAQs

Rectangular, vertical cylinder, horizontal cylinder and sphere support partial fill via Fill height. Elliptical cylinders show full capacity only in this version.

Inputs accept mm, cm, m, inches and feet. Internally all dimensions convert to meters and volumes to cubic meters. Results display in liters, cubic meters, US gallons or Imperial gallons.

The tool clamps fill height between 0 and the maximum possible for the shape. For a horizontal cylinder this is the diameter. Values outside the range are rounded to the nearest valid limit.

Yes. Save each result to the history table, then click Download CSV or Download PDF. The example dataset also supports direct CSV and PDF exports.

Results use double precision math and exact analytic formulas. Display formatting adapts decimals to keep outputs readable without hiding significant detail.
Tips
  • For horizontal cylinders, measure fill height vertically at the deepest point.
  • When possible, measure in meters to reduce rounding during conversion.
  • Use history exports to keep an audit trail of calculations.
About

Single-file calculator with responsive UI, CSV/PDF export and documented formulas.

Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.