Pyramid Calculator

Volume and surface areas of a right square pyramid from base edge and height.

What does this calculator do?

This calculator handles a right square pyramid: a square base with the apex directly above its centre. From the base edge and the vertical height it derives the base area, the slant height of the triangular faces, the volume (one third of base × height) and the lateral and total surface areas. Only square pyramids are supported — rectangular or oblique pyramids follow different formulas. Use any length unit — areas in that unit squared, volume in that unit cubed.

Formula

The slant height comes from half the base edge and the height:

B = a²
V = ⅓ × B × h
l = √((a/2)² + h²)
S_lateral = 2al
S_total = a² + 2al
Square pyramid diagramA right square pyramid with base edge a, height h and slant height l.ahl
Diagram not to scale.

How to use it

Enter the base edge and the vertical height (base centre to apex, perpendicular — not along a face). The slant height is derived and shown; each triangular face has area a × l ÷ 2.

Worked example

Base edge 6 and height 4: base area = 36, slant = √(9 + 16) = 5, volume = ⅓ × 36 × 4 = 48, lateral = 2 × 6 × 5 = 60, total = 36 + 60 = 96.

Formula version1.0.0
FormulaB = a² V = ⅓ × B × h l = √((a/2)² + h²) S_lateral = 2al S_total = a² + 2al
Precision4 decimals

Frequently asked questions

Slant height or edge length — which is l?

The slant height runs down the middle of a triangular face, from the apex to the midpoint of a base edge. The lateral edge (apex to a base corner) is longer: √((a√2/2)² + h²).

Does this work for the pyramids of Egypt?

They are square pyramids, so yes — the Great Pyramid has a ≈ 230 m and h ≈ 147 m, giving a volume around 2.6 million m³. Enter those values to check.

What about rectangular or triangular bases?

Not supported here — this page is deliberately scoped to square pyramids. V = ⅓Bh still holds for any pyramid, but the slant and surface formulas change with the base shape.

Sources

Related calculators

Last updated: 2026-07-31 · v1.0.0 · Report an error