Calculator Bar

Volume Calculator

Volume Calculator

Volume—

Volume formulas

ShapeFormulaExample
Boxlength × width × height2 × 3 × 4 = 24
Cylinderπ × r² × hr 2, h 5: 62.83
Sphere4/3 × π × r³r 3: 113.10
Cone1/3 × π × r² × hr 3, h 4: 37.70
Pyramid1/3 × length × width × height4 × 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 theseLitersUS gallons
Cubic inch0.01640.00433
Cubic foot28.327.48
Cubic yard764.55201.97
Cubic centimeter0.0010.000264
Cubic meter1,000264.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

Last updated: November 16, 2026