Pyramid Volume Calculator Formula
Understand the math behind the pyramid volume calculator. Each variable explained with a worked example.
Formulas Used
Volume
volume = (1/3) * pow(base_side, 2) * hBase Area
base_area = pow(base_side, 2)Lateral Sa
lateral_sa = 2 * base_side * slant_hTotal Sa
total_sa = pow(base_side, 2) + 2 * base_side * slant_hVariables
| Variable | Description | Default |
|---|---|---|
base_side | Base Side Length | 6 |
h | Height | 8 |
slant_h | Derived value= sqrt(pow(h, 2) + pow(base_side / 2, 2)) | calculated |
How It Works
Square Pyramid Formulas
Volume
V = (1/3) × base² × h
Slant Height
l = sqrt(h² + (base/2)²)
The slant height runs from the apex to the midpoint of a base edge.
Surface Area
Worked Example
Square pyramid with base side 6 and height 8.
base_side = 6h = 8
- 01Volume = (1/3) × 36 × 8 = 96
- 02Slant height = √(64 + 9) = √73 ≈ 8.544
- 03Lateral SA = 2 × 6 × 8.544 ≈ 102.53
- 04Total SA = 36 + 102.53 ≈ 138.53
Ready to run the numbers?
Open Pyramid Volume Calculator