Skip to content

Volume Calculator

Cylinder, sphere, cone, cube or box — type the dimensions and the volume appears with its formula.

Last updated

How to use volume calculator

  1. Choose a shape from the dropdown — Cylinder is selected first, and the shape list also covers sphere, cone, cube and box.
  2. Enter the dimensions the shape asks for: radius and height for a cylinder or cone, a radius for a sphere, an edge for a cube, or length, width and height for a box.
  3. The volume appears as you type, with the formula and the substituted numbers shown next to it.
  4. Use one unit for every dimension; the volume comes back in that unit cubed (so centimetres give cubic centimetres).

Examples

Water tank: r = 5, h = 10

A cylinder with radius 5 and height 10 holds V = π·5²·10 ≈ 785.40 cubic units — the volume formula V = πr²h with the numbers put in.

Beach ball: r = 3

Switch to Sphere and enter r = 3: V = (4/3)π·3³ ≈ 113.10 cubic units — a sphere of radius 3 holds just over 113 unit cubes’ worth.

Shipping box 2 × 3 × 4

Choose Box, enter length 2, width 3 and height 4: V = lwh = 2·3·4 = 24 cubic units — the simplest of the five formulas.

What is Volume?

Filling something — or figuring out whether it will fit — is a volume question. How much water a rain barrel holds, how much soup the pot makes, how much air is inside a beach ball: each answer is one multiplication away once you know the shape and its dimensions. This volume calculator covers the five shapes that handle most everyday jobs: cylinder, sphere, cone, cube and rectangular box.

Each shape has its own formula, and the page shows it next to the result so you can check the working. The cylinder volume formula is V = πr²h — the circular base area times the height. A sphere is V = (4/3)πr³, a cone is V = (1/3)πr²h, a cube is V = s³ and a box is V = lwh. Notice the family resemblance: the cone is exactly a third of the cylinder on the same base and height, and every one of them is some base area multiplied through the third dimension.

Pick a shape, type its dimensions, and the volume appears as you type with the full substitution worked through — V = πr²h = π·5²·10 ≈ 785.40, for example — so you can follow each number. Results come back in whatever unit you typed, cubed: centimetres in, cubic centimetres out, which makes the litre conversion easy since 1 L = 1,000 cm³. Everything runs locally in your browser; your dimensions never leave the page.

The five formulas in plain words

The volume of a cylinder formula is V = πr²h. Put simply, a cylinder is a circle stacked upward: work out the base area — pi times the radius squared — then multiply by the height. A sphere is the one shape where the radius does all the work, cubed into V = (4/3)πr³. A cone is its matching cylinder on a strict diet, keeping exactly one third of the volume. The box and the cube are the straightforward pair: multiply length, width and height, or cube the single edge. A triangular prism follows the same logic: the triangle’s area, one half of base times height, multiplied by the prism’s length. Every formula on this page is some base area carried through a third dimension.

It is worth feeling how fast these grow. A sphere of radius 5 cm holds 523.6 cm³; double the radius to 10 cm and it holds 4,188.79 cm³ — 8 times as much, because the radius is cubed. In a cylinder or cone the radius is only squared, so doubling it while the height stays put multiplies the volume by 4. Small slips in measuring r become large slips in V, which is why the radius deserves a second measurement.

Worked examples: aquarium, rain barrel, soil, gravel

A standard aquarium measured inside at 60 × 30 × 35 cm is a box, so V = lwh = 60·30·35 = 63,000 cm³. Since one litre is exactly 1,000 cm³, the tank holds 63 litres before gravel and ornaments displace some of it. Measure to the actual water line rather than the glass rim when you dose treatments, and choose Box in the dropdown with those three numbers to see the same result.

A cylindrical rain barrel with a 30 cm radius standing 90 cm tall holds V = π·30²·90 ≈ 254,469 cm³, roughly 254 litres — handy when you want to know whether one storm can overflow it. A raised garden bed 120 × 90 cm filled 20 cm deep is a box of 216 litres of soil, which is the number to bring to the compost aisle.

Loose material tipped onto flat ground settles into a rough cone. A gravel pile with a 1.5 m base radius and 0.9 m height comes to about 2.12 m³: pace across the base, halve it for r, and the cone formula turns a delivery guess into an estimate. If a supplier quotes in US gallons, the liters to gallons converter picks up where this page stops.

Typical container volumes at a glance

Everyday containers, realistic dimensions, volumes worked out with the same formulas the tool applies. Cubic centimetres divided by 1,000 give the litre figure in the last column.

ContainerShape and dimensionsVolume (cm³)Litres
Aquarium tankbox, 60 × 30 × 35 cm63,00063
Rain barrelcylinder, r 30 cm, h 90 cm254,469254.47
Exercise ballsphere, r 33 cm150,532.55150.53
Storage totebox, 50 × 40 × 30 cm60,00060
Moving boxcube, 40 cm edge64,00064
Kitchen stockpotcylinder, r 12 cm, h 18 cm8,143.018.14

Three mistakes that quietly wreck a volume

Radius versus diameter is the classic. Every formula here wants r, half the distance across. Hand a sphere its 20 cm diameter as though it were the radius and the answer inflates to 33,510 cm³ instead of the correct 4,189 cm³ — 8 times too big, because the mistake gets cubed. Cylinders and cones square the radius, so the same slip quadruples those volumes. Halve the diameter first, every time.

Mixing units is quieter. Picture a round cake tin 20 cm across with a 3-inch wall. Typed as r = 10, h = 3, the calculator happily returns 942.48 cm³. The wall is really 7.62 cm — the inches to cm converter settles that — so the true volume is 2,393.89 cm³, 2.54 times the mixed-up figure. Convert every dimension into one unit before touching a formula.

Rounding pi down to 3 before multiplying shaves about 4.5% off every π-based result. Harmless for a soup pot, expensive when you are ordering concrete by the cubic metre. The tool keeps full precision and rounds only for display, so let it do the arithmetic and copy the answer it gives.

Frequently asked questions

What is the formula for the volume of a cylinder?

V = πr²h — pi times the radius squared, times the height. The πr² part is the area of the circular base, and multiplying by the height stacks that base through the third dimension. A cylinder with r = 5 and h = 10 comes to π × 25 × 10 ≈ 785.40. Enter any radius and height above to see the formula applied step by step.

How do you calculate the volume of a cylinder in litres?

Work in centimetres, then divide the result by 1,000 because 1 litre = 1,000 cm³. A jar with r = 10 cm and h = 20 cm holds π × 10² × 20 ≈ 6,283 cm³, which is ≈ 6.28 litres. If you measured in inches, convert cubic inches the same way — 1 US gallon is 231 in³, 1 imperial gallon is 277.42 in³.

What are the formulas for the volume of different shapes?

Cylinder: V = πr²h. Sphere: V = (4/3)πr³. Cone: V = (1/3)πr²h. Cube: V = s³. Box: V = lwh. In each, r is the radius, h the height and s the cube’s edge. The dropdown above applies whichever one matches the shape you pick, so it works as a sphere volume calculator, a cone volume calculator and a cube volume calculator as easily as a cylinder one.

How do I calculate the surface area of a cylinder?

Add the two circular ends to the side: A = 2πr² + 2πrh. The 2πr² term is the top and bottom circles; 2πrh is the side unrolled into a rectangle whose width is the circumference and whose height is h. For r = 5 and h = 10 that is 2π × 25 + 2π × 50 ≈ 471.24 square units — useful when you are painting or wrapping a tank rather than filling it.

Why is a cone one third of a cylinder?

A cone with the same base radius and height as a cylinder holds exactly one third as much: V = (1/3)πr²h versus πr²h. You can see it by filling a cone with water and pouring it into the matching cylinder — three full cones fill it. That is why the cone formula is just the cylinder formula with a third in front, and the tool applies the same r and h you would use for the cylinder.

Does it matter which units I type?

Only that you are consistent. Volume picks up the unit cubed: millimetres give mm³, centimetres cm³, metres m³, feet ft³. Mixing units — a radius in cm with a height in inches — silently gives a meaningless number, so convert first. Once you have the volume in one cubed unit, convert to the next (1 cm³ = 1,000 mm³, 1 m³ = 1,000 L) or to litres and gallons for liquids.

Browse all calculators.