On this page
One third, whatever the base
The volume of a pyramid is V = ⅓Bh: one third of the base area times the height. The base can be a square, a rectangle, a triangle, a hexagon or an outline no formula has a name for — as long as the solid tapers in straight lines to a single apex, the third holds.
A quick way to believe it: three identical square pyramids, each with its apex at a corner, fit together to fill a cube exactly. For bases that do not dissect so neatly the same factor follows from Cavalieri's principle, below. This calculator handles a rectangular base; for any other, find its area separately and use ⅓ × area × height.
Setting it beside the matching box makes the size concrete. The worked example, an 8 by 6 base with a height of 12, would enclose 576 cubic units as a rectangular box; the pyramid on the same base holds 192, exactly a third. If a pyramid-shaped object seems to hold far more than that, the height being used is probably a sloping edge rather than the vertical.
Two different slant heights on a rectangular pyramid
On a square pyramid all four triangular faces are the same, so there is one slant height. Stretch the base into a rectangle and the faces split into two pairs. The faces standing on the long sides of the base rise more steeply, because the apex is closer to them horizontally; the faces on the short sides lean further back.
Each slant height is the hypotenuse of a right triangle made from the height and half of the other base dimension. Over the long sides it is √(h² + (w/2)²); over the short sides it is √(h² + (l/2)²). The calculator reports both, labelled by the side they rise from.
The Great Pyramid as a worked example
The Great Pyramid of Giza was built with a square base about 230.3 m on each side and an original height of about 146.6 m. Its volume is therefore ⅓ × 230.3² × 146.6 ≈ 2.59 million cubic metres — enough to fill a thousand Olympic swimming pools.
Its slant height, from the middle of a base edge to the apex, is √(146.6² + 115.2²) ≈ 186.4 m, and each face rises at almost exactly 51.8°. The pyramid has since lost its outer casing and its tip, so today it stands about 8 m shorter; plug in 138.5 m and you can see how much stone that is.
Oblique pyramids and Cavalieri
If the apex is not above the centre of the base the pyramid leans, but its volume does not change. Slice any two pyramids with the same base and height at the same level and the cross-sections have the same area, because each slice is a scaled copy of the base; Bonaventura Cavalieri's principle says solids whose slices match at every height have equal volume.
This is also the cleanest route to the third. Every slice of a pyramid is the base scaled down in proportion to the distance from the apex, and adding up those shrinking areas from bottom to top gives exactly one third of a prism with the same base and height.