Volume Calculator

Volume of cylinders, spheres, cones, boxes, pyramids, tanks and more — with every unit and a step-by-step formula breakdown.

100% FreeNo sign-upPrivate — runs in your browser

All dimensions must be greater than 0. Results update live as you type; switching the unit converts the numbers you already entered instead of changing the shape.

—
Cubic centimetres
—
Cubic metres
—
Litres
—
US gallons
—
Enter a number greater than 0 for every dimension to see the formula breakdown.

How to use this tool

1
Pick your shape

Choose from cylinder, sphere, cone, box, pyramid, triangular prism, capsule or ellipsoid. Only the dimensions that shape needs will be shown.

2
Enter the dimensions

Type each measurement as a number greater than 0, then choose your length unit — millimetres, centimetres, metres, inches or feet. Switching the unit converts the numbers you already entered.

3
Read the live result

The volume updates as you type, shown in cubic centimetres, cubic metres, litres and US gallons, so you can use whichever unit your project needs.

4
Check the formula breakdown

Below the results, the substituted formula shows exactly which numbers were used, so you can verify the answer by hand or in a spreadsheet.

Formula & worked example

Cylinder: V = π × r² × h. Sphere: V = (4/3) × π × r³. Cone: V = (1/3) × π × r² × h. Box: V = length × width × height. Square pyramid: V = (1/3) × base side² × height. Triangular prism: V = (1/2 × base × triangle height) × length. Capsule: V = π × r² × cylinder length + (4/3) × π × r³. Ellipsoid: V = (4/3) × π × a × b × c.

Cylinder with radius 5 cm and height 10 cm: V = π × 5² × 10 = 785.4 cm³, which is 0.785 litres. A sphere of radius 3 cm gives V = (4/3) × π × 3³ = 113.1 cm³. A box measuring 2 m × 3 m × 4 m gives V = 2 × 3 × 4 = 24 m³, or 24,000 litres.

Limitations — read this before you rely on it

This calculator assumes perfect geometric shapes with straight edges and exact dimensions. Real containers, tanks and rooms have wall thickness, rounded corners and manufacturing tolerances, so treat the result as the ideal geometric volume and allow a small margin for real-world use. It does not account for material thickness or the volume displaced by fittings inside a tank.

Frequently asked questions

Pick a shape, enter its dimensions and choose a unit. The calculator applies that shape's volume formula instantly and converts the answer into cubic centimetres, cubic metres, litres and US gallons, with the substituted numbers shown underneath.

The volume of a cylinder is π × radius² × height. For example, a cylinder with radius 5 cm and height 10 cm has volume π × 5² × 10 = 785.4 cm³. The calculator above does this in any unit — just enter the radius and height and select Cylinder.

The cone volume formula is V = (1/3) × π × r² × h, where r is the radius of the circular base and h is the vertical height. A cone holds exactly one third of the volume of a cylinder with the same base and height.

The sphere volume formula is V = (4/3) × π × r³, where r is the radius. For a sphere of radius 3 cm, that is (4/3) × π × 27 = 113.1 cm³.

Rectangular prism volume is length × width × height, with all three measurements in the same unit. A box measuring 2 m × 3 m × 4 m has volume 24 m³. In the calculator, choose Box / rectangular prism and enter the three sides.