Diagonal of Rectangle: Definition Formula and Examples

#Diagonal of Rectangle
TL;DR
The diagonal of a rectangle is d=l2+w2d = \sqrt{l^2 + w^2}, where ll is the length and ww the width. Both diagonals have this length and cut each other in half.
Vaishali Tomar·reviewed byMadhukar VLast updated on December 2, 202610 min read

Key Points

  • A rectangle has two diagonals, each d=l2+w2d = \sqrt{l^2 + w^2} long.
  • For a square of side ss, d=s2d = s\sqrt{2}.
  • The diagonals are always equal and cross at their midpoints.
  • They meet at right angles only in a square.
  • The diagonal is longer than either side but shorter than both sides added.

Why a Rectangle Hides a Right Triangle

A carpenter checks a door frame by measuring its two diagonals, not its four sides. If the numbers differ, the frame is a lopsided parallelogram, not a rectangle.

  • Draw one diagonal and the rectangle splits into two right triangles.
  • The diagonal is the longest side of each: the hypotenuse.
  • So every diagonal question is a Pythagoras question in disguise.
the diagonal of rectangle ABCD is the hypotenuse of two right triangles
Rectangle ABCD with length 8 and width 6, cut by diagonal AC into a blue and an orange right triangle with right angles at B and D. The diagonal is labelled d equals 10, beside the working d squared equals 64 plus 36 equals 100, so d equals 10.

What Is the Diagonal of a Rectangle?

A diagonal of a rectangle is the straight segment joining two opposite corners. Its length is:

d=l2+w2d = \sqrt{l^2 + w^2}
  • ll is the length, ww is the width and dd is the diagonal.
  • The formula comes from the Pythagorean theorem.
  • On this page the rectangle is ABCDABCD, with l=ABl = AB and w=BCw = BC.
  • The diagonals ACAC and BDBD cross at the point OO.

The Diagonal Formula and Why It Works

Diagonal ACAC cuts off triangle ABCABC, which has a right angle at BB.

  • Its two short sides are ll and ww; its longest side is ACAC.
  • Pythagoras says AC2=l2+w2AC^2 = l^2 + w^2, so d=l2+w2d = \sqrt{l^2 + w^2}.
  • For a 4×34 \times 3 rectangle: squares of 16 and 9 make 25, so the diagonal is 5.
squares on the sides of the triangle show why the diagonal squared equals length squared plus width squared
The right triangle formed by the length 4, the width 3 and the diagonal of a rectangle, with a square built on each side: a blue square of 16 unit squares on the length, a green square of 9 on the width and an orange square of 25 on the diagonal. Sixteen plus nine equals 25, so the diagonal is the square root of 25, which is 5.

Two useful special cases

  • A square: d=s2≈1.414sd = s\sqrt{2} \approx 1.414s. A Babylonian tablet (YBC 7289, about 1800 to 1600 BCE) already records this ratio.
  • The size check: the diagonal beats the longer side but loses to l+wl + w, since a straight line is the shortest path.

Properties of the Diagonals of a Rectangle

The two diagonals of a rectangle are equal, and they bisect each other.

  1. Equal length: AC=BD=l2+w2AC = BD = \sqrt{l^2 + w^2}.
  2. Cut in half: a rectangle is a parallelogram, so AO=OCAO = OC and BO=ODBO = OD.
  3. Four equal halves: OA=OB=OC=OD=d2OA = OB = OC = OD = \tfrac{d}{2}.
  4. Four isosceles triangles: each has two equal sides meeting at OO.
  5. One circle: every corner is d2\tfrac{d}{2} from OO, so a circle centred at OO passes through all four.
  6. Not perpendicular: unless the rectangle is a square.
the diagonals of a rectangle are equal, bisect each other, make four isosceles triangles and are diameters of a circle through the corners
Rectangle ABCD with both diagonals of 9.23 crossing at O, every half-diagonal marked equal at 4.61, the four triangles at O shaded orange and green, and a dashed circle through all four corners centred at O. The angles at O are 120 and 60 degrees, adding to 180.

Why the two diagonals are equal: two ways

  • By Pythagoras: both are hypotenuses of right triangles with legs ll and ww.
  • By congruent triangles: ABCABC and BADBAD share ABAB, have BC=ADBC = AD and a right angle between. Side, angle, side.
  • It works backwards: a parallelogram with equal diagonals is a rectangle. That is the carpenter's check.
  • An isosceles trapezium also has equal diagonals, so the frame needs equal opposite sides first.

Drag the corners below. Both diagonal lengths change together, and "perpendicular" says No until the shape is a square.

Try It Yourself

Use the polygon lab to see Diagonal of Rectangle at work: drag, change the numbers and watch what happens.

The Angle Between the Diagonals

The diagonals cross at two angles that add to 180°180°.

  • Each diagonal leans off the long side at an angle α\alpha. In right triangle ABCABC, tan⁡α\tan\alpha (the side opposite α\alpha divided by the side next to it) is wl\tfrac{w}{l}.
  • Triangle AOBAOB is isosceles, so ∠AOB=180°−2α\angle AOB = 180° - 2\alpha and ∠BOC=2α\angle BOC = 2\alpha.
  • In a square α=45°\alpha = 45°, so both angles are 90°90°.
  • A long, thin rectangle gives a flattened X.

Examples of Diagonal of Rectangle

These build from a plug-in to working backwards and finding angles.

Example 1

Find the diagonal of a rectangle 15 cm long and 8 cm wide.

  1. d=152+82=225+64=289d = \sqrt{15^2 + 8^2} = \sqrt{225 + 64} = \sqrt{289}.
  2. Final answer: 17 cm.

Example 2

A rectangle is 5 cm by 2 cm. Find the diagonal to two decimal places.

  1. d=25+4=29d = \sqrt{25 + 4} = \sqrt{29}, not a whole number.
  2. Final answer: 29≈5.39\sqrt{29} \approx 5.39 cm.

Example 3

A field is 21 m by 20 m. How much shorter is the walk corner to corner than round two sides?

  1. Round two sides: 21+20=4121 + 20 = 41 m. The straight path must be shorter.
  2. d=441+400=841=29d = \sqrt{441 + 400} = \sqrt{841} = 29 m.
  3. Final answer: cutting across saves 41−29=1241 - 29 = 12 m.
the diagonal of a rectangle is shorter than the path round two sides
A green rectangular field 21 metres by 20 metres. A dashed orange path goes round two sides, 21 plus 20 equals 41 metres, while a blue arrow cuts straight across the diagonal, the square root of 441 plus 400, equal to 29 metres, saving 12 metres.

Example 4

The diagonal is 25 cm and the width 7 cm. Find the length.

  1. l2=d2−w2=625−49=576l^2 = d^2 - w^2 = 625 - 49 = 576.
  2. Final answer: l=24l = 24 cm.

Example 5

In rectangle ABCD, AC = (2x + 6) cm and BD = (4x − 8) cm. Find x and AO.

  1. The diagonals are equal: 2x+6=4x−82x + 6 = 4x - 8, so x=7x = 7.
  2. AC=20AC = 20 cm, and AOAO is half of it.
  3. Final answer: x=7x = 7 and AO=10AO = 10 cm.

Example 6

At what angles do the diagonals of a 12 cm by 5 cm rectangle cross?

  1. tan⁡α=512\tan\alpha = \tfrac{5}{12}, so α≈22.6°\alpha \approx 22.6°.
  2. ∠BOC=2α≈45.2°\angle BOC = 2\alpha \approx 45.2° and ∠AOB≈134.8°\angle AOB \approx 134.8°.
  3. Final answer: about 45.2°45.2° and 134.8°134.8°.
the angle between the diagonals of a 12 by 5 rectangle
A 12 by 5 rectangle ABCD with both diagonals. Each diagonal makes 22.6 degrees with the long side, marked at A and at B. At the centre the diagonals cross at 134.8 degrees, facing the long side, and 45.2 degrees, facing the short side.

Common Mistakes With the Diagonal of a Rectangle

These slips show up once the numbers stop being neat.

Mistake 1: Adding the sides

Where it slips in: The diagonal "crosses both sides", so students add them.

Don't do this: Say a 15 by 8 rectangle has diagonal 23.

The correct way: Square, add, then root: 289=17\sqrt{289} = 17.

Mistake 2: Forgetting the square root

Where it slips in: Stopping after "square and add".

Don't do this: Report d=289d = 289.

The correct way: l2+w2l^2 + w^2 is d2d^2, so take the root.

Mistake 3: Mixing units

Where it slips in: Length in metres, width in centimetres.

Don't do this: Use l=2l = 2 and w=50w = 50 together.

The correct way: Convert first: 2002+502≈206.2\sqrt{200^2 + 50^2} \approx 206.2 cm.

Mistake 4: Assuming the diagonals cross at right angles

Where it slips in: Borrowing the rhombus fact.

Don't do this: Mark a right angle where they meet.

The correct way: Only a square's diagonals are perpendicular; use tan⁡α=wl\tan\alpha = \tfrac{w}{l}.

Compare with the properties of a rectangle and diagonals in general.

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

The diagonal turns up wherever rectangles meet real life.

  • Screens: a "55-inch" 16:9 TV has a 55-inch diagonal. It is about 47.94 inches wide and 26.96 tall.
  • Same diagonal, less picture: a 4:3 screen of 55 inches is 44 by 33, so the 16:9 one has about 11% less area.
  • Square corners: equal diagonals prove a frame or floor is truly rectangular.
  • Bracing: a diagonal brace turns a wobbly frame into two rigid triangles.
a 55-inch 16 by 9 screen is about 47.94 inches wide and 26.96 inches tall
A television with a 55-inch yellow arrow from corner to corner of its blue screen. The width is 47.94 inches and the height 26.96 inches, from 16k and 9k with k equal to 55 divided by root 337, about 2.996.

Conclusion

  • d=l2+w2d = \sqrt{l^2 + w^2}: the diagonal is the hypotenuse.
  • Both diagonals are equal and bisect each other.
  • A parallelogram with equal diagonals is a rectangle.
  • They are perpendicular only in a square.

Practise What You Have Learned

  1. Find the diagonal of a 9 by 12 rectangle.
  2. The diagonal is 13 and the length 5. Find the width.
  3. Find the diagonal of a 7 by 7 square, exactly.
  4. The diagonal is 41 cm and the length 40 cm. Find the width.

Answers: 15; 12; 727\sqrt{2}; 9 cm.

Learn more with Bhanzu's geometry tutor, middle school math tutor or math classes online.

Want a Bhanzu trainer to walk your child through Pythagoras and rectangles? Book a free demo class, online globally, or in person at our McKinney, TX center.

Read More

Research Behind This Article

  1. Euclid, Elements, Book I, Proposition 47 (the Pythagorean theorem), with commentary by D. E. Joyce, Clark University. mathcs.clarku.edu
  2. Euclid, Elements, Book I, Proposition 4 (side-angle-side congruence, used to show the diagonals are equal), D. E. Joyce, Clark University. mathcs.clarku.edu
  3. OpenStax, Prealgebra 2e, Section 9.4: Use Properties of Rectangles, Triangles, and Trapezoids. openstax.org
  4. MacTutor History of Mathematics, University of St Andrews, Pythagoras's theorem in Babylonian mathematics (the tablet YBC 7289). mathshistory.st-andrews.ac.uk

Quick Quiz: Check Yourself

Three levels, questions with figures, instant feedback with the reason.

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}. It is Pythagoras on the right triangle the diagonal cuts off.
Are the diagonals of a rectangle equal?
Yes, always. Both are hypotenuses of right triangles with legs ll and ww.
Do the diagonals of a rectangle bisect each other at 90°?
They bisect each other, but at 90°90° only in a square. Otherwise the two angles add to 180°180°.
How do you find the diagonal of a square?
A square is a rectangle with equal sides, so the diagonal of rectangle formula becomes s2s\sqrt{2}: multiply the side by 2\sqrt{2}. A side of 7 gives about 9.90.
Can the diagonal be a whole number when the sides are?
Only when the length, the width and the diagonal of rectangle ABCD form a Pythagorean triple, such as 3-4-5 or 5-12-13. Otherwise it is a root like 65\sqrt{65}.
✍️ Written By
Vaishali Tomar
Vaishali Tomar
Subject Matter Expert
Vaishali Tomar is an educator and content specialist with over four years of experience teaching and developing learning resources for students from UKG to Grade 8. At Bhanzu, she creates lesson plans, assessments and educational content that simplify math through structured, student-friendly learning. She holds an M.Sc. in Computer Science and co-founded Qeemle, an online magazine, during her college years, which built her skills in content creation and editing.
LinkedIn
🔬 Reviewed By
Madhukar V
Math Columnist & Analyst
Book a FREE Demo ClassBook Now →