Key facts
- Volume of a pyramid: V = ⅓ × base area × height.
- A square pyramid with base 6 and height 9 has volume ⅓ × 36 × 9 = 108 cubic units.
- For a square pyramid, the slant height is √(h² + (s ÷ 2)²); with s = 6, h = 9 it is √90 ≈ 9.487.
- Surface area = base area + the area of the triangular faces; for this pyramid about 149.84.
- A pyramid holds exactly one third of a prism with the same base and height.
The formula
V = ⅓ × B × hB is the area of the base and h is the perpendicular height from the base to the tip (apex). This works for any base shape and even when the apex is not centred over the base, as long as h is measured straight up.
| Base | Base area B |
|---|---|
| Square, side s | s² |
| Rectangle, l × w | l w |
| Triangle, base b and height t | ½ b t |
| Regular n-gon, side s | n s² ÷ (4 tan(180° ÷ n)) |
How to use the pyramid volume calculator
- Choose the base shape, or "custom base area" if you already know B.
- Enter the base measurements and the height.
- Read the volume, the base area and, for square and rectangular bases, the slant heights, lateral area and total surface area.
Step-by-step examples: pyramid volume
Example 1: a square pyramid
Base 6, height 9. B = 36, V = ⅓ × 36 × 9 = 108. The slant height is √(81 + 9) ≈ 9.487, so the four triangles cover 4 × ½ × 6 × 9.487 ≈ 113.84 and the total surface area is about 149.84. A prism with the same base and height would hold 324.
Example 2: a triangular pyramid
A triangular base with base 6 and height 5 has B = 15. With a pyramid height of 9, V = ⅓ × 15 × 9 = 45.
Example 3: the Great Pyramid of Giza
Its original base was about 230.3 m square and its height about 146.6 m. V ≈ ⅓ × 230.3² × 146.6 ≈ 2.6 million m³.
Example 4: a custom base
A tent-like roof has a base area of 50 m² and rises 9 m: V = ⅓ × 50 × 9 = 150 m³ of air to heat.
Slant height vs height
The height h goes straight down from the apex to the base. The slant height runs down the middle of a triangular face, from the apex to the midpoint of a base edge. For a square pyramid, the height, half the base and the slant height form a right triangle, so slant = √(h² + (s ÷ 2)²). A rectangular pyramid has two different slant heights, one for each pair of faces.
Why one third?
A cube can be cut into three identical square pyramids that all meet at one corner, which shows the one third directly for that case. In general, the cross-sections of a pyramid shrink with the square of the distance to the apex, and adding them up gives one third of the prism. The same rule gives the cone its one third.
Surface area of a square pyramid
SA = s² + 2 s lwhere l is the slant height. The first term is the base and the second is the four triangles. To wrap a gift shaped like a pyramid, you only need 2 s l if it sits on its base.
Mistakes to avoid with pyramid volume
- Using the slant height for the volume. The volume needs the vertical height.
- Forgetting the ⅓. Without it you get the volume of a prism.
- Using the side of the base instead of its area. For a square base, B is s², not s.
From the Moscow papyrus to Hilbert’s third problem
Pyramid volume is one of the oldest recorded formulas. Problem 14 of the Moscow Mathematical Papyrus, written around 1850 BCE and now in the Pushkin State Museum of Fine Arts, correctly computes the volume of a frustum, a square pyramid with its top cut off. The general rule, one third of the base area times the height, was proved by Eudoxus of Cnidus and appears in Euclid’s *Elements* (Book XII).
The Great Pyramid of Giza, built for the pharaoh Khufu around 2560 BCE, originally stood about 146.6 m tall on a base about 230 m square, giving a volume of roughly 2.6 million cubic metres; it was the tallest human-made structure for about 3,800 years. A deep question hides in the ⅓: in 1900 David Hilbert asked whether pyramids of equal base and height could always be cut into pieces and reassembled into each other, as polygons can. His student Max Dehn showed the answer is no, so the pyramid formula really needs a limiting argument, which is Hilbert’s third problem. Modern pyramids include I. M. Pei’s glass pyramid at the Louvre, opened in 1989. In US high schools, Common Core standard G-GMD.A.3 covers volumes of pyramids. For a round base, use the cone volume calculator; for the matching box, the rectangular prism volume calculator; and for a triangular base, the triangle area calculator.
Related: the cone volume calculator, the rectangular prism volume calculator and the surface area calculator.
How this calculator works
- V = ⅓ × base area × height.
- Base can be a square, rectangle, triangle or regular polygon; its area is worked out first.
- Also shows the slant height, lateral area and total surface area for right pyramids.
- Compares the result with the prism on the same base, which is always exactly three times larger.
Frequently asked questions
What is the formula for the volume of a pyramid?
V = ⅓ × base area × height.
What is the volume of a square pyramid with base 6 and height 9?
⅓ × 36 × 9 = 108 cubic units.
How do I find the slant height of a square pyramid?
slant = √(h² + (s ÷ 2)²), where s is the side of the base.
What is the surface area of a square pyramid?
s² + 2sl, the base plus four triangles with slant height l.
Does the formula work for triangular pyramids?
Yes. Use the area of the triangular base as B.
How do I find the height from the volume?
h = 3V ÷ B.
How does a pyramid compare with a prism?
A pyramid holds one third of a prism with the same base and height.
What is a tetrahedron?
A pyramid with a triangular base. A regular tetrahedron with edge a has volume a³ ÷ (6√2).