Example 1
- n = 4
2
How many diagonals does a quadrilateral have? 2. n(n − 3)/2 at n = 4.
Type the number of vertices n. The number of diagonals is n(n − 3)/2. A quadrilateral, n = 4, gives 2. A pentagon, n = 5, gives 5. A hexagon, n = 6, gives 9.
The calculator counts how many diagonals there are, not how long they are. n = 3 gives 0, because a triangle has no diagonal. n = 2 gives −1, because that is the formula.
Enter data and click Calculate.
From each vertex you can draw n − 3 diagonals, because you skip yourself and the two neighbours. Then you divide by 2, because each edge is counted from both ends. n = 4 gives 4×1/2 = 2. n = 5 gives 5. n = 6 gives 9.
The field is the vertex count n. This is not a diagonal length and not the area of the polygon. A quadrilateral has two diagonals. A pentagon has five. A hexagon has nine.
n = 3, a triangle, gives 0. n = 2 gives −1. The calculator does not lock the drawing, it only multiplies n(n − 3)/2. A fractional n, for example 4.5, also passes and is not a side count on paper.
The sum of polygon angles is on the neighbouring page and takes the same n, but computes degrees, not strokes. Here you always stay with the number of diagonals.
The header units switch does not multiply anything. 5 stays 5 whatever the label says.
n = 4 gives 2. n = 5 gives 5. n = 6 gives 9. That is the whole card: one n and the inner strokes. Diagonals need the vertices count.
d = n(n − 3)/2
The number of diagonals is n(n − 3)/2. n = 4 gives 2. n = 5 gives 5. n = 6 gives 9.
2
How many diagonals does a quadrilateral have? 2. n(n − 3)/2 at n = 4.
5
How many diagonals does a pentagon have? 5.
9
How many diagonals does a hexagon have? 9.
2. 4×(4 − 3)/2 = 2.
How many segments join vertices without being a side. Formula n(n − 3)/2.
5 and 9.
0. n = 3, n − 3 = 0.
No. Counts only. Length would need sides, not n.
−1. The formula does not stop. On paper that is not a polygon.
School wants an integer. The calculator will also multiply 4.5.
Strokes here. There (n − 2)×180°. Another result from the same n.
Each diagonal is counted from both ends. Without /2 you would double it.
Yes. 6 and 6.0 give 9.
The calculator computes the same formula as the definition below.
Page updated in 2026.