Polygon Interior Angle Calculator

This free interior angles of a polygon calculator answers every common angle question in one place. Enter the number of sides to get the sum of the interior angles, each angle of a regular polygon, the exterior angle, and the number of diagonals. You can also find a missing angle, work out how many sides a regular polygon has from one angle, or enter the corners of an irregular shape and see every interior angle marked on a drawing.

Choose what you want to find. Not sure how it works? Use the Try an example button on any tab.
Show step-by-step working

What Are the Interior Angles of a Polygon?

An interior angle is the angle on the inside of a polygon where two sides meet. A triangle has 3 interior angles, a square has 4, a pentagon has 5, and so on: a polygon always has as many angles as sides.

The angle on the outside, between one side and the extension of the next side, is the exterior angle. At every corner, the interior and exterior angles add up to 180°, because together they form a straight line.

A polygon is convex if every interior angle is less than 180°. If at least one angle is more than 180° (a corner that points inward, like the inside corner of an L), the polygon is concave, and that angle is called a reflex angle.

How to Use the Calculator

The calculator has four tabs, one for each common question:

  1. Number of sides: enter how many sides the polygon has. You get the sum of the interior angles, each interior and exterior angle of a regular polygon, the sum in radians, and the number of diagonals.
  2. Find a missing angle: enter the number of sides and the angles you already know. If one angle is missing, you get its exact value. If several are missing, you get what they add up to.
  3. Angles from coordinates: enter the x, y position of each corner of any shape, regular or irregular. The calculator works out every interior angle, marks them on a drawing, and tells you if the shape is convex or concave.
  4. Sides from one angle: enter one interior or exterior angle of a regular polygon to find how many sides it has.

Every tab has a “Try an example” button and a “Show step-by-step working” panel.

The Formulas Behind the Calculator

Sum of the interior angles

Any polygon with n sides can be split into (n − 2) triangles by drawing lines from one corner. Each triangle’s angles add up to 180°, so:

Sum of interior angles = ( n − 2 ) × 180°

Sum of interior angles = (n − 2) × 180°

This works for every polygon, regular or irregular, convex or concave.

Each angle of a regular polygon

In a regular polygon all sides and angles are equal, so each one is the sum divided by n:

Each interior angle = ( n − 2 ) × 180°n Each exterior angle = 360°n

Each interior angle = (n − 2) × 180° ÷ n

Each exterior angle = 360° ÷ n

The exterior angles of any convex polygon always add up to 360°.

Missing angle

Missing angle = (n − 2) × 180° − (sum of the known angles)

Number of sides from an angle

Turning the exterior angle formula around:

n = 360°Exterior angle = 360°180° − Interior angle

n = 360° ÷ Exterior angle = 360° ÷ (180° − Interior angle)

If the answer isn’t a whole number, no regular polygon has that angle.

Number of diagonals

Diagonals = n × (n − 3) ÷ 2, since each corner connects to every other corner except itself and its two neighbors, and each diagonal is counted twice.

Worked Example 1: The Angles of a Hexagon

A hexagon has 6 sides.

  • Sum of interior angles = (6 − 2) × 180° = 720°
  • Each interior angle (regular) = 720° ÷ 6 = 120°
  • Each exterior angle = 360° ÷ 6 = 60° (and 120° + 60° = 180° ✓)
  • Diagonals = 6 × 3 ÷ 2 = 9

This is why honeycomb cells fit together perfectly: three 120° angles meet at each point to make 360°.

Worked Example 2: Finding a Missing Angle

A pentagon has four known angles: 100°, 110°, 95°, and 120°. What is the fifth?

  • Sum for a pentagon = (5 − 2) × 180° = 540°
  • Known angles = 100 + 110 + 95 + 120 = 425°
  • Missing angle = 540° − 425° = 115°

Worked Example 3: Angles of an Irregular Room From Its Corners

A room has five corners at (0,0), (16,0), (16,10), (12,14), and (0,14). One corner is cut off by an angled wall.

CornerInterior angle
P1 (0, 0)90°
P2 (16, 0)90°
P3 (16, 10)135°
P4 (12, 14)135°
P5 (0, 14)90°
Sum540°

The angled wall creates two 135° corners, and the total matches the 540° every pentagon must have. All angles are under 180°, so the room is convex. These are the numbers behind the “Try an example” button on the coordinates tab.

An L-shaped room (six corners) gives five 90° angles and one 270° reflex angle at the inside corner, for a total of 720°, the sum for any hexagon.

Worked Example 4: How Many Sides Does It Have?

Each interior angle of a regular polygon is 140°.

  • Exterior angle = 180° − 140° = 40°
  • Number of sides = 360° ÷ 40° = 9, so it’s a nonagon

If the angle were 130°, you’d get 360 ÷ 50 = 7.2, which isn’t a whole number, so no regular polygon has 130° angles.

Interior Angles Table (3 to 12 Sides)

PolygonSidesSum of interior anglesEach interior angle (regular)Each exterior angle (regular)Diagonals
Triangle3180°60°120°0
Quadrilateral4360°90°90°2
Pentagon5540°108°72°5
Hexagon6720°120°60°9
Heptagon7900°128.57°51.43°14
Octagon81,080°135°45°20
Nonagon91,260°140°40°27
Decagon101,440°144°36°35
Hendecagon111,620°147.27°32.73°44
Dodecagon121,800°150°30°54

Each extra side adds exactly 180° to the total.

Regular vs Irregular Polygons

  • In a regular polygon, every side is the same length and every angle is the same size, so you can divide the total by n to get each angle.
  • In an irregular polygon, the sides and angles differ. The total is still (n − 2) × 180°, but the individual angles can be anything that adds up to it. To find each one, use the “Angles from coordinates” tab.

Our guide to regular vs irregular shapes explains the difference in more detail.

Tips and Common Mistakes

  • Count sides carefully. The most common error is using the wrong n, especially for shapes with short sides or bumps.
  • Don’t divide by n for irregular shapes. “Each angle = sum ÷ n” only works for regular polygons.
  • Remember reflex angles. An inward-pointing corner has an interior angle greater than 180°, and it still counts toward the total.
  • Enter corners in order on the coordinates tab, going around the shape in one direction.
  • Check your total. If your angles don’t add up to (n − 2) × 180°, one of them is wrong or you’ve miscounted the sides.

Related Calculators

Frequently Asked Questions

(n − 2) × 180°, where n is the number of sides. A pentagon, for example, has (5 − 2) × 180° = 540°.

Divide the sum by the number of sides: (n − 2) × 180° ÷ n. A regular octagon has 1,080° ÷ 8 = 135° per angle.

For any convex polygon, the exterior angles always add up to 360°, no matter how many sides it has.

Work out the total with (n − 2) × 180°, then subtract the angles you know. What’s left is the missing angle.

Yes. In a concave polygon, a corner that points inward has a reflex angle greater than 180°, like the 270° inside corner of an L-shape.

Yes. The sum (n − 2) × 180° works for every simple polygon. Only the “each angle” formula needs the polygon to be regular.

Similar Posts

3 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *