What this calculator does
This tool computes the volume, the lateral surface area (the area of the four triangular sides), and the total surface area of a right square pyramid. A right square pyramid has a square base and an apex positioned directly above the center of that base. You only need two measurements: the base edge length a and the perpendicular height h.
How to use it
Enter the base edge length and the height in the same length unit (both in centimeters, both in inches, and so on). The results follow that unit: the volume is in cubic units (unit³) and the two areas are in square units (unit²). Both values must be greater than zero for a real pyramid.
The formulas explained
The volume is the base area times the height divided by three: \(V = \frac{1}{3} a^{2} h\). To find the side area we first need the slant height, which is the apothem of a triangular face measured from the midpoint of a base edge up to the apex: \(l = \sqrt{h^{2} + \left(\frac{a}{2}\right)^{2}}\). Each triangular face has area \(\frac{1}{2} a l\), and there are four of them, so the lateral area is \(S_{\text{side}} = 2 a l\). Adding the square base gives the total surface area \(S = a^{2} + 2 a l\). Note the slant height uses the face apothem, not the longer lateral edge.
Worked example
For a base edge a = 230.4 and height h = 146.6: \(a^{2} = 53084.16\), so $$V = \frac{1}{3} \times 53084.16 \times 146.6 \approx 2{,}594{,}045.95 \text{ unit}^{3}.$$ The slant height is $$l = \sqrt{146.6^{2} + 115.2^{2}} = \sqrt{34762.6} \approx 186.4474.$$ The lateral area is \(2 \times 230.4 \times 186.4474 \approx 85{,}914.96 \text{ unit}^{2}\), and the total surface area is \(53084.16 + 85914.96 \approx 138{,}999.12 \text{ unit}^{2}\).
More Worked Examples
These examples use a right square pyramid, where the apex sits directly above the center of the square base. The slant height \(l\) is the height of one triangular face, measured from the midpoint of a base edge up to the apex. It comes from the right triangle with legs \(h\) and \(a/2\):
$$l = \sqrt{h^2 + \left(\tfrac{a}{2}\right)^2},\quad V = \tfrac{1}{3}a^2h,\quad A_{\text{lat}} = 2al,\quad A_{\text{total}} = a^2 + 2al$$
Example 1: a = 6, h = 4 (unitless integers)
- Slant height: \(l = \sqrt{4^2 + 3^2} = \sqrt{16 + 9} = \sqrt{25} = 5\).
- Volume: \(V = \tfrac{1}{3}\cdot 6^2 \cdot 4 = \tfrac{1}{3}\cdot 36 \cdot 4 = \tfrac{144}{3} = \)48 cubic units.
- Lateral area: \(A_{\text{lat}} = 2 \cdot 6 \cdot 5 = 60\) square units (four triangles, each \(\tfrac{1}{2}\cdot 6\cdot 5 = 15\)).
- Total surface area: \(A_{\text{total}} = 6^2 + 60 = 36 + 60 = 96\) square units.
Example 2: a = 10 cm, h = 12 cm
- Slant height: \(l = \sqrt{12^2 + 5^2} = \sqrt{144 + 25} = \sqrt{169} = 13\) cm.
- Volume: \(V = \tfrac{1}{3}\cdot 10^2 \cdot 12 = \tfrac{1}{3}\cdot 100 \cdot 12 = \tfrac{1200}{3} = \)400 cm³.
- Lateral area: \(A_{\text{lat}} = 2 \cdot 10 \cdot 13 = 260\) cm².
- Total surface area: \(A_{\text{total}} = 10^2 + 260 = 100 + 260 = 360\) cm².
Both examples use Pythagorean triples (3-4-5 and 5-12-13), so the slant height comes out as a whole number. Most inputs give an irrational slant height, so expect rounded results.
Comparing Different Pyramid Proportions
The table keeps the base edge at \(a = 10\) while the height changes, then adds a case with all lengths doubled. Lengths are in the same unit, areas in that unit squared, volumes in that unit cubed. Values are rounded to two decimals.
| Base edge a | Height h | Slant height l | Volume V | Lateral area | Total area |
|---|---|---|---|---|---|
| 10 | 5 | 7.07 | 166.67 | 141.42 | 241.42 |
| 10 | 10 | 11.18 | 333.33 | 223.61 | 323.61 |
| 10 | 12 | 13.00 | 400.00 | 260.00 | 360.00 |
| 10 | 20 | 20.62 | 666.67 | 412.31 | 512.31 |
| 20 | 10 | 14.14 | 1333.33 | 565.69 | 965.69 |
What the table shows
- With the base fixed, volume grows in direct proportion to height: doubling \(h\) from 10 to 20 doubles \(V\) from 333.33 to 666.67.
- Lateral and total area grow more slowly than height, because the slant height \(l = \sqrt{h^2 + (a/2)^2}\) is not proportional to \(h\).
- Scaling note: the last row doubles every length of the \(a=10,\ h=5\) pyramid. Areas are multiplied by \(2^2 = 4\): \(141.42 \to 565.69\) and \(241.42 \to 965.69\). Volume is multiplied by \(2^3 = 8\): \(166.67 \to 1333.33\).
FAQ
Does this work for an oblique pyramid? The volume formula \(V = \frac{1}{3} a^{2} h\) holds for any pyramid with the same base and height, but the lateral-area formula assumes a right pyramid with apex over the center.
What is the difference between slant height and lateral edge? The slant height (face apothem) is \(\sqrt{h^{2} + \left(\frac{a}{2}\right)^{2}}\) and is used here. The lateral edge runs from a base corner to the apex and equals \(\sqrt{h^{2} + \left(\frac{a}{\sqrt{2}}\right)^{2}}\); do not confuse the two.
Which unit should I use? Any single length unit works as long as both inputs share it; the outputs are then automatically in that unit, its square, and its cube.