Key Points
- A diagonal joins two non-adjacent vertices. A side joins neighbouring vertices; a line to the middle of a side is neither.
- Every vertex sends out diagonals, and each diagonal has two ends, so a polygon has .
- A triangle has none, a quadrilateral 2, a pentagon 5, a hexagon 9, an octagon 20.
- In a convex polygon every diagonal stays inside; in a concave polygon at least one runs outside.
- Diagonal lengths come from Pythagoras: for a square, for a rectangle, through a box.
Why a Wobbly Frame Needs a Diagonal
Nail four sticks into a rectangle, push one corner, and it leans into a parallelogram. Nail one more stick from corner to opposite corner and it locks solid.
- That extra stick is a diagonal. It splits the frame into two triangles, and a triangle cannot change shape.
- Gates, shelf backs, bridges and cranes all carry one.
- Two questions follow: how many diagonals can a shape have, and how long is each?

What Is a Diagonal?
A diagonal is a line segment joining two corners (vertices) of a polygon that are not next to each other. Sides join neighbouring corners; a diagonal reaches across the shape.
- The word is Greek: dia, "through", and gonia, "angle".
- It must end at two vertices. A line to the middle of a side is not a diagonal.
- The vertices must not be neighbours. If they share a side, the segment is that side.
- In pentagon ABCDE, AC is a diagonal, AB is a side, and a line from E to the middle of CD is neither.

Euclid called a parallelogram's diagonal its diameter and proved it cuts the shape into two equal halves (Elements, Book I, Proposition 34).
Why Does a Triangle Have No Diagonals?
A triangle has zero diagonals.
- Every corner is next to both others, so any corner-to-corner line is already a side.
- Four sides is the first count with a pair of corners not joined by a side.
- So the quadrilateral is the first polygon with diagonals: exactly 2.
How Many Diagonals Does a Polygon Have? The Formula
A polygon with sides has diagonals, regular or not. Two arguments agree.
Argument 1: count from each vertex, then halve
- One vertex has others.
- Two are neighbours (sides), leaving diagonals.
- Over all vertices: ends.
- Each diagonal has two ends, so divide by 2.
Argument 2: all pairs, minus the sides
There are pairs of vertices, and of them are sides:
Number of Diagonals for Common Shapes
Feed each into :

| Polygon | Sides | From one vertex | Diagonals |
|---|---|---|---|
| Triangle | 3 | 0 | 0 |
| Quadrilateral | 4 | 1 | 2 |
| Pentagon | 5 | 2 | 5 |
| Hexagon | 6 | 3 | 9 |
| Heptagon | 7 | 4 | 14 |
| Octagon | 8 | 5 | 20 |
| Decagon | 10 | 7 | 35 |
| 20-gon | 20 | 17 | 170 |
- A hexagon has 9 (more on the diagonal of a hexagon page); every quadrilateral, including parallelograms, has 2.
- The pentagon is the only polygon with as many diagonals as sides. After it, diagonals win.
Not every number is possible
- Exactly 10 diagonals needs , which has no whole-number answer.
- So the possible counts are 0, 2, 5, 9, 14, 20, 27, 35 and so on.
Diagonals of Convex and Concave Polygons
In a convex polygon every diagonal lies inside; in a concave polygon at least one lies outside. The count stays the same.
- In a convex quadrilateral, the two diagonals cross inside.
- In an arrowhead, they do not cross: one runs inside, the other jumps across the notch outside. It is still a diagonal.

- Quick test: if any diagonal leaves the shape, it is concave (see convex polygon).
In the shape lab, tick Show all diagonals, then drag a corner inwards past and watch a diagonal turn orange as it leaves.
Try It Yourself
Use the polygon lab to see What Is a Diagonal at work: drag, change the numbers and watch what happens.
Length of a Diagonal
Most diagonal lengths come from Pythagoras, because a diagonal is usually the hypotenuse of a hidden right triangle.
- Square, side : , so .
- Rectangle, by : (see properties of a rectangle). A 6 by 8 rectangle has diagonal 10.
- Rhombus: unequal diagonals that cross at right angles and bisect each other: , where and are the diagonals and is the side. See the diagonal of a rhombus.

- A rectangle's diagonals are equal. A kite's are usually unequal, and only one is cut in half.
Regular polygons have only a few lengths
- A diagonal's length depends only on how many corners it skips.
- A regular pentagon has one length (about times the side; see the pentagram).
- A regular octagon with side 1 has three: about , and .

A Piece of History: the Diagonal That Doubled a Square
The square's diagonal, , has a famous story. In Plato's Meno (around 385 BCE), Socrates asks a boy to draw a square twice the area of a 2 by 2 square.
- The boy doubles the side and gets area 16, four times too big.
- Socrates joins the diagonals of four small squares: they make a tilted square of area 8.
- Its side is . Greek mathematicians later proved is irrational, the first such number anyone met.

Diagonals of 3D Shapes
In a solid there are two kinds, and they are often confused.
- A face diagonal lies on one flat face.
- A space diagonal runs through the inside between corners that share no face.
- For a box by by , use Pythagoras twice:
- A cube with edge has 12 face diagonals of and 4 space diagonals of .
Examples of Diagonals
From counting to counting backwards, then lengths through a box and on a screen.
Example 1
How many diagonals does a decagon (10 sides) have, and how many run from a single vertex?
- Total: .
- From one vertex: .
Final answer: 35 in total, 7 from each vertex.
Example 2
A student counts the diagonals of a pentagon like this: "each corner joins to the other 5 corners, so 5 × 5 = 25." Find the error and the right count.
- Corner A has only 4 other corners, and 2 of them (B and E) are neighbours.
- That leaves 2 diagonals per corner: 10 ends.
- Each diagonal is counted from both ends: .
Final answer: 5 diagonals.
Example 3
A polygon has 27 diagonals. How many sides does it have?
- , so .
- , and sides cannot be negative.
Final answer: 9 sides, a nonagon.
Example 4
Can a polygon have exactly 12 diagonals?
- gives , not a whole number.
Final answer: no. The counts jump from 9 to 14.
Example 5
Find the space diagonal of a box 12 cm long, 4 cm wide and 3 cm high.
- Across the 4 by 3 end: cm.
- Then along 12 cm: cm.

Final answer: 13 cm, the longest rod the box can hold.
Example 6
A television is sold as "40-inch". Its screen is a rectangle in the ratio 16 : 9. How wide and how tall is it?
- Screens are measured along the diagonal. Let width , height .
- , so and .
Final answer: about 34.9 inches wide and 19.6 inches tall.
Tripping Points to Avoid
Most slips are counting slips.
Mistake 1: Counting the sides as diagonals
Where it slips in: Joining every pair of corners and counting all the lines.
Don't do this: Call all segments diagonals.
The correct way: Leave out the sides. That is why each vertex gives , not .
Mistake 2: Forgetting to halve
Where it slips in: Counting by hand, corner by corner.
Don't do this: Stop at .
The correct way: Divide by 2: each diagonal has two ends.
Mistake 3: Mixing up face and space diagonals
Where it slips in: A box question asks for "the diagonal".
Don't do this: Use for the longest line through the box.
The correct way: A space diagonal uses all three edges: .
Mistake 4: Assuming every diagonal lies inside
Where it slips in: Sketching an L-shape or an arrowhead.
Don't do this: Skip a diagonal because it falls outside.
The correct way: Any segment joining non-adjacent corners counts, inside or out.
Why Diagonals Matter
Diagonals make shapes rigid and measure long reaches.
- Bracing. One diagonal makes a frame rigid; diagonals from one corner split any polygon into triangles.
- Screens. Phones and TVs are sold by their diagonal.
- Packing and graphics. The space diagonal is the longest object a box holds; games use it for quick collision checks.
- Checking a right angle. Builders measure both diagonals of a foundation: equal means the corners are square.
Conclusion
- A diagonal joins two non-adjacent corners, inside or outside; a triangle has none.
- A polygon has diagonals, so no polygon has exactly 10 or 12.
- Concave polygons send at least one diagonal outside.
- Lengths come from Pythagoras: , , .
Read More
Research Behind This Article
- Euclid, Elements, Book I, Proposition 34 (the "diameter" of a parallelogram bisects it), with commentary by D. E. Joyce, Clark University. mathcs.clarku.edu
- Euclid, Elements, Book I, Proposition 47 (the Pythagorean theorem behind every diagonal length), D. E. Joyce, Clark University. mathcs.clarku.edu
- Plato, Meno, translated by Benjamin Jowett (the doubling of the square on the diagonal), MIT Internet Classics Archive. classics.mit.edu
- OpenStax, Contemporary Mathematics, Chapter 10: Geometry (polygons and their properties). openstax.org
Quick Quiz: Check Yourself
Three levels, questions with figures, instant feedback with the reason.
Was this article helpful?
Your feedback helps us write better content
Frequently Asked Questions
What is a diagonal in simple words?
How many diagonals does a polygon with n sides have?
Does a circle have diagonals?
Are the diagonals of a rectangle equal?
What is the difference between a diagonal and a side?




