Skip to content
Tutorials Center
My learning

Topics

Lesson 28 of 37 · Volume and Surface Area

Pyramids and Cones

Learn why a pyramid or cone holds one third of the matching prism or cylinder, find slant height with Pythagoras, and compute volume and surface area in code.

A pyramid and a cone both rise from a base to a single point called the apex. They look pointy and "half empty", and the numbers confirm it: a pyramid holds exactly one third of the prism with the same base and height. In this lesson you learn that fact, how to find a slanted height, and how to get both volume and surface area.

Volume: one third of the prism

Text
Volume of a pyramid = ⅓ × (base area) × height
Volume of a cone    = ⅓ × π r² × height

Here height is the perpendicular distance from the apex to the base plane, not the slanted edge. Example: a square pyramid with base side 6 cm and height 4 cm has volume ⅓ × 36 × 4 = 48 cm³, while the prism with the same base and height has volume 144 cm³.

Why one third? There is a neat check for a cube of edge s: six identical pyramids, each with one face of the cube as its base and the cube's center as its apex, fill the cube exactly. Each has height s/2 and volume ⅓ × s² × s/2 = s³/6, and six of them give s³. A fully general proof needs calculus (a stack of slices whose areas grow as the square of the distance from the apex), but you can also see it numerically, as in the code below.

Slant height

Surface-area formulas use the slant height l: the distance from the apex down the middle of a face (for a pyramid) or along the surface to the rim (for a cone). Use a right triangle: the height h, a horizontal leg and l as hypotenuse.

  • Cone: l = √(r² + h²).
  • Regular square pyramid with base side s: the horizontal leg is s/2, so l = √(h² + (s/2)²).

Example: for the pyramid above, l = √(16 + 9) = 5 cm. For a cone with r = 3 and h = 4, l = 5 cm too.

flowchart TD
    A["Apex"] -->|"height h"| B["Center of base"]
    A -->|"slant height l"| C["Edge midpoint or rim"]
    B -->|"r or s/2"| C

The height, the half-base distance and the slant height form a right triangle: l² = h² + (r or s/2)².

Surface area

Regular pyramid: the base plus triangular faces. Each triangle has base s and height l:

Text
SA = base area + ½ × (base perimeter) × l

For the square pyramid: base 36, four triangles each ½ × 6 × 5 = 15, so lateral area 60 and SA = 96 cm².

Cone: the circular base plus the curved surface. The curved part unrolls into a sector whose radius is l and whose arc length is 2πr, giving area ½ × l × 2πr = πrl:

Text
SA = π r² + π r l = π r (r + l)

For r = 3, l = 5: SA = 9π + 15π = 24π ≈ 75.4 cm². Its volume is ⅓ × π × 9 × 4 = 12π ≈ 37.7 cm³.

Use h in the volume formula and l in the lateral area formula. Mixing them up is the number one error with cones and pyramids.

Verify with code

First, a calculator for the cone and the square pyramid. The numbers should match the worked examples.

Python Cone and square pyramid calculator

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Now the one-third fact. A cone can be approximated by a stack of thin cylinders (discs). The disc at height y above the base has radius r × (1 - y/h). Adding up all disc volumes should approach the cone volume.

Python Why one third? Stacking thin discs

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

As the number of slices grows, the ratio to the matching cylinder settles at 0.33333.

Frustums

If you slice the top off a cone or pyramid with a cut parallel to the base, the lower part is a frustum. Find its volume by subtracting: V = V(big) - V(small cone). The small cone on top is similar to the big one, so its dimensions are in the same ratio as the original. A later lesson on similar solids shows how to use that ratio.

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. A square pyramid has base side 9 cm and height 5 cm. What is its volume?

    V = ⅓ × 9² × 5 = ⅓ × 405 = 135 cm³.
  2. 2. A cone has radius 5 cm and height 12 cm. What is its slant height?

    l = √(25 + 144) = √169 = 13 cm.
  3. 3. A cone has radius 5 cm and slant height 13 cm. What is its total surface area?

    SA = πr(r + l) = π × 5 × 18 = 90π cm².
  4. 4. A cone and a cylinder have the same radius and height. How do their volumes compare?

    The cone holds ⅓ πr²h, while the cylinder holds πr²h.

Summary

  • Pyramid and cone volume: ⅓ × base area × height (perpendicular height).
  • Slant height from Pythagoras: cone l = √(r² + h²); square pyramid l = √(h² + (s/2)²).
  • Pyramid surface: base + ½ × P × l. Cone surface: πr(r + l).
  • The one-third factor appears whenever slices shrink linearly to a point.

Next: Spheres and Composite Solids