Polygon Calculator
Regular polygon area, perimeter and angles from the number of sides and the side length — with the formula shown.
Formulas: area = (n × s²) ÷ (4 × tan(π ÷ n)); perimeter = n × s; interior angle = (n − 2) × 180° ÷ n; exterior angle = 360° ÷ n.
How to use the polygon calculator
- Enter the number of sides n (3 or more).
- Enter the length of one side.
- Press “Calculate polygon” to see the area, perimeter and angles.
Example: regular hexagon with side 5
- Interior angle: (6 − 2) × 180 ÷ 6 = 120°.
- Perimeter: 6 × 5 = 30.
- Area: (3√3 ÷ 2) × 5² ≈ 64.95.
Formulas
Sum of interior angles = (n − 2) × 180° · Area = n × s² ÷ (4 × tan(π ÷ n))
- Exterior angles of any polygon add up to 360°.
Polygon calculator: common questions
- What is a regular polygon?
- A polygon with all sides the same length and all angles equal — an equilateral triangle, a square, a regular pentagon, a regular hexagon, and so on.
- What is the interior angle of a regular hexagon?
- 120°. The formula is (n − 2) × 180° ÷ n, so for n = 6 it is 4 × 180° ÷ 6 = 120°.
- How is the area worked out?
- The polygon is split into n identical triangles from the centre. The result is area = (n × s²) ÷ (4 × tan(π ÷ n)).
- Is my input stored?
- No. The calculation runs in your browser.
- How many diagonals does a polygon have?
- n(n − 3) ÷ 2. A hexagon has 6 × 3 ÷ 2 = 9 diagonals.