How to Calculate the Volume of Any 3D Shape (With Formulas)
Volume tells you how much three-dimensional space a shape occupies — how much water a tank holds, how much concrete fills a column, how much air is inside a room. Unlike area (which measures flat surfaces), volume requires three measurements and always gives an answer in cubic units: cm³, m³, litres. This guide covers every major 3D shape you will encounter in school and in real life: the formula for each one, a clear worked example, a visual diagram, and the reasoning behind why the formula works. By the end, you won’t just have a formula sheet — you’ll understand how to approach any volume problem from scratch.
📋 Table of Contents
- What volume means — and why units are always cubed
- Cube and cuboid
- Any prism — the universal prism rule
- Cylinder
- Square-based pyramid and general pyramid
- Cone
- Sphere and hemisphere
- Triangular prism
- Composite 3D shapes
- Frustum (truncated cone or pyramid)
- Irregular shapes — displacement method
- Volume unit conversions
- Complete formula cheat sheet
- FAQs
What Volume Means — And Why Units Are Always Cubed
Volume is the amount of 3D space enclosed inside a shape. The easiest way to understand it is to imagine filling the shape with tiny unit cubes (1 cm × 1 cm × 1 cm). The total number of cubes that fit inside is the volume in cm³. This is why volume is always measured in cubic units — you are measuring how many unit cubes fit.
The golden rule: volume units are always the length unit cubed. If all lengths are in cm, volume is in cm³. If lengths are in m, volume is in m³. Never mix units inside a calculation — convert everything to one unit first.
Cube and Cuboid
The cuboid (also called a rectangular prism) is the simplest 3D shape — a box. Its volume is found by multiplying its three dimensions together. A cube is a special cuboid where all three dimensions are equal.
📦 Cuboid (Rectangular Prism)
✏️ Worked Example
A storage box is 50 cm long, 30 cm wide, and 20 cm tall. Find its volume.
V = 50 × 30 × 20 = 30,000 cm³
In litres: 30,000 ÷ 1,000 = 30 litres
🎲 Cube
✏️ Worked Example
A cube has side length 6 cm. Find its volume.
V = 6³ = 6 × 6 × 6 = 216 cm³
💡 Why “cubed”? When we write 6³ (six cubed), we mean exactly this: the volume of a cube with side length 6. The word “cubed” in everyday maths literally comes from this shape. Raising a number to the power of 3 is the same operation as computing the volume of a cube with that side length.
Any Prism — The Universal Prism Rule
A prism is any 3D shape that has the same cross-section all the way through its length. Cylinders, cuboids, triangular prisms, hexagonal prisms — they are all prisms. Every single prism, regardless of the shape of its cross-section, uses exactly the same volume formula:
This is the most powerful single rule in 3D volume work. Instead of memorising separate formulas for L-shaped prisms, hexagonal prisms, or any unusual cross-section, you just need to: (1) identify the cross-sectional shape, (2) calculate its area using 2D area formulas, (3) multiply by the length of the prism.
💡 How to identify the cross-section: Imagine slicing the shape like a loaf of bread — cutting perpendicular to its length. The face you see on the cut is the cross-section. If the same face appears all the way along the shape, it is a prism and the universal rule applies.
Cylinder
A cylinder is a prism with a circular cross-section. Apply the universal prism rule: the cross-section is a circle (area = πr²), multiplied by the height.
🥫 Cylinder
Where r = radius of the circular base, h = height (length) of the cylinder.
✏️ Worked Example
A cylindrical water tank has radius 0.8 m and height 2 m. Find its volume.
Identify: r = 0.8 m, h = 2 m
Apply formula: V = π × 0.8² × 2
V = π × 0.64 × 2 = π × 1.28
V = 4.02 m³ = 4,021 litres
⚠️ Diameter vs radius trap: If a question gives the diameter, halve it to get the radius before substituting into the formula. Using diameter in place of radius gives an answer 4 times too large (because r is squared). Always write r = d ÷ 2 = ___ as your first line.
Square-Based Pyramid and General Pyramid
A pyramid has a flat base and triangular faces that meet at a single point (apex). The volume of any pyramid is exactly one-third of the volume of the prism with the same base and height. This one-third relationship holds for every pyramid, regardless of what shape the base is.
🔺 Pyramid (any base shape)
For a square-based pyramid with base side length s: Base Area = s², so V = ⅓ × s² × h
For a rectangular-based pyramid: Base Area = l × w, so V = ⅓ × l × w × h
For any other base: calculate the base area first, then multiply by h and divide by 3.
✏️ Worked Example — Square-Based Pyramid
A pyramid has a square base with side 6 cm and a perpendicular height of 10 cm.
Base Area = 6² = 36 cm²
V = ⅓ × 36 × 10
V = ⅓ × 360 = 120 cm³
💡 Why ⅓? Three identical pyramids can be assembled to fill one cuboid with the same base and height. So one pyramid holds exactly one-third of the cuboid’s volume. This is a provable geometric fact — it’s why every pyramid formula has that ⅓ no matter what the base shape is.
Cone
A cone is a pyramid with a circular base. Apply the same ⅓ rule, but the base area is now πr² (the area of a circle). The relationship between a cone and a cylinder is identical to the relationship between a pyramid and a prism: the cone holds exactly one-third the volume of a cylinder with the same base radius and height.
🍦 Cone
Where r = radius of the circular base, h = perpendicular height from base to apex.
✏️ Worked Example — Ice Cream Cone
An ice cream cone has radius 3 cm and height 12 cm. Find its volume.
Identify: r = 3 cm, h = 12 cm
V = ⅓ × π × 3² × 12
V = ⅓ × π × 9 × 12 = ⅓ × 108π
V = 36π = 113.1 cm³
⚠️ Slant height ≠ perpendicular height. Cone problems often give the slant height (the length along the surface from base to apex) rather than the perpendicular height. You must use the perpendicular height in the volume formula. If you’re given the slant height (l) and radius (r), find the perpendicular height using Pythagoras: h = √(l² − r²).
Sphere and Hemisphere
A sphere has no flat faces, no edges, and no vertices — just a perfectly curved surface equidistant from the centre in every direction. Its volume formula is one of the most elegant in all of mathematics, derived using calculus.
🌐 Sphere
Where r = radius of the sphere (distance from centre to surface).
✏️ Worked Example — Sphere
A spherical ball has radius 5 cm. Find its volume.
V = (4/3) × π × 5³
V = (4/3) × π × 125
V = (500/3)π
V = 523.6 cm³
🌓 Hemisphere
A hemisphere is exactly half a sphere. Simply divide the sphere formula by 2:
✏️ Worked Example — Hemisphere
A hemispherical bowl has radius 8 cm. Find its volume.
V = (2/3) × π × 8³ = (2/3) × π × 512 = (1024/3)π = 1,072.3 cm³
💡 Archimedes’ discovery: Archimedes proved that a sphere fits perfectly inside a cylinder of the same radius and height (= diameter), and the sphere’s volume is exactly ⅔ of the cylinder’s volume. So V(sphere) = ⅔ × πr² × 2r = (4/3)πr³. He considered this his greatest achievement.
Triangular Prism
A triangular prism has a triangle as its cross-section. Apply the universal prism rule: calculate the area of the triangular face, then multiply by the length of the prism.
🔷 Triangular Prism
Where b = base of the triangular face, h_triangle = perpendicular height of that triangle, l = length of the prism.
✏️ Worked Example
A triangular prism has a triangular face with base 8 cm and perpendicular height 5 cm. The prism is 15 cm long.
Area of triangle = ½ × 8 × 5 = 20 cm²
V = 20 × 15 = 300 cm³
Composite 3D Shapes
Composite 3D shapes are built by combining or subtracting standard shapes. A grain silo might be a cylinder with a cone on top. A stadium might be a rectangular block with a hemispherical roof. Real-world objects are almost always composite. The strategy is always the same: identify the component shapes, calculate each volume separately, then add or subtract.
Step-by-Step Method for Composite Volumes
Identify the component shapes. Sketch the object and draw lines showing where one shape ends and another begins.
Determine whether each component is added or subtracted. A dome on top of a building: add. A cylindrical hole drilled through a block: subtract.
Calculate each component’s volume using its formula.
Add or subtract the components. Write out the full expression before calculating.
✏️ Worked Example — Cylinder + Cone (Rocket Shape)
A shape consists of a cylinder (radius 4 cm, height 10 cm) with a cone on top (same radius 4 cm, cone height 6 cm).
V(cylinder) = π × 4² × 10 = 160π cm³
V(cone) = ⅓ × π × 4² × 6 = ⅓ × 96π = 32π cm³
Total V = 160π + 32π = 192π = 603.2 cm³
✏️ Worked Example — Cuboid with Cylindrical Hole
A rectangular block (l=20 cm, w=10 cm, h=8 cm) has a cylindrical hole drilled through it (radius 2 cm, depth = full height of 8 cm).
V(cuboid) = 20 × 10 × 8 = 1,600 cm³
V(cylinder) = π × 2² × 8 = 32π = 100.5 cm³
Net volume = 1,600 − 100.5 = 1,499.5 cm³
Frustum (Truncated Cone or Pyramid)
A frustum is what remains when you cut a cone or pyramid parallel to its base, removing the top portion. Think of a bucket, a lampshade, or a drinking cup — all frustums. The formula comes from subtracting the removed cone/pyramid from the original.
🪣 Frustum of a Cone
Where R = radius of the larger (bottom) base, r = radius of the smaller (top) base, h = perpendicular height of the frustum.
✏️ Worked Example — Frustum
A bucket has a top radius of 15 cm, a bottom radius of 10 cm, and a height of 25 cm.
R = 15, r = 10, h = 25
R² + Rr + r² = 225 + 150 + 100 = 475
V = (π × 25 / 3) × 475
V = (25π / 3) × 475 = (11875π / 3) = 12,435 cm³ ≈ 12.4 litres
Irregular Shapes — The Displacement Method
Not every 3D shape has a clean formula. Rocks, sculptures, biological specimens, and machine parts can have completely irregular forms. For these, geometry offers an indirect but ingenious method: fluid displacement.
How Displacement Works — Archimedes’ Method
When an object is submerged in a liquid, it displaces a volume of liquid exactly equal to its own volume. By measuring how much the liquid level rises, you measure the object’s volume — no formula required.
Fill a measuring cylinder or container with a known volume of water. Record the water level: V₁.
Submerge the irregular object completely in the water.
Record the new water level: V₂.
Volume of object = V₂ − V₁
This is exactly the insight Archimedes reputedly had in his bath — the legendary “Eureka!” moment. It works for any object, however complex its shape, as long as it is fully submerged and does not absorb water.
✏️ Worked Example — Volume of a Rock
Water level in a measuring cylinder starts at 250 mL. A rock is dropped in and the level rises to 318 mL.
V(rock) = 318 − 250 = 68 mL = 68 cm³
Volume Unit Conversions
Mixing units is one of the most common sources of volume errors. The conversion factors for volume are not the same as for length — they are cubed. Always cube the length conversion factor to get the volume conversion factor.
| From | To | Multiply by | Why |
|---|---|---|---|
| cm³ | mm³ | × 1,000 | 10³ (1 cm = 10 mm) |
| mm³ | cm³ | ÷ 1,000 | ÷ 10³ |
| m³ | cm³ | × 1,000,000 | 100³ (1 m = 100 cm) |
| cm³ | m³ | ÷ 1,000,000 | ÷ 100³ |
| cm³ | mL | × 1 (exact) | 1 cm³ = 1 mL by definition |
| mL | litres (L) | ÷ 1,000 | 1 L = 1,000 mL |
| m³ | litres | × 1,000 | 1 m³ = 1,000 L |
| litres | m³ | ÷ 1,000 | ÷ 1,000 |
⚠️ The biggest unit conversion mistake: Students write 1 m³ = 100 cm³. The correct conversion is 1 m³ = 1,000,000 cm³. Since 1 m = 100 cm, we have 1 m³ = 100³ cm³ = 1,000,000 cm³. Always cube the length factor — never just multiply it.
Complete Volume Formula Cheat Sheet
| Shape | Formula | Variables |
|---|---|---|
| Cube | V = s³ | s = side length |
| Cuboid (rectangular prism) | V = l × w × h | l = length, w = width, h = height |
| Any prism | V = A × l | A = cross-section area, l = length |
| Cylinder | V = π r² h | r = base radius, h = height |
| Triangular prism | V = ½ b h_t l | b = triangle base, h_t = triangle height, l = length |
| Square pyramid | V = ⅓ s² h | s = base side, h = perpendicular height |
| Any pyramid | V = ⅓ A h | A = base area, h = perpendicular height |
| Cone | V = ⅓ π r² h | r = base radius, h = perpendicular height |
| Sphere | V = (4/3) π r³ | r = radius |
| Hemisphere | V = (2/3) π r³ | r = radius |
| Frustum (cone) | V = (πh/3)(R² + Rr + r²) | R = large radius, r = small radius, h = height |
| Frustum (pyramid) | V = (h/3)(A₁ + A₂ + √(A₁A₂)) | A₁, A₂ = base areas, h = height |
| Irregular shape | V = V_after − V_before | Displacement method |
Frequently Asked Questions
What is the formula for the volume of any 3D shape?
There is no single formula that covers every shape, but there are two master rules that cover most of them. For prisms (cuboids, cylinders, triangular prisms, and any shape with a constant cross-section): V = cross-section area × length. For pointed shapes (pyramids and cones): V = ⅓ × base area × height. The sphere stands alone with V = (4/3)πr³. Every other volume formula is either one of these rules or a combination of them.
Why do pyramid and cone volumes have ⅓ in them?
Because exactly three identical pyramids (or cones) fit perfectly inside a prism (or cylinder) with the same base and height. This was proved by the ancient Greek mathematician Eudoxus and later formalised using calculus. It is a geometric fact, not an approximation. The ⅓ appears because the pyramid tapers from full base area to zero at the apex — whereas a prism maintains full base area all the way through — so on average it uses one-third of the space.
What is the difference between volume and surface area?
Volume measures the 3D space inside a shape — how much it can hold. It is always in cubic units (cm³, m³). Surface area measures the total area of all the outer faces — how much material covers the outside. It is always in square units (cm², m²) even for 3D shapes. A can of paint covers surface area. The amount of water it holds is volume. These are completely different measurements with different formulas and different units, and confusing them is one of the most common errors in 3D geometry.
How do I find the volume of an L-shaped prism?
Use the universal prism rule: V = cross-section area × length. The cross-section is the L-shaped face. Calculate its area by splitting the L into two rectangles, adding their areas. Then multiply the total cross-section area by the length of the prism. You never need a special formula for an L-shaped prism — the prism rule handles every possible cross-section shape automatically.
How do you find the volume of a sphere if you’re given the diameter?
Halve the diameter to get the radius first, then apply V = (4/3)πr³. For example, a sphere with diameter 10 cm has radius 5 cm, so V = (4/3) × π × 125 = 523.6 cm³. Never substitute the diameter directly into the formula — because r is cubed, using diameter instead of radius gives an answer 8 times too large (since 2³ = 8). Always convert to radius first.
How do you find volume if the shape has been enlarged by a scale factor?
Apply the volume scale factor, which is the cube of the length scale factor. If a shape is enlarged by a linear scale factor of k, its volume increases by k³. For example, if a shape is enlarged by scale factor 3, its volume becomes 3³ = 27 times larger. This is a common exam question: students who multiply by k instead of k³ lose the mark every time. Length scales by k. Area scales by k². Volume scales by k³.
What units should a volume answer be in?
Volume is always in cubic units — whichever unit the lengths were measured in, cubed. If the lengths are in centimetres, the volume is in cm³. If lengths are in metres, volume is in m³. Never write a volume answer in cm or m² — those are length and area units respectively. As a cross-check: if your volume answer has no ³ in the unit, something is wrong. Volume is always cubed.
Key Takeaways
- Volume is always in cubic units (cm³, m³). It measures 3D space — how many unit cubes fit inside the shape.
- The universal prism rule: V = cross-section area × length. Works for cuboids, cylinders, triangular prisms, and any constant cross-section shape.
- The one-third rule: V = ⅓ × base area × height. Works for every pyramid and cone, regardless of base shape.
- Sphere: V = (4/3)πr³. Hemisphere: V = (2/3)πr³. Always use radius, never diameter.
- Frustum: V = (πh/3)(R² + Rr + r²) for a truncated cone. Useful for buckets, cups, and tapered containers.
- Composite shapes: Split into standard shapes, calculate each volume, add or subtract as required.
- Irregular shapes: Use water displacement — V = final water level − initial water level.
- Volume scale factor = k³. If a shape is enlarged by linear factor k, its volume changes by k³ — not k or k².
- Unit conversions for volume cube the conversion factor: 1 m³ = 1,000,000 cm³ (not 100 cm³). 1 cm³ = 1 mL exactly.
