Volume Calculator

Use this volume calculator for boxes, cylinders, spheres and other 3D shapes. Enter your measurements to get the result in cubic units, liters and US gallons.

Shape and dimensions

Use the selected unit for every measurement.

Volume result

Volume = length × width × height

— cm³
Liters
—
US gallons
—

How to use the volume calculator

  1. Choose the shape that matches the object or container.
  2. Select one measurement unit and enter all dimensions in that unit. Use the inside dimensions to find container capacity.
  3. Select Calculate volume. The result shows the cubic measurement and its equivalents in liters and US gallons.

Example. A box measuring 50 cm long, 30 cm wide and 40 cm high has a volume of 50 × 30 × 40 = 60,000 cm³. That equals 60 liters.

Volume formulas by shape

ShapeVolume formula
Rectangular prismLength × width × height
CubeSide³
Cylinderπ × radius² × height
Sphere4 × π × radius³ ÷ 3
Coneπ × radius² × height ÷ 3
Hemisphere2 × π × radius³ ÷ 3
Triangular prismTriangle base × triangle height × prism length ÷ 2
Rectangular pyramidBase length × base width × height ÷ 3
Hollow cylinderπ × (outer radius² − inner radius²) × length

For a cone or pyramid, measure the perpendicular height from the base to the tip. For a triangular prism, measure the triangle height perpendicular to the triangle base.

Volume Calculator diagram of a cylinder with its base radius, perpendicular height, and volume formula labeled.

If the volume you worked out is the final volume of a solution, use the Molarity Calculator with the solute amount to find its concentration.

Frequently asked questions

How do I calculate volume in liters?

Divide cubic centimeters by 1,000, or multiply cubic meters by 1,000. The volume calculator converts your result to liters automatically.

How do I enter a diameter?

Divide the diameter by two and enter that value as the radius. For example, a cylinder 20 cm across has a radius of 10 cm.

Can I calculate how much water is in a tank?

For an upright rectangular or cylindrical tank, use the internal base dimensions and the current water depth as the height. The result estimates the amount of water at that fill level.

How do I find the capacity inside a pipe?

Choose Cylinder and enter the pipe’s inside radius and length. If you want the volume of the pipe material, choose Hollow cylinder and enter both radii.