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.
Volume result
Volume = length × width × height
- Liters
- —
- US gallons
- —
How to use the volume calculator
- Choose the shape that matches the object or container.
- Select one measurement unit and enter all dimensions in that unit. Use the inside dimensions to find container capacity.
- 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
| Shape | Volume formula |
|---|---|
| Rectangular prism | Length × width × height |
| Cube | Side³ |
| Cylinder | π × radius² × height |
| Sphere | 4 × π × radius³ ÷ 3 |
| Cone | π × radius² × height ÷ 3 |
| Hemisphere | 2 × π × radius³ ÷ 3 |
| Triangular prism | Triangle base × triangle height × prism length ÷ 2 |
| Rectangular pyramid | Base 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.
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.
