HomeCalculatorsMathSolid GeometryRegular Pyramid Calculator
Math calculator

Regular Pyramid Calculator

Calculate measures for an n-gon pyramid with consistent units. See formulas, numerical limits and a section diagram, then share or export complete results.

Instant result
Result
—

Enter values to calculate.

Inputs—
Mode—
Formula—
Trust summary CVP VERIFIED · CVP protocol 1.0.0-proposed · Core assurance · all20 published modes; full secondary-output review and raw input/range partitions
Input interpretation
Enter values to calculate.
Result
—
Verified scope
all20 published modes; full secondary-output review and raw input/range partitions
Assurance
Core
Declared partition coverage
PASS · 21/21 declared partitions (sphere, cylinder, cone, torus, frustum, prism, pyramid, tetrahedron, octahedron, icosahedron, dodecahedron, regular-prism, regular-pyramid, regular-frustum, ellipsoid, spherical-cap, spherical-zone, spherical-wedge, spherical-lune, spherical-sector, invalid-domain) · Matrix
Known limitations
  • Core CVP does not include live graph, viewport, or pointer interaction.
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 · Source checked · v1.19.0 · CVP VERIFIED · CVP protocol 1.0.0-proposed · Core assurance · all20 published modes; full secondary-output review and raw input/range partitions· View Manifest · CVP overview · Specification
Versions
Calculation 1.19.0 · CVP protocol 1.0.0-proposed · Evidence 2026-10-29.math-uuce-fields-v1
Verification revision
2026-10-29.math-uuce-fields-v1 · 4/4 property · digest de157af6f244
Legacy regression
115/118 tests · Production surface contract 5/5
Trust layers
Verification VERIFIED · Production CURRENT · Overall CVP state: VERIFIED under CVP 1.0.0-proposed
Reference
O1 model · O2 expected_values · O2 numerical_behavior
Interfaces
PASS · UI (SSR) / REST / MCP — ui-ssr is query-result HTML, not a live browser session. Error-path engine·REST·MCP 2/2 (status, code, calculation_version). SSR compared on URL-canonical requested calculations; empty query is idle (not an error) and JSON-typed object/array inputs are REST/MCP-only.
Supplemental domain review
Not performed
Named expert review
Not performed
CVP suite
188/188 golden · 27/27 CVP boundary · 96/96 invalid · 4/4 property · 4/4 metamorphic · 8/8 cross-interface · 2/2 cross-calculator · 5/5 CVP contract · Manifest
Evidence
43 legacy golden · 25 legacy boundary · legacy regression suite · 188/188 oracle-backed golden · 96/96 invalid · Artifact integrity PASS
This calculator CURRENT · Public schema 1.19.0 matches · Semantic contract ✓ · Production attested · Public/cache ✓ · Origin ✓
Semantic contract
PASS
Full verification

Manifest identity, reference classes, interfaces, suite, and production records.

Formulas

Core equations used by this calculator.

VolumeV = A h/3, A = (n s²)/(4 tan(π/n))
Total surfaceS = A + n s l/2, l = √(h²+r²)
iSame engine as /solid-geometry. The base area is the same calculation as /regular-polygon. Volume is one third of /regular-prism for the same n, s, and h. The rectangular pyramid stays /pyramid. The regular tetrahedron stays /tetrahedron. Not a second engine.

How to use

1

Enter n, s, and h

n must be an integer ≥ 3. Default n = 6, s = 1, h = 1 is the unit hexagonal pyramid.

2

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

V = √3/2
√3/2
ϟ

Square pyramid

n = 4, s = 6, h = 4

V = 48, A = 96
48

Regular Pyramid calculator specification

Version 1.19.0 · Engine tested

Calculation status

Review policy · Evidence

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 the regular-polygon identity. 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 the regular-polygon identity
  • 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 · 115/118 tests · Production surface contract 5/5 · 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
Sources
  • ISO 80000-2:2019 Quantities and units — Mathematics
    Supports: Mathematical symbols and notation. This standard is not numerical verification or an endorsement of this implementation.
  • Gilbert Strang, Calculus — Chapter 8: Applications of the Integral (MIT OpenCourseWare) — §§8.1–8.3 Areas and Volumes by Slices, Curve Length and Surface Area
    Supports: Cross-section integration V = ∫A(z) dz and the surface-of-revolution integral ∫2πf(x)sqrt(1+f′(x)²) dx, with sphere, cone and cylinder applications. Constant sections give prism volume; similar sections give pyramid/frustum volume; integrating a circular profile gives cap area and volume, and differences of caps give spherical zones. Flat end faces are added separately where specified. These composite formulas are derived applications, not individually tabulated implementation checks. Mathematical reference only; not implementation validation or an endorsement of CalculatorX.
  • Gilbert Strang, Calculus — Chapter 1: Introduction to Calculus (MIT OpenCourseWare) — §1.5 A Review of Trigonometry
    Supports: Right-triangle definitions of sine, cosine and tangent, the sine/cosine identities, and the law-of-cosines and parallelogram exercises 31–32. Chord length follows by bisecting the radii triangle. Regular-polygon apothems and areas follow by splitting the polygon into equal triangles. The law of sines follows by equating a triangle’s altitude computed from either adjacent side; SSA can give two triangles. These applications are derived from the stated relations. Mathematical reference only; not implementation validation or an endorsement of CalculatorX.
Calculation version
1.19.0

Background

Interpretation and common distinctions.

What does this regular pyramid calculator compute?

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 of the regular polygon. 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.

The published formula or method is V = A h/3, A = (n s²)/(4 tan(π/n)), l = √(h²+r²), S = A + n s l/2. The following references support the stated mathematics or method:

  • Gilbert Strang, Calculus — Chapter 8: Applications of the Integral (MIT OpenCourseWare): Cross-section integration V = ∫A(z) dz and the surface-of-revolution integral ∫2πf(x)sqrt(1+f′(x)²) dx, with sphere, cone and cylinder applications. Constant sections give prism volume; similar sections give pyramid/frustum volume; integrating a circular profile gives cap area and volume, and differences of caps give spherical zones. Flat end faces are added separately where specified. These composite formulas are derived applications, not individually tabulated implementation checks. Mathematical reference only; not implementation validation or an endorsement of CalculatorX.
  • Gilbert Strang, Calculus — Chapter 1: Introduction to Calculus (MIT OpenCourseWare): Right-triangle definitions of sine, cosine and tangent, the sine/cosine identities, and the law-of-cosines and parallelogram exercises 31–32. Chord length follows by bisecting the radii triangle. Regular-polygon apothems and areas follow by splitting the polygon into equal triangles. The law of sines follows by equating a triangle’s altitude computed from either adjacent side; SSA can give two triangles. These applications are derived from the stated relations. Mathematical reference only; not implementation validation or an endorsement of CalculatorX.

Which inputs and limits should you check?

Lengths, areas, and volumes have different units. Check whether a reported area is curved/lateral or total and use the shape-specific dimension constraints.

The worked example uses n = 6, s = 1, h = 1 with V = √3/2. Compare it with the Example calculations and the complete result for the same inputs.

How can you verify and cite this result?

CalculatorX is responsible for this page. The mathematical references above explain the model; implementation checks and their scope are documented separately in the math.geometry.solid v1.19.0 Evidence and capability contract. Read the displayed verification and production state together with the specification's numerical limits.

Use the clean calculator URL to cite the tool. A shared input link identifies a particular calculation. Content updates, numerical verification, and domain reviews have separate dates and scopes.

Numerical scope and complete results

Use one consistent length unit: lengths are in L, surface areas in L² and volumes in L³. Inputs are finite decimal numbers or strings. Positive dimensions and nonzero output measures must fit normal IEEE-754 binary64. NUMERIC_UNDERFLOW rejects raw nonzero text that converts to zero; NUMERIC_RANGE asks you to rescale when a required measure is outside that range. Outputs retain binary64 precision, without a small-value zero clamp. Input rounding affects very thin shapes; this is numerical evaluation, not exact decimal arithmetic. Regular n must be a safe integer from 3 to 9007199254740991. Ellipsoid minimum/maximum semi-axis ratio must be at least 1e-100.

The 2-D drawing shows a section, elevation or face, not a 3-D mesh. Very thin shapes, tiny or almost full angles and polygons above 128 sides omit the drawing while retaining complete numerical results. Platonic height denotes vertex height for a tetrahedron, opposite-vertex distance for an octahedron, and circumsphere diameter for an icosahedron or dodecahedron. A spherical lune is a surface; its auxiliary volume is the associated wedge volume.

Ordinary interactive calculation runs locally. Shared URLs send their parameters to the server; REST and MCP send inputs for execution. Sharing does not recreate a historical engine: a version mismatch shows the current-engine notice. CSV and result JSON include all calculated fields and raw provided inputs.

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.