Polygon Angle Calculator – Interior, Exterior & Missing Angles

A polygon angle calculator finds the interior and exterior angles of a regular polygon, the angle sum of any polygon, a missing angle of a triangle or four-sided shape, and the three angles of a triangle from its sides.

Shape Calculators

Polygon Angle Calculator

Interior and exterior angles of regular polygons, the angle sum of any polygon, the missing angle of a triangle or 4-sided shape, and triangle angles from three sides.

The calculator has four modes. The starting values are a regular polygon with 6 sides, a four-sided shape with known angles of 85, 95 and 100 degrees, a triangle with angles of 50 and 60 degrees, and a triangle with sides of 5, 6 and 7. Choose the mode that matches what you know and enter your own values.

The four modes

Regular polygon mode takes the number of sides and returns each interior angle, each exterior angle, the sum of the interior angles and the number of diagonals. The two missing-angle modes take the angles you know and return the last one. Triangle from sides mode takes three side lengths and returns all three angles.

The formulas

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

Each interior angle of a regular polygon = (n − 2) × 180° ÷ n

Each exterior angle of a regular polygon = 360° ÷ n

Number of diagonals = n × (n − 3) ÷ 2

Missing angle of a four-sided shape = 360° − (A + B + C)

Missing angle of a triangle = 180° − (A + B)

Angle A of a triangle = arccos((b² + c² − a²) ÷ (2 × b × c))

Where n is the number of sides, A, B and C are known angles, and a, b and c are the sides of a triangle, with side a opposite angle A. The last formula is the law of cosines, and the other two angles follow the same pattern.

A polygon guide states the sum of the interior angles as (n − 2) × 180° and the sum of the exterior angles as 360° for any polygon. The reason for the first is that any polygon can be cut into n − 2 triangles from one corner, and each triangle adds 180°.

Worked example: a regular hexagon

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

Each interior angle = 720 ÷ 6 = 120°

Each exterior angle = 360 ÷ 6 = 60°

Diagonals = 6 × 3 ÷ 2 = 9

Each interior angle and its exterior angle add up to 180°, so 120 + 60 = 180 is a quick check.

Worked example: a regular decagon and a pentagon

For 10 sides, the interior angle sum is 8 × 180 = 1,440°, each interior angle is 144°, each exterior angle is 36° and there are 10 × 7 ÷ 2 = 35 diagonals. For 5 sides, the sum is 540°, each interior angle is 108°, each exterior angle is 72° and there are 5 diagonals. As the number of sides grows, the interior angle approaches 180° and the exterior angle shrinks toward 0°.

Worked example: a missing angle

A four-sided shape has angles of 85°, 95° and 100°. The fourth angle is 360 − (85 + 95 + 100) = 80°. A triangle with angles of 50° and 60° has a third angle of 180 − 110 = 70°.

The calculator shows a message if the known angles already add up to 360° or more for a four-sided shape, or 180° or more for a triangle, because no angle can be left over.

Worked example: triangle angles from three sides

Take sides of 5, 6 and 7.

Angle A = arccos((6² + 7² − 5²) ÷ (2 × 6 × 7)) = arccos(60 ÷ 84) = 44.42°

Angle B = arccos((5² + 7² − 6²) ÷ (2 × 5 × 7)) = arccos(38 ÷ 70) = 57.12°

Angle C = arccos((5² + 6² − 7²) ÷ (2 × 5 × 6)) = arccos(12 ÷ 60) = 78.46°

The three angles add up to 180.00°, and the largest angle is opposite the longest side, which is a good sanity check.

Regular and irregular polygons

The angle sum depends only on the number of sides, so it applies to an irregular polygon as well. An irregular octagon still has interior angles that add up to 6 × 180 = 1,080°. What you cannot do for an irregular polygon is divide the sum by n, because its angles are not equal. For an irregular shape, use the missing-angle modes when you know all but one of the angles.

Checks the calculator makes

The number of sides must be a whole number of 3 or more. The three sides of a triangle must be able to form a real triangle, so each side has to be shorter than the other two added together. If the numbers cannot form a triangle, the calculator tells you to check them.

Where polygon angles are used

Interior angles matter when you cut mitred joints for a frame or a polygonal deck, and the exterior angle is the angle you turn through at each corner when you walk around the shape. For a regular hexagon, the mitre angle is half of the interior angle, which is 60°. The area of the same shape can be found with the polygon area calculator.

Frequently asked questions

How do I find the interior angle of a regular polygon?

Subtract 2 from the number of sides, multiply by 180 and divide by the number of sides. A regular hexagon has 4 × 180 ÷ 6 = 120° at each corner. The exterior angle is 360 divided by the number of sides, which is 60° for a hexagon.

What is the sum of the interior angles of a polygon?

It is (n − 2) times 180 degrees, where n is the number of sides. A pentagon gives 540° and an octagon gives 1,080°. This holds for regular and irregular polygons alike.

How do I find a missing angle in a quadrilateral?

Add the three known angles and subtract the total from 360°. For angles of 85°, 95° and 100° the missing angle is 80°.

How do I find the angles of a triangle from its sides?

Use the law of cosines for each angle. For sides of 5, 6 and 7 the angles are 44.42°, 57.12° and 78.46°, which add up to 180°.

Mark Danny

Mark Danny

Mark Danny builds and maintains the free calculators and guides on Area of Irregular Shapes Calculator. Every calculator page explains its formula and shows a worked example, so you can check the working yourself. Spotted a mistake or have a suggestion? Email gulsher.hingoro101@gmail.com.

Articles: 559