Solving S = 180(n − 2) for n is one of those small algebra skills that quietly unlocks a huge amount of geometry. The equation itself is the formula for the sum of the interior angles of a polygon, and rearranging it lets you work backwards: instead of being told how many sides a shape has and finding its angle total, you are told the angle total and must find the shape. This guide walks through the rearrangement step by step, explains why the formula works in the first place, shows worked examples, and covers the traps that catch most students Simple as that..
What the Formula S = 180(n − 2) Actually Means
In this formula:
- S is the sum of all interior angles of a polygon, measured in degrees.
- n is the number of sides of the polygon.
- 180 is the number of degrees in a triangle, the polygon every other polygon is built from.
So the formula is really a sentence in disguise: *take the number of sides, subtract two, and multiply by 180.Think about it: a pentagon has n = 5, so S = 180(3) = 540°. Consider this: * A quadrilateral has n = 4, so S = 180(4 − 2) = 360°. A hexagon gives 180(4) = 720° It's one of those things that adds up..
When a problem asks you to solve S = 180(n − 2) for n, it is asking you to reverse that sentence. The variable S becomes a known quantity, and n becomes the unknown you must isolate. This is called rearranging a literal equation, because you are solving for a letter rather than a number.
How to Solve S = 180(n − 2) for n: Step by Step
There are two clean routes to the answer. Both are correct, and knowing both makes you more flexible when equations get messier Simple, but easy to overlook..
Method 1: Divide Both Sides by 180
This is the fastest approach because the parentheses are already doing useful work for you The details matter here..
- Start with the original formula: S = 180(n − 2)
- Divide both sides by 180 to remove the multiplier: S / 180 = n − 2
- Add 2 to both sides to isolate n: S / 180 + 2 = n
- Write the answer in conventional form: n = S / 180 + 2
That is the solution. Notice that dividing first is legal because 180 multiplies the entire expression in parentheses, so the division applies to the whole right-hand side.
Method 2: Distribute First, Then Isolate
If you prefer to clear the parentheses before touching anything else, this route works just as well.
- Distribute the 180: S = 180n − 360
- Add 360 to both sides to move the constant term: S + 360 = 180n
- Divide both sides by 180: (S + 360) / 180 = n
- State the answer: n = (S + 360) / 180
Are the Two Answers the Same?
They look different, but they are algebraically identical. Split the single fraction in Method 2:
(S + 360) / 180 = S / 180 + 360 / 180 = S / 180 + 2
That is exactly Method 1. Use whichever form your teacher prefers; the second version, n = (S + 360) / 180, is often easier to evaluate on a calculator because it requires only one division at the end.
The Geometry Behind the Formula
Understanding why S = 180(n − 2) is true makes the rearrangement far less mechanical.
Pick any one vertex of a polygon and draw diagonals to every non-adjacent vertex. A polygon with n sides splits into exactly (n − 2) triangles. From one vertex of a hexagon, for example, you can draw three diagonals, carving the shape into four triangles Still holds up..
Since every triangle's interior angles total 180°, and those triangles together account for every interior angle of the polygon exactly once, the total is:
S = (number of triangles) × 180 = 180(n − 2)
This is why the "−2" appears. Now, it is not an arbitrary adjustment; it is the count of triangles you lose because two sides of the polygon meet at each vertex and cannot form a diagonal. Solving for n therefore answers a genuinely geometric question: *how many triangles' worth of angle is this shape made of, plus two?
Easier said than done, but still worth knowing.
Worked
Worked Example
Problem:
A convex polygon has an interior angle sum of S = 1080°. Determine the number of sides n of the polygon.
Using Method 1 (Divide First)
-
Start with the given sum
[ S = 180(n-2) ] -
Divide both sides by 180
[ \frac{S}{180}=n-2 ] -
Add 2 to both sides
[ n = \frac{S}{180}+2 ] -
Insert the numeric value
[ n = \frac{1080}{180}+2 = 6+2 = 8 ]Hence the polygon has 8 sides (an octagon).
Using Method 2 (Distribute First)
-
Distribute the 180
[ S = 180n - 360 ] -
Add 360 to both sides
[ S + 360 = 180n ] -
Divide by 180
[ n = \frac{S + 360}{180} ] -
Plug in the known sum
[ n = \frac{1080 + 360}{180} = \frac{1440}{180} = 8 ]
Both routes give the same answer, confirming the algebraic equivalence of the two forms Not complicated — just consistent..
Quick Check
The interior angle of a regular octagon is
[
\frac{S}{n}= \frac{1080°}{8}=135°,
]
which matches the known interior angle of a regular octagon, validating the result.
Conclusion
Solving the relationship (S = 180(n-2)) for the number of sides (n) is straightforward once you recognize that the equation simply counts how many 180°‑sized triangles compose the polygon’s interior angles. By either dividing first or distributing the constant, you obtain two algebraically identical expressions:
[ \boxed{,n = \frac{S}{180} + 2,} \qquad\text{or}\qquad \boxed{,n = \frac{S + 360}{180},}. ]
Choosing the form that best fits your calculation tool (single division versus addition) keeps the work clean and error‑free. With this flexibility, you can confidently determine the side count of any polygon once its interior‑angle sum is known, turning a geometric question into a simple algebraic step.
Honestly, this part trips people up more than it should.