Compute the storage capacity of vertical/horizontal cylinders, rectangular boxes, spheres, and ellipsoids.Supports multiple units (metric and imperial) with real-time 2D visualization.
Accurately determining the storage capacity of a tank is essential in countless industries — from chemical engineering and water treatment to agriculture and home brewing. The tank volume is the total internal space available for holding liquids, gases, or granular solids. This calculator provides precise volume estimates for five common tank geometries using established mathematical formulas. Whether you are sizing a storage tank for a industrial plant, planning a rainwater harvesting system, or designing a custom aquarium, this tool delivers reliable results in your preferred units.
For each tank shape, the volume V is computed from the fundamental geometric formula:
V = ∫ A(h) dh → closed-form algebraic expressions for regular solids
Each tank shape has a unique volume formula derived from integral calculus or solid geometry. The table below summarizes the formulas used by this calculator, with all dimensions expressed in the selected length unit.
| Shape | Parameters | Volume Formula | Common Use Case |
|---|---|---|---|
| Vertical Cylinder | Diameter D, Height H | V = π (D/2)² H | Stationary storage, silos, pressure vessels |
| Horizontal Cylinder | Diameter D, Length L | V = π (D/2)² L | Transport tanks, tanker trucks, rail cars |
| Rectangular Box | Length L, Width W, Height H | V = L × W × H | Aquariums, shipping containers, reservoirs |
| Sphere | Diameter D | V = (4/3) π (D/2)³ | Pressure vessels, gas storage, cryogenic tanks |
| Ellipsoid | Semi-axes a, b, c | V = (4/3) π a b c | Specialty containers, architectural features |
All formulas assume ideal geometry and uniform internal dimensions. For real-world tanks, consider wall thickness and internal fittings.
The calculator follows a straightforward pipeline:
The underlying math is robust: all calculations use the Math.PI constant and high-precision floating-point operations.
Unit conversions follow standard definitions (1 m³ = 1000 L, 1 US gal = 3.78541 L, 1 UK gal = 4.54609 L, etc.).
For horizontal cylindrical tanks, the relationship between fill height and volume is non-linear due to the circular cross-section. The exact volume of liquid at a given height h (measured from the bottom) is:
V(h) = L · [ r² · arccos((r - h) / r) - (r - h) · √(2rh - h²) ]
where r is the internal radius and L is the cylinder length. This integral formula is widely used in custody transfer, inventory management, and automated tank gauging systems. The calculator now includes an optional field to compute this partial volume instantly.
Liquids expand when heated. The actual volume at operating temperature T differs from the nominal volume at 15°C. The corrected volume is V(T) = V_0 · [1 + β · (T - T_0)], where β is the volumetric thermal expansion coefficient (e.g., 0.00095 per °C for water, 0.0012 per °C for crude oil). For large storage tanks in sunny environments or cryogenic applications, this correction can exceed 1–2% of total capacity. Our calculator provides volume at standard conditions; always apply thermal correction for operational accuracy.
A chemical plant needs a vertical cylindrical tank to store 15,000 liters of a solvent. Using this calculator, the engineer enters a diameter of 2.0 m and iterates the height until the volume reaches the target. The tool instantly computes V = 15,708 L for H = 5.0 m, confirming the tank meets the requirement. The 2D visualization helps the team verify proportions before ordering fabrication. This iterative design process, powered by the calculator, reduces engineering time and minimizes errors.
Key takeaway: The calculator enables rapid prototyping of tank dimensions, supporting informed decision-making in procurement and construction.
Mass-Volume-Density Integration: In many industrial applications, volume is only half the picture. The total mass of the stored content is computed as m = ρ · V, where ρ is the fluid density. For example, storing 10,000 L of crude oil (density ≈ 0.88 kg/L) results in a total mass of 8,800 kg. This mass value is critical for structural foundation design, shipping weight calculations, and safety data sheet (SDS) compliance. Our calculator provides the base volume; engineers can multiply by the appropriate specific gravity for their product.
| From | To | Conversion Factor |
|---|---|---|
| 1 m³ | Liters | 1000 L |
| 1 m³ | US Gallons | 264.172 gal |
| 1 m³ | UK Gallons | 219.969 gal |
| 1 m³ | Cubic Feet | 35.3147 ft³ |
| 1 Liter | US Gallons | 0.264172 gal |
| 1 US Gallon | Liters | 3.78541 L |
| 1 UK Gallon | Liters | 4.54609 L |
| 1 ft³ | Liters | 28.3168 L |
| 1 in³ | Liters | 0.0163871 L |