Square Pyramid Calculator: Volume & Surface Area

Find a square pyramid's volume, base area, slant height, lateral area, and total surface area from its base edge and height, with exact step-by-step results.

Loading calculator…

The five square pyramid measures

A right square pyramid is defined by its base edge aa and its height hh — the apex sits directly above the center of a square base, and all 4 triangular side faces are identical isosceles triangles. Given aa and hh, every other measure follows directly:

V=13a2hs=h2+(a2)2V = \frac{1}{3}a^2h \qquad s = \sqrt{h^2 + \left(\frac{a}{2}\right)^2} L=aa2+4h2B=a2A=B+LL = a\sqrt{a^2 + 4h^2} \qquad B = a^2 \qquad A = B + L

Volume is exactly one-third of the prism sharing the same base and height — the same relationship a cone has to its enclosing cylinder. The slant height ss comes from the Pythagorean theorem: it's the hypotenuse of the right triangle formed by the height hh and half the base edge a/2a/2.

Tip: Three different "heights" show up here: the height hh (apex to base CENTER), the slant height ss (apex to a base EDGE'S MIDPOINT), and the lateral edge ee (apex to a base CORNER). They're always ordered h<s<eh < s < e — mixing them up is the single most common pyramid mistake.

Worked example: a = 6, h = 4

s=16+9=25=5V=13(36)(4)=48s = \sqrt{16 + 9} = \sqrt{25} = 5 \qquad V = \frac{1}{3}(36)(4) = 48 L=636+64=6100=60A=6(6+10)=96L = 6\sqrt{36 + 64} = 6\sqrt{100} = 60 \qquad A = 6(6 + 10) = 96

Because a=6a = 6 and h=4h = 4 are both whole numbers here, every measure comes out EXACT — even the slant height and lateral area, which involve a square root, collapse to bare integers because a2+4h2=100a^2 + 4h^2 = 100 happens to be a perfect square.

Worked example: a = 6, h = 8

s=64+9=738.5440s = \sqrt{64 + 9} = \sqrt{73} \approx 8.5440

This time a2+4h2=292=4×73a^2 + 4h^2 = 292 = 4 \times 73 is NOT a perfect square, so the slant height stays an irrational 73\sqrt{73} — still an exact closed form, just not a whole number.

Worked example: a = 1, h = 1 (a fractional exact form)

s=1+0.25=1.25=1251.1180s = \sqrt{1 + 0.25} = \sqrt{1.25} = \frac{1}{2}\sqrt{5} \approx 1.1180

Even when the radicand isn't a perfect square, the slant height's coefficient can still simplify to a clean fraction like 12\frac{1}{2} instead of collapsing all the way to a whole number — the same fractional-coefficient pattern that shows up in an equilateral triangle's height formula. The volume here is also NOT a whole number: V=13(1)(1)=130.3333V = \frac{1}{3}(1)(1) = \frac{1}{3} \approx 0.3333, since 3 doesn't divide 12×11^2 \times 1 evenly.

Tip: A perfect-square radicand doesn't always give a whole-number slant height either: with a = 3, h = 2, a2+4h2=25a^2 + 4h^2 = 25 is a perfect square, but its root (5) is odd, so the slant height is the clean fraction 52=2.5\frac{5}{2} = 2.5, not a whole number.

Common mistakes

  • Forgetting the 1/3 factor. A pyramid's volume is always ONE-THIRD of the prism sharing its base and height — never the full base area times height.
  • Using h instead of s in the lateral area. Lateral area is built from the slant height, not the pyramid's height — swapping them always understates the true surface area, since hh is always less than ss.
  • Confusing the slant height with the lateral edge. The slant height ss goes to a base edge's MIDPOINT; the lateral edge ee goes all the way to a base CORNER — they're two different lengths, with s<es < e always.

Where this shows up

  • Pyramids, tents, roof structures: volume tells you the enclosed space; lateral area tells you how much material (canvas, roofing, cladding) covers the sloped sides.
  • The cube's hidden pyramids: a cube can be split into 3 identical square pyramids of equal volume, all sharing the cube's center as their common apex.
  • Extending to a frustum: slicing off a square pyramid's apex parallel to the base produces a pyramid frustum, whose formulas build directly on the same base-edge and height relationships.

A right square pyramid is fully determined by its base edge and height — knowing just aa and hh is always enough to find its volume, slant height, lateral area, base area, and total surface area, with the square's own area formula sitting at its base.

Frequently asked questions

What are the formulas for a square pyramid?
With base edge a and height h: volume V = (1/3)a²h, slant height s = √(h² + (a/2)²), lateral (side) area L = a√(a² + 4h²), base area B = a², and total surface area A = B + L.
Why is the volume one-third of a prism's?
A pyramid is exactly one-third of the prism (or box) that shares the same base and height — the same 1/3 relationship a cone has to its enclosing cylinder.
What is slant height, and how is it different from the pyramid's height?
The height h runs straight down from the apex to the base's CENTER; the slant height s runs from the apex to the MIDPOINT of a base edge instead — a shorter, slanted path found via s = √(h² + (a/2)²), the Pythagorean theorem applied to the right triangle formed by h, half the base edge, and s.
What is the most common mistake with pyramid surface area?
Using the height h instead of the slant height s when computing lateral area. Lateral area is always built from a·s, not a·h — using h in place of s understates the true surface area, since h is always less than s.
Is a pyramid's lateral edge the same as its slant height?
No — a right square pyramid has three distinct 'height' measures: the height h (apex to base center), the slant height s (apex to a base edge's midpoint), and the lateral edge e (apex to a base corner). They're always ordered h < s < e.
How do I find the total surface area of a square pyramid?
Add the base area to the lateral area: A = B + L = a² + a√(a² + 4h²). For example, with a = 6 and h = 4, A = 36 + 60 = 96.
Does the volume always come out to a whole number when a and h are whole numbers?
No — V = a²h/3 is only a whole number when 3 divides a²h evenly. For example, a = 1 and h = 1 gives V = 1/3 ≈ 0.3333, even though both inputs are whole numbers.
How is the square pyramid related to the cube and the square?
A square pyramid's base is a plain square, so its base-area formula a² is identical to the square's own area formula. A cube can even be split into 3 pyramids of equal volume sharing a common apex, though the cube's own volume formula (a³) is unrelated to the pyramid's 1/3 rule.

Related calculators