Rectangle Calculator
Rectangle A = ab, P = 2(a+b), d = √(a²+b²). Same engine as Plane Geometry. Not Pythagorean-only. 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 area, perimeter, diagonal, and an engine-linked figure of the sides and diagonal.
- Scope
- Euclidean plane
- Verification
- Engine tested · Specification 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
- Specification basis
- ISO 80000-2:2019 Quantities and units — Mathematics
- 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
Enter a and b
Both must be positive. a = 3, b = 4 is the 3-4 rectangle.
Read A, P, and d
3×4 has area 12, perimeter 14, and diagonal 5. The figure updates with a and b.
Example calculations
Common configurations with formula and result.
3-4 rectangle
a = 3, b = 4
Square as rectangle
a = 2, b = 2
Rectangle 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
- A rectangle of sides a>0 and b>0 has area ab, perimeter 2(a+b), and diagonal √(a²+b²). a=b is a valid square on this engine. This page is mode=rectangle on math.geometry.plane. Not Pythagorean-only. Not CAS.
- What it calculates
- Rectangle area, perimeter, diagonal, and an engine-linked figure of the sides and diagonal.
- Inputs
- a
- b
- Outputs
- area
- perimeter
- diagonal
- Formula
A = ab, P = 2(a+b), d = √(a²+b²)- Assumptions
- Euclidean plane
- a = b is a valid square
- Not Pythagorean-only
- Not CAS
- Units
- length (consistent units)
- area (length²)
- Boundary conditions
- a ≤ 0 or b ≤ 0 → VALUE_MUST_BE_POSITIVE
- unknown mode → INVALID_MODE
- Example
- a=3 b=4 → A=12, d=5
- Validation cases
2 published on this page · 25/25 tests · Production surface contract 5/5 · View evidence
- a=3 b=4 → A=12 P=14 d=5
- a=2 b=2 → A=4 square=true
- Specification basis
- 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 this a second plane engine?
No. It is mode=rectangle on math.geometry.plane, the same engine as /calc/math/plane-geometry.
Is this the Pythagorean calculator?
No. The 3-4 diagonal is the same 5 as a 3-4-5 triangle, on a different model. Right triangles stay on /calc/math/pythagorean.
Where does this run?
Locally in the browser by default. REST and MCP call the same plane-geometry engine.