Example 1
- n: 3
180°
What is the angle sum of a triangle? 180°.
Enter an integer number of sides n (n ≥ 3). The interior-angle sum of an n-gon is S = (n − 2)×180° = (n − 2)π rad. A triangle (n = 3) gives 180°, a quadrilateral (n = 4) gives 360°, and a hexagon (n = 6) gives 720°. This is not one interior angle of a regular polygon, not the diagonal count, and not a third triangle angle from two given angles.
Enter an integer n ≥ 3.
The calculator returns the sum of all interior angles, not a single angle. n must be an integer at least 3. A fractional n is rejected.
The interior-angle sum of a convex n-gon in Euclidean plane geometry is a standard school result: S = (n − 2)×180° for an integer n ≥ 3. Equivalently in radians, S = (n − 2)π. The mathematical model is the interior-angle sum of a convex polygon; the triangulation proof sits in the tradition of Euclid’s Elements (the triangle sum) and in every plane-geometry textbook.
Derivation: from a fixed vertex you draw diagonals to every non-adjacent vertex — there are n − 3 of them. Those segments split the n-gon into n − 2 triangles. Each triangle has angle sum 180°, so S = (n − 2)×180°. For n = 3 one triangle remains and S = 180°; for n = 6 four triangles give 720°.
The calculator uses a single number n that you enter. The primary result S is in degrees. The panel also shows S in radians, the triangle count n − 2, one interior angle of a regular n-gon S/n, and the exterior-angle sum 360°. Worked examples: n = 3 → 180°; n = 4 → 360°; n = 5 → 540°; n = 6 → 720°; n = 8 → 1080°; n = 10 → 1440°.
A fractional n and n < 3 are rejected. Algebra for n = 2 gives 0°, but that does not describe a polygon. This calculator does not compute side lengths or the diagonal count D = n(n − 3)/2 — those are related pages. The diagram draws a regular n-gon with triangulation for n up to 16.
In school practice the formula connects the triangle (n = 3) to any polygon. In CAD and graphics, triangulating a convex n-gon uses the same n − 3 diagonals from a vertex. Here the result is only the interior-angle sum.
S = (n − 2) × 180° = (n − 2) π rad, where n ∈ ℕ, n ≥ 3.
The symbol n is the number of sides (and vertices) of a convex polygon. The symbol S is the interior-angle sum. The number of triangles in a one-vertex triangulation is n − 2. In a regular n-gon one interior angle is S/n.
Mathematical model: interior-angle sum of a convex n-gon (Euclidean geometry / Elements — the triangle sum extended by triangulation).
An interior angle of a polygon is the angle between two adjacent sides whose interior lies inside the figure. For a convex n-gon (integer n ≥ 3) in the Euclidean plane, the sum of all interior angles is S = (n − 2)·180° = (n − 2)π rad. The symbol n is both the number of sides and the number of vertices. The symbol S is the primary result on this calculator. The number of triangles in a triangulation from one vertex is n − 2; in a regular n-gon one interior angle equals S/n.
The model is a simple convex polygon: every diagonal from a fixed vertex lies inside the figure, and the interiors of the triangulation triangles do not overlap. Algebraically (n − 2)·180° can be evaluated at n = 2 to give 0°, but Euclidean geometry has no 2-gon; the calculator requires n ≥ 3. Concave or star polygons are outside this school-level interior-sum model and are not computed here.
The radian form S = (n − 2)π follows from 180° = π rad. The result panel also shows S in radians, the triangle count n − 2, the regular angle S/n, and the fact that the exterior angles (one at each vertex, consistent turn direction) always sum to 360° = 2π rad, independent of n.
The fact that the angles of a triangle sum to 180° (or two right angles) belongs to the classical canon of Euclidean geometry and appears in the tradition of Euclid’s Elements as the base for further polygon theorems. Extending the fact to an n-gon by triangulation — splitting the polygon into n − 2 triangles by diagonals from one vertex — is the standard school and textbook derivation. MathWorld (Interior Angle) states the sum (n − 2)π in radians and the regular angle (n − 2)π/n; CRC Standard Mathematical Tables (Zwillinger) collects the same identities among polygon formulas.
Conceptually S measures the total interior turning of a convex n-gon. At n = 3 one recovers the triangle sum; each increase of n by 1 adds exactly one triangle and exactly 180° to the sum. Hence S is linear in n: S(n) = 180°·n − 360°. The coefficient 180° is one triangle; the constant −360° is the expansion of (n − 2)·180°.
In school and engineering practice the formula checks a regular n-gon drawing (angle S/n), supports polygonal mesh reasoning, and converts between degrees and radians. This calculator does not compute areas, perimeters, or the global diagonal count — those live on other pages — but with S and n − 2 it supplies the full angular skeleton of the interior sum.
Input domain: n ∈ ℕ, n ≥ 3 (integer). Output range in degrees: S ∈ {180°, 360°, 540°, …}. In radians: S ∈ {π, 2π, 3π, …}. The map n ↦ S(n) is strictly increasing: S(n + 1) − S(n) = 180°. For a regular polygon the interior angle α = S/n = ((n − 2)/n)·180° satisfies 0° < α < 180° for n ≥ 3; as n → ∞, α → 180°.
Identities: S_deg = (n − 2)·180; S_rad = (n − 2)·π; S_rad = S_deg · π/180; regular α = S/n; triangle count T = n − 2; diagonals from one vertex in the triangulation D_v = n − 3. The exterior-angle sum (one exterior angle per vertex, same orientation) is Σ_ext = 360° for every n. At each vertex of a convex polygon the interior and exterior angles in this convention are supplementary: α + ε = 180°.
Monotonicity and discreteness: n cannot be a fraction. For n = 3, 4, 5, 6 the sums are 180°, 360°, 540°, 720°. A regular hexagon has α = 120°; a square has α = 90°; an equilateral triangle has α = 60°.
Step 1 — triangle. In the Euclidean plane the interior angles of any triangle sum to 180° (π rad). That fact is the starting point.
Step 2 — choose a vertex. Let P be a convex n-gon with vertices v₁, …, vₙ in cyclic order. Fix vertex v₁. The neighbors of v₁ are v₂ and vₙ.
Step 3 — diagonals. Draw the segments v₁v₃, …, v₁vₙ₋₁. There are n − 3 of them. Convexity keeps every such segment inside P.
Step 4 — triangulation and sum. Those diagonals split P into n − 2 triangles. Each contributes 180°, hence S = (n − 2)·180°. In radians: S = (n − 2)π. If P is regular, each interior angle equals S/n.
n = 3: S = 180°, T = 1, regular α = 60°. n = 4: S = 360°, T = 2, α = 90°. n = 5: S = 540°, α = 108°. n = 6: S = 720° = 4π rad, α = 120°. n = 8: S = 1080°, α = 135°. n = 12: S = 1800°, α = 150°.
Large-n limit: α → 180°, while S grows like 180°·n. The exterior-angle sum stays 360°.
The case n < 3 is rejected. A non-integer such as n = 4.5 fails the integrality check. The diagram draws triangulation up to n = 16; for larger n the sum S still comes from the formula.
The calculator uses the single number n. The calculator checks that n is finite, an integer (within 10⁻¹² of rounding), and at least 3. Then S_deg = (n − 2)·180 and S_rad = (n − 2)·π. The primary result is in degrees.
Multiplying the integer (n − 2) by 180 is exact in floating-point arithmetic for ordinary n. The product (n − 2)·π inherits π’s approximation. Comma and period are equivalent.
The total number of diagonals of an n-gon is n(n − 3)/2 on a separate page — here only the n − 3 diagonals from one vertex appear. The third angle in a triangle (180° − α − β) is the n = 3 case with two known angles.
Authorities: Euclid (triangle sum), MathWorld — Interior Angle, Wikipedia (Interior angle), CRC / Zwillinger. The calculator realizes S = (n − 2)·180°.
S = (n − 2)×180° is the interior-angle sum of a convex n-gon. n = 3 gives 180°. n = 4 gives 360°. n = 6 gives 720°.
180°
What is the angle sum of a triangle? 180°.
360°
What is the sum for a quadrilateral? 360°.
540°
What is the sum for a pentagon? 540°.
720°
What is the sum for a hexagon? 720°.
900°
What is the sum for a heptagon? 900°.
1080°
What is the sum for an octagon? 1080°.
1440°
What is the sum for a decagon? 1440°.
1800°
What is the sum for a dodecagon? 1800°.
For a convex n-gon the interior-angle sum is S = (n − 2)×180° = (n − 2)π rad, where n is an integer and n ≥ 3. That is the classical Euclidean result: triangulation splits the figure into n − 2 triangles, and each contributes 180°.
From one vertex you draw n − 3 diagonals. They split a convex n-gon into n − 2 triangles. The angle sum in a triangle is 180°, so S = (n − 2)×180°. The same sum in radians is (n − 2)π.
180°. With n = 3 the formula gives (3 − 2)×180° = 180°, the classic triangle angle sum. That is the first worked example on this page.
No. The primary result is the sum of all interior angles. One angle of a regular polygon is S/n; the result panel shows that value separately.
S_rad = (n − 2)π. For n = 6 that is 4π. The calculator shows the equivalent radian value beside the degree sum.
360° (or 2π rad), independent of n ≥ 3, when you take one exterior angle at each vertex with a consistent turn direction. That is a different quantity from S.
Yes. A polygon has a whole number of sides. A fraction such as 4.5 does not describe an n-gon on paper — the calculator rejects that input instead of multiplying blindly.
The expression (n − 2)×180° equals 0°, but n = 2 is not a polygon. The calculator requires n ≥ 3 and shows an error instead of a zero “result”.
Here the only input is n and the result is the full sum S. On the third-angle page you enter two known angles α and β, and the result is 180° − α − β — the n = 3 case with two angles known.
Here the result is in degrees (an angle sum). The diagonal count is D = n(n − 3)/2 pieces. Same n, different quantity — use the related diagonals page.
Exactly n − 2. For a hexagon that is 4; for a decagon, 8. The result panel shows that count beside S.
No. The result depends only on an integer n ≥ 3. The currency and unit settings in the page header do not affect this result.
Use S = (n − 2)×180°, where n is the number of sides (integer, n ≥ 3). For n = 6: 4×180° = 720°.
720°. Computation: (6 − 2)×180° = 720°. That is the fourth example on this page.
No. The primary result is the sum of all interior angles. One regular angle is S/n — the panel may show it as an extra readout, but it does not replace the sum.
No. Diagonals use D = n(n − 3)/2 on a separate page. Here the same n yields only S in degrees.
For a convex polygon with one exterior angle at each vertex, the exterior sum is 360°. This card computes the interior sum with (n − 2)×180°.
The formula, derivation, and examples below come from established geometry sources.
Page updated November 3, 2026.