Square Pyramid Calculator

Enter a square pyramid's base edge length and vertical height to get its volume (V = a²h/3), total surface area, slant height, and lateral edge.

Quick Facts

Volume formula
V = (1/3)a²h
One-third the base area times the vertical height.
Slant height formula
l = √(h² + (a/2)²)
Apex to the midpoint of a base edge, used for face area.
Surface area formula
A = a² + 2al
Base square plus the four triangular faces.

Your Results

Calculated
Volume
-
V = a²h / 3
Total Surface Area
-
A = a² + 2al
Slant Height
-
l = √(h² + (a/2)²)
Lateral Edge
-
e = √(h² + a²/2)

Ready

Enter a base edge length and height, then press Calculate.

Formula and Method for the Square Pyramid Calculator

A square pyramid is a solid with a square base and four triangular faces that meet at a single apex directly above the center of the base (a "right" pyramid). Given the base edge length a and the vertical (perpendicular) height h, its volume is V = (1/3) × a² × h — one-third of the base area times the height, the same one-third factor that applies to every pyramid and cone regardless of base shape.

How the calculation works

Enter the base edge length and the vertical height, then choose the unit they are measured in. The calculator squares the base edge to get the base area (a²) and combines it with the height to get the volume, V = a²h/3. It also derives the slant height, l = √(h² + (a/2)²) — the hypotenuse of the right triangle formed by the height, half the base edge, and the line from the apex down the center of a triangular face to the midpoint of a base edge. From the slant height it computes the total surface area, A = a² + 2al (the base square plus the combined area of the four triangular faces). Finally it computes the lateral edge, e = √(h² + a²/2) — the distance from the apex to a base corner, using the half-diagonal of the base (a√2/2) instead of the half-edge.

Common mistakes

  • Using slant height instead of vertical height in the volume formula: V = a²h/3 requires the perpendicular height from the base to the apex, not the slant height along a face — using slant height will overstate the volume.
  • Confusing slant height with lateral edge: slant height runs to the midpoint of a base edge (used for face area); lateral edge runs to a base corner and is always the longer of the two.
  • Mixing units: keep the base edge and height in the same unit before entering them — convert inches to feet, or centimeters to meters, first.

Real-world applications

  • Architecture and monument design (roof pyramids, spires, and historical structures) use these formulas to estimate material volume and surface cladding.
  • Packaging and tent design use surface area to estimate how much material (canvas, cardboard, glass) is needed to cover a pyramidal shape.
  • Excavation and fill estimates for pyramidal stockpiles or hoppers use the volume formula to convert dimensions into cubic capacity.
  • Geometry and trigonometry instruction uses the pyramid's right triangles to teach the Pythagorean theorem in three dimensions.

Frequently Asked Questions

What is the formula for the volume of a square pyramid?
The volume of a square pyramid is one-third the base area times the height: V = (1/3) × a² × h, where a is the base edge length and h is the vertical (perpendicular) height from the base to the apex. For example, a pyramid with a 6 ft base edge and 9 ft height has a volume of (1/3)(36)(9) = 108 ft³.
How do you find the slant height of a square pyramid?
The slant height is l = √(h² + (a/2)²), found from the right triangle formed by the vertical height, half the base edge, and the slant height running down the center of a triangular face to the midpoint of a base edge.
How is the total surface area of a square pyramid calculated?
Total surface area is the base square plus the four triangular faces: A = a² + 2al, where a is the base edge and l is the slant height. Each triangular face has area (1/2)al, and there are four of them, giving 4 × (1/2)al = 2al.
What is the difference between slant height and lateral edge?
Slant height runs from the apex to the midpoint of a base edge and is used to find face area; lateral edge runs from the apex to a base corner (vertex) and is found with e = √(h² + a²/2). The lateral edge is always longer than the slant height.