
Pyramid Calculator
Volume, surface area and slant height of a square pyramid.
Volume
108
base 6, h 9
Surface area
149.842
Slant height
9.4868
AI Breakdown & Smart Takeaway
Plain-English insight on your numbers
Get a personalized explanation of what these results mean — and how to improve them.
How the Pyramid Calculator works
The GKCalculators Pyramid Calculator instantly computes the volume, total surface area, and slant height of a square pyramid from just two inputs—base side length and vertical height—making it essential for students, architects, engineers, and anyone working with 3D geometry.
A square pyramid is a three-dimensional solid with a square base and four triangular faces that converge at a single apex directly above the center of the base. To fully describe such a shape mathematically, you need just two measurements: the length of one side of the square base (a) and the perpendicular height (h) measured vertically from the base center to the apex. From these two values, every other geometric property—slant height, lateral surface area, base area, and volume—can be derived exactly using well-established geometry formulas.
The slant height (l) is the distance measured along the face of a triangular side from the midpoint of a base edge up to the apex. It is not the same as the true lateral edge running from a base corner to the apex, a distinction that trips up many students. The slant height is calculated using the Pythagorean theorem applied to a right triangle formed by the vertical height, half the base length, and the slant height itself: l = √(h² + (a/2)²). This value is critical because it feeds directly into the lateral surface area calculation.
Volume represents how much three-dimensional space the pyramid encloses. For any pyramid—square or otherwise—volume equals one-third of the product of its base area and height: V = (1/3) × a² × h. A common mistake is forgetting the one-third factor, which stems from the geometric proof that three congruent pyramids can fill a rectangular prism of equal base and height. Surface area has two components: the square base area (a²) and the four identical triangular lateral faces, each with area (1/2 × a × l). Total surface area is therefore SA = a² + 2al.
When using this calculator, make sure your base and height measurements are in the same unit (both in meters, both in feet, etc.) before entering them—the tool outputs results in the same unit system you provide, and mixing units is the single most frequent source of error. Also note that 'height' always means the perpendicular (vertical) height to the apex, not the slant height or a lateral edge length. If you only know the slant height, you can rearrange the Pythagorean relationship to find the vertical height first: h = √(l² − (a/2)²), then enter the result here.
Formula
V = 1/3·b²·h (square base)
Pro tips
- Always confirm you are entering the vertical (perpendicular) height, not the slant height or a diagonal edge—using the wrong measurement will produce incorrect results for all three outputs.
- Keep all inputs in the same unit before calculating; if your base is measured in centimeters and your height in meters, convert one of them first to avoid results that are off by a factor of 100.
- To find the volume of a frustum (a pyramid with its top cut off), calculate the volume of the full pyramid and subtract the volume of the smaller pyramid that was removed—both can be computed separately with this tool.
- If you are working on a construction or architecture project, use the lateral surface area output to estimate material quantities for cladding, roofing, or finishing the four triangular faces, and add the base area only if the bottom face also needs to be covered.
- Cross-check your slant height result manually by plugging it back into the Pythagorean theorem: l² should equal h² + (a/2)²—a quick sanity check that confirms both your inputs and the calculation are correct.
Key terms
- Base Side Length (a)
- — The length of one edge of the square base of the pyramid, used to calculate base area, slant height, and surface area.
- Vertical Height (h)
- — The perpendicular distance from the center of the square base straight up to the apex of the pyramid—distinct from slant height or lateral edge length.
- Slant Height (l)
- — The distance measured along a triangular face from the midpoint of a base edge to the apex, calculated as √(h² + (a/2)²).
- Volume
- — The amount of three-dimensional space enclosed by the pyramid, given by one-third of the base area multiplied by the vertical height.
- Lateral Surface Area
- — The combined area of the four triangular faces of the pyramid, equal to 2 × a × l (two times base side times slant height).
- Total Surface Area
- — The sum of the base area and the lateral surface area, representing the entire outer surface of the pyramid.



