Interior sum — every simple polygon
Dividing a polygon from one vertex creates n − 2 triangles.
Find each interior, exterior, or central angle; calculate the interior-angle sum; solve for the number of sides; or find one missing angle in an irregular polygon. Choose regular, irregular, or advanced coordinate mode. Calculations run locally in your browser.
Enter a whole number of at least 3.
Enter exactly n − 1 angles, separated by commas or spaces.
Advanced coordinate analysis. Enter vertices in boundary order, clockwise or counterclockwise. Clicking the diagram can add a point; the table provides a complete keyboard-accessible alternative.
A regular hexagon divided into 4 triangles. α is an interior angle and β is the exterior or central angle.
Vertices must follow the polygon boundary in clockwise or counterclockwise order. Do not repeat the first point at the end.
| # | x | y | Actions |
|---|
Use the labelled move and delete buttons to edit the point order without dragging.
Centroid-angle sorting is only a starting point for scattered convex point sets. It can create the wrong boundary for concave shapes; inspect the diagram and intersection report afterward.
Every simple polygon: the interior sum and one-missing-angle formulas apply to regular or irregular simple polygons. Regular polygons only: the per-angle and reverse formulas require all angles to be equal.
Dividing a polygon from one vertex creates n − 2 triangles.
Equivalent to i = 180° − 360° ÷ n.
At one vertex, i + e = 180°.
A valid polygon result must be a whole number of at least 3.
The regular interior angle must be at least 60° and less than 180°.
Provide n − 1 known interior angles.
S = (5 − 2) × 180° = 540°. If regular, each angle is 540° ÷ 5 = 108°.
S = (6 − 2) × 180° = 720°. Each interior angle is 720° ÷ 6 = 120°; each exterior angle is 360° ÷ 6 = 60°.
n = 360° ÷ 60° = 6, so it is a regular hexagon.
n = 360° ÷ (180° − 150°) = 360° ÷ 30° = 12, a regular dodecagon.
S = 540°. Known sum = 100° + 110° + 120° + 95° = 425°. Missing = 540° − 425° = 115°.
| Sides | Name | Interior sum | Each interior | Each exterior |
|---|---|---|---|---|
| 3 | Triangle | 180° | 60° | 120° |
| 4 | Quadrilateral (square) | 360° | 90° | 90° |
| 5 | Pentagon | 540° | 108° | 72° |
| 6 | Hexagon | 720° | 120° | 60° |
| 7 | Heptagon | 900° | 128.571° | 51.429° |
| 8 | Octagon | 1,080° | 135° | 45° |
| 9 | Nonagon | 1,260° | 140° | 40° |
| 10 | Decagon | 1,440° | 144° | 36° |
| 11 | Undecagon | 1,620° | 147.273° | 32.727° |
| 12 | Dodecagon | 1,800° | 150° | 30° |
The coordinate mode expects a simple boundary path, with each vertex listed once in clockwise or counterclockwise order. It uses the shoelace signed area to determine orientation, dot and cross products to measure each interior angle and reflex status, and segment tests to report exact intersecting edge pairs.
Diagnostics report duplicate vertices, zero-length edges, collinear triples, degenerate area, and self-intersections. The measured interior and signed exterior totals are compared with the theoretical totals. Centroid-angle sorting is deliberately labelled as a tentative aid because it is not reliable for every concave point set.
Starlight Tools Mathematics Editorial Team
Geometry formula and numerical-method review.
Last reviewed: 17 July 2026
Regular results use closed-form Euclidean polygon formulas. Irregular missing angles subtract the known sum from (n − 2) × 180°. Coordinate angles use normalized vector dot products, cross-product reflex tests, and orientation-aware signed turns.
Automated in-page checks cover clockwise, counterclockwise, concave, duplicate-point, collinear, degenerate, and self-intersecting cases. Results are calculated at full floating-point precision, then rounded only for display. Coordinate results can be unreliable for nearly coincident points or invalid boundary order.
References: OpenStax, Polygons, Perimeter, and Circumference and Chapter 10 Formula Review.
For every simple n-sided polygon, S = (n − 2) × 180°. A pentagon has S = (5 − 2) × 180° = 540°.
Divide the interior sum by n: i = (n − 2) × 180° ÷ n. The exterior or central angle is e = 360° ÷ n. For a hexagon, i = 120° and e = 60°.
For a regular polygon, use n = 360° ÷ (180° − i). If i = 150°, n = 360° ÷ 30° = 12 sides.
For a regular polygon, use n = 360° ÷ e. If e = 60°, n = 360° ÷ 60° = 6 sides, so the polygon is a hexagon.
Find S = (n − 2) × 180°, add the known interior angles, then subtract: missing angle = S − known-angle sum. For a pentagon with known angles 100°, 110°, 120°, and 95°, the missing angle is 115°.
One exterior turning angle at each vertex of a simple polygon totals one full turn: +360° when traversed counterclockwise or −360° when traversed clockwise. Unsigned regular exterior angles total 360°.
A simple concave polygon still has interior sum (n − 2) × 180°, but reflex interior angles exceed 180° and their signed turns reverse sign. A self-intersecting path is not a simple polygon, so this sum rule may not apply; the coordinate tool reports the intersecting edge pairs.