Tools · Calculators · Math Last update: Nov 8, 2026

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

SolidVolume
CubeV = a³
Box (cuboid)V = l × w × h
CylinderV = π r² h
ConeV = π r² h ÷ 3
SphereV = 4/3 π r³
HemisphereV = 2/3 π r³
Square pyramidV = a² h ÷ 3
Tube (pipe)V = π (R² − r²) h
CapsuleV = π 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³.