HomeCalculatorsMathGeometryPlane Geometry Calculator
Math calculator

Plane Geometry Calculator

Calculate plane shape area and perimeter with full results, clear input limits, shareable links and CSV export. Runs locally in your browser.

Instant result
Result
—

Enter values to calculate.

Inputs—
Mode—
Formula—
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.6.0 · CVP VERIFIED · CVP protocol 1.0.0-proposed · Core assurance · all published modes· View Manifest · CVP overview · Specification
Versions
Calculation 1.6.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 dfee395590c2
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 — ui-ssr is query-result HTML, not a live browser session. Error-path engine·REST·MCP 1/1 (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
155/155 golden · 5/5 CVP boundary · 55/55 invalid · 4/4 property · 4/4 metamorphic · 5/5 cross-interface · 2/2 cross-calculator · 5/5 CVP contract · Manifest
Evidence
9 legacy golden · 5 legacy boundary · legacy regression suite · 155/155 oracle-backed golden · 55/55 invalid · Artifact integrity PASS
This calculator CURRENT · Public schema 1.6.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.

RectangleA = ab, P = 2(a+b), d = √(a²+b²)
Regular polygonA = (n s²) / (4 tan(π/n))
AnnulusA = π(R² − r²)
ParallelogramA = ab sin θ
TrapezoidA = (a+b)h/2
Irregular polygonA = (1/2)|Σ (xᵢ yᵢ₊₁ − xᵢ₊₁ yᵢ)|
iSquare is /calc/math/square. Discovery pages lock rectangle, square, regular polygon, annulus, parallelogram, trapezoid, and irregular polygon. Not /square-root. Not CAS.

How to use

1

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.

2

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

d = √(9+16)
A=12, d=5
ϟ

Hexagon

n = 6, s = 1

A = 3√3/2
P=6, 120°
ϟ

Annulus

R = 2, r = 1

A = 3π
3π
ϟ

Parallelogram 2-3-30°

a = 2, b = 3, θ = 30°

A = 6 sin 30°
A=3, P=10
ϟ

Trapezoid 2-4-3

a = 2, b = 4, h = 3

A = (2+4)×3/2
A=9
ϟ

Irregular quadrilateral

0,0; 5,0; 4,4; 0,3

A = (1/2)|Σ (xᵢ yᵢ₊₁ − xᵢ₊₁ yᵢ)|
A=16

Plane Geometry calculator specification

Version 1.6.0 · Engine tested

Calculation status

Review policy · Evidence

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 — Mathematics
    Supports: Mathematical symbols and notation. This standard is not numerical verification or an endorsement of this implementation.
  • CRC Standard Mathematical Tables — plane polygons
    Supports: Regular n-gon A = (n s²)/(4 tan(π/n)); parallelogram A = ab sin θ; shoelace / Meister–Gauss polygon area
  • Euclid’s Elements — I.35: Parallelograms on the Same Base
    Supports: Equal-base, equal-height parallelograms have equal area. Comparing with a rectangle gives A = base × perpendicular height; side length is not generally the height. Mathematical reference only; not validation or endorsement of this implementation.
  • Gilbert Strang, Calculus — Chapter 9: Polar Coordinates and Complex Numbers (MIT OpenCourseWare) — §§9.1–9.3 Polar Coordinates, Length and Area
    Supports: Polar coordinates and the circular wedge area r²Δθ/2, together with area = ∫r² dθ/2 and polar arc-length integration. A full turn gives disk area πr² and circumference 2πr. An annulus follows by subtracting disk areas and adding both boundary lengths; these are derived applications. Mathematical reference only; not implementation validation or an endorsement of CalculatorX.
  • Gilbert Strang, Calculus — Chapter 15: Vector Calculus (MIT OpenCourseWare) — §15.3 Green’s Theorem
    Supports: The planar area formula A = (1/2) ∮(x dy − y dx). For straight polygon edges it gives the shoelace expression; rectangular/square areas and trapezoid area (B+b)h/2 follow by applying it to the vertices. For x=a cos t, y=b sin t it gives ellipse area πab. Perimeters of these polygons are sums of side lengths. These formulas are derived applications of the theorem. 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.6.0

Background

Interpretation and common distinctions.

What does this plane geometry calculator compute?

This calculator finds areas and perimeters of supported plane shapes, including regular and irregular polygons and annuli. Select the shape before entering its dimensions or vertices.

The published formula or method is 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ᵢ)|. The following references support the stated mathematics or method:

  • Gilbert Strang, Calculus — Chapter 9: Polar Coordinates and Complex Numbers (MIT OpenCourseWare): Polar coordinates and the circular wedge area r²Δθ/2, together with area = ∫r² dθ/2 and polar arc-length integration. A full turn gives disk area πr² and circumference 2πr. An annulus follows by subtracting disk areas and adding both boundary lengths; these are derived applications. Mathematical reference only; not implementation validation or an endorsement of CalculatorX.
  • Gilbert Strang, Calculus — Chapter 15: Vector Calculus (MIT OpenCourseWare): The planar area formula A = (1/2) ∮(x dy − y dx). For straight polygon edges it gives the shoelace expression; rectangular/square areas and trapezoid area (B+b)h/2 follow by applying it to the vertices. For x=a cos t, y=b sin t it gives ellipse area πab. Perimeters of these polygons are sums of side lengths. These formulas are derived applications of the theorem. 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.
  • Euclid’s Elements — I.35: Parallelograms on the Same Base: Equal-base, equal-height parallelograms have equal area. Comparing with a rectangle gives A = base × perpendicular height; side length is not generally the height. Mathematical reference only; not validation or endorsement of this implementation.

Which inputs and limits should you check?

Use one consistent length unit; area uses its square. Select the actual shape and follow the positivity and vertex-order constraints shown in the specification.

The worked example uses a = 3, b = 4 with d = √(9+16). 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.plane v1.6.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 domain, polygon order and reproducibility

Use one consistent length unit; area uses its square. Side/base lengths, radii and heights must be positive normal binary64 numbers. Angles are degrees strictly between0 and180; degree-to-radian conversion must remain normal. Regular n is a safe integer3 through9007199254740991. The annulus requires R>r>0; its perimeter includes both circles. The trapezoid model is isosceles, including the equal-base rectangle case.

For irregular polygons provide3–8 ordered distinct vertices as x,y; x,y, a flat even coordinate list, [x,y] arrays or {x,y} objects in machine calls. An optional repeated first vertex closes the ring. Clockwise and concave polygons are supported. Exact predicates on normalized binary64 reject self-intersections, nonadjacent touching/overlap, duplicate vertices, adjacent backtracking and zero area; straight intermediate vertices without overlap are allowed.

Strict decimal text is limited to1024 characters per scalar (32768 for a vertex list); unknown fields and conflicting active aliases are rejected. Nonzero text converted to zero returns NUMERIC_UNDERFLOW. Nonzero inputs and all positive output measures must be finite normal binary64 (at least2^-1022); otherwise NUMERIC_RANGE requires changing units or translating coordinates. Exact zero coordinates are supported.

Polynomial measures use exact dyadic intermediates, scaled norms and stable half-angle diagonals. Annulus area uses the factored difference; polygon area and topology use exact binary64 predicates. Transcendental functions remain binary64. No absolute small-value clamp or display rounding replaces a nonzero result with zero. Thin rings, nearly flat shapes and tiny offsets relative to large coordinates are sensitive to input rounding: predicates concern normalized values, not the original arbitrary-precision decimal geometry. Relative1e-11 verification compares arithmetic with independent high precision; it does not bound input uncertainty.

Figures use equal coordinate scales. A thin, nearly collapsed or unresolvable figure, or a regular polygon with more than128 sides, is explicitly omitted while complete numerical results remain readable and exportable. This bound keeps rendering independent of a very large n.

Interactive calculation runs locally. A shared URL sends parameters to the server for replay/SSR and may enter browser history, access logs or analytics. REST/MCP send inputs for server execution. Site analytics may receive page URLs and interaction metadata. No zero-log, fixed retention, deletion or processing-region guarantee is claimed.

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.