Volume Calculator

A nursery quoted a planter 40 cm across and 55 cm tall. You treated 40 as the radius, ordered soil for 276 litres, then watched half the bag sit unused. Diameter was the number on the tag. This page keeps the shape, the formula, and the cubic result in one place so the same slip shows up before you buy.

Reviewed & Maintained by Wajahat QasimLast updated: August 3, 2026
Active formulaV = length × width × height
Try a known solid
units
units
units

Labels the fields and the cubic result. Does not convert numbers between systems.

Volume-cubic units

Numbers in, cubic result out

Open a shape tab. Fill every length the form asks for. The volume field updates on each keystroke. No submit button, no upload, no account.

Behind the tab, the page multiplies the measurements with the classical solid-geometry formula for the shape you picked. Rectangular prism multiplies three edges. Sphere uses four thirds pi r cubed. Cylinder multiplies base area by height. Cone and square pyramid each take one third of a prism-like solid with the same base and height.

Pi comes from the browser Math object, roughly sixteen digits of working precision. Display trims trailing noise so a homework answer stays readable. The substitution line under the result shows the numbers the formula used, so you spot a diameter slip without opening a second calculator.

Worked solids you already recognise

Shipping carton

Length 45 cm, width 30 cm, height 25 cm.

V = 45 × 30 × 25
V = 33750 cm³V = 33.75 litres

Use Prism. Same arithmetic as packing foam volume for a warehouse pick list.

Playground ball

Diameter stamped 22 cm, so radius is 11 cm.

V = (4/3) × π × 11³V ≈ 5575.28 cm³

Use Sphere with 11, never 22. Feeding 22 returns about 44,602 cm³, which is eight times too large.

Paint tin

Inner radius 8.5 cm, fill height 18 cm.

V = π × 8.5² × 18
V ≈ 4084.07 cm³V ≈ 4.08 litres

Use Cylinder. A matching cone with the same base and height holds about 1.36 litres, one third of the tin.

Load any of the preset buttons above the inputs to drop these kinds of numbers into the form without typing. Then change one edge and watch the cubic value move.

Where the one-third factor comes from

A cone fits inside a cylinder of equal base and height. Stack three identical cones of fill material into the cylinder and the cylinder fills exactly. The same packing story holds for a pyramid inside a prism with matching base area and height. Textbooks write the factor as 1/3. Skip writing and you over-order material by a factor of three.

ShapeInputs on this pageFormula used
Rectangular prismLength, width, heightV = lwh
SphereRadiusV = (4/3)πr³
CylinderRadius, heightV = πr²h
ConeRadius, heightV = (1/3)πr²h
Square pyramidBase side, heightV = (1/3)a²h

Height for a cone or pyramid is the perpendicular distance from the apex to the base plane. Slant height along the side face belongs in surface-area work, not here. Measuring along the slope and calling the number height inflates every cone and pyramid result.

What this calculator refuses to do

Tips while you type

Formulas follow standard Euclidean solid geometry. Numbers stay in your browser tab. Nothing is stored on a server. Reviewed alongside the shape tabs whenever the page file changes.

Volume questions mid-calculation

Radius vs diameter, the cone factor, units, and the shapes this page skips.

Do I enter radius or diameter for a sphere?

Radius. Halve any diameter stamped on a ball or pipe before you type. Entering diameter as radius multiplies volume by eight.

Why is a cone so much smaller than a cylinder with the same numbers?

Cone volume is one third of the matching cylinder. Same base radius, same height, one third the fill. The page applies that factor automatically on the Cone tab.

What does the unit dropdown change?

Only the words next to the fields and after the result. A value of 10 stays 10. Convert measurements yourself before pasting if you need a different system.

Is the pyramid base the side length or the area?

Side length of a square base. The formula squares that length. If you already know base area in square units, divide the square root of the area to recover the side, or compute (1/3) times area times height by hand.

How do I get litres from the cubic result?

If every input was in centimetres, divide the cubic centimetre answer by 1000. Inputs in metres give cubic metres. Multiply cubic metres by 1000 to reach litres.

Does anything leave my device?

No. The arithmetic runs in the page. Closing the tab clears the numbers.