Courses
Courses for Kids
Free study material
Offline Centres
More
Store Icon
Store

Polygons Diagonals Definition Formula and Examples

Reviewed by:
ffImage
hightlight icon
highlight icon
highlight icon
share icon
copy icon

How to Find the Number of Diagonals in a Polygon Using the Formula

The diagonal of a polygon is a line segment that connects any two non-adjacent vertices. The number of diagonals and their attributes vary depending on the type of polygon and the number of sides. Let's review what a polygon is and what a diagonal is before learning the diagonal of a polygon formula. 

A closed shape made up of three or more line segments is called a polygon. A line segment generated by joining any two non-adjacent vertices forms the diagonal of a polygon. Let's look at the formula for a polygon's diagonal, as well as some examples of solved problems. You can quickly count all of the possible diagonals of a basic polygon with a few sides. Counting polygons can be difficult when they become more intricate.

Fortunately, there is a straightforward formula for calculating the number of diagonals in a polygon. Because any vertex (corner) is connected to two other vertices by sides, those connections cannot be considered diagonals. That vertex, too, is unable to make a connection with itself.  As a result, ‘n’ we'll immediately lower the number of viable diagonals by three. 

That vertex, too, is unable to make a connection with itself. For example, our door only has two diagonals if you don't include moving from the top hinge to the bottom opposite and back. Any solution will have to be divided by two.

 

Diagonal- Polygons Diagonals

A diagonal is a segment of a polygon that connects two non-consecutive vertices. In a polygon, the number of diagonals that can be drawn from any vertex is three less than the number of sides. Multiply the number into totaling of diagonals per vertex (n - 3) by the number of vertices, n, then divide by 2 to get the total number of diagonals in a polygon (otherwise each diagonal is counted twice).

Number of Diagonals = \[\frac{n(n-3)}{2}\]

Simply subtract the total sides from the diagonals given by each vertex to another vertex to arrive at this formula. To put it another way, an n-sided polygon has n-vertices that can be connected in nC2 ways. 

The formula obtained by subtracting n using nC2 methods is \[\frac{n(n-3)}{2}\]. 

The total sides of a hexagon, for example, are six. As a result, the total diagonals are 6(6-3)/2 = 9

Let’s know what a diagonal is. A diagonal of a polygon can be defined as a line segment joining two vertices. From any given vertex, there are no diagonals to the vertex on either side of it, since that would lay on top of the side. Also,  remember that there is obviously no diagonal from a vertex back to itself. This means there are three less diagonals than the number of vertices. (We do not count diagonals to itself and one either side). This is a diagonal definition.

Here, we are going to discuss the number of diagonals in a polygon, diagonal definition.


Formula for the Number of Diagonals

As described above, the number of diagonals from a single vertex is three less than the number of vertices or sides, or (n-3).

There are a total number of N vertices, which gives us n(n-3) diagonals.

But each diagonal of the polygon has two ends, so this would count each one twice. So as a final step we need to divide by 2, for the final formula:

Number of distinct diagonals = \[\frac{n(n-3)}{2}\]

where,

n  is the number of sides (or vertices).


Diagonals of Polygon

The diagonals of a polygon is a segment line in which the ends are non-adjacent vertices of a polygon.

How many diagonals does n-polygon have? Let’s see the diagonals of a polygon and the no. of diagonals in a polygon.

For n = 3 we have a triangle. We can clearly see the triangle has no diagonals because each vertex has only adjacent vertices. Therefore, the number of diagonals in a polygon triangle is 0.

seo images

For n = 4 we have quadrilateral.  It has 2 diagonals. Therefore, the number of diagonals in a polygon quadrilateral is 2.

seo images


For n = 5, we have a pentagon with 5 diagonals. Therefore, the number of diagonals in a polygon pentagon is 5.

seo images

For n = 6, n-polygon is called hexagon and it has 9 diagonals. Therefore, the number of diagonals in a polygon hexagon is 9.

seo images

Since n was a lower number we could easily draw the diagonals of n-polygons and then count the number of diagonals in a polygon.


Diagonals in Real Life

Diagonals in rectangles, as well as diagonals in squares, add toughness to construction, whether for a house wall, bridge, or tall building. You may have seen diagonal wires used to keep the bridges steady. When houses are being built, look for the diagonal braces that tend to hold the walls straight and true.

Bookshelves and scaffolding are braced with diagonals. For a catcher in softball or for a catcher in baseball to throw out a runner at second base, the catcher throws along a diagonal from home plate to second.

The phone screen or computer screen you are viewing this lesson on is measured along its diagonal. A 21" screen never tells you the width and height of the screen; it is 21" from one corner to an opposite corner.


Diagonal Formulas

1) Diagonal of a Rectangle Formula:


Diagonal of a Rectangle = \[\sqrt{l^{2} + b^{2}}\]

For rectangles, l is the length of the rectangle and b is the breadth of the rectangle.


2) Diagonal of a Square Formula:

Now let's look at a few different diagonal formulas to find the length of a diagonal of a square.


Diagonal of a Square = \[a\sqrt{2}\]

For squares, a is the side of a square


3) Diagonal of a Cube Formula:

For any given cube, we find the diagonal by using a three-dimensional version of the Pythagorean Theorem/distance formula:


Diagonal of a cube = \[\sqrt{s^{2} + s^{2} + s^{2}}\]

For cubes, s is the side of a cube


Important Note

The above-given formula gives us the number of distinct diagonals - that is, the number of actual line segments. At times it is easy to miscount the diagonals of a polygon when doing it by eye.

If you glance quickly at the pentagon given below, you may be tempted to say that the number of diagonals is 10. After all, there are 2 at each vertex and 5 vertices. Few people watch them making 3 triangles, for 6 diagonals. But there are only 5 diagonals. You need to count them carefully.

seo images



Solved Examples

Question 1) Find the total number of diagonals contained in an 11-sided regular polygon.

Solution) In an 11-sided polygon, total vertices are 11. Now, the 11 vertices can be joined with each other by C211 ways i.e. 55 ways.

Now, there are a total of 55 diagonals possible for an 11-sided polygon which includes its sides also. So, subtracting the sides will give the total number of diagonals contained by the polygon.

So, total diagonals contained within an 11-sided polygon = 55 -11 which is equal to 44.

Formula Method:

According to the formula, the number of diagonals equals \[\frac{n(n-3)}{2}\].

So, 11-sided polygon will contain 11(11-3)/2 = 44 diagonals.

FAQs on Polygons Diagonals Definition Formula and Examples

1. What is a diagonal in a polygon?

A diagonal of a polygon is a line segment that connects two non-adjacent vertices of the polygon.

  • It joins vertices that are not next to each other.
  • Diagonals lie inside the polygon (for convex polygons).
  • For example, in a square, the line joining opposite corners is a diagonal.
Diagonals help divide polygons into triangles and are important in geometry problems involving interior angles and area.

2. What is the formula for the number of diagonals in a polygon?

The formula for the number of diagonals in an n-sided polygon is n(n − 3) / 2.

  • Here, n represents the number of sides (or vertices).
  • Each vertex connects to (n − 3) other non-adjacent vertices.
  • We divide by 2 to avoid counting each diagonal twice.
This formula works for all simple polygons.

3. How do you calculate the number of diagonals in a polygon?

To calculate the number of diagonals in a polygon, use the formula n(n − 3) / 2 and substitute the number of sides.

  • Step 1: Identify the number of sides, n.
  • Step 2: Substitute into the formula.
  • Step 3: Simplify the expression.
Example: For a hexagon (n = 6):
6(6 − 3) / 2 = 6 × 3 / 2 = 18 / 2 = 9 diagonals.

4. How many diagonals does a triangle have?

A triangle has 0 diagonals.

  • In a triangle (n = 3), every pair of vertices is already connected by a side.
  • Using the formula: 3(3 − 3) / 2 = 3 × 0 / 2 = 0.
Since there are no non-adjacent vertices, no diagonals can be formed.

5. How many diagonals does a quadrilateral have?

A quadrilateral has 2 diagonals.

  • For n = 4, use the formula: 4(4 − 3) / 2.
  • This gives 4 × 1 / 2 = 4 / 2 = 2.
These diagonals connect opposite vertices and may intersect inside the shape (as in a rectangle or square).

6. How many diagonals does a pentagon have?

A pentagon has 5 diagonals.

  • For n = 5, apply the formula: 5(5 − 3) / 2.
  • This equals 5 × 2 / 2 = 10 / 2 = 5.
These diagonals divide the pentagon into triangles, which helps in finding the sum of interior angles.

7. Why is the formula for diagonals n(n − 3)/2?

The formula n(n − 3)/2 works because each vertex connects to (n − 3) non-adjacent vertices, and we avoid double counting.

  • From one vertex, you cannot connect to itself or its two adjacent vertices.
  • So each vertex forms (n − 3) diagonals.
  • This gives n(n − 3), but each diagonal is counted twice.
  • Divide by 2 to get the correct total.
This reasoning applies to all simple polygons.

8. What is the difference between a side and a diagonal of a polygon?

A side connects two adjacent vertices, while a diagonal connects two non-adjacent vertices of a polygon.

  • Sides form the boundary of the polygon.
  • Diagonals lie inside the polygon (in convex polygons).
  • For example, in a square, edges are sides and the lines joining opposite corners are diagonals.
This distinction is important in geometry problems involving polygon properties.

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

From one vertex of an n-sided polygon, you can draw n − 3 diagonals.

  • You cannot draw a diagonal to the vertex itself.
  • You cannot draw diagonals to the two adjacent vertices (these are sides).
  • So subtract 3 from the total number of vertices.
Example: From one vertex of a hexagon (n = 6), you can draw 6 − 3 = 3 diagonals.

10. Can diagonals divide a polygon into triangles?

Yes, diagonals from one vertex divide an n-sided polygon into n − 2 triangles.

  • Draw all diagonals from a single vertex.
  • The polygon is partitioned into non-overlapping triangles.
  • This helps derive the interior angle sum formula.
Example: A hexagon (n = 6) can be divided into 6 − 2 = 4 triangles.