Regular Pyramid Calculator
Regular n-gon pyramid V = A h/3 with A = (n s²)/(4 tan(π/n)) from n, side, and height. Base from Regular Polygon. Same engine as Solid Geometry. Not /pyramid. Not a tetrahedron. Not CAS. Runs locally.
Trust summary Engine tested · Specification checked · 66/66 tests · Production surface contract 3/3 · v1.11.0
- Input interpretation
- Enter values to calculate.
- Result
- —
- Model
- Right regular n-gon pyramid volume, lateral area, and total surface from n, side, and height.
- Scope
- Right regular n-gon pyramid
- Verification
- Engine tested · 66/66 tests · Production surface contract 3/3 · Specification checked · v1.11.0
- Named expert review
- Optional · Not performed
- Specification basis
- ISO 80000-2:2019 Quantities and units — Mathematics
- Evidence
- 25 golden · 13 boundary · 28 property · Production surface contract 3/3 · Artifact integrity PASS
- Production
- Embedded snapshot: unpublished · Build schema 1.11.0 ready · Semantic contract ✓ · Attestation report not published on origin · Live production status STALE (2 capabilities; 162 remain CURRENT) @ 2026-09-20T09:01:12.147Z
- Semantic contract
- PASS
Formulas
Core equations used by this calculator.
How to use
Enter n, s, and h
n must be an integer ≥ 3. Default n = 6, s = 1, h = 1 is the unit hexagonal pyramid.
Read V, A, and S
Unit hexagon pyramid has V = √3/2, one third of the unit hexagonal prism. Square n=4, s=6, h=4 matches /pyramid a=6, b=6, h=4 with V=48 and A=96.
Example calculations
Common configurations with formula and result.
Unit hexagon
n = 6, s = 1, h = 1
Square pyramid
n = 4, s = 6, h = 4
Regular Pyramid calculator specification
Version 1.11.0 · Engine tested
- Engine tested 66/66 tests · Production surface contract 3/3
- Named expert review Not performed
- Calculation version 1.11.0
- Definition
- A right regular n-gon pyramid with integer n≥3, side s>0, and height h>0, apex above the base center, has volume A h/3, where A = (n s²)/(4 tan(π/n)) is the regular polygon base from math.geometry.plane. Face slant is l=√(h²+r²) with r the base apothem. Lateral area is n s l/2. Total surface is A + n s l/2. n=4 matches a square rectangular pyramid. This page is mode=regular_pyramid on math.geometry.solid. Not /pyramid. Not a tetrahedron. Not CAS.
- What it calculates
- Right regular n-gon pyramid volume, lateral area, and total surface from n, side, and height.
- Inputs
- n
- s
- h
- Outputs
- volume
- lateral
- surface
- base
- slant
- Formula
V = A h/3, A = (n s²)/(4 tan(π/n)), l = √(h²+r²), S = A + n s l/2- Assumptions
- Right regular n-gon pyramid
- Apex above the base center
- Integer n ≥ 3
- Base from math.geometry.plane
- Not a rectangular pyramid page
- Not a tetrahedron
- Not CAS
- Units
- length (consistent units)
- volume (length³)
- area (length²)
- Boundary conditions
- n < 3 or n not integer → INVALID_INPUT
- s ≤ 0 or h ≤ 0 → VALUE_MUST_BE_POSITIVE
- unknown mode → INVALID_MODE
- Example
- n=6 s=1 h=1 → V=√3/2
- Validation cases
3 published on this page · 66/66 tests · Production surface contract 3/3 · View evidence
- n=6 s=1 h=1 → V=√3/2
- n=4 s=6 h=4 → V=48 A=96
- n=2 s=1 h=1 → INVALID_INPUT
- Specification basis
- ISO 80000-2:2019 Quantities and units — Mathematics
- Calculation version
- 1.11.0
Related tools
Other calculators in this family: Angle Between Lines Calculator, Circle Calculator, Cone Calculator, Conic Section Calculator, Coordinate Geometry Calculator, Cross Product Calculator, Cylinder Calculator, Dodecahedron Calculator . Explore all Geometry.
Frequently asked questions
Key distinctions behind the calculation.
Is this a second solid engine?
No. It is mode=regular_pyramid on math.geometry.solid, the same engine as /calc/math/solid-geometry.
Is this the rectangular pyramid?
No. The right rectangular pyramid stays on /calc/math/pyramid. This page is a right pyramid whose base is a regular n-gon. n=4 with equal s matches a square rectangular pyramid.
Is n=3 a tetrahedron?
No. A triangular n-gon pyramid has an arbitrary height. The regular tetrahedron stays on /calc/math/tetrahedron. Regular n-gon frustum is /calc/math/regular-frustum. The base area reuses /regular-polygon.
Where does this run?
Locally in the browser by default. REST and MCP call the same solid-geometry engine.