Geometry

Volume of a Pyramid

The volume of a pyramid is V=13BhV = \frac{1}{3}Bh, where BB is the area of the base and hh is the perpendicular height from the base up to the apex (the tip).

V=13BhV = \frac{1}{3}Bh

Try it with your numbers

Show every step

That single formula covers every base shape, from squares to hexagons. The real skill is finding BB and the true height hh, and the sections below show how, including slant height, working backward and frustums.

Volume of a Pyramid Formula: What B and h Mean

BB is an area, not a side length. For a square base of side ss, B=s2B = s^2 (see the area of a square), and for a rectangle, B=lwB = lw (see the area of a rectangle). Any polygon works, as long as you can find its area. The answer is in cubic units, so a base in square metres and a height in metres give cubic metres.

Both measurements must use the same unit before you multiply. A base in square centimetres with a height in metres gives a number that means nothing. Convert first, then calculate.

The height trap

The height hh is the straight-down distance from the apex to the base plane, meeting the base at a right angle. The slant height runs along a triangular face and is always longer, so using it makes the volume too big.

Diagrams usually show hh as a dashed vertical line inside the pyramid, often marked with a small right-angle square. If a problem gives only a sloping length, the true height has to be built from it. That is covered in the slant height section below.

Quick check

Find the volume of a pyramid with base area 30 cm230\text{ cm}^2 and height 7 cm7\text{ cm}.

Why Is the Volume of a Pyramid One Third of a Prism?

Picture a cube with side ss. Choose one corner and join it to every corner of the three faces that do not touch it. The cube splits into three identical pyramids with no gaps and no overlaps. Each has a base of area s2s^2 and a height of ss, so each holds one third of the cube’s volume:

Vpyramid=s33=13⋅s2⋅sV_{\text{pyramid}} = \frac{s^3}{3} = \frac{1}{3}\cdot s^2 \cdot s

This works for one special pyramid. To reach every pyramid, slice it parallel to the base. At distance xx from the apex, the slice is a scaled copy of the base with area B(xh)2B\left(\frac{x}{h}\right)^2. Adding up the slices gives:

V=∫0hB x2h2 dx=Bh2⋅h33=Bh3V = \int_0^h B\,\frac{x^2}{h^2}\,dx = \frac{B}{h^2}\cdot\frac{h^3}{3} = \frac{Bh}{3}

The 13\frac{1}{3} is the same one that appears when you integrate x2x^2. It exists because the slices shrink with the square of the distance to the tip, not because someone picked it. Cavalieri’s principle adds a useful consequence: the apex can sit anywhere above the base plane, and the volume stays the same as long as the perpendicular height does.

How to Find the Volume of a Pyramid Step by Step

The method is the same every time, whatever the base:

  1. Identify the base shape and find its area BB.
  2. Find the perpendicular height hh, using the same length unit as the base.
  3. Multiply BB by hh, then divide by 33.
  4. Write the answer in cubic units.

Example 1. A square pyramid has a base edge of 9 m9\text{ m} and a height of 12 m12\text{ m}.

B=92=81 m2B = 9^2 = 81\text{ m}^2

V=13(81)(12)=324 m3V = \frac{1}{3}(81)(12) = 324\text{ m}^3

A faster route is to divide whichever number is a multiple of 33 first. Here 12÷3=412 \div 3 = 4, so the work becomes 81⋅4=32481 \cdot 4 = 324, with no fraction to carry. As a check, the matching prism holds 81⋅12=972 m381 \cdot 12 = 972\text{ m}^3, and 972÷3=324972 \div 3 = 324.

Volume of a Pyramid When You Only Know the Slant Height

Problems often give the slant height ℓ\ell, the distance from the apex down the middle of a triangular face to the midpoint of a base edge. Inside a regular square pyramid there is a right triangle: the height hh is one leg, half the base edge is the other leg, and ℓ\ell is the hypotenuse. The Pythagorean theorem then gives:

h=ℓ2−(a2)2h = \sqrt{\ell^2 - \left(\tfrac{a}{2}\right)^2}

Example 2. A regular square pyramid has base edge a=10 cma = 10\text{ cm} and slant height ℓ=13 cm\ell = 13\text{ cm}.

Half the base edge is 55, so h=132−52=169−25=144=12 cmh = \sqrt{13^2 - 5^2} = \sqrt{169 - 25} = \sqrt{144} = 12\text{ cm}. This is a 5,12,135, 12, 13 triangle, one of the common Pythagorean triples, so it is worth spotting on sight. The base area is B=102=100B = 10^2 = 100, so:

V=13(100)(12)=400 cm3V = \frac{1}{3}(100)(12) = 400\text{ cm}^3

Be careful about which length you are given. If the problem gives the lateral edge (the slanted edge from a base corner to the apex), the right triangle changes. The horizontal leg becomes half the base diagonal, a22\frac{a\sqrt{2}}{2}, not half the edge. With a=10a = 10 and a lateral edge of 1313, you get h2=169−50=119h^2 = 169 - 50 = 119, so h=119h = \sqrt{119}, which is not a whole number.

Try this: A regular square pyramid has base edge 1414 and slant height 2525. Find hh first, then VV. (Look for a 7,24,257, 24, 25 triangle.)

Volume of Triangular and Hexagonal Pyramids

Only the base area changes. For a triangular base, B=12btB = \frac{1}{2}bt (see the area of a triangle), where tt is the triangle’s own height, not the pyramid’s. Putting that into the formula gives V=16bthV = \frac{1}{6}bth. For a regular hexagon with side ss, the base area is 332s2\frac{3\sqrt{3}}{2}s^2, as in the area of a regular hexagon.

Base Base area BB Pyramid volume
Square, side ss s2s^2 13s2h\frac{1}{3}s^2h
Rectangle, ll by ww lwlw 13lwh\frac{1}{3}lwh
Triangle, base bb, height tt 12bt\frac{1}{2}bt 16bth\frac{1}{6}bth
Regular hexagon, side ss 332s2\frac{3\sqrt{3}}{2}s^2 32s2h\frac{\sqrt{3}}{2}s^2h

Example 3. A pyramid has a regular hexagonal base with side 44 and height 99.

B=332(42)=332(16)=243B = \frac{3\sqrt{3}}{2}(4^2) = \frac{3\sqrt{3}}{2}(16) = 24\sqrt{3}

V=13(243)(9)=723≈124.71 cubic unitsV = \frac{1}{3}(24\sqrt{3})(9) = 72\sqrt{3} \approx 124.71 \text{ cubic units}

Keep 3\sqrt{3} exact until the last step. Rounding 3\sqrt{3} to 1.71.7 early shifts the answer by almost a whole unit here.

How to Find the Height or Base Edge From the Volume

When the volume is given and a dimension is missing, undo the 13\frac{1}{3} by multiplying by 33 on both sides:

h=3VBB=3Vhh = \frac{3V}{B} \qquad B = \frac{3V}{h}

A square pyramid has volume 9696 and height 88. Then B=3⋅968=36B = \frac{3 \cdot 96}{8} = 36. Since B=s2B = s^2, the edge is s=6s = 6. The step students skip is the square root: the formula returns an area, and the edge is its positive root. A negative length has no meaning, so only +6+6 is kept.

Fractions and decimals follow the same pattern. If h=52h = \frac{5}{2} and B=12B = 12, then V=13⋅12⋅52=10V = \frac{1}{3}\cdot 12 \cdot \frac{5}{2} = 10. Cancel the 33 into the 1212 first, and the 22 into what remains, instead of working with a decimal like 0.3330.333.

Volume of Oblique Pyramids and Frustums

An oblique pyramid leans: its apex is not above the centre of the base. The formula does not change, because every horizontal slice has the same area as in an upright pyramid of the same base and height. What you need is the perpendicular height, measured straight down to the base plane. A slanted edge length is a distractor.

A frustum is a pyramid with the top sliced off parallel to the base. It has two bases, a large B1B_1 and a small B2B_2, a distance hh apart.

Frustum volume

V=h3(B1+B2+B1B2)V = \frac{h}{3}\left(B_1 + B_2 + \sqrt{B_1B_2}\right). Averaging the two base areas and multiplying by hh overshoots, because the solid narrows faster than a straight average assumes.

Take a square frustum with bottom edge 66, top edge 33 and height 44. The formula gives 43(36+9+18)=84\frac{4}{3}(36 + 9 + 18) = 84. Subtraction confirms it. The top is a half-size copy of the bottom (see similar triangles for why the heights scale the same way), so the full pyramid is 88 tall and the removed tip is 44 tall. Then 13(36)(8)−13(9)(4)=96−12=84\frac{1}{3}(36)(8) - \frac{1}{3}(9)(4) = 96 - 12 = 84. The averaging mistake would give 22.5⋅4=9022.5 \cdot 4 = 90, which is wrong.

Quick check

An oblique pyramid has base area 24 cm224\text{ cm}^2, a slanted edge of 20 cm20\text{ cm} and a perpendicular height of 6 cm6\text{ cm}. Find its volume.

Pyramid Volume vs Cone, Prism and Tetrahedron Formulas

A cone is a pyramid with a round base, so it uses the same rule: V=13πr2hV = \frac{1}{3}\pi r^2 h (see the volume of a cone). A prism or cylinder has constant cross-section, so its volume is BhBh with no third. For a box, that is length times width times height. The pyramid’s third is the price of tapering to a point.

Volume and surface area are often confused. Volume uses the perpendicular height hh. Surface area of a regular pyramid uses the slant height: SA=B+12pℓSA = B + \frac{1}{2}p\ell, where pp is the base perimeter. Asking which of the two lengths a formula needs is the quickest way to avoid the height trap.

There is also a link to linear algebra. A tetrahedron (a triangular pyramid) with one vertex at the origin and the other three at the tips of vectors a\mathbf{a}, b\mathbf{b}, c\mathbf{c} has volume 16∣det⁡[a b c]∣\frac{1}{6}\left|\det[\mathbf{a}\ \mathbf{b}\ \mathbf{c}]\right|, using the determinant of a 3×3 matrix. For vertices (2,0,0)(2,0,0), (0,3,0)(0,3,0) and (0,0,4)(0,0,4):

V=16∣det⁡(200030004)∣=246=4V = \frac{1}{6}\left|\det\begin{pmatrix}2 & 0 & 0\\ 0 & 3 & 0\\ 0 & 0 & 4\end{pmatrix}\right| = \frac{24}{6} = 4

This matches 13⋅(12⋅2⋅3)⋅4=4\frac{1}{3}\cdot\left(\frac{1}{2}\cdot 2 \cdot 3\right)\cdot 4 = 4.

How to Check Your Pyramid Volume Answer

Three quick checks catch most errors:

  • The pyramid must be exactly one third of its matching prism, so compute BhBh and confirm your answer is a third of it.
  • The pyramid must fit inside its bounding box, so the answer can never exceed BhBh.
  • The unit must be cubic. Square units mean the height was dropped, and plain units mean the base area was mistaken for a length.

Scale makes a good sanity test too. The Great Pyramid of Giza was originally about 230 m230\text{ m} along each base edge and about 147 m147\text{ m} tall. The formula gives 13(2302)(147)≈2.6\frac{1}{3}(230^2)(147) \approx 2.6 million cubic metres, which agrees with the figure usually quoted. The same calculation sizes a roof hip, a tent, a hopper or a pile of gravel that settles into a pyramid.

When a result looks off, compare it with the box around it. A pyramid that fills more than a third of its box has a mistake somewhere, and it is usually the missing division by 33.

Quick check

A student finds the volume of a pyramid with base area 48 cm248\text{ cm}^2 and height 9 cm9\text{ cm} and gets 432 cm3432\text{ cm}^3. By what factor is this off, and what is the correct volume?

Practice problems

0 of 5 solved

  1. A pyramid has a rectangular base 8 m8\text{ m} by 5 m5\text{ m} and a height of 9 m9\text{ m}. Find its volume.

  2. A square pyramid has volume 144 cm3144\text{ cm}^3 and height 12 cm12\text{ cm}. Find the base edge.

  3. A regular square pyramid has base edge 1616 and slant height 1717. Find its volume.

  4. A pyramid has a regular hexagonal base with side 22 and a height of 66. Find its exact volume.

  5. A square frustum has bottom edge 1010, top edge 44 and height 66. Find its volume.

Common questions

What is the formula for the volume of a pyramid?

V=13BhV = \frac{1}{3}Bh, where BB is the area of the base and hh is the perpendicular height from the base to the apex. It works for every base shape, because only the base area and the height matter.

Why is the volume of a pyramid divided by 3?

A pyramid fills exactly one third of the prism that has the same base and height. A cube splits into three identical pyramids that meet at one corner, which shows the factor directly.

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

Use the Pythagorean theorem to turn the slant height into the true height. For a regular square pyramid with base edge aa and slant height ℓ\ell, h=ℓ2−(a/2)2h = \sqrt{\ell^2 - (a/2)^2}. Then apply V=13BhV = \frac{1}{3}Bh.

What is the volume of a square pyramid?

V=13s2hV = \frac{1}{3}s^2h, where ss is the side of the square base and hh is the perpendicular height. A base of side 99 and height 1212 gives V=13(81)(12)=324V = \frac{1}{3}(81)(12) = 324.

Does the formula change for a triangular or hexagonal pyramid?

No. Only the base area changes. A triangular base gives B=12btB = \frac{1}{2}bt, and a regular hexagon of side ss gives B=332s2B = \frac{3\sqrt{3}}{2}s^2. The 13\frac{1}{3} and the height stay the same.

How do you find the volume of a frustum of a pyramid?

Use V=h3(B1+B2+B1B2)V = \frac{h}{3}(B_1 + B_2 + \sqrt{B_1B_2}), where B1B_1 and B2B_2 are the two base areas. You can also subtract the small removed pyramid from the full pyramid.

Up next