Volume of a pyramid: how it works
A square pyramid rises from a square base of side a to a point at height h. Its volume is a third of the prism with the same base and height. The triangular faces slope at the slant height g, measured from the middle of a base edge to the tip.
V is the volume, a the side of the square base, h the height, g = √(h² + (a/2)²) the slant height of a face, Sl the lateral area and S the total surface.
This page opens the geometry calculator on this figure: type the measures and read every result at once, with the figure drawn and each formula next to its value. Everything is computed in your browser.
Formulas
- Volume:
V = a² × h / 3 - Slant height:
g = √(h² + (a/2)²) - Lateral area:
Sl = 2 × a × g - Total surface:
S = a² + 2 × a × g
Worked example
With a = 6, h = 4:
V = a² × h / 3 = 36 × 4 / 3 = 48
g = √(h² + (a/2)²) = √(16 + 9) = 5
Sl = 2 × a × g = 2 × 6 × 5 = 60
S = a² + 2 × a × g = 96Table of sizes
Computed with the calculator’s own formulas, in any one unit of length (the results are in that unit, squared or cubed).
| a | h | Volume | Slant height | Lateral area | Total surface |
|---|---|---|---|---|---|
| 6 | 2 | 24 | 3.6056 | 43.2666 | 79.2666 |
| 6 | 4 | 48 | 5 | 60 | 96 |
| 6 | 6 | 72 | 6.7082 | 80.4984 | 116.4984 |
| 6 | 8 | 96 | 8.544 | 102.528 | 138.528 |
| 6 | 10 | 120 | 10.4403 | 125.2837 | 161.2837 |
| 6 | 15 | 180 | 15.2971 | 183.5647 | 219.5647 |
| 6 | 20 | 240 | 20.2237 | 242.685 | 278.685 |
Volume for combinations of a and h
| a \ h | 3 | 6 | 9 | 12 |
|---|---|---|---|---|
| 2 | 4 | 8 | 12 | 16 |
| 4 | 16 | 32 | 48 | 64 |
| 6 | 36 | 72 | 108 | 144 |
| 10 | 100 | 200 | 300 | 400 |
Working backwards
The prism with the same base and height holds 144, three times the pyramid’s 48. For a target volume, h = 3V / a². Four triangular faces of base 6 and height 5 add up to 60 units².
Common mistakes
- The height h is vertical, from the center of the base to the tip. The slant height g is longer and only enters the surface area.
- This calculator is for square bases. For a rectangular base use V = base area × h / 3 by hand, or the rectangular prism page divided by 3.
Where it is used
- The Great Pyramid of Giza, a square base of about 230.3 m and a height of 146.6 m (original), had roughly 2,591,794.66 m³ of stone.
- A pyramidal roof 6 m square and 4 m tall has 60 m² of slope in total (four faces of 15 m²), which is the area to tile.
Units
Volumes come out in cubic units of the length you type: cm × cm × cm gives cm³. 1 cm³ = 1 ml; 1000 cm³ = 1 liter; 1 m³ = 1000 liters; 1 ft³ = 28.317 liters; 1 US gallon = 3.785 liters.
How to use the calculator
- Fill in the measures of the figure; the example values are already there.
- Choose the unit of length: the results follow it, in square or cubic units.
- Read volume and the other measures, and copy them all with one button.
Frequently asked questions
What is the formula for the volume of a pyramid?
V = base area × h / 3; for a square base of side a, V = a² × h / 3. With a = 6 and h = 4, V = 48.
What is the slant height of a square pyramid?
The height of one triangular face: g = √(h² + (a/2)²). Here g = 5.
How is a pyramid related to a prism and a cone?
All three follow the same rule: a pointed solid holds one third of the straight one with the same base and height, pyramid vs prism and cone vs cylinder.