Shape
Presets:
Area
Enter values above

Regular Polygon Reference

NameSidesInterior AngleArea Formula
Triangle360°A = (√3/4)s²
Square490°A = s²
Pentagon5108°A = (s²/4)√(25+10√5)
Hexagon6120°A = (3√3/2)s²
Heptagon7128.57°A = (7s²/4)cot(π/7)
Octagon8135°A = 2(1+√2)s²
Nonagon9140°A = (9s²/4)cot(π/9)
Decagon10144°A = (5s²/2)√(5+2√5)
Dodecagon12150°A = 3(2+√3)s²
n-gon (general)n(n−2)×180/n°A = (ns²)/(4tan(π/n))

Special Shape Formulas

ShapeFormulaNotes
RectangleA = w × hWidth × Height
ParallelogramA = b × hBase × perpendicular height
TrapezoidA = ½(b₁+b₂)×hAverage of parallel bases × height
RhombusA = (d₁×d₂)/2Half the product of diagonals
Irregular polygonShoelace formulaRequires ordered vertex coordinates

Key Polygon Properties

PropertyFormula
Interior angle (regular)(n−2) × 180 / n
Sum of interior angles(n−2) × 180°
Apothem (regular)a = s / (2 × tan(π/n))
Circumradius (regular)R = s / (2 × sin(π/n))
Number of diagonalsn(n−3) / 2

How to Enter Coordinates for Irregular Polygons

Format

SeparatorComma between x and y: (x,y)
VerticesOne per line or separated by commas
OrderAny consistent winding (CW or CCW)
MinimumAt least 3 vertices required
DecimalsSupported: (1.5, 3.25)

Accepted Input Examples

Multi-line(0,0)
(4,0)
(4,3)
(0,3)
Single line(0,0),(4,0),(4,3),(0,3)
No parentheses0,0 4,0 4,3 0,3
Spaces around comma(0, 0), (4, 0)

Shoelace Formula Explained

The Formula

Step 1List vertices: (x₁,y₁), (x₂,y₂), … (xₙ,yₙ)
Step 2Sum: Σ(xᵢ × yᵢ₊₁)
Step 3Sum: Σ(yᵢ × xᵢ₊₁)
Step 4Area = ½ × |Step2 − Step3|
NoteWrap last vertex back to first

Example: Rectangle (0,0)→(4,0)→(4,3)→(0,3)

Forward sum0×0 + 4×3 + 4×3 + 0×0 = 24
Backward sum0×4 + 0×4 + 3×0 + 3×0 = 0
Area½ × |24 − 0| = 12 ✓
Perimeter4 + 3 + 4 + 3 = 14
Matchesw × h = 4 × 3 = 12 ✓