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
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.
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
- Standard solid geometry (volume, surface area, diagonals and slant heights of cubes, rectangular prisms, cylinders, cones, spheres and right square pyramids). Results are mathematically calculated from the supplied values, subject to input and display precision; π is used at full floating-point precision internally.
- OpenStax — Contemporary Mathematics (chapter on volume and surface area)
- Khan Academy — Volume and surface area (accessible explainer, not the primary source)
- Reviewed: 2026-07-31
Related calculators
Last updated: 2026-07-31 · v1.0.0 · Report an error