Diagonal of Rectangle - Formula & Examples

#Geometry
TL;DR
The diagonal of a rectangle is found with d=l2+w2d = \sqrt{l^2 + w^2}, where ll is the length and ww is the width - it is the hypotenuse of the right triangle each diagonal creates. This guide derives the formula, works six examples, and clears up the mistakes that give wrong diagonal lengths.
BT
Bhanzu TeamLast updated on September 30, 20267 min read

What Is The Diagonal Of A Rectangle?

A diagonal of a rectangle is a straight line joining two opposite (non-adjacent) corners. Every rectangle has two diagonals, and in a rectangle they are always equal in length and bisect each other. The length of each diagonal is:

d=l2+w2d = \sqrt{l^2 + w^2}

Here ll is the length and ww is the width of the rectangle, and dd is the diagonal. The formula comes straight from the Pythagorean theorem, because a diagonal cuts the rectangle into two right triangles.

Why this formula works (a one-line derivation): the diagonal, the length, and the width form a right triangle with the diagonal as the longest side (the hypotenuse). Pythagoras says d2=l2+w2d^2 = l^2 + w^2, and taking the positive square root gives d=l2+w2d = \sqrt{l^2 + w^2}.

A carpenter checking whether a door frame is truly square measures both diagonals - and if the two numbers do not match, the frame is a lopsided parallelogram, not a rectangle.

Examples of Diagonal of Rectangle

These examples build from a clean plug-in to working backwards from the diagonal. Each problem statement is bold; the steps are plain.

Example 1

Find the diagonal of a rectangle with length 44 cm and width 33 cm.

Apply the formula:

d=l2+w2d = \sqrt{l^2 + w^2}

d=42+32d = \sqrt{4^2 + 3^2}

d=16+9=25d = \sqrt{16 + 9} = \sqrt{25}

d=5 cmd = 5 \text{ cm}

Final answer: the diagonal is 55 cm.

Example 2

Find the diagonal of a rectangle with length 66 m and width 88 m.

Your first instinct might be to add the sides directly, reasoning that the diagonal "goes across both," and write 6+8=146 + 8 = 14 m. Let's test that against the geometry.

The diagonal is the shortest path across, not the sum of two sides walked around the corner. Walking 66 then 88 is going around the edge; the diagonal cuts straight across, so it must be shorter than 1414.

d=62+82=36+64=100=10 md = \sqrt{6^2 + 8^2} = \sqrt{36 + 64} = \sqrt{100} = 10 \text{ m}

The straight cut (1010 m) is indeed shorter than the corner route (1414 m), which confirms adding the sides was wrong.

Final answer: the diagonal is 1010 m.

Example 3

A rectangle has length 1212 and width 55. Find its diagonal.

d=122+52=144+25=169=13d = \sqrt{12^2 + 5^2} = \sqrt{144 + 25} = \sqrt{169} = 13

Final answer: the diagonal is 1313.

Example 4

A rectangle has length 55 cm and width 22 cm. Find the diagonal, rounded to two decimals.

d=52+22=25+4=29d = \sqrt{5^2 + 2^2} = \sqrt{25 + 4} = \sqrt{29}

29\sqrt{29} is not a whole number, so leave it exact or approximate it:

d≈5.39 cmd \approx 5.39 \text{ cm}

Final answer: 29≈5.39\sqrt{29} \approx 5.39 cm.

Example 5

A rectangle has a diagonal of 1010 cm and a length of 88 cm. Find its width.

Rearrange the formula to solve for ww:

d2=l2+w2d^2 = l^2 + w^2

w2=d2−l2=102−82w^2 = d^2 - l^2 = 10^2 - 8^2

w2=100−64=36w^2 = 100 - 64 = 36

w=6 cmw = 6 \text{ cm}

Final answer: the width is 66 cm.

Example 6

A rectangular field is 4040 m by 3030 m. How much shorter is the diagonal path than walking two sides?

Diagonal:

d=402+302=1600+900=2500=50 md = \sqrt{40^2 + 30^2} = \sqrt{1600 + 900} = \sqrt{2500} = 50 \text{ m}

Walking two sides: 40+30=7040 + 30 = 70 m.

Saving: 70−50=2070 - 50 = 20 m.

Final answer: the diagonal path saves 2020 m, cutting across at 5050 m instead of 7070 m.

Why The Diagonal Formula Matters: "Pythagoras Hiding Inside Every Rectangle"

The diagonal formula is really the Pythagorean theorem wearing a rectangle's clothes. The moment you draw one diagonal, the rectangle splits into two right triangles, and the diagonal becomes the hypotenuse. That single insight is why the formula is worth understanding rather than memorising.

  • Checking square corners. A rectangle's two diagonals are equal. Builders and carpenters measure both; unequal diagonals mean the corners are not true right angles, so the shape has skewed into a parallelogram.

  • Fitting things through gaps. Whether a table fits through a doorway, or a screen's size ("3232-inch TV") is quoted — those are diagonal measurements, computed from width and height.

  • Shortest routes. Across a rectangular room, field, or park, the diagonal is the shortest straight-line distance between opposite corners, always less than walking two sides.

Screen sizes are the everyday version of this: a "5050-inch" television, measured by its display diagonal, is 5050 inches along the diagonal, not across the width. Shoppers who assume 5050 inches is the width are reading the wrong measurement - the same slip as adding the two sides instead of applying d=l2+w2d = \sqrt{l^2 + w^2}. The diagonal is a single number that packages both dimensions through Pythagoras.

Common Mistakes With The Diagonal Of A Rectangle

These errors show up as soon as the numbers stop being a clean Pythagorean triple.

Mistake 1: Adding the sides instead of squaring them

Where it slips in: Treating the diagonal as "length plus width."

Don't do this: Writing d=l+wd = l + w, so a 33 by 44 rectangle gets a diagonal of 77.

The correct way: The diagonal is l2+w2\sqrt{l^2 + w^2}, not l+wl + w. For 33 by 44 that is 9+16=25=5\sqrt{9 + 16} = \sqrt{25} = 5, not 77. The rusher who adds the sides forgets the diagonal cuts straight across, which is always shorter than the corner route.

Mistake 2: Forgetting the square root

Where it slips in: Stopping at l2+w2l^2 + w^2 and calling that the diagonal.

Don't do this: Reporting d=25d = 25 for a 33 by 44 rectangle because 9+16=259 + 16 = 25.

The correct way: l2+w2l^2 + w^2 equals d2d^2, not dd. Take the square root: 25=5\sqrt{25} = 5. The memorizer who recalls "square and add" but drops the final root ends up with the diagonal squared.

Mistake 3: Squaring the units wrongly or mixing units

Where it slips in: Combining a length in metres with a width in centimetres.

Don't do this: Using l=2l = 2 m and w=50w = 50 cm directly in the formula.

The correct way: Convert to one unit first (22 m =200= 200 cm), then apply the formula. Keep units consistent throughout the calculation, and the final diagonal carries that same unit.

Conclusion

  • The diagonal of a rectangle is d=l2+w2d = \sqrt{l^2 + w^2}, the hypotenuse of the right triangle formed by two sides.

  • The formula comes from the Pythagorean theorem, so it is worth deriving, not just memorising.

  • A rectangle has two equal diagonals that bisect each other.

  • Always square the sides, add, then take the square root - dropping the root is the most common slip.

  • The diagonal is the shortest straight path across the rectangle and longer than either side.

Practise What You Have Learned

Work through these to test your understanding: find the diagonal of a 99 by 1212 rectangle (Answer to Question 1: 1515); find the width of a rectangle whose diagonal is 1313 and length is 55 (Answer to Question 2: 1212); and compute the diagonal of a 77 by 77 square, leaving it exact. To learn this with a teacher, explore Bhanzu's geometry tutor, middle school math tutor, or math classes online. Want to watch the diagonal update as you resize a rectangle? Book a free demo class.

Read More

Was this article helpful?

Your feedback helps us write better content

Frequently Asked Questions

What is the formula for the diagonal of a rectangle?
d=l2+w2d = \sqrt{l^2 + w^2}, where ll is the length and ww is the width. It follows directly from the Pythagorean theorem, since the diagonal is the hypotenuse of the right triangle formed by two sides.
Are the two diagonals of a rectangle equal?
Yes. Both diagonals of a rectangle have the same length and bisect each other. Equal diagonals are one of the defining properties that separate a rectangle from a general parallelogram.
Can I find the diagonal without the Pythagorean theorem?
Not really — any method reduces to it. If you happen to know the rectangle's area AA and perimeter PP instead of both sides, you can use d=12P2−8Ad = \tfrac{1}{2}\sqrt{P^2 - 8A}, but that formula is itself derived from Pythagoras.
Is the diagonal longer than the sides?
Yes. The diagonal is the hypotenuse of a right triangle, and the hypotenuse is always the longest side. So the diagonal is longer than both the length and the width, but shorter than their sum.
✍️ Written By
BT
Bhanzu Team
Content Creator and Editor
Bhanzu’s editorial team, known as Team Bhanzu, is made up of experienced educators, curriculum experts, content strategists, and fact-checkers dedicated to making math simple and engaging for learners worldwide. Every article and resource is carefully researched, thoughtfully structured, and rigorously reviewed to ensure accuracy, clarity, and real-world relevance. We understand that building strong math foundations can raise questions for students and parents alike. That’s why Team Bhanzu focuses on delivering practical insights, concept-driven explanations, and trustworthy guidance-empowering learners to develop confidence, speed, and a lifelong love for mathematics.
Related Articles
Book a FREE Demo ClassBook Now →