This calculator works out the diagonal length of any rectangle using the Pythagorean theorem, along with perimeter, area and the angle the diagonal makes with each side. It suits any time you need the straight-line distance between two opposite corners of a rectangular space or object, whether that is checking a deck or garden bed is truly square, sizing a screen or box, or working through a geometry problem. You enter the length and width of the rectangle and choose a unit from millimetres, centimetres, metres, inches or feet, and the calculator instantly returns the diagonal length, perimeter and area in that unit, plus the angle the diagonal forms with the length side. A breakdown shows every step: the length and width squared, the sum of those squares, and the square root that gives the diagonal, alongside the angle between the diagonal and each side and confirmation that both diagonals of a rectangle are always equal. The default 8 m by 6 m example demonstrates the classic 3-4-5 triangle, giving a clean 10 m diagonal. Because a rectangle's diagonals must match for its corners to be true right angles, this tool doubles as a way to check whether something you are building is properly square: measure both diagonals and see if they agree. Results are rounded for display, so use more decimal places for construction or engineering precision.
A rectangle's diagonal is the straight line connecting two opposite corners. It splits the rectangle into two identical right-angled triangles, so its length is found with:
d = √(length² + width²)
A rectangle has two diagonals, each connecting a pair of opposite corners. Because a rectangle has four right angles, drawing a diagonal splits it into two right-angled triangles. The diagonal itself becomes the hypotenuse of each triangle, while the length and width form the two shorter sides. This means the Pythagorean theorem applies directly: the diagonal squared equals the length squared plus the width squared.
The diagonal (d) of a rectangle with length (l) and width (w) is:
d = √(l² + w²)
For example, a rectangle with a length of 8 m and a width of 6 m has a diagonal of √(8² + 6²) = √(64 + 36) = √100 = 10 m. This is a well-known "3-4-5 triangle" scaled up, which is why it gives a whole number result.
| Step | Calculation | Result |
|---|---|---|
| Square the length | 8² | 64 |
| Square the width | 6² | 36 |
| Add the squares | 64 + 36 | 100 |
| Take the square root | √100 | 10 m |
If you already know the diagonal and one side, you can rearrange the formula to find the missing side: missing side = √(d² minus known side²). This is useful when measuring a space where the diagonal is easier to check than a single side, such as confirming a door frame, deck, or garden bed is square (a true rectangle has equal diagonals, so if both diagonals match, the corners are 90 degrees).
Sources: Pythagorean theorem, standard Euclidean geometry (rectangle diagonal = hypotenuse of two congruent right-angled triangles formed by the length and width).
This calculator applies standard geometry and works with any consistent unit of measurement. Results are rounded for display; use more decimal places for engineering or construction precision.