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

sphere r = 5 cmbox 20 × 10 × 5 cmcone r = 3, h = 9 cm

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

  1. Select the shape. The inputs rebuild to show only that solid’s measurements.
  2. Enter each measurement with its unit. Halve any diameters before entering - the labels say radius or semi-axis when a half-measurement is expected.
  3. Read the volume in litres with cm³, m³, ft³ and gallons in the table below.
  4. 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.

ShapeFormulaExample inputsVolume
Sphere(4/3)πr³r = 5 cm523.6 cm³
Hemisphere(2/3)πr³r = 5 cm261.8 cm³
Cubes³s = 5 cm125 cm³
Boxlwh20 × 10 × 5 cm1,000 cm³
Cylinderπr²hr = 5, h = 10 cm785.4 cm³
Coneπr²h/3r = 3, h = 9 cm84.8 cm³
Pyramid (square)s²h/3s = 5, h = 10 cm83.3 cm³
Capsuleπr²h + (4/3)πr³r = 5, h = 10 cm1,309 cm³
Ellipsoid(4/3)πabc5 × 4 × 3 cm251.3 cm³
Triangular prism½b·h·L6 × 4 × 10 cm120 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.

Frequently asked questions

How do I calculate the volume of a sphere?
V = (4/3)πr³ with the radius r. A 10 cm diameter ball has r = 5 cm and holds (4/3)π×125 ≈ 523.6 cm³.
What is the volume of a cone compared to a cylinder?
Exactly one third, given the same base and height: cone V = πr²h/3 against the cylinder’s πr²h.
How do I handle a capsule’s overall length?
The straight section is the tip-to-tip length minus two radii (one full diameter). Enter that reduced length along with the radius.
What are the three inputs for an ellipsoid?
The three semi-axes - the half-widths along three perpendicular directions. Halve each full measurement before entering.
Why is a pyramid’s volume divided by three?
The cross-section shrinks linearly from base to apex; integrating that linear taper yields exactly one third of the enclosing prism, for any base shape.
My object is not an exact match - what now?
Pick the nearest shape for an estimate, or split the object into simpler pieces and add their volumes. Compound objects like tanks are almost always handled this way.
How many litres is a cubic metre?
Exactly 1,000. The calculator lists litres, m³, ft³ and US gallons together so no manual conversion is needed.

Related calculators

Educational use only. Results are provided for planning and study purposes. Storm Lane is not liable for decisions made solely on these figures - double-check critical measurements with a qualified professional.