Overview

A regular polygon has equal sides and equal angles, like an equilateral triangle, a square or a stop sign. This finds its area and perimeter from the number of sides and the side length.

Enter the number of sides (3 or more) and the length of one side.

Worked examples

InputsResult
Number of Sides6Side Length5Area: 64.95Perimeter: 30
Show 3 more examples
Number of Sides8Side Length12.4Area: 742.42Perimeter: 99.2
Number of Sides5Side Length10Area: 172.05Perimeter: 50
Number of Sides12Side Length2Area: 44.78Perimeter: 24

Area by number of sides

With the calculator's starting values, the area is 64.95. The table shows how it changes with the number of sides.

Number of SidesArea
310.83
425
543.01
6starting value64.95
790.85
8120.71
9154.55

Other inputs: Side Length: 5. Change them in the calculator above for your own numbers.

How it works

The polygon is split into identical triangles meeting at the center. The formula combines their areas using the tangent of the angle at the center. As the number of sides grows, the shape gets closer and closer to a circle.

The formula

Area = n × s² ÷ (4 × tan(π ÷ n))
nNumber of sides
sLength of each side

Practical tips

  • A regular hexagon with sides of 5 has an area of 64.95 and a perimeter of 30.
  • A stop sign is a regular octagon. With 12.4-inch sides, its area is about 742 square inches.
  • With 4 sides the formula gives s², a square, as you'd expect.

Frequently asked questions

What is the apothem?

The distance from the center to the middle of a side. Area also equals ½ × perimeter × apothem.

Does it work for irregular polygons?

No. For those, split the shape into triangles.

What are the interior angles?

Each is (n − 2) × 180° ÷ n, so 120° for a hexagon.