Polygon Calculator

Polygon Calculator

Calculate properties of a regular polygon from the number of sides and the side length.

Last updated: June 2026 | By Patchworkr Team

Regular Polygon
Math check: area = n s^2 / (4 tan(pi / n))
Result
PolygonHexagon
Perimeter30
Area64.951905
Interior Angle120 deg
Exterior Angle60 deg
Apothem4.330127
Circumradius5
Diagonals9

Formula

interior angle = (n - 2) * 180 / n
exterior angle = 360 / n
area = n s^2 / (4 tan(pi / n))
diagonals = n(n - 3) / 2

How to Use It

  1. Enter an integer number of sides at least 3.
  2. Enter a positive side length.
  3. Read the properties of the regular polygon in the result panel.

Worked Example

For 8 sides of length 4, the polygon is an octagon, and the formulas produce the area, perimeter, and angle values.

The number of diagonals is 8(8 - 3) / 2 = 20.

Notes

This calculator is for regular polygons only. Irregular polygons need coordinate-based methods like the shoelace formula.

Related Tools