Volume Calculator
This volume calculator finds the volume of common 3D shapes and converts it to liters and US gallons, so you know how much a tank, box or container holds. Pick a shape, enter the measurements and press Calculate.
Volume Calculator
Volume formulas
| Shape | Formula | Example |
|---|---|---|
| Box | length × width × height | 2 × 3 × 4 = 24 |
| Cylinder | π × r² × h | r 2, h 5: 62.83 |
| Sphere | 4/3 × π × r³ | r 3: 113.10 |
| Cone | 1/3 × π × r² × h | r 3, h 4: 37.70 |
| Pyramid | 1/3 × length × width × height | 4 × 4 × 6: 32 |
The answer is in cubic units of whatever you measured in: cubic feet if you used feet, cubic centimeters if you used centimeters. Keep all the measurements in the same unit.
Volume units
| 1 of these | Liters | US gallons |
|---|---|---|
| Cubic inch | 0.0164 | 0.00433 |
| Cubic foot | 28.32 | 7.48 |
| Cubic yard | 764.55 | 201.97 |
| Cubic centimeter | 0.001 | 0.000264 |
| Cubic meter | 1,000 | 264.17 |
Ordering soil, gravel or concrete? Those are sold by the cubic yard: use the cubic yard calculator or the concrete calculator.
Frequently asked questions
How do you calculate volume?
It depends on the shape. A box is length × width × height. A cylinder is π × radius² × height. A sphere is 4/3 × π × radius³. A cone or pyramid is one-third of the matching cylinder or box.
How many gallons are in a cubic foot?
About 7.48 US gallons. A cubic foot is 28.32 liters, and a US gallon is 3.785 liters.
What's the difference between radius and diameter?
The diameter goes all the way across a circle; the radius goes from the center to the edge, so it's half the diameter. This calculator asks for the radius, so halve a measured diameter first.
Why is a cone one-third of a cylinder?
A cone with the same base and height as a cylinder holds exactly one-third as much. The same is true of a pyramid and the box it fits in. It's a classic result you can check by filling one with water.
See also
- Cubic Yard Calculator: Cubic yards of any bulk material from length, width and depth.
- Square Footage Calculator: Area of rooms and odd-shaped spaces, plus a cost estimate.
- Concrete Calculator: Cubic yards and bag counts for slabs, footings and columns.
- Slope Calculator: Slope from two points or rise and run, with y = mx + b.
Last updated: November 16, 2026