Article

Volume of a Pyramid: Formula V = ⅓Bh and Worked Examples

The volume of a pyramid is one third of the base area times the height: V = ⅓ · B · h. The formula works for any base, and only the way you find the base area changes. This article gives the formula, the reason for the factor ⅓, the base area of a square, a rectangle, a triangle and a hexagon, the height from the Pythagorean theorem, a truncated pyramid and four worked examples. You can check your own sizes in the pyramid volume calculator. For B = 36 and h = 9 the result is 108.00.

Last updated:

Work out the volume of a pyramid in the pyramid volume calculator. The volume of a prism with the same base and height is in the prism volume calculator.

The volume of a pyramid formula

A pyramid has one base, which is a polygon, and triangular side faces that meet at the apex. The height h is the distance from the apex to the plane of the base, measured perpendicular to it.

V = ⅓ · B · h
example: ⅓ · 36 · 9 = 108
square base with side a: V = ⅓ · a² · h

BhPyramid VPrism B · h
369108324
24648144
1003100300
121248144
506100300
161264192

The unit of volume is the cube of the unit of length. For sizes in inches the result is in cubic inches, and for centimeters it is in cubic centimeters.

A pyramid and a prism with the same base and heightOn the left a pyramid with the base B and the height h marked. On the right a prism with the same base and height. For B = 36 and h = 9 the volume of the pyramid is 108 and that of the prism 324.hBh× 3 →V = 108V = 324
A prism with the same base and height has a volume of B · h = 324. The pyramid is one third of that value: 108.

Try it with an example

Example: a pyramid with a square base of side 6, which means a base area of 36, and a height of 9. Both values are already stored in the link to the calculator.

Base area B
36
Height h
9
Result
V = 108.00, a prism of these sizes 324.00

Open the calculator with these numbers

The calculator reads the values from the page address and shows the result right away. You can change them freely.

How the calculator works

The calculator works out the volume with ⅓ · B · h and rounds the result to two decimal places. The first field of the form is the base area, not an edge length, so for a square with a side of 6 you have to enter 36. The calculator also shows the product B · h, which is the volume of a prism with the same data, and a drawing with the values labeled. The base area and the height must be greater than zero. The unit label (cm or inches) follows the unit switch in the page header, but the calculator does not convert the numbers you enter. It does not handle a truncated pyramid.

Why the volume of a pyramid has a factor of ⅓

A prism with base area B and height h has a volume of B · h. A pyramid with the same base and height has exactly one third of that volume. A cube can be cut into three identical pyramids that share one apex, and each of them has a volume equal to one third of the cube. For B = 36 and h = 9 we have 324 ÷ 3 = 108.

The same rule of one third applies to a cone and a cylinder. The volume of a cone is in the cone volume calculator, the volume of a cylinder in the cylinder volume calculator and the volume of a cube in the cube volume calculator. The rule of one third for a cone is explained in Volume of a Cone, and the cylinder is covered in Cylinder Volume.

Volume of a square, triangular and hexagonal pyramid

The volume formula is always the same, and the base area depends on the shape of the base. For a square pyramid the base area is B = a². For a rectangular base it is B = a · b, for example 8 · 5 = 40. For a triangular base it is B = ½ · b · hb, where hb is the height of the base triangle. The area of a rectangle is in the rectangle area calculator, and the area of a triangle in the triangle area calculator.

For a regular hexagonal pyramid with a base edge a the base area is B = (3√3 ÷ 2) · a². For a = 4 that is 41.57, so with a height of 9 the volume is 124.71. The area of a triangle with three known sides can be found with Heron's formula in the Heron's formula calculator, and the triangle area is described in Triangle Area.

The height of a pyramid and the slant height

The height of a pyramid joins the apex to the center of the base and is perpendicular to the base. It should not be confused with the slant height, the height of a side face, which is longer. In a regular square pyramid with a base edge a and a slant height l the height of the pyramid follows from the Pythagorean theorem: h = √(l² − (a ÷ 2)²).

For a = 10 and l = 13 you get h = √(169 − 25) = √144 = 12, and the volume is ⅓ · 100 · 12 = 400. A right triangle with sides 5, 12 and 13 can be checked in the Pythagorean theorem calculator, and the formula is described in The Pythagorean Theorem.

A truncated pyramid and the surface area

A truncated pyramid (frustum) has two parallel bases with areas B₁ and B₂ and a height h. Its volume is V = ⅓ · h · (B₁ + √(B₁ · B₂) + B₂). For B₁ = 36, B₂ = 9 and h = 6 you get ⅓ · 6 · (36 + 18 + 9) = 126. The calculator on the page handles only a full pyramid, so this formula has to be worked out by hand.

The total surface area is the sum of the base area and the areas of the side faces. For a regular square pyramid with a = 10 and l = 13 the side faces add up to 4 · ½ · 10 · 13 = 260, and the total is 100 + 260 = 360. Volume and surface area have different units, cubic and square, so they cannot be compared. A similar calculation for a sphere can be done in the sphere volume calculator.

Four worked examples

You can repeat each example in the pyramid volume calculator.

1. A pyramid with a square base a = 6 and h = 9

The basic calculation.

  1. Find the base area: 6² = 36.
  2. Enter B = 36 and h = 9.
  3. Compute ⅓ · 36 · 9.
  4. The volume is 108, while a prism of these sizes would have 324.

2. A pyramid with a rectangular base 8 × 5 and h = 12

Base area from the product of the sides.

  1. Find the base area: 8 · 5 = 40.
  2. Enter B = 40 and h = 12.
  3. Compute ⅓ · 40 · 12.
  4. The volume is 160.

3. A pyramid with a right triangle base with legs 6 and 8, h = 10

The area of a triangular base.

  1. Find the base area: ½ · 6 · 8 = 24.
  2. Enter B = 24 and h = 10.
  3. Compute ⅓ · 24 · 10.
  4. The volume is 80.

4. A regular square pyramid with a base edge of 10 and a slant height of 13

The height from the Pythagorean theorem.

  1. Find h = √(13² − 5²) = √144 = 12.
  2. Find the base area: 10² = 100.
  3. Enter B = 100 and h = 12.
  4. The volume is 400.

Common mistakes when finding the volume of a pyramid

  • Leaving out the factor ⅓ — without dividing by 3 you get the volume of a prism, three times too large.
  • Entering an edge instead of the base area — the calculator expects the base area, so for a square with a side of 6 you have to enter 36.
  • Using the slant height instead of the height — the slant height is longer than the height, so the result would be too large.
  • Confusing volume with surface area — volume has a cubic unit and area has a square unit.
  • Mixing units — the base area and the height must come from the same unit of length.
  • Applying the formula to a truncated pyramid — a truncated pyramid has a separate formula with two base areas.
  • Getting the area of a triangular base wrong — a forgotten factor of ½ in the triangle area doubles the result.

Frequently asked questions

What is the formula for the volume of a pyramid?

The volume of a pyramid is V = ⅓ · B · h, where B is the base area and h is the height. For B = 36 and h = 9 the result is 108.

Why is the volume of a pyramid one third of a prism?

A pyramid has exactly one third of the volume of a prism with the same base and height. A cube can be cut into three identical pyramids.

What is the formula for the volume of a regular square pyramid?

Use V = ⅓ · a² · h, where a is the base edge and h is the height. For a = 6 and h = 9 the result is 108.

How do you find the volume of a triangular pyramid?

Find the area of the base triangle as ½ · b · h, then use the volume formula. For legs 6 and 8 and a height of 10 the result is 80.

How do you find the volume of a pyramid from the slant height?

Find the height of the pyramid from h = √(l² − (a ÷ 2)²). For a = 10 and l = 13 the height is 12 and the volume 400.

How do you find the volume of a truncated pyramid?

Use V = ⅓ · h · (B₁ + √(B₁ · B₂) + B₂). For B₁ = 36, B₂ = 9 and h = 6 the result is 126.

How do you find the total surface area of a pyramid?

Add the base area to the areas of all the side faces. For a regular square pyramid with a = 10 and l = 13 that is 100 + 260 = 360.

Does the pyramid volume calculator ask for the base edge or the base area?

The calculator asks for the base area and the height. For a square with a side of 6 you therefore enter 36 as the base area, not 6.

Find the volume of your own pyramid

Enter the base area and the height in the pyramid volume calculator and read the volume of the pyramid and of a prism with the same sizes.

Work out the base area in the rectangle area calculator or the triangle area calculator, and the volume of a prism in the prism volume calculator.