Diagonals of Polygons

Learn what diagonals are, how to draw them, and discover the formula to count them in any polygon.

Intermediate25 minLesson

Definition

A diagonal is a line segment that connects two non-adjacent vertices of a polygon.
Key properties:
  • Diagonals are inside the polygon (for convex polygons)
  • A diagonal connects two vertices that are not next to each other
  • The sides of a polygon are NOT diagonals
Formula for the number of diagonals:
d=n(n−3)2d = \frac{n(n-3)}{2}
where nn is the number of sides (vertices) of the polygon.

Try it now

What is a diagonal in a polygon?

Worked Examples

How many diagonals does a quadrilateral (4-sided polygon) have?

1

Identify the number of sides

A quadrilateral has n=4n = 4 sides and 4 vertices → n=4n = 4

2

Apply the formula

d=n(n−3)2=4(4−3)2d = \frac{n(n-3)}{2} = \frac{4(4-3)}{2} → d=4×12d = \frac{4 \times 1}{2}

3

Calculate

d=42=2d = \frac{4}{2} = 2 → d=2d = 2

4

Verify by drawing

Connect A to C, and B to D (the two pairs of opposite vertices) → 2 diagonals confirmed

Common Mistakes

Counting sides as diagonals

Why it's wrong: Sides connect adjacent vertices. Diagonals only connect non-adjacent vertices.

Correct: A diagonal must skip at least one vertex. For a square, AC and BD are diagonals, but AB, BC, CD, DA are sides.

Using n−2n-2 instead of n−3n-3 in the formula

Why it's wrong: From each vertex, you can draw diagonals to all other vertices except itself and its two neighbors.

Correct: The formula is d=n(n−3)2d = \frac{n(n-3)}{2} because each vertex connects to n−3n-3 other vertices (not itself, not the two adjacent).

Forgetting to divide by 2

Why it's wrong: Each diagonal connects two vertices, so counting from both endpoints counts each diagonal twice.

Correct: Always divide by 2: d=n(n−3)2d = \frac{n(n-3)}{2}

Thinking triangles have diagonals

Why it's wrong: In a triangle, every vertex is adjacent to every other vertex.

Correct: Triangles have 0 diagonals: d=3(3−3)2=3×02=0d = \frac{3(3-3)}{2} = \frac{3 \times 0}{2} = 0

Interactive Visual

Polygon explorer

Diagonals from one vertex

6−3=36 - 3 = 3

All diagonals

6(6−3)2=9\dfrac{6(6 - 3)}{2} = 9

From one vertex you reach every vertex except itself and its two neighbours: n − 3 diagonals.

Interactive Sandbox

Expression Calculator

Try these:

History

No calculations yet

Practice Problems

16 problems
Problem 1 of 16
Easy

What is a diagonal in a polygon?

Why It Matters

Understanding diagonals helps us:
  • Architecture: Diagonal braces strengthen buildings and bridges
  • Art and Design: Diagonals create dynamic compositions and perspective
  • Engineering: Trusses use diagonal supports for stability
  • Sports: Field markings and court designs use diagonal lines
  • Problem Solving: Dividing polygons into triangles uses diagonals
The diagonal formula is a perfect example of how math can predict patterns!

Real World Applications

Bridge Engineering

Engineers use diagonal cables and supports to strengthen bridges. The pattern of diagonals distributes weight evenly.

Example:

A suspension bridge's towers often have diagonal cross-bracing. An octagonal tower section uses 8×52=20\frac{8 \times 5}{2} = 20 potential diagonal supports.

Network Connections

In computer networks, the number of direct connections between devices follows a similar pattern to diagonals.

Example:

If 6 computers all need direct connections to each other, the number of cables needed is similar to finding connections in a hexagon.

Sports Field Design

Diagonal lines appear in many sports: soccer penalty box corners, baseball diamond, basketball court markings.

Example:

A home plate in baseball is a pentagon, which has 5×22=5\frac{5 \times 2}{2} = 5 diagonals that help define its shape.

Key Takeaways

  • 1A diagonal connects two non-adjacent vertices of a polygon
  • 2The formula for diagonals is d=n(n−3)2d = \frac{n(n-3)}{2} where nn is the number of sides
  • 3A triangle has 0 diagonals, a quadrilateral has 2, a pentagon has 5, a hexagon has 9
  • 4The number of diagonals grows quickly as the number of sides increases

Frequently Asked Questions

In a triangle, each vertex is adjacent to both other vertices. Since diagonals only connect non-adjacent vertices, there are no vertices to connect with a diagonal. The formula confirms this: 3(3−3)2=0\frac{3(3-3)}{2} = 0.
In a triangle, each vertex is adjacent to both other vertices. Since diagonals only connect non-adjacent vertices, there are no vertices to connect with a diagonal. The formula confirms this: 3(3−3)2=0\frac{3(3-3)}{2} = 0.
Think of it step by step: Each of the nn vertices can connect to n−3n-3 others (not itself, not its 2 neighbors). That gives n(n−3)n(n-3) connections, but we divide by 2 because each diagonal is counted from both ends.
In convex polygons, all diagonals are inside. In concave (non-convex) polygons, some diagonals may pass outside the polygon's interior.

Glossary

Diagonal
A line segment connecting two non-adjacent vertices of a polygon
Vertex
A corner point where two sides of a polygon meet (plural: vertices)
Adjacent vertices
Two vertices that are connected by a side of the polygon
Convex polygon
A polygon where all interior angles are less than 180 degrees and all diagonals lie inside

More in This Topic