Equation To Find Number Of Sides In A Polygon

10 min read

The equation to find number of sides in a polygon depends entirely on the known measurements you have for the shape, whether that is the sum of its interior angles, the measure of a single interior or exterior angle in a regular polygon, or the number of diagonals it contains. Mastering these distinct formulas eliminates guesswork when working with both regular and irregular polygons, making it easier to solve geometry problems, verify shape properties, or apply polygon math to real-world design and construction tasks.

Counterintuitive, but true.

Introduction

A polygon is a closed two-dimensional shape with straight sides that do not cross each other. Polygons are categorized as regular or irregular: regular polygons have all sides of equal length and all interior angles of equal measure, while irregular polygons have varying side lengths and angle measures. The number of sides a polygon has defines its name: a 3-sided polygon is a triangle, 4-sided is a quadrilateral, 5-sided is a pentagon, 6-sided is a hexagon, and so on up to the n-sided polygon, where n represents the total number of sides Small thing, real impact..

Basically the bit that actually matters in practice.

When working with polygons in geometry, construction, or design, you will rarely be given the number of sides upfront. Instead, you may be given the sum of all interior angles, the measure of one angle (for regular polygons), or the number of diagonals connecting non-adjacent vertices. Each of these known values has a corresponding equation to find number of sides in a polygon, which we will break down in detail below.

Short version: it depends. Long version — keep reading.

Key Equations to Find Number of Sides in a Polygon

There are three primary categories of equations to find the number of sides in a polygon, each tied to a different known measurement. We will outline each formula, its variables, and when to use it.

Using the Sum of Interior Angles

The sum of all interior angles in any n-sided polygon (regular or irregular) is given by the formula: Sum = (n - 2) × 180° Where n is the number of sides. In real terms, to rearrange this to solve for n, we use the equation to find number of sides in a polygon derived from this formula: n = (Sum of Interior Angles ÷ 180°) + 2 This works for all polygons, regular or irregular, because the sum of interior angles only depends on the number of sides, not the side lengths or angle measures. As an example, if the sum of interior angles is 540°, plugging into the formula gives n = (540 ÷ 180) + 2 = 3 + 2 = 5, so the shape is a pentagon Most people skip this — try not to..

Using Exterior Angles of a Regular Polygon

Exterior angles of a polygon are the angles formed by extending one side outward from the vertex. For any polygon, the sum of all exterior angles (one per vertex) is always 360°, regardless of the number of sides. For regular polygons, all exterior angles are equal, so the measure of one exterior angle is 360° ÷ n. Rearranging this gives the equation to find number of sides in a polygon when you know one exterior angle of a regular polygon: n = 360° ÷ Measure of One Exterior Angle Note that this only works for regular polygons, since irregular polygons have exterior angles of varying measures. As an example, if a regular polygon has an exterior angle of 60°, n = 360 ÷ 60 = 6, so it is a hexagon.

Using Interior Angles of a Regular Polygon

For regular polygons, all interior angles are equal. Which means we know that the sum of interior angles is (n-2)×180°, so the measure of one interior angle is [(n-2)×180°] ÷ n. To rearrange this to solve for n, follow these steps:

  1. Multiply both sides by n: Interior Angle × n = (n - 2) × 180°
  2. In practice, expand the right side: Interior Angle × n = 180°n - 360°
  3. And bring all terms with n to the left side: Interior Angle × n - 180°n = -360°
  4. Factor out n: n(Interior Angle - 180°) = -360°
  5. Divide both sides by (Interior Angle - 180°): n = -360° ÷ (Interior Angle - 180°)
  6. Still, simplify by multiplying numerator and denominator by -1: n = 360° ÷ (180° - Interior Angle) This gives the final equation to find number of sides in a polygon when you know one interior angle of a regular polygon: n = 360° ÷ (180° - Interior Angle) Here's one way to look at it: if a regular polygon has an interior angle of 108°, n = 360 ÷ (180 - 108) = 360 ÷ 72 = 5, so it is a pentagon. Again, this only applies to regular polygons.

Using the Number of Diagonals

A diagonal is a line segment connecting two non-adjacent vertices of a polygon. To rearrange this to solve for n, we get a quadratic equation: n² - 3n - 2D = 0 Using the quadratic formula n = [3 ± √(9 + 8D)] ÷ 2, we take only the positive root (since the number of sides cannot be negative) to get the equation to find number of sides in a polygon from the number of diagonals: n = [3 + √(9 + 8D)] ÷ 2 Take this: if a polygon has 9 diagonals, plug in D=9: n = [3 + √(9 + 72)] ÷ 2 = [3 + √81] ÷ 2 = (3 + 9) ÷ 2 = 12 ÷ 2 = 6, so it is a hexagon. The number of diagonals D in an n-sided polygon is given by the formula: D = n(n - 3) ÷ 2 This is because each vertex can connect to (n - 3) other vertices (excluding itself and its two adjacent neighbors), and we divide by 2 to avoid counting each diagonal twice. This works for both regular and irregular polygons, as diagonal count only depends on the number of sides.

Step-by-Step Guide to Applying the Equations

To correctly use the equation to find number of sides in a polygon, follow these sequential steps to avoid errors:

  1. Identify all known values given in the problem. Note whether the polygon is stated to be regular or irregular, as this will determine which formulas are valid. A common error is assuming a polygon is regular when it is not stated—if the problem does not specify regular, only use formulas that apply to all polygons, such as the sum of interior angles or diagonal count formulas.
  2. Select the matching formula based on your known value:
    • Use the sum of interior angles formula if you have the total sum of all interior angles.
    • Use the exterior angle formula if you have one exterior angle and know the polygon is regular.
    • Use the interior angle formula if you have one interior angle and know the polygon is regular.
    • Use the diagonal formula if you have the total number of diagonals.
  3. Plug values into the equation carefully, making sure to use the correct units (all angles in degrees, counts as whole numbers).
  4. Solve for n using basic algebra. For the diagonal formula, remember to only use the positive root of the quadratic equation—the negative root will always be mathematically valid but physically impossible, as you cannot have a negative number of sides.
  5. Verify your result by plugging n back into the original formula to confirm it produces the known value. Take this: if you found n=5 using sum of interior angles, check that (5-2)×180=540° to match the given sum.

Scientific Explanation Behind the Formulas

Each equation to find number of sides in a polygon is rooted in fundamental geometric principles, not arbitrary rules. Understanding these origins helps solidify why the formulas work, rather than just memorizing them.

Why Sum of Interior Angles = (n-2)×180°

Any n-sided polygon can be divided into (n-2) non-overlapping triangles by drawing diagonals from a single vertex. Since each triangle has interior angles summing to 180°, multiplying the number of triangles by 180° gives the total sum of interior angles for the polygon. For a quadrilateral (n=4), this gives (4-2)×180=360°, which matches the known sum of interior angles for a square or rectangle. This derivation confirms why the rearranged formula n=(Sum/180)+2 is valid for all polygons Worth keeping that in mind..

Why Exterior Angles Sum to 360°

Imagine walking around the perimeter of a polygon: at each vertex, you turn by the measure of the exterior angle. After completing a full loop around the polygon, you have turned 360° total, which is why the sum of all exterior angles is always 360°, regardless of n. For regular polygons, dividing this total by n gives the measure of one exterior angle, leading to the formula n=360/exterior angle.

Why Diagonal Count = n(n-3)/2

Each of the n vertices in a polygon can connect to (n-3) other vertices via a diagonal: you exclude the vertex itself, and its two adjacent neighbors (since connecting to adjacent vertices would be a side, not a diagonal). This gives n(n-3) total connections, but each diagonal is counted twice (once from each endpoint), so we divide by 2. Rearranging this formula leads to the quadratic equation for n, which is why we use the quadratic formula to solve for the number of sides Not complicated — just consistent..

Frequently Asked Questions

  1. Can I use the interior angle formula for irregular polygons? No. The interior angle formula for finding n relies on all interior angles being equal, which is only true for regular polygons. For irregular polygons, use the sum of interior angles or diagonal count formulas instead.

  2. What if I get a decimal value for n? The number of sides in a polygon must always be a whole number greater than or equal to 3. If your calculation gives a decimal, you have either used the wrong formula, plugged in an incorrect value, or the given measurements are impossible for a polygon Small thing, real impact. Which is the point..

  3. Does the diagonal formula work for triangles? For a triangle (n=3), the number of diagonals is 0. Plugging D=0 into the formula gives n=[3+√(9+0)]/2=(3+3)/2=3, which is correct. The formula works for all polygons with n≥3.

  4. Can I use two different equations to verify my result? Yes, if you have enough known values. Here's one way to look at it: if you know a regular polygon has an interior angle of 120°, using the interior angle formula gives n=360/(180-120)=6. You can verify this by checking that the sum of interior angles is (6-2)×180=720°, so one interior angle is 720/6=120°, which matches The details matter here..

  5. Is there an equation to find number of sides in a polygon using perimeter or area? Not directly. Perimeter is the sum of all side lengths, which varies even for regular polygons of the same n (a small hexagon has a smaller perimeter than a large hexagon). Area also depends on side length and apothem, not just n, so no universal formula ties perimeter or area to n alone Worth knowing..

Conclusion

Mastering the equation to find number of sides in a polygon is a foundational skill for geometry students, designers, and construction professionals alike. Also, whether you are working with the sum of interior angles, exterior or interior angles of regular polygons, or the number of diagonals, each formula provides a reliable way to calculate n from known values. Practically speaking, always verify that you are using the correct formula for your polygon type (regular vs irregular) and double-check your calculations by plugging n back into the original equation. With practice, these formulas will become second nature, eliminating guesswork when working with any polygon shape.

Out This Week

Hot Off the Blog

See Where It Goes

Related Corners of the Blog

Thank you for reading about Equation To Find Number Of Sides In A Polygon. We hope the information has been useful. Feel free to contact us if you have any questions. See you next time — don't forget to bookmark!
⌂ Back to Home