Regular Prism Calculator
Regular n-gon prism V = A h with A = (n s²)/(4 tan(π/n)) from n, side, and height. Base from Regular Polygon. Same engine as Solid Geometry. Not /prism. Not /regular-pyramid. Not CAS. Runs locally.
Enter values to calculate.
Trust summary CVP VERIFIED · CVP protocol 1.0.0-proposed · Core assurance · all published modes
- Input interpretation
- Enter values to calculate.
- Result
- —
- Verified scope
- all published modes
- 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 prism volume, lateral area, and total surface from n, side, and height.
- Scope
- Right regular n-gon prism
- Verification
- Engine tested · Source checked · v1.18.0 · CVP VERIFIED · CVP protocol 1.0.0-proposed · Core assurance · all published modes· View Manifest · CVP overview · Specification
- Versions
- Calculation 1.18.0 · CVP protocol 1.0.0-proposed · Evidence 2026-09-21.solid-cvp-all-modes
- Verification revision
- 2026-09-21.solid-cvp-all-modes · 4/4 property · digest d81459afdb09
- Legacy regression
- 118/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
- Supplemental domain review
- Not performed
- Named expert review
- Not performed
- CVP suite
- 26/26 golden · 27/27 CVP boundary · 32/32 invalid · 4/4 property · 8/8 cross-interface · 2/2 cross-calculator · 3/3 CVP contract · Manifest
- Sources
- ISO 80000-2:2019 Quantities and units — Mathematics
- Gilbert Strang, Calculus — Chapter 8: Applications of the Integral (MIT OpenCourseWare)
- Gilbert Strang, Calculus — Chapter 1: Introduction to Calculus (MIT OpenCourseWare)
- Evidence
- 43 legacy golden · 25 legacy boundary · legacy regression suite · 26/26 oracle-backed golden · 32/32 invalid · Artifact integrity PASS
- Semantic contract
- PASS
Full verification
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 prism.
Read V, A, and S
Unit hexagon prism has V = 3√3/2. Equilateral triangular prism n=3, s=2, h=1 has V = √3. Square n=4, s=2, h=3 matches /prism a=2, b=2, h=3.
Example calculations
Common configurations with formula and result.
Unit hexagon
n = 6, s = 1, h = 1
Triangular prism
n = 3, s = 2, h = 1
Regular Prism calculator specification
Version 1.18.0 · Engine tested
- Engine tested 118/118 tests · Production surface contract 5/5
- Named expert review Not performed
- Calculation version 1.18.0
- Definition
- A right regular n-gon prism with integer n≥3, side s>0, and height h>0 has volume A h, where A = (n s²)/(4 tan(π/n)) is the regular polygon base from math.geometry.plane. Lateral area is n s h. Total surface is 2A + n s h. n=4 matches a square rectangular prism. This page is mode=regular_prism on math.geometry.solid. Not /prism. Not /regular-pyramid. Not CAS.
- What it calculates
- Right regular n-gon prism volume, lateral area, and total surface from n, side, and height.
- Inputs
- n
- s
- h
- Outputs
- volume
- lateral
- surface
- base
- Formula
V = A h, A = (n s²)/(4 tan(π/n)), S = 2A + n s h- Assumptions
- Right regular n-gon prism
- Integer n ≥ 3
- Base from math.geometry.plane
- Not a rectangular prism page
- Not an n-gon pyramid page
- 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√3/2
- Validation cases
3 published on this page · 118/118 tests · Production surface contract 5/5 · View evidence
- n=6 s=1 h=1 → V=3√3/2 S=3√3+6
- n=3 s=2 h=1 → V=√3
- n=2 s=1 h=1 → INVALID_INPUT
- Sources
- ISO 80000-2:2019 Quantities and units — MathematicsSupports: 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 AreaSupports: 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 TrigonometrySupports: 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.
- ISO 80000-2:2019 Quantities and units — Mathematics
- Calculation version
- 1.18.0
Background
Interpretation and common distinctions.
What does this regular prism calculator compute?
A right regular n-gon prism with integer n≥3, side s>0, and height h>0 has volume A h, where A = (n s²)/(4 tan(π/n)) is the regular polygon base of the regular polygon. Lateral area is n s h. Total surface is 2A + n s h. n=4 matches a square rectangular prism.
The published formula or method is V = A h, A = (n s²)/(4 tan(π/n)), S = 2A + n s h. 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√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.18.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.
Related tools
Other calculators in this family: Cone Calculator, Cylinder Calculator, Dodecahedron Calculator, Ellipsoid Calculator, Frustum Calculator, Icosahedron Calculator, Octahedron Calculator, Prism Calculator . Explore all Solid Geometry.
Frequently asked questions
Key distinctions behind the calculation.
Is this a second solid engine?
No. It is mode=regular_prism on math.geometry.solid, the same engine as /calc/math/solid-geometry.
Is this the rectangular prism?
No. The right rectangular box stays on /calc/math/prism. This page is a right prism whose bases are regular n-gons. n=4 with equal s matches a square rectangular prism.
Does this include an n-gon pyramid or an oblique prism?
Regular n-gon pyramid is /calc/math/regular-pyramid on the same engine. The base area reuses /regular-polygon. Cube is already /prism with a=b=h.
Where does this run?
Locally in the browser by default. REST and MCP call the same solid-geometry engine.