Plane Geometry Calculator
Rectangle, square, regular n-gon, annulus, parallelogram, isosceles trapezoid, and irregular polygon (shoelace). Discovery /rectangle, /regular-polygon, /parallelogram, /trapezoid, /irregular-polygon. Not the circle-only page. Not a triangle solver. Not solid geometry. Not CAS. Runs locally.
Trust summary Engine tested · Specification checked · 25/25 tests · Production surface contract 3/3 · v1.3.0
- Input interpretation
- Enter values to calculate.
- Result
- —
- Model
- Rectangle, square, regular n-gon, annulus, parallelogram, isosceles trapezoid, and irregular polygon area and perimeter.
- Scope
- Euclidean plane
- Verification
- Engine tested · 25/25 tests · Production surface contract 3/3 · Specification checked · v1.3.0
- Named expert review
- Optional · Not performed
- Specification basis
- ISO 80000-2:2019 Quantities and units — Mathematics
- Evidence
- 9 golden · 5 boundary · 11 property · Production surface contract 3/3 · Artifact integrity PASS
- Production
- Embedded snapshot: unpublished · Build schema 1.3.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
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°.
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.3.0 · Engine tested
- Engine tested 25/25 tests · Production surface contract 3/3
- Named expert review Not performed
- Calculation version 1.3.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 and perimeter.
- 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
6 published on this page · 25/25 tests · Production surface contract 3/3 · View evidence
- mode=rectangle a=3 b=4 → A=12 P=14 d=5
- 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
- Specification basis
- ISO 80000-2:2019 Quantities and units — Mathematics
- Calculation version
- 1.3.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, Dot Product 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.