Home › Math & Science › Pyramid Volume Calculator
Pyramid Volume Calculator
Pyramids fool the eye: a solid pyramid holds only a third of what the same base and height would suggest as a box, and forgetting that third ruins everything from homework to hopper and roof estimates. This free pyramid volume calculator takes a square or rectangular base and a height, and returns the volume, the slant height and the full surface area, in metric or imperial units.
How it works
A pyramid's volume is one third of the box that shares its base and height. That third is not an approximation — it is exact for any pyramid with any base, a fact you can feel by building a hollow pyramid and pouring it into its box three times to fill it. So the calculation is always base area times height, divided by three. For a square base the area is the side squared; for a rectangular base it is length times width.
The slant height is a different measurement from the vertical height, and confusing the two is the classic pyramid error. The vertical height is what volume needs — the straight line from the apex down to the center of the base. The slant height runs down the face itself, from the apex to the midpoint of an edge, and it is what you need for surface area or for cutting triangular panels. A rectangular pyramid has two slant heights, one for each pair of faces, and this calculator works out both when you pick the rectangular base.
Worked example
A garden pyramid trellis has a square base of 6 feet and a vertical height of 4 feet, and you want the volume of soil and the area of netting. Step 1: base area = 6² = 36 ft². Step 2: volume = (1/3) × 36 × 4 = 48 ft³. Step 3: slant height = √(4² + 3²) = √25 = 5 ft — a tidy 3-4-5 triangle. Step 4: surface area = 36 + 2 × 6 × 5 = 96 ft². Enter side 6 and height 4 with feet selected above and the calculator shows the same figures.
Tips for real pyramids
Measure the vertical height, not the slope of a face — on an existing structure, the face angle makes the slant easy to measure and tempting to use, but the volume formula wants the plumb-line height. If the pyramid is a hopper or bin you plan to fill, remember the pile inside rarely fills to a perfect point, so treat the result as the geometric maximum. And for an open pyramid shape — a roof, a shade, a tent — the surface figure that matters is the faces alone; the base term in the table is there for closed solids.
FAQ
How do you calculate the volume of a pyramid?
Multiply the area of the base by the height, then divide by 3: V = (1/3) × base area × height. For a square pyramid with base side 6 and height 4, that is (1/3) × 36 × 4 = 48 cubic units. The divide-by-3 is exact for every pyramid shape, whatever the base — a pyramid always holds exactly one third of the box built on the same base and height.
What is the slant height of a pyramid?
The slant height is the distance from the apex down the middle of a triangular face to the midpoint of a base edge — the height of the triangular face itself. For a square pyramid it is √(h² + (a/2)²), where h is the vertical height and a the base side. With height 4 and base side 6, the slant height is √(16 + 9) = 5. You need it for surface area and for cutting material, never for volume.
What is the surface area of a square pyramid?
The base plus the four triangular faces: A = a² + 2 × a × slant height. For base side 6 and slant height 5, that is 36 + 60 = 96 square units. If the pyramid is open at the bottom — like a roof or a lampshade — leave the base term out and count only the faces.
Does the formula change for a rectangular pyramid?
The volume formula does not change: base area is just length × width instead of side squared. The surface area gets slightly more involved, because the two pairs of faces lean at different angles — each pair has its own slant height, one built from half the length and one from half the width. This calculator handles both slant heights when you choose the rectangular base.
What volume was the Great Pyramid of Giza?
About 2.6 million cubic meters. Its base is roughly 230 meters square and its original height about 147 meters, so (1/3) × 230² × 147 ≈ 2.59 million m³ of mostly solid limestone. Enter 230 and 147 in this calculator with meters selected and you get the same figure — a useful check on the formula at a very large scale.