Total diagonals of an $n$-gon $= \dfrac{n(n-3)}{2}$ — $n-3$ per vertex, counted twice, so divide by 2
A diagonal is a segment joining two vertices that is not a side. Looking from one vertex, the targets you can draw diagonals to are the remaining vertices except the two adjacent ones — $n - 3$ of them. The adjacent vertices already have sides, and the vertex itself is the same point, so it's excluded. Each diagonal is counted once from each of its two endpoints — twice in all — so divide $n(n-3)$ by 2.
This "count twice → divide by 2" is the classic pattern of counting pairs. If $n$ people each call everyone once, the number of calls $= \frac{n(n-1)}{2}$ (all pairs); diagonals are that with the $n$ sides removed: $\frac{n(n-1)}{2} - n = \frac{n(n-3)}{2}$ — the same answer from two routes, cross-checking each other.
Let's build the result step by step, instead of memorizing.
From one vertex of an $n$-gon: the remaining $n-1$ vertices. Of these, the 2 adjacent are sides (not diagonals), and itself is not a target. Diagonals $= (n-1) - 2 = n - 3$.
$n-3$ at each of the $n$ vertices → $n(n-3)$. But a single diagonal was counted once from each of its two endpoints — $AC$ as $CA$ from $A$, and as $AC$ from $C$. So $n(n-3)$ is twice the number of diagonals.
Number of diagonals $= \dfrac{n(n-3)}{2}$. Alternate route: all vertex pairs $\frac{n(n-1)}{2}$ minus the $n$ sides — $\frac{n(n-1)}{2} - n = \frac{n^2 - n - 2n}{2} = \frac{n(n-3)}{2}$, same answer ✓.
Each step also shows the "why".
The classic ways to lose points on a test.
Three questions to check the core idea. Click an option to see the explanation.
The formula is hiding in familiar scenes. Read it as a story and it sticks.
How many direct routes does an airline need to connect all 8 cities directly? City pairs $= \frac{8 \times 7}{2} = 28$ — the same structure as the diagonal formula (two vertices = two cities, side = no direct flight between adjacent cities only). In practice, using "all city pairs" gives $\frac{n(n-1)}{2}$, "excluding adjacent cities" gives $\frac{n(n-3)}{2}$ — the two faces of the diagonal formula.
A basketball tournament (league) works the same way. If 10 teams each play each other once, the number of matches $= \frac{10 \times 9}{2} = 45$ — the same "counting pairs" pattern as diagonals. Once you see that two different entities (diagonals of a figure, pairs of people) are tied together by the same formula, "why divide by 2?" clicks naturally.