In the "Angles of an n-gon" mode, enter the number of angles (vertices) n. In the "Regular polygon from one angle" mode, enter the size of one angle of the regular polygon.
Table of Contents
-
What you can do on this page
-
What is this calculation used for?
-
How to Use
-
Formulas and figures
-
Symbols and terms
-
Good to know before you start
-
How to calculate it in Excel
-
How to calculate it in Google Sheets
-
How to calculate it in Python
-
How to write it in LaTeX and other math languages (copy and paste)
-
How to have ChatGPT do the calculation
-
DataChef Features
-
Related Features
-
NumberChef Calculators List
What you can do on this page
- Enter the number of angles (vertices) of an \(n\)-gon (3 to 360), and you get the sum of the interior angles \(180^\circ \times (n - 2)\), the sum of the exterior angles \(360^\circ\), and each interior and exterior angle of a regular \(n\)-gon on the spot
- Angles that do not divide evenly, such as each interior angle of a regular heptagon, \(\dfrac{900}{7}^\circ\), are shown both as an exact fraction and as a decimal. The steps also show the idea of splitting the polygon into \((n-2)\) triangles
- It also works backward: from the size of one interior (or exterior) angle, it finds how many sides the regular polygon has. If the number of vertices is not a whole number, it tells you that no regular polygon has that angle
- The result includes a figure of the regular polygon, so you can see where one interior angle and one exterior angle are and how the diagonals split it into triangles (with too many angles, the figure or the diagonals are left out)
What is this calculation used for?
When surveyors measure property lines, they treat the lot as a polygon and measure the angle at each corner. By checking how far the total of the measured interior angles is from the theoretical value \(180^\circ \times (n - 2)\) (the angular misclosure), they can catch measuring mistakes and instrument errors.
This check is a standard daily step in real survey work, and it is an example of the interior angle sum formula being used directly for quality control in the field.
To cover a floor with one kind of regular polygon and no gaps, the interior angles must fit exactly around one point (\(360^\circ\)). So only shapes whose interior angle divides \(360^\circ\) evenly can tile the plane: the equilateral triangle (\(60^\circ\)), the square (\(90^\circ\)) and the regular hexagon (\(120^\circ\)). Regular pentagons (\(108^\circ\)) always leave gaps.
Honeycombs are hexagons because this shape divides space with no gaps while using little material.
To draw a regular polygon in Scratch, with turtle graphics or with a robot, you repeat "move forward a little, then turn a little". The turning angle is not the interior angle but the exterior angle (\(360^\circ \div n\)). For a regular pentagon, turning \(72^\circ\) each time brings you back to the start and closes the shape.
This is a classic lesson in school coding classes, and it turns the idea "the exterior angles add up to \(360^\circ\) (one full turn)" directly into a program.
A camera lens controls the amount of light with an aperture, an opening close to a regular polygon formed by several blades. The number of blades (the number of angles of the polygon) changes how many rays stream out from lights in a night photo and the shape of the background blur.
In product design, the number of angles of the polygon and its angles are part of what gives each lens its own look.
Formulas and figures
Symbols and terms
Symbols
| \(n\) | n | The number of angles (vertices). For a pentagon, \(n = 5\). The letter \(n\), from "number", is often used for a count. |
| \(S\) | S | The letter for the sum of the interior angles on this page, from the first letter of "sum". It is also often used for totals and for area. |
| \(T\) | T | The letter for the sum of the exterior angles on this page, from the first letter of "total". |
| \(x,\ y\) | x, y | Letters for the angles you want to find. Textbooks usually call an unknown number \(x\), as in "let each interior angle be \(x^\circ\)". |
| \(^\circ\) | degree | The symbol for the degree, the unit of angle. One full turn divided into 360 equal parts is \(1^\circ\). The number 360 is said to have been chosen because it has many factors and is easy to divide evenly. |
Terms
| polygon | A closed figure made of three or more line segments (straight sides). It is the general name for triangles, quadrilaterals, pentagons and so on. A polygon with \(n\) angles is called an \(n\)-gon. |
| vertex | A corner point of a polygon, where two sides meet (plural - vertices). An \(n\)-gon has \(n\) of them. The numbers of angles, vertices and sides are all the same. |
| interior angle | An angle on the inside of a polygon. An \(n\)-gon has \(n\) of them, the same as its number of vertices. |
| exterior angle | The angle between one side of a polygon extended as a line and the next side. The interior and exterior angles at the same vertex together make a straight angle (\(180^\circ\)). |
| sum of the interior angles | All the interior angles added together. For an \(n\)-gon it is \(180^\circ \times (n - 2)\). A triangle has \(180^\circ\), a quadrilateral \(360^\circ\) and a pentagon \(540^\circ\); each extra angle adds \(180^\circ\). |
| sum of the exterior angles | One exterior angle taken at each vertex, all added together. For a polygon with no dents, it is always exactly one full turn, \(360^\circ\), whatever the number of sides. |
| regular polygon | A polygon whose sides are all the same length and whose interior angles are all the same size, such as an equilateral triangle, a square or a regular pentagon. Because all the angles are equal, "interior sum ÷ number of angles" gives each interior angle. |
| diagonal | A line segment joining two vertices of a polygon that are not next to each other. From one vertex you can draw \(n - 3\) of them (to every vertex except itself and its two neighbors), and they cut the polygon into \(n - 2\) triangles. |
| triangle angle sum | The fact that the three interior angles of any triangle always add up to \(180^\circ\). The formula for the interior angle sum of a polygon comes from splitting the polygon into triangles and using this fact. |
| straight angle | The angle of a straight line. It measures \(180^\circ\), exactly half a turn. "Interior + exterior \(= 180^\circ\)" comes from the fact that a side and its extension form a straight line, that is, a straight angle. |
| convex polygon | A polygon with no dents, that is, every interior angle is less than \(180^\circ\). The explanation of exterior angles on this page (exterior angle sum \(= 360^\circ\)) assumes a convex polygon. |
Good to know before you start
Here is what helps you use the calculation on this page with real understanding, not just by pressing the button.
If you get stuck, going back to the topics in this list is the quickest way forward.
| Angle sum of a triangle (Grades 5–8) |
|
| Angles and turns (Grade 4) |
|
| Polygons and diagonals (Grades 3–7) |
|
| Division and fractions (Grades 5–6) |
|
| One-variable equations (Grades 6–7) |
|
How to calculate it in Excel
| Number of angles (vertices) n | 5 |
| Sum of interior angles S | =180*(B1-2) |
| Number of angles (vertices) n | 5 |
| Each interior angle x | =180*(B1-2)/B1 |
| Number of angles (vertices) n | 5 |
| Each exterior angle y | =360/B1 |
| Each interior angle (degrees) | 108 |
| Each exterior angle (degrees) | =180-B1 |
| Number of vertices n = 360 ÷ exterior angle | =360/B2 |
"*" is multiplication and "/" is division.
The first table finds the sum of the interior angles of a pentagon (n = 5), and the answer is 540. The second and third tables give each interior angle and each exterior angle of a regular pentagon, 108 and 72.
The fourth table works backward. Enter the interior angle 108, and you get an exterior angle of 72 and 5 vertices, so it is a regular pentagon. If the number of vertices is not a whole number, such as 7.2, no regular polygon has that angle.
How to calculate it in Google Sheets
| Number of angles (vertices) n | 5 |
| Sum of interior angles S | =180*(B1-2) |
| Number of angles (vertices) n | 5 |
| Each interior angle x | =180*(B1-2)/B1 |
| Number of angles (vertices) n | 5 |
| Each exterior angle y | =360/B1 |
| Each interior angle (degrees) | 108 |
| Each exterior angle (degrees) | =180-B1 |
| Number of vertices n = 360 ÷ exterior angle | =360/B2 |
How to calculate it in Python
from fractions import Fraction
# Angles of an n-gon (vertex_count = number of angles/vertices)
vertex_count = 7
interior_sum = 180 * (vertex_count - 2)
regular_interior = Fraction(interior_sum, vertex_count)
regular_exterior = Fraction(360, vertex_count)
print(f"Sum of interior angles: {interior_sum}°")
print("Sum of exterior angles: 360°")
print(f"Each interior angle of a regular {vertex_count}-gon: {regular_interior}° ≈ {float(regular_interior):.2f}°")
print(f"Each exterior angle of a regular {vertex_count}-gon: {regular_exterior}° ≈ {float(regular_exterior):.2f}°")
# Backward: find the regular polygon from one interior angle
interior_angle = Fraction(150)
exterior_angle = 180 - interior_angle
polygon_count = Fraction(360) / exterior_angle
if polygon_count.denominator == 1 and polygon_count >= 3:
print(f"Regular polygon with an interior angle of {interior_angle}°: regular {polygon_count}-gon")
else:
print(f"No regular polygon has an interior angle of {interior_angle}° (360 ÷ exterior angle = {polygon_count})")
How to write it in LaTeX and other math languages (copy and paste)
S = 180° × (n − 2)
S = 180^{\circ} \times (n - 2)
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
<mrow>
<mi>S</mi>
<mo>=</mo>
<msup><mn>180</mn><mo>°</mo></msup>
<mo>×</mo>
<mo>(</mo><mi>n</mi><mo>−</mo><mn>2</mn><mo>)</mo>
</mrow>
</math>
S = 180^circ xx (n - 2)
S = 180 (n - 2) Degree
S := 180*(n - 2);
S = 180*(n - 2);
S = 180° × (n − 2)
T = 360°
T = 360^{\circ}
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
<mrow>
<mi>T</mi>
<mo>=</mo>
<msup><mn>360</mn><mo>°</mo></msup>
</mrow>
</math>
T = 360^circ
T = 360 Degree
T := 360;
T = 360;
T = 360°
x = 180° × (n − 2) / n
x = \frac{180^{\circ} \times (n - 2)}{n}
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
<mrow>
<mi>x</mi>
<mo>=</mo>
<mfrac>
<mrow><msup><mn>180</mn><mo>°</mo></msup><mo>×</mo><mo>(</mo><mi>n</mi><mo>−</mo><mn>2</mn><mo>)</mo></mrow>
<mi>n</mi>
</mfrac>
</mrow>
</math>
x = (180^circ xx (n - 2))/n
x = (180 (n - 2)/n) Degree
x := 180*(n - 2)/n;
x = 180*(n - 2)/n;
x = 180° × (n − 2) / n
y = 360° / n
y = \frac{360^{\circ}}{n}
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
<mrow>
<mi>y</mi>
<mo>=</mo>
<mfrac>
<msup><mn>360</mn><mo>°</mo></msup>
<mi>n</mi>
</mfrac>
</mrow>
</math>
y = (360^circ)/n
y = (360/n) Degree
y := 360/n;
y = 360/n;
y = 360° / n
How to have ChatGPT do the calculation
You are a math (plane geometry) calculation assistant. Do the following calculation by actually running Python code, and base your answer only on the numbers from the execution result (do not answer by mental math or guessing). For a regular heptagon, show each of the following: 1. The sum of the interior angles (degrees) 2. The size of each interior angle (both as a fraction in lowest terms and as a decimal) 3. The size of each exterior angle (both as a fraction in lowest terms and as a decimal) Also find how many sides a regular polygon with an interior angle of 140° has, by first converting it to the exterior angle and then dividing 360° by it. In Python, use the fractions module from the standard library to calculate exactly, and show the formulas you used and the numbers from the execution result.
How to Use
-
1Enter your numbersType the numbers you want to calculate with into the input fields
-
2CalculatePress the "Calculate" button
-
3Check the resultThe result appears on the spot. The same page also explains the idea behind the calculation and the formula
DataChef Features
No technical knowledge required.
Intuitive and user-friendly operation.
Can be used without registering personal information.
Automatic file deletion by clicking "download".
and rapid file conversion.
No attribution required.
No need to contact us for commercial use permission.
