A diagonal is a line segment that connects two non-adjacent corners of a shape. An octagon has 20 diagonals in total.
A diagonal is a line connecting one corner to another corner inside a shape, without going along the edge. In the image, the diagonals are shown in teal.
There is a general formula for finding the number of diagonals in any polygon:
Click on any element to learn more.