Tank Volume Calculator

Compute the storage capacity of vertical/horizontal cylinders, rectangular boxes, spheres, and ellipsoids.Supports multiple units (metric and imperial) with real-time 2D visualization.

Presets:
⛽ 1000L Vertical Cylinder
?️ 5000L Horizontal Cylinder
? 2000L Rectangular Tank
⚪ 1000L Spherical Tank
? Ellipsoid Tank
Privacy first: All calculations are performed locally in your browser. No data is sent to any server.

Understanding Tank Volume Calculations

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

Supported Tank Geometries & Formulas

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.

Why Use an Interactive Tank Volume Calculator?

  • Engineering & Design: Quickly size tanks for process engineering, HVAC, fire protection, and water supply systems.
  • Construction & Contracting: Estimate material requirements, cost, and capacity for concrete reservoirs, steel tanks, and plastic containers.
  • Education & Research: Visualize how volume changes with dimensions — a powerful teaching aid for geometry and calculus concepts.
  • DIY & Hobby: Plan aquariums, rain barrels, brewing kettles, and custom storage solutions with confidence.
  • Unit Flexibility: Seamlessly switch between metric and imperial units without manual conversion errors.

How the Calculation Works – Step by Step

The calculator follows a straightforward pipeline:

  1. Select shape — choose the tank geometry that matches your container.
  2. Enter dimensions — input the required parameters (diameter, height, length, width, or semi-axes).
  3. Choose units — pick your preferred length and volume units. The calculator converts internally.
  4. Compute — the tool applies the corresponding formula using double-precision arithmetic.
  5. Visualize — a 2D cross-section is drawn on canvas, with dimensions annotated.
  6. Review results — volume is shown in both selected and equivalent units for cross-checking.

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.).

Partial Fill & Level Measurement (Horizontal Cylinders)

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.

Thermal Expansion & Volume Correction

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.

Real-World Application: Industrial Storage Sizing

Case Study: Chemical Storage Tank Selection

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.

Common Misconceptions About Tank Volume

  • "Volume equals capacity in all units" — True, but unit confusion is common. Always verify that your dimensions and volume units are consistent.
  • "A horizontal cylinder holds less than a vertical one" — For the same diameter and height/length, volume is identical. Orientation does not change total capacity.
  • "Spherical tanks are always the most efficient" — While spheres minimize surface area for a given volume, they are more expensive to fabricate and transport.
  • "Wall thickness doesn't matter" — For external volume, yes. But for internal usable capacity, wall thickness reduces the effective volume. This calculator computes internal volume assuming nominal dimensions.

Unit Conversion Reference

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

Built on engineering fundamentals — This tool implements standard geometric formulas verified against authoritative sources including Wolfram MathWorld, ASME Boiler and Pressure Vessel Code, and API 650 (Welded Tanks for Oil Storage). The interactive visualization uses HTML5 Canvas for clear, responsive rendering. Reviewed by the GetZenQuery tech team, last updated June 2026.

Frequently Asked Questions

For a given volume, a sphere has the minimum surface area, reducing material cost and heat loss. However, spherical tanks are more expensive to fabricate. Cylindrical tanks (vertical or horizontal) offer a good balance of efficiency and cost-effectiveness for most industrial applications.

US gallon = 3.78541 liters; UK gallon = 4.54609 liters. To convert US gal to UK gal, multiply by 0.832674. The calculator handles both units automatically — simply select your preferred output unit.

This tool covers the five most common geometries. For custom shapes (e.g., conical, torispherical, or irregular), you would need numerical integration or specialized software. However, many custom tanks can be approximated by combining basic shapes (e.g., cylinder + cone bottom).

Results are accurate to 15 decimal digits using IEEE 754 double-precision floating point. For practical engineering purposes, this far exceeds the precision of physical measurements (typically ±1–2% due to fabrication tolerances).

No — this calculator computes the internal volume based on the nominal dimensions you provide. For actual usable capacity, subtract the volume displaced by walls, internal fittings, and baffles. For thin-walled tanks (typical in many applications), the difference is negligible.

Refer to industry standards: API 650 (Welded Tanks for Oil Storage), ASME Section VIII (Pressure Vessels), and EN 14015 (Storage Tanks). For academic background, see "Roark's Formulas for Stress and Strain" and "Tank Design" by E. H. Gaylord.

If you only have external dimensions (e.g., outer diameter OD, outer length), you must subtract the wall thickness twice (for diameter/width) and once for length/height (if applicable). The internal diameter D_internal = D_external - 2 · t, where t is the wall thickness. This calculator assumes all inputs are internal dimensions. For thin-walled vessels (t < 1% of D), the difference is often negligible for rough estimates, but for pressure vessels or cryogenic tanks, always use internal dimensions for usable capacity.