Physics Wallah

Diagonal Formula: Square, Rectangle, Cube, Cuboid, Examples

Learn how to use the diagonal formula to find diagonals of polygons, rectangles, squares, and triangles. which can help determine this count based on the number of sides in the polygon.
authorImageRanvijay Singh9 Oct, 2023
Share

Share

Diagonal Formula

The Diagonal Formula is a mathematical formula used to calculate the length of the diagonal of a rectangle. In a rectangle, the diagonal is the line segment that connects two opposite corners of the rectangle.

If you know the length (L) and width (W) of the rectangle, you can use the Pythagorean Theorem to find the length of the diagonal (D) using the diagonal Formula. The Pythagorean Theorem states that in a right triangle, the square of the length of the hypotenuse (the side opposite the right angle) is equal to the sum of the squares of the lengths of the other two sides.

A polygon is a closed two-dimensional shape formed by connecting three or more straight line segments. Some common examples of polygons include triangles, squares, rectangles, pentagons, and hexagons.

In a polygon, the individual straight line segments are referred to as its sides. The points where these segments meet are called vertices. Sides that share a common vertex are known as adjacent sides. A diagonal is a straight line segment that connects two nonadjacent vertices of the polygon.

What is Diagonal?

In a polygon, a diagonal is a line segment that connects one vertex to another vertex, and these two vertices are not adjacent to each other. For example, in a triangle, there are no diagonals because you cannot draw a line from one interior angle to any other interior angle without also including one of the sides of the triangle.

As we move to more complex polygons, such as a quadrilateral (four-sided polygon) or a pentagon (five-sided polygon), the number of diagonals increases. A quadrilateral has two diagonals, while a pentagon has five diagonals.

The concept of diagonals becomes clearer when you visualize them in various polygon shapes, as shown in the images below:

There are diagonal formulas available to calculate the number of diagonals in a polygon, which can help determine this count based on the number of sides in the polygon.

Diagonal Formula

Where:

n represents the number of sides of the polygon.

The Number of Diagonals in Different Polygons

Here's a list of the number of diagonals in different polygons as calculated using the formula mentioned earlier:

Diagonal Formula of Square

The diagonal of a square can be calculated using the Pythagorean theorem because a square is a special type of rectangle with all sides of equal length.

Let's say the side length of the square is "s." To find the length of the diagonal "d," you can use the following formula:

d = s√2

Where:

"d" is the length of the diagonal.

"s" is the side length of the square.

√2 represents the square root of 2.

So, to find the diagonal of a square, simply multiply the side length by the square root of 2.

Also Check – Logarithm Formula

Diagonal Formula of a Rectangle

The diagonal of a rectangle, you can use the Pythagorean theorem, just as you would for any right-angled triangle. In a rectangle, the diagonal is the hypotenuse of a right triangle formed by the length and width of the rectangle.

Let "L" represent the length of the rectangle, and "W" represent the width of the rectangle. The formula to calculate the diagonal "D" is as follows:

D = √(L 2 + W 2 )

Where:

"D" is the length of the diagonal.

"L" is the length of the rectangle.

"W" is the width of the rectangle.

√ represents the square root.

By plugging the values of the length and width of the rectangle into this formula, you can find the length of the diagonal.

Diagonal Formula of a Parallelogram

In a parallelogram, the diagonal can be calculated using the Pythagorean theorem because it forms a right triangle with two adjacent sides of the parallelogram. Let's denote the length of the two adjacent sides as "a" and "b," and the length of the diagonal as "d." The formula to calculate the diagonal of a parallelogram is as follows:

d = √(a 2 + b 2 + 2abcos(θ))

Where:

"d" is the length of the diagonal.

"a" and "b" are the lengths of the two adjacent sides.

"θ" is the angle between the two adjacent sides.

√ represents the square root.

"cos(θ)" is the cosine of the angle θ.

Please note that you need to know both the lengths of the adjacent sides and the measure of the angle between them to use this formula effectively.

Also Check – Introduction to Graph Formula

Diagonal Formula of a Cube

Formula to find the length of the diagonal of a cube with side length "s" is as follows:

Diagonal (d) = s√3

So, the diagonal of a cube is equal to the side length "s" multiplied by the square root of 3.

Diagonal Formula of Cuboid

The diagonal of a cuboid (also known as a rectangular prism), you can use the Pythagorean theorem. In a cuboid, the diagonal runs through the three-dimensional space, connecting two opposite corners of the cuboid.

Let "l," "w," and "h" represent the length, width, and height of the cuboid, respectively. The formula to calculate the diagonal "d" is as follows:

d = √(l 2 + w 2 + h 2 )

Where:

"d" is the length of the diagonal.

"l" is the length of the cuboid.

"w" is the width of the cuboid.

"h" is the height of the cuboid.

√ represents the square root.

By plugging the values of the length, width, and height of the cuboid into this formula, you can find the length of the diagonal.

Diagonal Formula Examples

Example 1: Calculate the diagonal of a rectangle with a length of 8 cm and a width of 6 cm.

Solution:

To find the diagonal of a rectangle with a length of 8 cm and a breadth of 6 cm, you can use the diagonal formula for a rectangle:

Diagonal (D) = √(Length^2 + Breadth^2)

Plugging in the values:

D = √(8 2 + 6 2 )

D = √(64 + 36)

D = √100

D = 10 cm

So, the diagonal of the rectangle is 10 cm.

Example 2: Determine the diagonal length of a cube with a side length of 10 cm.

Solution:

To determine the diagonal length (d) of a cube with a side length (s) of 10 cm, you can use the formula for the diagonal of a cube:

d = s√3

Plugging in the given side length:

d = 10 cm × √3

Now, calculate the value:

d ≈ 10 cm × 1.732 (rounded to three decimal places for √3)

d ≈ 17.32 cm

So, the diagonal length of the cube is approximately 17.32 cm.

Also Check – Data Handling Formula

Non-Mathematical Uses of the Concept of Diagonal

The concept of diagonals has diverse applications in various fields, as you've highlighted:

  • Engineering and Construction: Diagonal bracing is crucial for providing structural stability in buildings, scaffolding, and other structures. Diagonal elements in truss structures, for example, help distribute forces and maintain stability.
  • Tools and Manufacturing: Diagonal pliers, often called "diagonals" or "wire cutters," are commonly used in electrical work and other applications to cut wires and cables. They get their name from the diagonal cutting edges at the jaws.
  • Lashing and Knot Tying: Diagonal lashing is a technique used in activities like camping, scouting, and construction to secure spars or poles together. It's an essential skill for creating sturdy structures with timber.
  • Sports: In sports like football (soccer), the diagonal system of control is used by referees and assistant referees to ensure proper positioning on the field. This positioning helps officials make accurate calls and monitor the game effectively.

Understanding the concept of diagonals in these contexts is crucial for safety, precision, and efficiency in various industries and activities.

Diagonal Formula FAQs

Q1. What is the formula for finding the diagonal of a rectangle?

Ans. The formula for the diagonal (D) of a rectangle with length (L) and width (W) is: D = √(L^2 + W^2).

Q2. How do you calculate the diagonal of a cube?

Ans. The formula for the diagonal (d) of a cube with a side length (s) is: d = s√3.

Q3. How can you find the diagonal of a cuboid?

Ans. To find the diagonal (d) of a cuboid with length (l), width (w), and height (h), use the formula: d = √(l^2 + w^2 + h^2).

Q4. What's the formula for the number of diagonals in a polygon with n sides?

Ans. The formula for calculating the number of diagonals in a polygon with n sides is: (n * (n - 3)) / 2.

Q5. How do you calculate the diagonal of a parallelogram?

Ans. In a parallelogram, the diagonal can be found using the Pythagorean theorem and the lengths of its sides. The formula is: d = √(a^2 + b^2 + 2abcos(θ)), where "a" and "b" are the lengths of two adjacent sides, and "θ" is the angle between them.
Popup Close ImagePopup Open Image
Talk to a counsellorHave doubts? Our support team will be happy to assist you!
Popup Image
Join 15 Million students on the app today!
Point IconLive & recorded classes available at ease
Point IconDashboard for progress tracking
Point IconMillions of practice questions at your fingertips
Download ButtonDownload Button
Banner Image
Banner Image
Free Learning Resources
Know about Physics Wallah
Physics Wallah is an Indian edtech platform that provides accessible & comprehensive learning experiences to students from Class 6th to postgraduate level. We also provide extensive NCERT solutions, sample paper, NEET, JEE Mains, BITSAT previous year papers & more such resources to students. Physics Wallah also caters to over 3.5 million registered students and over 78 lakh+ Youtube subscribers with 4.8 rating on its app.
We Stand Out because
We provide students with intensive courses with India’s qualified & experienced faculties & mentors. PW strives to make the learning experience comprehensive and accessible for students of all sections of society. We believe in empowering every single student who couldn't dream of a good career in engineering and medical field earlier.
Our Key Focus Areas
Physics Wallah's main focus is to make the learning experience as economical as possible for all students. With our affordable courses like Lakshya, Udaan and Arjuna and many others, we have been able to provide a platform for lakhs of aspirants. From providing Chemistry, Maths, Physics formula to giving e-books of eminent authors like RD Sharma, RS Aggarwal and Lakhmir Singh, PW focuses on every single student's need for preparation.
What Makes Us Different
Physics Wallah strives to develop a comprehensive pedagogical structure for students, where they get a state-of-the-art learning experience with study material and resources. Apart from catering students preparing for JEE Mains and NEET, PW also provides study material for each state board like Uttar Pradesh, Bihar, and others

Copyright © 2025 Physicswallah Limited All rights reserved.