BrightChamps Logo
Login
Creative Math Ideas Image
Live Math Learners Count Icon102 Learners

Last updated on August 9th, 2025

Math Whiteboard Illustration

Math Formula for Diagonals

Professor Greenline Explaining Math Concepts

In geometry, understanding diagonals is crucial for analyzing the properties of polygons. A diagonal is a line segment connecting two non-adjacent vertices of a polygon. In this topic, we will learn the formula to determine the number of diagonals in a polygon based on the number of its sides.

Math Formula for Diagonals for Canadian Students
Professor Greenline from BrightChamps

List of Math Formulas for Diagonals in Polygons

The formula to calculate the number of diagonals in a polygon is essential in geometry. Let’s learn the formula to calculate the diagonals in any polygon.

Professor Greenline from BrightChamps

Math Formula for Diagonals in Polygons

A diagonal is a line segment connecting two non-adjacent vertices in a polygon. The formula to calculate the number of diagonals in a polygon with n sides is:

 

Diagonals = n(n-3)/2

 

Where n represents the number of sides in the polygon.

Professor Greenline from BrightChamps

Understanding the Diagonals Formula

The formula for the number of diagonals is derived by considering each vertex of the polygon, which can connect to any of the other n-3 vertices (excluding itself and its two adjacent vertices). Thus, the total number of connections (or diagonals) is divided by 2, as each diagonal is counted twice.

Professor Greenline from BrightChamps

Examples of Calculating Diagonals

Consider a pentagon, which has 5 sides.

 

Using the diagonal formula:

 

Diagonals = 5(5-3)/2 = 5

 

In a hexagon with 6 sides:

 

Diagonals = 6(6-3)/2 = 9

Professor Greenline from BrightChamps

Importance of the Diagonals Formula

The diagonals formula is used in various geometric problems and proofs. By understanding this formula, students can easily analyze complex polygonal shapes and their properties. It also aids in visualizing the internal structure of polygons.

Professor Greenline from BrightChamps

Tips and Tricks to Memorize the Diagonals Formula

Students often find geometry formulas challenging. To memorize the diagonals formula, remember that you subtract 3 from the number of sides to account for the vertices that cannot form diagonals (itself and two adjacent vertices) and divide by 2 because each diagonal is counted twice.

Max Pointing Out Common Math Mistakes

Common Mistakes and How to Avoid Them While Using the Diagonals Formula

Students often make errors when calculating the number of diagonals. Here are some common mistakes and tips to avoid them.

Mistake 1

Red Cross Icon Indicating Mistakes to Avoid in This Math Topic

Forgetting to Divide by 2

Green Checkmark Icon Indicating Correct Solutions in This Math Topic

Students sometimes forget to divide the product by 2, leading to incorrect results. Always remember that each diagonal is counted twice, so you must divide by 2.

Mistake 2

Red Cross Icon Indicating Mistakes to Avoid in This Math Topic

Misinterpreting n as Edges Instead of Sides

Green Checkmark Icon Indicating Correct Solutions in This Math Topic

Students may confuse the number of edges with the number of sides. Ensure that n represents the number of sides of the polygon.

Mistake 3

Red Cross Icon Indicating Mistakes to Avoid in This Math Topic

Applying the Formula to Non-Polygons

Green Checkmark Icon Indicating Correct Solutions in This Math Topic

The formula is only applicable to polygons. Ensure that the shape in question is a polygon before applying the formula.

Mistake 4

Red Cross Icon Indicating Mistakes to Avoid in This Math Topic

Ignoring the Concept of Non-Adjacent Vertices

Green Checkmark Icon Indicating Correct Solutions in This Math Topic

The formula is based on connecting non-adjacent vertices. Make sure to understand this concept to correctly apply the formula.

arrow-right
Max from BrightChamps Saying "Hey"
Hey!

Examples of Problems Using the Diagonals Formula

Ray, the Character from BrightChamps Explaining Math Concepts
Max, the Girl Character from BrightChamps

Problem 1

How many diagonals are there in an octagon?

Ray, the Boy Character from BrightChamps Saying "Let’s Begin"
Okay, lets begin

There are 20 diagonals in an octagon.

Explanation

Using the formula:

 

Diagonals = 8(8-3)/2 = 20

Max from BrightChamps Praising Clear Math Explanations
Well explained 👍
Max, the Girl Character from BrightChamps

Problem 2

Find the number of diagonals in a decagon.

Ray, the Boy Character from BrightChamps Saying "Let’s Begin"
Okay, lets begin

A decagon has 35 diagonals.

Explanation

Using the formula:

 

Diagonals = 10(10-3)/2 = 35

Max from BrightChamps Praising Clear Math Explanations
Well explained 👍
Max, the Girl Character from BrightChamps

Problem 3

Calculate the number of diagonals in a heptagon.

Ray, the Boy Character from BrightChamps Saying "Let’s Begin"
Okay, lets begin

There are 14 diagonals in a heptagon.

Explanation

Using the formula:

 

Diagonals = 7(7-3)/2 = 14

Max from BrightChamps Praising Clear Math Explanations
Well explained 👍
Ray Thinking Deeply About Math Problems

FAQs on Diagonals Formula

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

The formula to find the number of diagonals in a polygon is:

 

Diagonals = n(n-3)/2, where n is the number of sides.

Math FAQ Answers Dropdown Arrow

2.Can the diagonals formula be applied to any shape?

No, the diagonals formula is specifically for polygons, as it requires a closed shape with sides.

Math FAQ Answers Dropdown Arrow

3.What is the significance of the diagonals formula?

The diagonals formula helps in understanding the internal structure and properties of polygons, which is useful in various applications like geometry, design, and architecture.

Math FAQ Answers Dropdown Arrow

4.How do you calculate the number of diagonals in a dodecagon?

For a dodecagon (12 sides), the number of diagonals is:

 

Diagonals = 12(12-3)/2 = 54

Math FAQ Answers Dropdown Arrow

5.Why do we divide by 2 in the diagonals formula?

We divide by 2 because each diagonal is counted twice, once from each endpoint.

Math FAQ Answers Dropdown Arrow
Professor Greenline from BrightChamps

Glossary for Diagonals Formula

  • Polygon: A closed geometric shape with straight sides.

 

  • Diagonal: A line segment connecting two non-adjacent vertices of a polygon.

 

  • Vertex: A point where two or more lines or edges meet.

 

  • Non-adjacent vertices: Vertices that are not next to each other in a polygon.

 

  • Hexagon: A six-sided polygon.
Math Teacher Background Image
Math Teacher Image

Jaskaran Singh Saluja

About the Author

Jaskaran Singh Saluja is a math wizard with nearly three years of experience as a math teacher. His expertise is in algebra, so he can make algebra classes interesting by turning tricky equations into simple puzzles.

Max, the Girl Character from BrightChamps

Fun Fact

: He loves to play the quiz with kids through algebra to make kids love it.

INDONESIA - Axa Tower 45th floor, JL prof. Dr Satrio Kav. 18, Kel. Karet Kuningan, Kec. Setiabudi, Kota Adm. Jakarta Selatan, Prov. DKI Jakarta
INDIA - H.No. 8-2-699/1, SyNo. 346, Rd No. 12, Banjara Hills, Hyderabad, Telangana - 500034
SINGAPORE - 60 Paya Lebar Road #05-16, Paya Lebar Square, Singapore (409051)
USA - 251, Little Falls Drive, Wilmington, Delaware 19808
VIETNAM (Office 1) - Hung Vuong Building, 670 Ba Thang Hai, ward 14, district 10, Ho Chi Minh City
VIETNAM (Office 2) - 143 Nguyễn Thị Thập, Khu đô thị Him Lam, Quận 7, Thành phố Hồ Chí Minh 700000, Vietnam
UAE - BrightChamps, 8W building 5th Floor, DAFZ, Dubai, United Arab Emirates
UK - Ground floor, Redwood House, Brotherswood Court, Almondsbury Business Park, Bristol, BS32 4QW, United Kingdom