An Initiative by SAARTHI IAS
Maarg Manthan · Topic 17.4

Number of Diagonals in a Polygon

Quantitative Aptitude › Geometry – Quadrilaterals and Polygons · Topic 17.4

The number of diagonals of a polygon with n sides is n(n - 3)/2. Each vertex joins to n - 3 non-adjacent vertices, and each diagonal is counted from both of its ends, so the total is halved.

Share:
Number of Diagonals in a Polygon - Quantitative Aptitude - MaargX UPSC Maarg Manthan

Quick Answer

The number of diagonals of a polygon with n sides is n(n – 3)/2. Each vertex joins to n – 3 non-adjacent vertices, and each diagonal is counted from both of its ends, so the total is halved.

At a Glance

  • Diagonals n(n – 3)/2
  • From one vertex n – 3
  • Pentagon 5
  • Hexagon 9
  • Octagon 20
  • Diagonals equal sides n = 5

Where Does It Fit?

This topic uses the polygon basics of Properties of Regular and Irregular Polygons and is extended by Number of Triangles/Diagonals Formed in a Polygon with n Sides, which counts triangles formed by the vertices.

How Is the Diagonal Formula Derived?

In short: each vertex can be joined to n – 3 other vertices (not itself and not its two neighbours), and dividing by 2 avoids counting a diagonal twice.

Diagonal formulas

  • Number of diagonals = n(n – 3)/2.
  • Diagonals from one vertex = n – 3.
  • Number of sides + diagonals = n(n – 1)/2, the number of all line segments joining pairs of vertices.
n Polygon Diagonals
4 Quadrilateral 2
5 Pentagon 5
6 Hexagon 9
7 Heptagon 14
8 Octagon 20
10 Decagon 35
12 Dodecagon 54

How Do You Solve Reverse Diagonal Problems?

In short: set n(n – 3)/2 equal to the given count and solve the quadratic for a positive whole number n.

  • Given the diagonals: n(n – 3) = 2 × diagonals, then find two numbers differing by 3 whose product is that value.
  • Diagonals equal to sides: n(n – 3)/2 = n gives n = 5, the pentagon.
  • Diagonals through the centre: a regular polygon with an even number of sides n has n/2 diagonals through the centre.
  • Test: a count such as 7 or 10 does not match any polygon, because n(n – 3)/2 must be one of 2, 5, 9, 14, 20, 27, 35, …

Where Else Does the Counting Idea Appear?

In short: the formula n(n – 1)/2 counts every pair of points, and the diagonal formula is that count minus the n sides.

Situation Count Reason
Handshakes among 10 people 45 10 × 9 / 2
Segments joining 8 points on a circle 28 8 × 7 / 2
Diagonals of an octagon 20 28 – 8
Diagonals of a decagon 35 45 – 10

The same pairs idea gives combinations in Combination and Selection Problems. A convex polygon with n vertices has no three vertices on a line, so every pair of vertices gives a different segment.

Solved Examples

Example 1

Question: Find the number of diagonals of an octagon.

  1. n(n – 3)/2 = 8 × 5/2.

Answer: 20 diagonals.

Example 2

Question: A polygon has 54 diagonals. How many sides does it have?

  1. n(n – 3) = 108.
  2. Two numbers differing by 3 with product 108 are 12 and 9.
  3. So n = 12.

Answer: 12 sides.

Example 3

Question: For which polygon is the number of diagonals equal to the number of sides?

  1. n(n – 3)/2 = n.
  2. n – 3 = 2, so n = 5.

Answer: The pentagon.

Example 4

Question: How many diagonals pass through the centre of a regular decagon?

  1. A regular polygon with an even number of sides n has n/2 such diagonals.
  2. 10/2 = 5.

Answer: 5 diagonals.

Shortcuts and Tricks

  • Memorise 2, 5, 9, 14, 20, 27, 35, 44, 54 as the diagonal counts for n = 4 to 12.
  • The difference between consecutive counts increases by 1: 3, 4, 5, 6, 7, 8, …
  • For reverse problems, factor 2 × diagonals into two numbers that differ by 3.
  • n(n – 3) is always even, so check any given count for consistency.
  • Use n(n – 1)/2 – n as another route to the same answer.

Common Mistakes

  • Using n(n – 1)/2 and forgetting to subtract the sides.
  • Using n – 2 instead of n – 3 from one vertex.
  • Forgetting to divide by 2.
  • Using n(n – 3) when the question asks for the diagonals from one vertex.
  • Accepting a count that does not give integer n.

Practice Questions

  1. Find the number of diagonals of a 20-sided polygon.
  2. A polygon has 90 diagonals. Find the number of sides.
  3. How many diagonals can be drawn from one vertex of a 15-sided polygon?
  4. Find the number of diagonals of a nonagon.
  5. A polygon has 35 diagonals. How many sides?

Answers: 1) 170; 2) 15; 3) 12; 4) 27; 5) 10.

Why Is This Topic Important?

  • Foundation Diagonal counting is a basic combinatorial fact about polygons.
  • Exam use Direct and reverse count questions appear often.
  • Speed The memorised sequence gives answers at once.
  • Link It links to combinations in Combination and Selection Problems.

What Comes Next?

The next topic is Properties of Kite and Cyclic Polygons, which studies the kite and polygons whose vertices lie on a circle.

Key Terms and Formulas

  • Diagonal A segment joining two non-adjacent vertices
  • Vertex A corner of a polygon
  • Adjacent vertices Vertices joined by a side
  • n(n – 3)/2 Number of diagonals
  • n(n – 1)/2 Number of segments joining all pairs of vertices
  • Even polygon A polygon with an even number of sides

Exam Corner

Points to Remember

  • Diagonals = n(n – 3)/2.
  • From one vertex there are n – 3 diagonals.
  • A pentagon has 5 diagonals.
  • Diagonals equal sides only for n = 5.
  • Diagonal count increases by n – 1 when a side is added.

Do Not Confuse With

  • n – 3 vs n – 2 n – 3 diagonals leave one vertex; n – 2 triangles fill the polygon.
  • Diagonals vs all segments All segments include the sides.
  • Half vs full count Divide by 2 to avoid double counting.
  • Convex vs concave The formula counts all vertex pairs, convex or not.

Memory Hook

n times n minus three, over two.

GS Relevance

Counting diagonals of polygons for SSC CGL, CAT and CSAT, with reverse problems from the diagonal count.

Frequently Asked Questions

What is the formula for the number of diagonals of a polygon?

The number of diagonals of a polygon with n sides is n times (n minus 3) divided by 2. A hexagon has 9 diagonals and an octagon has 20, because each vertex joins n minus 3 non-adjacent vertices and each diagonal is counted twice.

Why is the diagonal formula n(n - 3)/2?

Each vertex of an n-sided polygon can be joined to n minus 3 other vertices by diagonals, excluding itself and its two neighbours. Multiplying by n counts every diagonal twice, once from each end, so the product is divided by 2.

For which polygon is the number of diagonals equal to the number of sides?

The pentagon is the only polygon whose number of diagonals equals its number of sides. Setting n times (n minus 3) over 2 equal to n gives n minus 3 equal to 2, so n equals 5, and a pentagon has 5 diagonals.

How many diagonals can be drawn from one vertex of a polygon?

From a single vertex of an n-sided polygon, n minus 3 diagonals can be drawn, since the vertex cannot be joined to itself or to its two adjacent vertices. From one vertex of a 15-sided polygon, 12 diagonals can be drawn.

How do you find the number of sides from the number of diagonals?

Multiply the number of diagonals by 2 and find two numbers differing by 3 whose product equals the result. For 54 diagonals the product is 108, which equals 12 times 9, so the polygon has 12 sides.

PYQ Practice — Statement Analysis

1 A hexagon has 9 diagonals.
True

6 × 3/2 = 9.

2 The number of diagonals of a polygon is n(n - 1)/2.
False

That counts all segments between vertices; the diagonals are n(n - 3)/2.

3 A pentagon has as many diagonals as sides.
True

Both equal 5.

4 A polygon with 35 diagonals has 12 sides.
False

It has 10 sides.

Share: