Math Calculators
Polygon Calculator - Area, Perimeter, Angles & Diagonals
Calculate properties of any regular polygon: area, perimeter, interior and exterior angles, number of diagonals, inradius (apothem), and circumradius. Works for triangles through megagons.
Common polygons:
Hexagon
Show calculation steps
- Regular polygon: n = 6 sides, side length s = 1
- Perimeter = n·s = 6·1 = 6
- Area = (n·s²) / (4·tan(π/n)) = 2.598076
- Interior angle = (n−2)·180 / n = 120°
- Exterior angle = 360 / n = 60°
- Diagonals = n·(n−3) / 2 = 9
- Inradius (apothem) = s / (2·tan(π/n)) = 0.866025
- Circumradius = s / (2·sin(π/n)) = 1
| Property | Value |
|---|---|
| Sides | 6 |
| Side length | 1 |
Regular polygon formulas
All formulas assume a regular polygon: all sides equal length, all angles equal.
- Perimeter: P = n·s
- Area: A = (n·s²) / (4·tan(π/n))
- Interior angle: α = (n−2)·180° / n
- Exterior angle: β = 360° / n
- Diagonals: D = n·(n−3) / 2
- Inradius (apothem): r = s / (2·tan(π/n))
- Circumradius: R = s / (2·sin(π/n))
Common polygons
- Triangle (3 sides), interior angle: 60°
- Square (4 sides), interior angle: 90°
- Pentagon (5 sides), interior angle: 108°
- Hexagon (6 sides), interior angle: 120°
- Octagon (8 sides), interior angle: 135°
Inradius vs circumradius
The inradius (apothem) is the distance from the center to the midpoint of a side : the radius of the inscribed circle. The circumradius is the distance from the center to a vertex: the radius of the circumscribed circle.
Irregular polygon area: the Shoelace formula
When you know the vertex coordinates of any polygon (regular or irregular), the Shoelace formula (Gauss’s area formula) gives the exact area:
A = ½ |∑(xᵢ × yᵢ₊₁ − xᵢ₊₁ × yᵢ)| List the vertices in order (either clockwise or counterclockwise), multiply each x by the next y and subtract the reverse product, sum all terms, and take half the absolute value. This complements the regular polygon formulas above and handles any shape whose vertices are known.
Polygon tilings
Only three regular polygons tile the plane by themselves: the equilateral triangle, the square, and the regular hexagon. The reason: the interior angle of the tiling polygon must divide evenly into 360°. Triangles (60°), squares (90°), and hexagons (120°) satisfy this; pentagons (108°) and others do not.
Named polygons reference
| Sides (n) | Name | Interior angle | Real-world example |
|---|---|---|---|
| 3 | Triangle | 60° | Yield sign, truss |
| 4 | Quadrilateral / Square | 90° | Tiles, screens |
| 5 | Pentagon | 108° | US Pentagon building |
| 6 | Hexagon | 120° | Honeycomb, hex nuts |
| 7 | Heptagon | 128.57° | UK 50p coin |
| 8 | Octagon | 135° | Stop sign |
| 9 | Nonagon | 140° | Some coins |
| 10 | Decagon | 144° | Dime (approximately) |
| 11 | Hendecagon | 147.27° | Canadian dollar coin |
| 12 | Dodecagon | 150° | Clock face outline |