Square Pyramid Calculator
Enter the base edge length and vertical height of a square pyramid to get its volume, total surface area, lateral surface area, base area, slant height, lateral edge length, base perimeter, and side-face angle instantly. Switch between metric and imperial units. The step-by-step panel shows exactly how every result is derived.
Square pyramid formulas
A square pyramid has a square base with side length a and a vertical height h measured from the centre of the base to the apex. From these two values every other property follows. The volume is V = (1/3) x a^2 x h: one-third of the volume of a prism with the same square base and height. The slant height s is the distance from the midpoint of a base edge to the apex, measured along the triangular face: s = sqrt(h^2 + (a/2)^2). Each triangular face has area (1/2) x a x s, and there are four of them, so the lateral surface area is L = 2 x a x s, which equals a x sqrt(a^2 + 4h^2) / 2 in fully expanded form. The total surface area adds the base: A = a^2 + 2as. The lateral edge e is the straight-line distance from any corner of the base to the apex: e = sqrt(h^2 + a^2/2). The side-face angle (also called the apothem angle) is the angle that each triangular face makes with the base: theta = arctan(h / (a/2)).
How to use this calculator
Enter the length of one side of the square base and the vertical height of the pyramid. The calculator instantly returns the volume, total surface area, lateral surface area, base area, slant height, lateral edge, base perimeter, and side-face angle. Switch between metric and imperial units with the unit selector at the top: all outputs update automatically. The step-by-step panel shows the arithmetic for every result using your actual numbers, so you can check each stage of the calculation or use it to follow along with a textbook problem. The chart shows how the volume and total surface area change as the height varies from zero to three times your input height, which makes it easy to see the cubic growth of volume versus the slower growth of surface area.
Volume vs surface area: why they scale differently
If you double the height of a square pyramid while keeping the base the same, the volume doubles (it is proportional to h). But if you scale every linear dimension by the same factor k, the volume grows as k^3 and the surface area grows as k^2. This is why the Great Pyramid of Giza, with a base edge of about 230 m, encloses roughly 2.6 million cubic metres: its massive linear dimensions are cubed for the volume calculation. Architects and engineers who work with pyramid shapes use this relationship when estimating material quantities: surface area drives the amount of cladding needed, while volume drives the amount of fill or the weight of the structure.
Slant height and lateral edge: what is the difference
The slant height s and the lateral edge e are two different diagonal measurements that are often confused. The slant height runs from the midpoint of a base edge up to the apex, staying on the surface of one triangular face. It is what you would measure if you placed a tape measure along the centre of a triangular face from bottom to top. The lateral edge runs from a corner of the base to the apex, following the ridge between two adjacent faces. Because the lateral edge starts at a corner rather than the midpoint of an edge, it is always longer than the slant height for any pyramid with a positive height. Slant height: s = sqrt(h^2 + (a/2)^2). Lateral edge: e = sqrt(h^2 + a^2/2). For the Great Pyramid, s is about 186 m and e is about 219 m.
Famous and notable square pyramids
| Pyramid | Base edge (m) | Height (m) | Volume (m^3) | Face angle (deg) |
|---|---|---|---|---|
| Great Pyramid of Giza | 230.4 | 138.8 | 2 583 283 | 51.8 |
| Pyramid of Khafre | 215.5 | 136.4 | 2 109 567 | 51.7 |
| Pyramid of Menkaure | 103.4 | 61.4 | 218 671 | 51.3 |
| Pyramid of the Sun (Teotihuacan) | 225 | 65.5 | 1 102 500 | 30.1 |
| Louvre Pyramid, Paris | 35.4 | 21.6 | 9 012 | 52.2 |
| Luxor Hotel, Las Vegas | 183 | 107 | 1 194 363 | 49.4 |
Real-world examples of square-based pyramids with approximate dimensions and proportions.
Frequently asked questions
What is the formula for the volume of a square pyramid?
V = (1/3) x a^2 x h, where a is the length of the base edge and h is the vertical height. This is identical to one-third of the volume of a rectangular prism with the same square base and height. For example, a pyramid with a base edge of 6 m and a height of 4 m has a volume of (1/3) x 36 x 4 = 48 cubic metres.
What is the slant height and how is it calculated?
The slant height s is the distance from the midpoint of a base edge to the apex, measured along the surface of a triangular face. It is calculated with the Pythagorean theorem: s = sqrt(h^2 + (a/2)^2). It is shorter than the lateral edge, which runs from a corner of the base to the apex.
How do you find the total surface area of a square pyramid?
Total surface area = base area + lateral surface area = a^2 + 2as, where a is the base edge and s is the slant height. The lateral surface area covers all four triangular faces: each triangle has area (1/2) x a x s, and there are four of them, giving 2as in total.
What is the lateral edge of a square pyramid?
The lateral edge e is the straight-line distance from any corner of the square base to the apex. It is calculated as e = sqrt(h^2 + (a/2)^2 + (a/2)^2) = sqrt(h^2 + a^2/2). It is always longer than the slant height because the corner is further from the centre of the base than the midpoint of a side is.
What angle do the triangular faces make with the base?
The side-face angle theta is arctan(h / (a/2)). It measures the tilt of each triangular face relative to the horizontal base. A flat, wide pyramid has a small theta, while a tall, steep pyramid has a theta close to 90 degrees. The Great Pyramid of Giza has a side-face angle of about 51.8 degrees.
How does the Great Pyramid of Giza compare to these formulas?
The Great Pyramid has a base edge of approximately 230.4 m and an original height of about 138.8 m (it has lost its capstone over time). Plugging in: volume = (1/3) x 230.4^2 x 138.8 = roughly 2.46 million cubic metres of stone, slant height = sqrt(138.8^2 + 115.2^2) = about 186 m, and the side-face angle = arctan(138.8 / 115.2) = approximately 51.8 degrees.
Can I use this calculator for problems where height is unknown?
This calculator takes the base edge and vertical height as its two primary inputs. If you know the slant height instead of the vertical height, you can find h first: h = sqrt(s^2 - (a/2)^2). If you know the volume and base edge, h = 3V / a^2. Once you have h, enter both values into the calculator.