Shapes Volume Calculator
Pick a solid, enter its measurements, and get the volume in litres, m³, ft³ and gallons. The exact formula for your shape is substituted with your numbers so the arithmetic is always visible.
Formula: Sphere (4/3)πr³ · Box lwh · Cone πr²h/3 · Prism A·h
One formula per solid, always shown
Every 3D volume reduces to a short formula, and the fastest route to the right answer is picking the shape first. This calculator covers ten of the most common solids: the sphere and its half, the cube and box, the cylinder and cone, the square pyramid, the capsule, the ellipsoid and the triangular prism. Select the shape, the input list rebuilds to match, and the result panel shows your numbers inside the formula so the work can be checked line by line.
A quick tour with the defaults: a 5 cm radius sphere holds (4/3)π×125 ≈ 523.6 cm³; a cone of radius 3 cm and height 9 cm holds π×9×9÷3 ≈ 84.8 cm³; a capsule with 5 cm radius and 10 cm straight section holds π×25×10 + (4/3)π×125 ≈ 1,000 cm³ - almost exactly a litre, which is no accident given the choices.
Two habits prevent most errors. First, know whether your measurement is a radius, a diameter or a half-width: the sphere and ellipsoid formulas take half-measurements, while the box takes full widths in all three directions. Second, keep units consistent - each field’s selector converts before multiplying, so a radius in inches and a height in centimetres is handled, but a naked number entered against the wrong unit silently scales the answer.
When the shape is close but not exact - a slightly tapered tank, a dome that is more ellipsoid than sphere - the nearest formula still gives a useful estimate, usually within a few percent. For exact figures on compound shapes, split the solid into pieces whose formulas you know and add them; the capsule is exactly that pattern in miniature, a cylinder plus a sphere.
How to use this calculator
- Select the shape. The inputs rebuild to show only that solid’s measurements.
- Enter each measurement with its unit. Halve any diameters before entering - the labels say radius or semi-axis when a half-measurement is expected.
- Read the volume in litres with cm³, m³, ft³ and gallons in the table below.
- Check the substitution bar to see your values inside the shape’s formula - useful for homework and quotes alike.
Choosing the right shape model
Real objects rarely match textbook solids exactly. Three comparisons help you pick the closest model and know how far off you might be.
Sphere vs capsule vs cylinder
For a container of the same width, a capsule adds (4/3)πr³ over a cylinder of the same straight length - so if you measured tip to tip, remember to subtract two radii from the length. A sphere of radius r holds (4/3)πr³; a capsule is that sphere “stretched” by the straight section πr²h.
Cone vs pyramid vs frustum
All three tapers carry the factor of one third, but the bases differ: πr² for the cone, s² for the square pyramid. If the tip is cut off, neither formula applies directly - use the end areas in the frustum formula, and note that a cone sliced in half keeps 7/8 of its volume near the base.
Prism logic generalises
Any prism - triangular, hexagonal, whatever - is base area times length. The triangular prism here uses ½ × base × height for the triangle; a hexagonal one uses 2.598 s². Once you see the pattern, unfamiliar shapes become two questions: what is the cross-section area, and how far does it extend?
Formulas and sample volumes
Sample volumes for the default example measurements of each shape, rounded to sensible figures.
| Shape | Formula | Example inputs | Volume |
|---|---|---|---|
| Sphere | (4/3)πr³ | r = 5 cm | 523.6 cm³ |
| Hemisphere | (2/3)πr³ | r = 5 cm | 261.8 cm³ |
| Cube | s³ | s = 5 cm | 125 cm³ |
| Box | lwh | 20 × 10 × 5 cm | 1,000 cm³ |
| Cylinder | πr²h | r = 5, h = 10 cm | 785.4 cm³ |
| Cone | πr²h/3 | r = 3, h = 9 cm | 84.8 cm³ |
| Pyramid (square) | s²h/3 | s = 5, h = 10 cm | 83.3 cm³ |
| Capsule | πr²h + (4/3)πr³ | r = 5, h = 10 cm | 1,309 cm³ |
| Ellipsoid | (4/3)πabc | 5 × 4 × 3 cm | 251.3 cm³ |
| Triangular prism | ½b·h·L | 6 × 4 × 10 cm | 120 cm³ |
Reading down the table shows the factor-of-three family: cone is a third of the cylinder, pyramid a third of its prism, hemisphere half of the sphere. Those ratios are worth memorising - they turn unfamiliar solids into ones you can already compute.
Everyday uses for a multi-shape volume tool
Kitchen and craft estimates
Cake tins (cylinders), loaf pans (boxes), bowls (hemispheres) and pastries (capsule-like) all convert to litres with one of these formulas. Knowing a 24 cm tin holds about 9 litres of batter capacity helps scale recipes between sizes.
Garden and landscaping
Planter boxes are boxes; raised bed corners trimmed to triangles are prisms; a decorative rock or boulder is close to an ellipsoid. Summing the pieces gives soil or gravel quantities without overbuying.
Homework and teaching
Because the substitution bar shows the formula with real numbers, the tool doubles as a checking device: compute by hand, then compare. The reference table’s factor-of-three relationships make good drill questions for the cone-pyramid-prism family.
Common mistakes & pro tips
- Diameters entered where radii belong. The sphere, cone, cylinder and ellipsoid all take half-measurements - doubling the radius inflates a sphere’s volume eightfold.
- Overall capsule length used as the straight section. Subtract two radii first, or the cylinder term double-counts the rounded ends.
- Missing the divide-by-three on tapers. Cones and pyramids hold a third of their prism; leaving it out triples the answer.
- Mixed units across fields. Use the per-field selectors so conversion happens before multiplication, never after.
- Forcing one formula on a compound object. Split it: a silo with a domed top is a cylinder plus a hemisphere, computed separately and added.