R

How to Calculate Volume: Every Formula for Cube, Cylinder, Sphere, Cone & Pyramid

Editorial
9 min read
2026-09-24
How to Calculate Volume: Every Formula for Cube, Cylinder, Sphere, Cone & Pyramid

Try it yourself with the

Volume Calculator

Calculate now

Calculating volume: why the core idea is worth learning

Homework, a garden pool, a rain barrel or a heating oil tank: the question "how much fits in?" is a question about volume. Volume describes how much space a solid occupies and is measured in cubic units — cubic millimetres, cubic centimetres or cubic metres. In everyday life we usually think in litres. Once you understand the principle behind the formulas, you barely need to memorise them.

You can check every example in this guide in the volume calculator. Besides the result it shows a sketch with your measurements, the formula and every calculation step.

The core idea: base area times height

The most important idea in volume calculation is surprisingly simple. Picture a solid as a stack of thin slices. If all slices have the same shape and size, the volume is simply the area of one slice multiplied by the height of the stack. This holds for cubes, cuboids, cylinders and all other prisms:

V = B · h

B stands for the base area, h for the height. For a cuboid the base is a rectangle, for a cylinder a circle. If you want to refresh base areas, the area calculator has formulas for rectangles, trapezoids, parallelograms and ellipses.

Cube and cuboid

The cuboid is the everyday solid: moving box, aquarium, room, rectangular pool. Its volume is length times width times height:

V = l · w · h

An aquarium 80 cm long, 35 cm wide and 40 cm high therefore has 80 · 35 · 40 = 112,000 cm³. Since 1,000 cm³ is exactly one litre, it holds 112 litres. The cube is the special case where all edges are equal: V = a³. A cube with 10 cm edges has 1,000 cm³ — exactly one litre. That cube is in fact the definition of the litre.

The surface of a cuboid consists of six rectangles, two of each size: A = 2 · (l·w + l·h + w·h). The longest line inside, the space diagonal, follows from the Pythagorean theorem in three dimensions: d = √(l² + w² + h²).

Cylinder: circle times height

Cans, pipes, rain barrels and round above-ground pools are cylinders. The base is a circle with area π · r², so:

V = π · r² · h

A common mistake: many people measure the diameter and use it as the radius. The result is then four times too large, because the radius is squared. Always halve the diameter first. Example: a can with an 8 cm diameter and 11 cm height has r = 4 cm and V = π · 16 · 11 ≈ 553 cm³, a little over half a litre.

The surface consists of two circles (bottom and top) plus the lateral surface. Picture the lateral surface unrolled into a rectangle: its width is the circumference 2 · π · r, its height is h. So A = 2 · π · r² + 2 · π · r · h.

Cone and pyramid: exactly one third

Pointed solids taper evenly from the base to a single point. Their volume is exactly one third of the matching prism with the same base and height:

Cone: V = 1/3 · π · r² · h

Square pyramid: V = 1/3 · a² · h

A simple experiment shows that it is exactly one third: fill a cone with water three times and pour it into a cylinder with the same base and height — it will be full to the brim. Mathematically the third follows from integrating the shrinking cross-sections.

For the surface you need one more length: for the cone the slant height s = √(r² + h²), for the pyramid the slant height of a face hₛ = √(h² + (a/2)²). Both are applications of the Pythagorean theorem. The surface is then A = π · r² + π · r · s for the cone and A = a² + 2 · a · hₛ for the pyramid.

Sphere: the special case

A sphere has no base and no height in the usual sense. Its volume depends only on the radius:

V = 4/3 · π · r³

Because the radius is cubed, the volume grows very quickly. A sphere with twice the radius has eight times the volume. A sphere with r = 1 has a volume of 4.18879 cubic units; a ball with a 22 cm diameter (r = 11 cm) about 5,575 cm³, roughly 5.6 litres of air. The surface is A = 4 · π · r² — exactly four times the area of the largest circle through the centre.

Converting to litres: the key factors

Most errors happen when converting, because volume units differ by a factor of 1,000, not 10. Remember:

1. 1 m³ = 1,000 dm³ = 1,000 litres

2. 1 dm³ = 1,000 cm³ = 1 litre

3. 1 cm³ = 1,000 mm³ = 1 millilitre

The safest approach is to convert all measurements to the same unit before calculating. Mixing metres, centimetres and millimetres produces a meaningless result. The calculator converts all measurements automatically when you switch units, so the solid stays the same.

Circle: every value from a single one

Radius, diameter, circumference and area of a circle are tied together. Know one and you know all of them:

1. Diameter: d = 2 · r

2. Circumference: C = 2 · π · r = π · d

3. Area: A = π · r²

4. Backwards: r = C ÷ (2 · π) or r = √(A ÷ π)

A practical example: you wrap a tape measure around a tree trunk and read 157 cm. Then r = 157 ÷ (2 · π) ≈ 25 cm, so the diameter is about 50 cm. Measuring the diameter of a tree directly would be much harder.

The Pythagorean theorem and angles in a right triangle

The Pythagorean theorem links the three sides of a right triangle: a² + b² = c². The legs a and b meet at the right angle, the hypotenuse c lies opposite — it is always the longest side. The classic example is the 3-4-5 triangle: 9 + 16 = 25, so c = 5.

You get the angles from trigonometry. For the angle α opposite a: tan(α) = a ÷ b, sin(α) = a ÷ c and cos(α) = b ÷ c. For the 3-4-5 triangle this gives α ≈ 36.87° and β = 90° − α ≈ 53.13°. In the calculator any two known values are enough — two sides, or one side and an angle.

Builders have used this for centuries to set out right angles: measure 3 m along one side and 4 m along the other, and the corner is exactly square when the diagonal is exactly 5 m.

Typical mistakes and how to avoid them

1. Diameter used as radius: the result is four times too large for a cylinder and eight times for a sphere.

2. Mixed units: calculate everything in cm or everything in m.

3. Wrong conversion factor: between cm³ and litres the factor is 1,000, not 100.

4. Forgetting the third for a cone: without 1/3 you get the volume of the enclosing cylinder.

5. Inner and outer dimensions confused: capacity depends on inner dimensions, material and paint on outer dimensions.

Conclusion

With "base area times height", the one-third rule for pointed solids and the sphere formula you can solve practically any volume problem. The Pythagorean theorem supplies the missing lengths such as slant height or space diagonal. To be sure, check your result in the volume calculator and compare your own solution step by step.

You might also find useful