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 .
- 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
- Choose what you know: both sides, the side of a square, the diagonal and one side, or the diagonal and a ratio.
- Enter the values and pick a unit for each (mm, cm, m, km, in, ft, yd or mi). Units can be mixed.
- Read the main result at the top: the diagonal, the missing side, or the length of the screen.
- Below it, find the area, perimeter, angles and circumscribed circle radius. Change the display unit of any result.
- Open the steps to see the formula with your own numbers.
The formula
For a rectangle with length and width , each diagonal is the hypotenuse of a right triangle whose legs are the sides:
For a square of side , , so .
Going backwards, a missing side is , which only exists when . With a ratio and a diagonal , write ; then and .
The diagonal makes an angle with the length and with the width. The two diagonals have the same length, bisect each other, and cross at an acute angle of . Since they meet at the centre, the circumscribed circle has radius . Area and perimeter .
Worked example
A room. A floor of 5 m by 3.2 m: 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 cm.
A missing side. A door opening measures 2 m high and 2.2 m from corner to corner: its width is m.
A 55-inch 16:9 TV. , so the screen is in wide and 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 : 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 (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
- Weisstein, Rectangle — Wolfram MathWorld
- Weisstein, Square — Wolfram MathWorld
- OpenStax, Prealgebra 2e — §9.3 Angles, Triangles and the Pythagorean Theorem
- OpenStax, Prealgebra 2e — §9.4 Properties of Rectangles, Triangles and Trapezoids
Last updated: