Square-based pyramid calculator — volume and surface area

A square-based pyramid calculator that also handles regular triangular and hexagonal pyramids. Enter the base edge and the perpendicular height, the slant height or the slant edge, and get the volume of the pyramid, the area of its triangular faces, the total surface area, the slant height, the angles and a 3D drawing you can rotate.

Enter all lengths in the same units. Rotate the figure with your mouse, by swiping sideways or with the arrow keys.

hl
Volume and surface area
V = 48L = 60S = 96

Volume of the pyramid ≈ 48, total surface area ≈ 96.

Step-by-step breakdown
  1. Perpendicular height h4
  2. Slant height l5
  3. Slant edge5.83
  4. Base area A36
  5. Inradius of the base r3
  6. Circumradius of the base R4.24
  7. Angle between a triangular face and the base53.13°
  8. Angle between a slant edge and the base43.31°

Step-by-step working

  1. Base area — a square, a²:

    A = 36
  2. Inradius of the base — the distance from its centre to the midpoint of an edge:

    r = 3
  3. Slant height, by Pythagoras’ theorem:

    l = √(h² + r²) = √(4² + 3²) = 5
  4. Area of the triangular faces — half the base perimeter × the slant height:

    L = ½ · 4 · 6 · 5 = 60
  5. Total surface area:

    S = A + L = 96
  6. Volume — a third of the base area × the perpendicular height:

    V = A · h / 3 = 36 · 4 / 3 = 48

Formula

V=A · h3

A is the base area and h the perpendicular height: V = ⅓Ah works for any pyramid. L is the area of the triangular faces — for a regular pyramid, half the base perimeter × the slant height l — and S = A + L is the total surface area.

How we got there

V = 48

The perpendicular height, the slant height and the slant edge are linked by Pythagoras’ theorem: the slant height l is the hypotenuse of a right-angled triangle whose other two sides are h and r, the distance from the centre of the base to the midpoint of an edge.

How to find the volume and surface area of a pyramid

  1. Find the base area

    A square-based pyramid with a base edge of 6 has a square base: A = 6² = 36.

  2. Find the slant height

    The perpendicular height is h = 4 and the centre of the base is r = 3 from each edge, so l = √(4² + 3²) = 5.

  3. Work out the surface area

    The base perimeter is 24, so L = ½ × 24 × 5 = 60 and S = 60 + 36 = 96.

  4. Work out the volume

    V = ⅓ × 36 × 4 = 48.

Still stuck on 3D shapes? Find a maths tutor for Year 12

Why a third

A cube can be cut into three identical pyramids that share a vertex. That is why a pyramid has a third of the volume of the prism with the same base and height.

The formula V = ⅓Ah holds for any pyramid, and even for a cone, whose base is a circle.

Three right-angled triangles

Most pyramid questions come down to three right-angled triangles: h, l and r (the distance from the centre of the base to the midpoint of an edge); h, the slant edge and R (the distance from the centre to a vertex); and l, the slant edge and half a base edge.

Find the one you need, and Pythagoras’ theorem or trigonometry gives the missing length or angle. GCSE Higher tier questions on Pythagoras and trigonometry in 3D often use a pyramid — for example, to find the angle between a slant edge and the base.

Common mistakes

  • Confusing the slant height with the perpendicular height of the pyramid.
  • Forgetting the ⅓ in the volume formula.
  • Using half the diagonal of the base instead of half the base edge when finding the slant height: for a square, the distance from the centre to an edge is a/2.

Frequently asked questions

V = ⅓Ah, where A is the area of the base and h is the perpendicular height. The formula works for any pyramid, not just a regular one. GCSE questions usually give it to you, but it is worth knowing by heart.

The height of a triangular face of a regular pyramid, measured from the apex to the midpoint of a base edge. Do not confuse it with the perpendicular height of the pyramid: the slant height is always longer.

Add the base to the triangular faces: S = A + L. In a regular pyramid the faces have a total area of L = ½ × base perimeter × slant height. For a square-based pyramid with a base edge of 6 and a slant height of 5: L = ½ × 24 × 5 = 60, so S = 36 + 60 = 96.

A pyramid whose base is a regular polygon, such as a square or an equilateral triangle, with the apex directly above the centre of the base. All its slant edges are equal, and its triangular faces are congruent isosceles triangles.

The slant edge e, the perpendicular height h and the distance R from the centre of the base to a vertex form a right-angled triangle, so h = √(e² − R²). For a square base with edge a, R = a√2 / 2 — half the diagonal of the base.

Yes: a tetrahedron is any pyramid with a triangular base, so all four of its faces are triangles. A regular tetrahedron is the special case in which all six edges are equal.

Is geometry your weak spot?

Book a free introductory lesson with a Mathema tutor. 30 minutes online, no commitment — we find the gap and the plan to close it.