Plane Geometry Calculator
Rectangle, square, regular n-gon, annulus, parallelogram, isosceles trapezoid, and irregular polygon (shoelace). Discovery /rectangle, /square, /regular-polygon, /annulus, /parallelogram, /trapezoid, /irregular-polygon. Not the circle-only page. Not a triangle solver. Not solid geometry. Not /square-root. 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 · 8/8 declared partitions (rectangle, square, regular-polygon, annulus, parallelogram, trapezoid, irregular-polygon, invalid-domain) · Matrix
- Known limitations
- Core CVP does not include live graph, viewport, or pointer interaction.
- Model
- Rectangle, square, regular n-gon, annulus, parallelogram, isosceles trapezoid, and irregular polygon area, perimeter, and an engine-linked figure per mode.
- Scope
- Euclidean plane
- Verification
- Engine tested · Source checked · v1.5.0 · CVP VERIFIED · CVP protocol 1.0.0-proposed · Core assurance · all published modes· View Manifest · CVP overview · Specification
- Versions
- Calculation 1.5.0 · CVP protocol 1.0.0-proposed · Evidence 2026-09-22.geometry-cvp
- Verification revision
- 2026-09-22.geometry-cvp · 4/4 property · digest dcd9f429cc7c
- Legacy regression
- 25/25 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
- 10/10 golden · 5/5 CVP boundary · 11/11 invalid · 4/4 property · 5/5 cross-interface · 5/5 cross-calculator · 5/5 CVP contract · Manifest
- Sources
- ISO 80000-2:2019 Quantities and units — Mathematics
- CRC Standard Mathematical Tables — plane polygons
- Evidence
- 9 legacy golden · 5 legacy boundary · legacy regression suite · 10/10 oracle-backed golden · 11/11 invalid · Artifact integrity PASS
- Semantic contract
- PASS
Full verification
Formulas
Core equations used by this calculator.
How to use
Choose rectangle, square, regular polygon, annulus, parallelogram, trapezoid, or irregular polygon
Rectangle needs a>0 and b>0. Regular polygon needs integer n≥3 and side s>0. Annulus needs outer R greater than inner r. Parallelogram needs a, b, and θ∈(0°,180°). Isosceles trapezoid needs bases a, b and height h>0. Irregular polygon needs 3–8 vertices as x,y; x,y.
Read area and perimeter
A 3×4 rectangle has diagonal 5. A regular hexagon with s=1 has interior 120°. The figure updates with the selected mode.
Example calculations
Common configurations with formula and result.
3-4 rectangle
a = 3, b = 4
Hexagon
n = 6, s = 1
Annulus
R = 2, r = 1
Parallelogram 2-3-30°
a = 2, b = 3, θ = 30°
Trapezoid 2-4-3
a = 2, b = 4, h = 3
Irregular quadrilateral
0,0; 5,0; 4,4; 0,3
Plane Geometry calculator specification
Version 1.5.0 · Engine tested
- Engine tested 25/25 tests · Production surface contract 5/5
- Named expert review Not performed
- Calculation version 1.5.0
- Definition
- Euclidean plane figures: rectangle A=ab with diagonal √(a²+b²), square A=s², regular n-gon A=(n s²)/(4 tan(π/n)) for integer n≥3, annulus A=π(R²−r²) with R>r, parallelogram A=ab sin θ for θ∈(0°,180°), isosceles trapezoid A=(a+b)h/2, irregular polygon shoelace A=(1/2)|Σ(xᵢyᵢ₊₁−xᵢ₊₁yᵢ)| on 3–8 vertices. Not the circle-only page. Not a triangle solver. Not /trapezoidal-rule. Not the fluid trapezoid. Not CAS.
- What it calculates
- Rectangle, square, regular n-gon, annulus, parallelogram, isosceles trapezoid, and irregular polygon area, perimeter, and an engine-linked figure per mode.
- Inputs
- mode
- a?
- b?
- s?
- n?
- r?
- R?
- theta?
- h?
- vertices?
- Outputs
- area
- perimeter
- diagonal?
- d1?
- d2?
- height?
- leg?
- midsegment?
- apothem?
- interior_deg?
- Formula
A = ab; A = (n s²)/(4 tan(π/n)); A = π(R² − r²); A = ab sin θ; A = (a+b)h/2; A = (1/2)|Σ(xᵢyᵢ₊₁−xᵢ₊₁yᵢ)|- Assumptions
- Euclidean plane
- Regular polygon integer n ≥ 3
- Annulus R > r
- Parallelogram θ in (0°, 180°)
- Isosceles trapezoid a, b, h > 0
- Irregular polygon shoelace 3–8 vertices
- Not the circle-only page
- Not a triangle solver
- Not solid geometry
- Not /trapezoidal-rule
- Not the fluid trapezoid
- Not CAS
- Units
- length (consistent units)
- area (length²)
- degrees
- Boundary conditions
- a ≤ 0 or b ≤ 0 or s ≤ 0 or h ≤ 0 → VALUE_MUST_BE_POSITIVE
- n < 3 or non-integer n → INVALID_INPUT
- annulus R ≤ r → INVALID_INPUT
- parallelogram θ ≤ 0° or θ ≥ 180° → INVALID_INPUT
- irregular n < 3 or n > 8 or A=0 → INVALID_INPUT
- unknown mode → INVALID_MODE
- Example
- rectangle a=3 b=4 → A=12, d=5
- Validation cases
7 published on this page · 25/25 tests · Production surface contract 5/5 · View evidence
- mode=rectangle a=3 b=4 → A=12 P=14 d=5
- mode=square s=2 → A=4 P=8 d=2√2
- mode=regular_polygon n=6 s=1 → P=6 interior=120°
- mode=annulus R=2 r=1 → A=3π
- mode=parallelogram a=2 b=3 theta=30 → A=3 P=10
- mode=trapezoid a=2 b=4 h=3 → A=9
- mode=irregular_polygon vertices=0,0; 5,0; 4,4; 0,3 → A=16 n=4
- Sources
- ISO 80000-2:2019 Quantities and units — MathematicsSupports: Quantity names and symbols for plane area and perimeter
- CRC Standard Mathematical Tables — plane polygonsSupports: Regular n-gon A = (n s²)/(4 tan(π/n)); parallelogram A = ab sin θ; shoelace / Meister–Gauss polygon area
- ISO 80000-2:2019 Quantities and units — Mathematics
- Calculation version
- 1.5.0
Related tools
Other calculators in this family: Annulus Calculator, Arc Calculator, Circle Calculator, Conic Section Calculator, Ellipse Calculator, Hyperbola Calculator, Irregular Polygon Calculator, Parabola Calculator . Explore all Geometry.
Frequently asked questions
Key distinctions behind the calculation.
Is the 3-4 rectangle the Pythagorean calculator?
No. The diagonal is the same 5 as a 3-4-5 triangle, on a different model. Right triangles stay on /calc/math/pythagorean.
Is this the circle calculator?
No. Diameter, circumference, arc, and sector stay on /calc/math/circle. An annulus with R=r is invalid here.
Where does this run?
Locally in the browser by default. REST and MCP call the same plane-geometry engine.