Volume Calculator
Calculate the volume of a cube, box, cylinder, cone, sphere, hemisphere, pyramid, pipe or capsule — in liters, gallons and cubic units.
—
Volume formulas
| Solid | Volume |
|---|---|
| Cube | V = a³ |
| Box (cuboid) | V = l × w × h |
| Cylinder | V = π r² h |
| Cone | V = π r² h ÷ 3 |
| Sphere | V = 4/3 π r³ |
| Hemisphere | V = 2/3 π r³ |
| Square pyramid | V = a² h ÷ 3 |
| Tube (pipe) | V = π (R² − r²) h |
| Capsule | V = π r² (4/3 r + h) |
Examples
A box of 5 × 3 × 4 in holds 60 in³ (about 0.98 liters). A cylinder with r = 3 cm and h = 4 cm holds π × 9 × 4 ≈ 113.1 cm³, which is 0.113 liters.
Liters and gallons
1 liter = 1,000 cm³ = 1 dm³, and 1 m³ = 1,000 liters. One US gallon is 3.785 liters. Choose the unit you measured in and the calculator converts the result.
Frequently asked questions
How do I calculate the volume of a cylinder?
Multiply π by the radius squared and by the height: V = πr²h.
How many liters is a cubic meter?
1,000 liters. One liter is 1,000 cm³.