Volume from base area and height

A pyramid is a solid that rises from a flat base to a single point, the apex. This page takes two numbers, the area of the base and the height of the apex above it, and returns the volume. Because the formula uses base area rather than a particular base shape, it covers square, rectangular, triangular, hexagonal and irregular bases alike. You can work out the base area first with whatever method suits the shape, then enter it here. The same rule applies to cones, which are pyramids with circular bases. The result is in cubic units of the length unit you used, so meters give cubic meters.

Pyramid volume as one third of base times height

Volume equals base area × height / 3. The factor of one third is a property of every pyramid and cone, regardless of the base. It means that a pyramid has exactly one third the volume of a prism with the same base and height. Euclid proved this in Book XII of the Elements, and the Greek mathematician Eudoxus is credited with the underlying exhaustion argument. A cube can be cut into three equal pyramids that meet at one corner, which gives a physical sense of the one third. Each of those pyramids has the cube's face as its base and the cube's edge as its height, so the three together fill the cube exactly and each has a volume of one third of the cube. Height means the perpendicular distance from the apex to the base plane, not the length of a sloping edge.

A pyramid with base area 12 and height 6

The page starts with a base area of 12 and a height of 6. Multiplying gives 72, and dividing by three gives a volume of 24 cubic units. Any base with an area of 12 gives the same answer. That could be a triangle with base 6 and height 4, a rectangle 3 by 4, or an odd shape you measured on a plan. The prism with the same base and height would have a volume of 72, and the pyramid is exactly a third of it. This ratio is a quick way to check results, and also a reminder that a pyramid holds far less than the box that surrounds it.

Square, hexagonal and circular bases

For a square pyramid with a base of 10 by 10, the base area is 100, and with a height of 9 the volume is 300. For a hexagonal base with side 4, the base area is (3 × square root of 3 / 2) × 16, about 41.569, and with height 7.5 the volume is about 103.92. For a cone with a radius of 3, the base area is pi × 9, about 28.274, and with a height of 5 the volume is about 47.12. The calculator treats all three the same way. Only the preparation of the base area differs, and that step is on you.

Perpendicular height versus slant height

The most common mistake with pyramids is using the slant height, the distance from the apex down a face to the midpoint of a base edge, in place of the vertical height. The slant height is always longer than the height, so it overstates the volume. In a square pyramid with base side b and height h, the slant height is the square root of h² + (b/2)². A pyramid with base side 10 and height 12 has a slant height of 13, and using 13 in place of 12 would inflate the volume by about 8 percent. Measure straight up from the base plane to the apex, or compute the height from the slant.

A large real-world scale

The Great Pyramid of Giza is often described with an original height near 147 meters and a base side near 230 meters. Treating those as illustrative round numbers, the base area is about 52,900 square meters and the volume comes to about 2.59 million cubic meters. Those figures are approximations, because the pyramid has lost its top and outer casing over time. The point of the example is the scale of the calculation, which is the same as for a small paperweight. Enter the base area in square meters and the height in meters, and the result is in cubic meters.

Truncated pyramids and sloping bases

This page covers a full pyramid that comes to a point. A pyramid with its top cut off, called a frustum, has a different formula that uses both the lower and upper base areas. The Moscow Mathematical Papyrus, from Egypt, contains a worked example of the volume of a truncated square pyramid. You can still use this page for a frustum by subtracting. Compute the volume of the full pyramid, compute the volume of the small pyramid that was removed from the top, and take the difference. Both calculations use the same one-third rule with their own base areas and heights.

Using the volume in practice

A volume turns into material quantities once you add a unit. A pile of gravel or sand in a rough cone has volume equal to a third of base area times height, which helps estimate loads. A pyramid-shaped roof void, a hopper or a concrete form follows the same rule. For a square-based gravel pile with base side 4 meters and height 1.5 meters, the base area is 16 and the volume is 8 cubic meters. A conical pile is similar, with the circular base area in the first input. Remember that real piles slump and settle, and that the dimensions you measure on a pile are approximate. Convert to the unit your supplier uses, for example cubic yards or cubic meters, after the calculation. The page does not convert units or account for density, packing or waste.

Perpendicular height, not slant height, for pyramids

The page needs a finite positive base area and height, and it works with the perpendicular height only. It does not check that your base area matches your base shape. It does not support slanted pyramids with a different formula, although the volume of an oblique pyramid with the same base area and perpendicular height is the same, a result known as Cavalieri's principle. Keep the area unit as the square of the length unit used for the height. Mixing square feet with a height in inches gives a wrong answer.