Geometry

How to find the diagonal of a rectangle

To find the diagonal of a rectangle, use the formula d = √(a² + b², where a and b are the side lengths. Square both dimensions, add the squares together, and calculate the square root of the sum.

Formula

d=\sqrt{a^{2} + b^{2}}

d = diagonal length, a = rectangle width or base, b = rectangle height or length

The Method Explained Simply

A diagonal connects two opposite corners of a rectangle, splitting the shape into two identical right-angled triangles. The diagonal forms the hypotenuse (the longest side), while the two adjacent sides of the rectangle act as the legs.

Because the corner forms a 90-degree angle, you can use the Pythagorean theorem: a² + b² = d². Taking the square root of both sides gives the standard diagonal formula, d = √(a² + b².

To solve a problem, take the width and length, square each number, add them together, and find the square root. For example, if a = 3 and b = 4, calculate 3² + 4² = 9 + 16 = 25. The square root of 25 is 5, so the diagonal length is 5.

When and Where It Is Used

In school, this calculation appears frequently in middle and high school geometry, coordinate geometry problems, and standardized tests such as the SAT, ACT, and GCSE exams.

In everyday life, carpenters and builders measure diagonals to ensure frames, walls, and foundations are perfectly square. If opposite diagonal measurements match, the corners are guaranteed to form true right angles.

Display manufacturers also use this formula to classify television, computer monitor, and smartphone screen sizes, which are always marketed by their diagonal measurement rather than their width or height.

Common Mistakes to Avoid

The most frequent error is adding the sides before squaring, mistakenly calculating d = a + b or d = √(a + b). You must always square each individual side first before adding the values together.

Another common mistake is forgetting the final square root step. Stopping at d² = a² + b² leaves you with the square of the diagonal rather than the actual length.

Watch out for mismatched units. If one side is given in inches and the other in feet, or one in centimeters and another in meters, convert both measurements to the same unit before starting your calculation.

Quick Mental Tricks and Checks

You can quickly check your answer using a simple rule: the diagonal must always be longer than either individual side, but it must be strictly shorter than the sum of both sides (a + b). If your answer is smaller than a or larger than a + b, check your arithmetic.

Look for common Pythagorean triples to solve problems instantly without calculation. If the sides are in a 3:4 ratio, the diagonal is always 5 times that scale factor. Other common whole-number ratios include 5-12-13 and 8-15-17.

For a square where both sides are equal (a = b), the formula simplifies to d = a · √(2), which is roughly a multiplied by 1.414.

Worked examples

Example 1The sides a and b meet at a right angle. a=3,\;b=4. Find d.

  1. Write the relationship for the requested quantity.

    d=\sqrt{a^{2} + b^{2}}
  2. Substitute each value, keeping its sign.

    \sqrt{\left(\left(3\right)^{2}+\left(4\right)^{2}\right)}
  3. Simplify the expression to obtain the exact result.

    5
Answer5Verified by computation

Example 2The sides a and b meet at a right angle. a=5,\;b=12. Find d.

  1. Write the relationship for the requested quantity.

    d=\sqrt{a^{2} + b^{2}}
  2. Substitute each value, keeping its sign.

    \sqrt{\left(\left(5\right)^{2}+\left(12\right)^{2}\right)}
  3. Simplify the expression to obtain the exact result.

    13
Answer13Verified by computation

Example 3The sides a and b meet at a right angle. a=6,\;b=8. Find d.

  1. Write the relationship for the requested quantity.

    d=\sqrt{a^{2} + b^{2}}
  2. Substitute each value, keeping its sign.

    \sqrt{\left(\left(6\right)^{2}+\left(8\right)^{2}\right)}
  3. Simplify the expression to obtain the exact result.

    10
Answer10Verified by computation

Questions and answers

Can the diagonal of a rectangle be shorter than its sides?

No, the diagonal is the hypotenuse of a right-angled triangle formed by the sides, which means it must always be longer than either individual side length.

Are both diagonals in a rectangle the same length?

Yes, every rectangle has two diagonals that are equal in length and bisect each other at their center point.

How do you find the diagonal if you only know the area and one side?

Divide the area by the known side to find the missing side length. Once you have both side lengths, apply the formula d = √(a² + b².

How do you calculate a TV screen size using this formula?

Measure the horizontal width and vertical height of the visible screen area, square both numbers, add them, and take the square root to find the advertised diagonal size.

Solve your own problem

Different numbers or a harder variant? Type it in and get the steps.

Enter solves, Shift+Enter adds a line