Skip to content
Other

Perimeter of a Polygon Calculator

Enter the number of sides and any one dimension of a regular polygon, and this calculator instantly finds the perimeter, area, inradius, circumradius, and both interior and exterior angles. Switch between metres, centimetres, feet, and inches. The step-by-step panel shows the exact formulas with your numbers substituted in.

Your details

Whole number of sides. Minimum 3 (triangle). Up to 1,000 sides.
Choose which dimension you already know. The calculator derives all others.
Enter the numeric value of the dimension you selected above.
Perimeter
60cm

Total boundary length of the polygon

Area259.8076cm²
Side length (a)10cm
Inradius / apothem (r)8.6603cm
Circumradius (R)10cm
Interior angle120deg
Exterior angle60deg
Polygon nameHexagon

Perimeter of the hexagon: 60.0000 cm

  • The hexagon has 6 equal sides of 10.0000 cm each, giving a perimeter of 60.0000 cm.
  • Its area is 259.8076 cm^2. As n increases, the area-to-perimeter ratio grows: a circle encloses the most area for a given perimeter.
  • Each interior angle is 120.00 degrees. All interior angles of a regular polygon are equal; their sum is (n - 2) x 180 = 720 degrees.
  • All calculations above assume a regular polygon (all sides and angles equal). For irregular polygons, add all individual side lengths to find the perimeter.

Next stepTo find the perimeter of an irregular polygon, measure each side individually and sum them. This calculator handles the regular case automatically.

What is the perimeter of a regular polygon?

The perimeter of a polygon is the total length of its boundary. For a regular polygon, where every side is the same length, the formula is simply P = n x a, where n is the number of sides and a is the side length. For example, a regular hexagon with each side 10 cm long has a perimeter of 6 x 10 = 60 cm. For irregular polygons, you add up all the individual side lengths since they differ from one another.

Inradius, circumradius, and how they relate to the side

A regular polygon can be described by three circles. The incircle (radius r, the inradius or apothem) fits perfectly inside the polygon touching each side at its midpoint. The circumcircle (radius R, the circumradius) passes through every vertex. Given the side length a and the number of sides n, the relationships are: r = a / (2 x tan(pi / n)) and R = a / (2 x sin(pi / n)). This calculator lets you enter any one of these values and computes the others, so you can solve the polygon from whichever dimension you already know.

Interior and exterior angles of a regular polygon

Every interior angle of a regular n-gon measures (n - 2) x 180 / n degrees. The exterior angle, formed by extending one side, is 360 / n degrees. The two always add to 180 degrees. For a triangle (n = 3) the interior angle is 60 degrees; for a square (n = 4) it is 90 degrees; for a hexagon (n = 6) it is 120 degrees. As n grows very large, the polygon approaches a circle and the interior angle approaches 180 degrees.

Area of a regular polygon

The area of a regular polygon is A = (n x a^2) / (4 x tan(pi / n)). This formula is equivalent to dividing the polygon into n identical isosceles triangles from the centre, computing each triangle's area as (1/2) x base x height where the base is the side length a and the height is the inradius r, then multiplying by n. Because of this, it can also be written as A = (1/2) x n x a x r. This calculator derives the area regardless of which input you start from, and shows every step of the working.

Regular polygon properties reference

Sides (n)NameInterior angleExterior angleArea formula
3Triangle60 deg120 deg(a^2 * sqrt(3)) / 4
4Square90 deg90 dega^2
5Pentagon108 deg72 deg(a^2 / 4) * sqrt(25 + 10*sqrt(5))
6Hexagon120 deg60 deg(3*sqrt(3) / 2) * a^2
7Heptagon128.57 deg51.43 deg(7 * a^2) / (4 * tan(pi/7))
8Octagon135 deg45 deg2 * (1 + sqrt(2)) * a^2
9Nonagon140 deg40 deg(9 * a^2) / (4 * tan(pi/9))
10Decagon144 deg36 deg(5 * a^2 / 2) * sqrt(5 + 2*sqrt(5))
12Dodecagon150 deg30 deg3 * (2 + sqrt(3)) * a^2

Interior angle, exterior angle, and formulas for common regular polygons.

Frequently asked questions

How do I find the perimeter of a regular polygon?

Multiply the number of sides by the side length: P = n x a. For a regular pentagon with side length 8 cm: P = 5 x 8 = 40 cm. If you only know the inradius, circumradius, or area instead, this calculator derives the side length first and then the perimeter.

What is the difference between inradius and circumradius?

The inradius (also called the apothem) is the distance from the centre of the polygon to the midpoint of any side. The circumradius is the distance from the centre to any vertex. For a given regular polygon, the circumradius is always larger than the inradius. They are related to the side length by r = a / (2 x tan(pi / n)) and R = a / (2 x sin(pi / n)).

Can I use this calculator for irregular polygons?

This calculator is designed for regular polygons, where all sides and all angles are equal. For an irregular polygon, the perimeter is simply the sum of all individual side lengths. You would need to measure each side separately and add them together.

What is the interior angle of a regular hexagon?

A regular hexagon has 6 sides. Its interior angle is (6 - 2) x 180 / 6 = 120 degrees. The exterior angle is 360 / 6 = 60 degrees. The sum of all interior angles of a hexagon is 720 degrees.

Does the number of sides have to be a whole number?

Yes. A polygon must have a whole number of sides (at least 3). You cannot have a polygon with 5.5 sides. This calculator rounds any decimal entry to the nearest integer to guard against rounding errors.

How do I find the perimeter if I only know the area?

Rearrange the area formula A = (n x a^2) / (4 x tan(pi / n)) to solve for a: a = sqrt(4 x A x tan(pi / n) / n). Then the perimeter is P = n x a. This calculator does that automatically when you select "Area" as the known dimension.

Sources

Written by Grace Mbeki, MSc Data Scientist & Educator · Nairobi, Kenya

Turning everyday numbers into clear, actionable answers for the decisions that matter most.

Search 3,500+ calculators

Loading search…