Skip to content

Rectangle Diagonal Calculator (and Square Diagonal)

Diagonal of a rectangle or square from its sides, or a missing side from the diagonal, with angles.

Your details

Unit system
I know

Results update as you type

Diagonal

5 ft

Area
12 sq ft
Perimeter
14 ft
Angle between diagonal and length
36.87 °
Angle between diagonal and width
53.13 °
Acute angle between the diagonals
73.74 °
Circumscribed circle radius (d / 2)
2.5 ft

Step-by-step solution
  1. Diagonal: d = √(l² + w²) = √(4² + 3²) = 5 ft
  2. Area: l × w = 12 sq ft
  3. Perimeter: 2(l + w) = 14 ft
  4. Angle with the length: α = arctan(w / l) = 36.87°
  5. Angle between the diagonals: 2 × min(α, 90° − α) = 73.74°

A diagonal joins two opposite corners of a rectangle. It cuts the rectangle into two identical right triangles, so its length comes straight from the Pythagorean theorem. This rectangle diagonal calculator works in four directions:

  • Both sides known — the classic case: length and width give the diagonal.
  • Square — one side is enough, because the diagonal of a square is always the side times 2\sqrt 2.
  • Diagonal and one side — get the missing side, useful when you can measure corner to corner but not along a wall.
  • Diagonal and an aspect ratio — turn a TV or monitor size such as 55 inches at 16:9 into its actual width and height.

Every mode also returns the area, the perimeter, the angle the diagonal makes with each side, the angle where the two diagonals cross, and the radius of the circle that passes through all four corners. Carpenters use the diagonal to check that a frame is square, tilers to set out a room, and shoppers to know whether a screen will fit in a cabinet. For a general right triangle, see the Pythagorean theorem calculator; for the shape of a screen, the aspect ratio calculator.

How to use this calculator

  1. Choose what you know: both sides, the side of a square, the diagonal and one side, or the diagonal and a ratio.
  2. Enter the values and pick a unit for each (mm, cm, m, km, in, ft, yd or mi). Units can be mixed.
  3. Read the main result at the top: the diagonal, the missing side, or the length of the screen.
  4. Below it, find the area, perimeter, angles and circumscribed circle radius. Change the display unit of any result.
  5. Open the steps to see the formula with your own numbers.

The formula

For a rectangle with length ll and width ww, each diagonal is the hypotenuse of a right triangle whose legs are the sides:

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

For a square of side aa, l=w=al = w = a, so d=2a2=a2≈1.41421 ad = \sqrt{2a^2} = a\sqrt 2 \approx 1.41421\,a.

Going backwards, a missing side is w=d2−l2w = \sqrt{d^2 - l^2}, which only exists when d>ld > l. With a ratio p:qp:q and a diagonal dd, write k=p2+q2k = \sqrt{p^2 + q^2}; then l=d p/kl = d\,p/k and w=d q/kw = d\,q/k.

The diagonal makes an angle α=arctan⁡(w/l)\alpha = \arctan(w/l) with the length and 90∘−α90^\circ - \alpha with the width. The two diagonals have the same length, bisect each other, and cross at an acute angle of 2min⁡(α,90∘−α)2\min(\alpha, 90^\circ - \alpha). Since they meet at the centre, the circumscribed circle has radius d/2d/2. Area =l w= l\,w and perimeter =2(l+w)= 2(l + w).

Worked example

A room. A floor of 5 m by 3.2 m: d=52+3.22=35.24≈5.94d = \sqrt{5^2 + 3.2^2} = \sqrt{35.24} \approx 5.94 m. The diagonal makes an angle of 32.62° with the long wall, and the two diagonals cross at 65.24°.

A square. A square tile of 4 cm side has a diagonal of 42≈5.664\sqrt 2 \approx 5.66 cm.

A missing side. A door opening measures 2 m high and 2.2 m from corner to corner: its width is 2.22−22=0.84≈0.92\sqrt{2.2^2 - 2^2} = \sqrt{0.84} \approx 0.92 m.

A 55-inch 16:9 TV. k=162+92≈18.3576k = \sqrt{16^2 + 9^2} \approx 18.3576, so the screen is 55×16/k≈47.9455 \times 16 / k \approx 47.94 in wide and 55×9/k≈26.9655 \times 9 / k \approx 26.96 in high — about 121.8 cm by 68.5 cm, not counting the frame.

Diagonal of a square

A square is a rectangle with equal sides, so its diagonal is always a2a\sqrt 2: about 1.414 times the side. A 30 cm square tile has a diagonal of about 42.43 cm; a 10 ft square shed has one of about 14.14 ft. The reverse is just as useful: the side of a square is its diagonal divided by 2\sqrt 2 (about 0.7071 times the diagonal). The two diagonals of a square cross at exactly 90° and make 45° with every side.

Checking that a frame is square

If a frame, a slab form or a room layout is a true rectangle, its two diagonals are equal. Measure both: a difference means the corners are not at 90°. Builders also use the 3-4-5 rule, a small whole-number case of the formula: a rectangle 3 by 4 has a diagonal of exactly 5, and any multiple works (6-8-10, 9-12-15). With the default values here (4 by 3) the calculator returns exactly 5.

Frequently asked questions

How do I calculate the diagonal of a rectangle?

Square the length and the width, add them, and take the square root: d = √(l² + w²). For 5 m by 3.2 m, d = √35.24 ≈ 5.94 m.

What is the diagonal of a square?

The side multiplied by √2, about 1.41421. A square with 4 cm sides has a diagonal of about 5.66 cm.

How do I find a side from the diagonal?

If you know the diagonal d and one side l, the other side is √(d² − l²). For a square, divide the diagonal by √2. With a diagonal and an aspect ratio, use the ratio mode.

How wide is a 65-inch TV?

For a 16:9 screen, the width is the diagonal × 16 / √337 ≈ 0.8716 × diagonal, so about 56.7 in (144 cm) wide and 31.9 in (81 cm) high. Choose the ratio mode for other formats.

Are both diagonals of a rectangle the same length?

Yes. They are equal and cut each other in half at the centre. They are perpendicular only when the rectangle is a square.

Sources

Last updated:

More Math calculators

People also use