Why Some Polygons Have More Diagonals Than You Might Expect

Introduction

A polygon’s diagonals can add up faster than a quick glance suggests. The key is that each diagonal joins a pair of vertices that are not next to each other, and the same diagonal can be counted from either endpoint. For a polygon with n vertices, the total is n(n − 3) / 2. The formula is simple once those two details are clear.

What Counts as a Diagonal?

A polygon is a closed, two-dimensional shape made from straight sides. Its corners are called vertices, and the line segments that form its outline are its sides. A diagonal is a straight segment joining two vertices that are not connected by a side.

That definition rules out the sides themselves. In a square, for instance, joining two neighboring corners traces a side, not a diagonal. Joining opposite corners creates one of the square’s two diagonals.

When counting diagonals, we count each segment once, regardless of which endpoint we start from. A line from vertex A to vertex C is the same diagonal as a line from C to A.

The Formula for the Number of Diagonals

For a polygon with n vertices, the number of diagonals is:

Number of diagonals = n(n − 3) / 2

Here, n is the number of vertices, which is also the number of sides in an ordinary polygon. The formula applies to polygons with three or more vertices. A triangle has no diagonals, as every pair of its vertices is already connected by a side.

The result can seem unexpectedly large because the number of possible pairs of vertices grows quickly as the polygon gains corners. But some of those pairs are sides, and each diagonal can be described from two endpoints. Accounting for both facts gives the formula.

Why Each Vertex Has n − 3 Diagonals

Imagine standing at one vertex of a polygon and drawing a segment to every other vertex. There are n − 1 other vertices. Two of them are the immediate neighbors on either side, and connecting to those makes sides of the polygon, not diagonals.

That leaves n − 3 vertices that can be joined to the chosen corner by diagonals. So each vertex is an endpoint of n − 3 diagonals.

For example, in a hexagon, a selected vertex has five other vertices to connect to. Two are adjacent, so three connections are diagonals. This reasoning works at every corner of the hexagon.

To turn that per-vertex count into a total, multiply by the number of vertices: n(n − 3). But this counts every diagonal twice. A diagonal from one corner to another is included once when considering the first corner and again when considering the second. Dividing by two gives n(n − 3) / 2.

A Second Way to Understand the Count

Another approach is to count all pairs of vertices, then remove the pairs that form sides. Any pair of different vertices determines one connecting segment, so the number of possible pairs is n(n − 1) / 2.

Of those pairs, n are neighboring vertices joined by the polygon’s sides. Subtract those sides to leave the diagonals:

n(n − 1) / 2 − n = n(n − 3) / 2

This method makes the structure of the answer especially visible: start with every possible vertex-to-vertex connection, then exclude the boundary connections. It also shows why simply counting all pairs overestimates the number of diagonals.

Examples: From Triangles to Larger Polygons

Triangle: With three vertices, the formula gives 3(3 − 3) / 2 = 0. Every pair of corners is already a side.

Quadrilateral: With four vertices, the result is 4(4 − 3) / 2 = 2. A square has two diagonals, each joining a pair of opposite corners.

Pentagon: With five vertices, the result is 5(5 − 3) / 2 = 5. Each corner has two diagonals, making ten endpoint-based counts; dividing by two gives five distinct segments.

Hexagon: With six vertices, the result is 6(6 − 3) / 2 = 9. Each corner is connected by diagonals to three other corners, giving eighteen endpoint-based counts and nine unique diagonals.

Decagon: With ten vertices, the result is 10(10 − 3) / 2 = 35. This is why a polygon with only a few more sides than a hexagon can have a much larger collection of diagonals.

The examples also help catch common counting errors. For a pentagon, for instance, counting two diagonals from each of five corners gives ten, but that is not the total: every segment has been counted at both ends.

Why the Number Grows Faster Than the Number of Sides

The diagonal count does not increase by a fixed amount each time a side is added. It follows a quadratic pattern: the formula contains n multiplied by n − 3. As n becomes larger, both factors grow, so the total rises more rapidly than the number of vertices alone.

There is also a useful way to describe each step. If a polygon has n vertices, adding one more vertex increases the diagonal count by n − 1. For example, moving from a hexagon to a heptagon adds six diagonals: the total rises from nine to fifteen.

Why n − 1? When a new vertex is added along one side, it forms diagonals to the old vertices that are not its two neighbors. That creates n − 2 new diagonals. In addition, the old side between the two neighboring vertices becomes a diagonal of the larger polygon. Together, that is n − 1 added diagonals.

This steadily increasing increase explains the surprising totals. A larger polygon does not merely add a few more connections around its edge. Its new vertices can connect across the shape to many existing vertices, while previously neighboring corners may become non-neighbors and form a diagonal.

Does the Shape Change the Number?

For an ordinary polygon with a fixed number of distinct vertices, the count depends on the number of vertices, not on whether the polygon is regular. A regular polygon has equal sides and equal angles; an irregular polygon does not necessarily have those features. Either way, a pentagon has five possible diagonal segments by the same counting rule.

The shape can change how the diagonals look. In a convex polygon, every diagonal lies inside the polygon. A polygon is convex if it has no inward dent. In a concave polygon, which does have an inward dent, some diagonal segments may pass partly or entirely outside the shape. They still count as diagonals under the usual definition because they join nonadjacent vertices.

Crossings do not change the count either. Two diagonals may intersect, but the intersection is not a new vertex of the original polygon. The diagonals remain separate segments, each counted once. The formula counts connections between the polygon’s original vertices, not the places where those connections cross.

Diagonals Are Not the Same as a Triangulation

A frequent source of confusion is the difference between counting all diagonals and asking how many are needed to divide a polygon into triangles. These are different questions.

A triangulation is a set of diagonals that divides a polygon into triangular regions without overlapping those regions. For a convex polygon with n vertices, a triangulation uses n − 3 diagonals and creates n − 2 triangles. That is only one particular set of diagonals, not the total number available.

For example, a hexagon has nine diagonals altogether, but a triangulation uses only three of them to divide it into four triangles. Many different selections of three diagonals can form a triangulation, but none of those selections changes the total of nine possible diagonals.

This distinction matters whenever a question says “how many diagonals does the polygon have?” versus “how many diagonals are needed to divide it into triangles?” The first asks for every eligible connection. The second asks for a specific arrangement.

Common Mistakes When Counting

Counting sides as diagonals: The two vertices at either end of a side are adjacent, so their connecting segment is not a diagonal.

Counting from every corner without halving: The count n(n − 3) counts each diagonal twice, once from each endpoint. Divide by two to get distinct diagonals.

Assuming only diagonals inside the shape count: For a concave polygon, a diagonal can lie partly outside the polygon. It is still a diagonal if it joins two nonadjacent vertices.

Mixing up total diagonals and triangulation diagonals: The formula n(n − 3) / 2 counts all possible diagonals. The count n − 3 describes the number used in a triangulation of a convex polygon.

Forgetting the triangle case: Substituting three into the formula gives zero. That is consistent with the definition, not a flaw in the formula.

Conclusion

Polygons have more diagonals than a quick visual estimate may suggest because each corner can connect to several non-neighboring corners, and each diagonal appears in the count from both ends. After excluding sides and correcting for this double counting, the total is n(n − 3) / 2. The formula counts every diagonal, regardless of crossings or whether a concave polygon’s segment lies inside its outline.