Skip to main content

How to Calculate Volume: 3D Geometry Guide

Dr. Michael Chen · 2024-04-27 · 12 min read · Mathematics

Volume formulas for every common solid, with the reasoning behind them. Covers prisms, cylinders, pyramids, cones and spheres, why cones are exactly one third of cylinders, capacity conversions, and why volume scaling with the cube explains everything from pipe flow to why giant insects cannot exist.

How to Calculate Volume

Volume measures the space a three-dimensional object occupies. Every formula below traces back to one idea — counting unit cubes — and most follow from a single principle about prisms.

Volume is always in cubed units: cubic metres, cubic centimetres, litres. An answer in square metres is a units error.

The prism principle

For any solid with a constant cross-section along its length:

V = A_base × h

Where A_base is the cross-sectional area and h the perpendicular height.

This single rule covers a surprising number of shapes.

Rectangular box: the base is a rectangle, so V = l × w × h.

Cube: V = s^3.

Cylinder: the base is a circle, so V = π r^2 h.

Triangular prism: V = (1)/(2)bh_tri × L.

Any prism, however irregular its cross-section, obeys the same rule. An extruded aluminium section, a length of guttering, a swimming pool of constant depth — find the cross-sectional area, multiply by length.

Worked example

A cylindrical water tank, 1.2 m diameter, 1.8 m tall. Radius is 0.6 m:

V = π(0.6)^2(1.8) = π × 0.36 × 1.8 = 2.036 \text m^3

Since 1 m³ = 1,000 litres, that is 2,036 litres.

Slanted solids: Cavalieri's principle

Push a stack of coins sideways into a leaning column and the volume does not change — you have not added or removed any coins.

That is Cavalieri's principle: two solids of the same height with equal cross-sectional areas at every level have equal volume.

The consequence is practical. An oblique cylinder or a leaning prism has exactly the same volume as an upright one of the same base and perpendicular height. Use the vertical height, not the slant length.

Pyramids and cones: the one-third rule

V_pyramid = (1)/(3) A_base h \qquad V_cone = (1)/(3)π r^2 h

A cone is exactly one third of the cylinder that encloses it. A pyramid is one third of its prism.

Why one third? A cube can be divided into exactly three identical pyramids, each with a face of the cube as its base and the opposite corner as its apex. Since the three fill the cube completely, each is a third of it. The result generalises to any base shape and any height — a fact that requires calculus to prove in full, but the cube dissection makes it believable.

Example. A conical pile of sand, 3 m across the base, 1.4 m high. Radius 1.5 m:

V = (1)/(3)π(1.5)^2(1.4) = (1)/(3)π × 2.25 × 1.4 = 3.299 \text m^3

Truncated cone (frustum)

For a cone or pyramid with the top cut off — a bucket, a lampshade, a plant pot:

V = (1)/(3)π h(R^2 + Rr + r^2)

Where R and r are the two radii. Note this is not the average of the two circle areas — the Rr cross term is essential and omitting it is a common error.

Example. A bucket 30 cm deep, 25 cm top radius, 18 cm base radius:

V = (1)/(3)π(30)(625 + 450 + 324) = (1)/(3)π(30)(1399) = 43,951 \text cm^3

That is 43.95 litres.

Sphere

V = (4)/(3)π r^3

Archimedes proved that a sphere occupies exactly two thirds of the cylinder that circumscribes it — a result he considered his finest, and had carved on his tomb.

Check it: a cylinder enclosing a sphere of radius r has radius r and height 2r, giving π r^2(2r) = 2π r^3. Two thirds of that is (4)/(3)π r^3. Exactly the sphere formula.

Example. A ball bearing of 8 mm diameter, radius 4 mm:

V = (4)/(3)π(4)^3 = (4)/(3)π(64) = 268.08 \text mm^3

Hemisphere: half of the above, V = (2)/(3)π r^3.

Capacity conversions

The relationship worth memorising is 1 cm³ = 1 ml, which makes metric volume work almost trivial. A 10 cm cube holds exactly 1 litre.

As with area, conversion factors must be cubed. One metre is 100 cm, so one cubic metre is 100^3 = 1,000,000 cm³ — not 100.

Why volume scales with the cube

Double every dimension of an object and its volume increases eightfold. Triple them and it grows 27-fold.

Meanwhile surface area only grows with the square. That mismatch — the square-cube law — has consequences far beyond geometry.

Giant insects are impossible. Scale an ant up to the size of a dog and its mass grows with the cube while its leg cross-section, which carries that mass, grows only with the square. The legs would collapse. Large animals need disproportionately thick limbs, which is why an elephant's legs are pillars and a gazelle's are sticks.

Small animals lose heat fast. Heat loss scales with surface area, heat production with volume. A shrew has enormous surface area relative to its mass and must eat almost continuously; a whale has the opposite problem and must shed heat.

Wider pipes carry disproportionately more. Flow capacity depends on cross-sectional area, so doubling a pipe's diameter quadruples its capacity — not doubles it. A 2-inch pipe carries four times a 1-inch pipe.

Larger tanks are cheaper per litre. Material cost scales with surface area, capacity with volume. This is why bulk storage is economical and why a 2-litre bottle costs far less than twice a 1-litre.

Irregular shapes

Decompose. Split into standard solids and sum. A house shape is a rectangular prism plus a triangular prism roof. A capsule is a cylinder plus two hemispheres.

Subtract. A pipe is a cylinder minus a smaller cylinder:

V = π h(R^2 - r^2)

Displacement. For genuinely awkward objects, submerge them and measure the water displaced. This is Archimedes' method and remains the most practical approach for irregular solids.

Example — a length of pipe. 2 m long, 60 mm outer diameter, 50 mm inner:

V = π(2000)(30^2 - 25^2) = π(2000)(900 - 625) = π(2000)(275) = 1,727,876 \text mm^3

That is about 1.73 litres of material.

Common mistakes

Using diameter in place of radius. In π r^2 h this makes the answer four times too large; in a sphere, eight times.

Forgetting to cube the unit conversion. m³ to cm³ is ×1,000,000, not ×100.

Using slant height instead of perpendicular height in cones and pyramids. The slant is the sloping side; the formula needs the vertical.

Omitting the Rr term in a frustum. Averaging the two end areas gives a noticeably wrong answer.

Forgetting the one-third on cones and pyramids — an error of 200%.

Mixing units mid-calculation. Convert everything first.

Frequently asked questions

What is the difference between volume and capacity? Volume is the space an object occupies; capacity is how much a container holds. A bottle's glass has volume; the bottle has capacity. Numerically they use the same units, and the distinction rarely matters outside careful technical writing.

How do I find the volume of an irregular object? Water displacement is the practical method — the volume of water displaced equals the object's volume. For digital models, 3D software integrates over the mesh.

Why is a cone one third of a cylinder? Because a cube dissects into exactly three congruent pyramids, and the result generalises. A rigorous proof for arbitrary shapes needs integration, but the dissection makes it intuitive — and you can verify it physically by pouring water from a cone into a cylinder of the same base and height. It fills exactly a third.

How much does a volume of water weigh? One litre of fresh water is almost exactly 1 kg at 4 °C, so 1 m³ is 1,000 kg — a tonne. This makes water tank loads easy to estimate, and it is why a full bathtub is a genuine structural load.

Does temperature affect volume? Yes. Most substances expand when heated. It is why fuel is sold temperature-compensated in bulk trade, and why pipework needs expansion joints. Water is the notable exception below 4 °C, where it expands as it cools — which is why ice floats.

What is displacement in an engine? The total swept volume of all cylinders: V = π r^2 × \textstroke × \textnumber of cylinders. A "2.0 litre" engine sweeps 2,000 cm³ per full cycle.

Summary

Most volumes reduce to the prism rule: cross-sectional area times perpendicular height. Cones and pyramids are one third of their enclosing prism, spheres are (4)/(3)π r^3, and awkward shapes decompose into ones that do not resist.

The idea worth carrying beyond geometry is the square-cube law: volume grows with the cube of length while surface area grows with the square. It explains pipe capacity, animal proportions, heat loss and why bulk is cheap.

Work through any solid with our Volume Calculator.

Topics: volume, geometry, mathematics, 3D shapes, capacity, square-cube law