Volume Calculator

Calculate the volume of common 3D shapes: cube, sphere, cylinder, cone, rectangular prism, and more.

ft
ft
ft

Volume

400

cubic feet (ft³)

Volume400 ft³
Surface Area340 ft²
Formula usedV = l × w × h = 10 × 5 × 8

Volume Conversions

ft³400
in³691,200
yd³14.8148
11.3267
gallons2,992.208
liters11,326.72

How to Use the Volume Calculator

  1. Select the shape that best matches the object: cube, rectangular prism (box), sphere, cylinder, cone, triangular prism, square pyramid, or ellipsoid.
  2. Choose your unit. Select feet, inches, yards, meters, centimeters, or millimeters. All dimensions must be in the same unit. The output will be in cubic units of that type.
  3. Enter the dimensions. The required fields update for each shape. For a sphere, only the radius is needed. For a cylinder, you need radius and height. Use the perpendicular height for cones and pyramids, not the slant height.
  4. Read the results. The panel shows volume, surface area, the formula used, and automatic conversions to ft³, gallons, and liters.

Example: a cylindrical water tank with radius 3 feet and height 8 feet has volume = π × 3² × 8 = 226.19 ft³ = 1,692 gallons.

Volume Formulas for Common Shapes

ShapeVolume FormulaSurface Area
CubeV = s³6s²
Rectangular PrismV = l × w × h2(lw + lh + wh)
SphereV = (4/3)πr³4πr²
CylinderV = πr²h2πr(r + h)
ConeV = (1/3)πr²hπr(r + slant)
Square PyramidV = (1/3)b²hb² + 2b√((b/2)² + h²)
Triangular PrismV = (1/2)bhlbase perimeter × l + 2 × triangle area
EllipsoidV = (4/3)πabcapproximation

Key volume conversions: 1 ft³ = 7.48 US gallons = 28.32 liters. 1 m³ = 1,000 liters = 264.2 US gallons. 1 liter = 0.264 gallons = 61.02 in³. 1 US gallon = 231 in³ = 3.785 liters.

Frequently Asked Questions

Volume of a rectangular prism = length × width × height. A room 15 ft long, 12 ft wide, and 9 ft tall has volume = 15 × 12 × 9 = 1,620 cubic feet. For HVAC sizing, this matters: a 1,620 ft³ room needs different air circulation than a 3,000 ft³ space. To find how many gallons a tank holds, multiply cubic feet by 7.48. A 4 ft × 2 ft × 2 ft tank = 16 ft³ = 119.7 gallons.

Related Calculators