Skip to content
Toolcroft

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

Perimeter6
Area2.598076
Interior angle120°
Exterior angle60°
Number of diagonals9
Inradius (apothem)0.866025
Circumradius1
Show calculation steps
  1. Regular polygon: n = 6 sides, side length s = 1
  2. Perimeter = n·s = 6·1 = 6
  3. Area = (n·s²) / (4·tan(π/n)) = 2.598076
  4. Interior angle = (n−2)·180 / n = 120°
  5. Exterior angle = 360 / n = 60°
  6. Diagonals = n·(n−3) / 2 = 9
  7. Inradius (apothem) = s / (2·tan(π/n)) = 0.866025
  8. Circumradius = s / (2·sin(π/n)) = 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)NameInterior angleReal-world example
3Triangle60°Yield sign, truss
4Quadrilateral / Square90°Tiles, screens
5Pentagon108°US Pentagon building
6Hexagon120°Honeycomb, hex nuts
7Heptagon128.57°UK 50p coin
8Octagon135°Stop sign
9Nonagon140°Some coins
10Decagon144°Dime (approximately)
11Hendecagon147.27°Canadian dollar coin
12Dodecagon150°Clock face outline