Polygon Calculator

Calculate the area, perimeter, apothem, and interior and exterior angles of any regular polygon from its side count and side length.

Regular polygon properties
Enter the number of equal sides and the length of one side.

About the regular polygon calculator

A regular polygon is a closed two-dimensional shape whose sides all have the same length and whose interior angles all have the same measure. Familiar examples include an equilateral triangle, a square, a regular pentagon, and a regular hexagon. The number of sides determines the overall shape, while the side length controls its scale. This calculator combines those two measurements to find the polygon's perimeter, area, apothem, interior angle, and exterior angle. Perimeter is the simplest property: multiply the number of sides n by the side length s. Area can be found by dividing the polygon into n congruent isosceles triangles that meet at the center. The area formula is n times s squared divided by four times the tangent of pi divided by n. This formula works for every regular polygon with at least three sides. It gives square units, so a side measured in centimeters produces an area in square centimeters. The apothem is the perpendicular distance from the center to the midpoint of any side. It is also the height of each central triangle and equals s divided by two times the tangent of pi divided by n. Area can therefore be checked with the equivalent formula one half times perimeter times apothem. The circumradius, by contrast, reaches from the center to a vertex and is longer than the apothem except as the side count becomes very large. Every regular polygon has equal interior angles. Their total is (n - 2) times 180 degrees, and dividing by n gives each interior angle. Each exterior angle is 360 degrees divided by n. An interior angle and its adjacent exterior angle always add to 180 degrees. For a regular hexagon, for example, each interior angle is 120 degrees and each exterior angle is 60 degrees. Use positive lengths in any consistent unit. The perimeter and apothem retain that unit, while area uses its square. The side count must be a whole number because a polygon cannot have a fractional side. As n increases while side length remains fixed, the polygon grows and increasingly resembles a circle around its center. Regular polygon calculations are useful in geometry homework, tiling, architecture, machining, graphic design, and construction layout. The calculator keeps full floating-point precision internally and rounds only the displayed values, making it convenient for both quick estimates and formula checks.

Regular polygon examples

Compare common polygons calculated from their side count and side length.

InputArea and perimeterAngle information
Triangle: n = 3, s = 10Area 43.30127; perimeter 30Each interior angle is 60°
Square: n = 4, s = 15Area 225; perimeter 60Each interior angle is 90°
Hexagon: n = 6, s = 8Area 166.276878; perimeter 48Each interior angle is 120°
Octagon: n = 8, s = 5Area 120.710678; perimeter 40Each interior angle is 135°

How to calculate polygon properties

  1. Enter the polygon's whole number of equal sides, using 3 or more.
  2. Enter the positive length of one side in your preferred unit.
  3. Select Calculate to find area, perimeter, apothem, and angle measures.
  4. Keep the same length unit when using the results, and remember that area is expressed in square units.

Polygon calculator FAQ

Does this calculator work for irregular polygons?

No, these formulas assume that every side and every angle is equal. An irregular polygon requires vertex coordinates, diagonals, or other measurements to determine its area.

What is the apothem of a polygon?

The apothem is the perpendicular segment from a regular polygon's center to the midpoint of a side. It acts as the height of each triangle formed by joining the center to adjacent vertices.

How is regular polygon area calculated?

The polygon is divided into equal central triangles and their areas are added. Equivalently, area is one half of the perimeter multiplied by the apothem.

Why must the number of sides be at least three?

A closed flat shape needs at least three straight segments. One or two segments cannot enclose an area, so they do not form polygons.

What units does the calculator use?

You may use any consistent length unit, such as inches, meters, or centimeters. Perimeter and apothem use that unit, while area uses the corresponding square unit.