Pyramid Volume Calculator

Enter the base and the height of a rectangular pyramid. You get the volume and both slant heights, since a rectangular pyramid has two.

Known values

Height means straight up from the centre of the base to the apex, not along a sloping face or edge.

Scale drawing · updates as you type
Example — This is a worked example. Change the values above to solve your own.
Volume 192cm³
Base area 48cm²
Decimals
More properties
Slant height (along length) 12.3693 cm
Slant height (along width) 12.6491 cm

How this was solved

1

Pick the formula

V = ⅓Bh — the same third as a cone, and it holds for any base shape.

2

Base area

B = 8 × 6 = 48

3

Evaluate

V = ⅓ × 48 × 12 = 192 cm³

Have the AI walk through it Full explanation with the reasoning behind each step · 1 credit

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.

A rectangular pyramid has two slant heights. The triangular faces on the long sides lean at a different angle from the faces on the short sides, so each pair has its own slant height. Surface-area and roofing problems need the right one for each pair of faces; on a square base the two coincide.

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.

Frequently asked questions

What is the formula for the volume of a pyramid?
V = ⅓ × base area × height. For a rectangular base, V = ⅓ × l × w × h.
Does the one-third rule work for any base shape?
Yes. Whether the base is a triangle, square, hexagon or irregular outline, the volume is one third of the base area times the height.
Why does a rectangular pyramid have two slant heights?
Its faces come in two pairs that lean at different angles, so each pair has its own slant height: √(h² + (w/2)²) and √(h² + (l/2)²).
What is the volume of the Great Pyramid of Giza?
About 2.59 million cubic metres, using its original base of 230.3 m and height of 146.6 m.