Formula and Method for the Diagonal of a Rectangle
A rectangle is a four-sided polygon with two pairs of equal, parallel sides and four 90° corners. Drawing a line between two opposite corners splits the rectangle into two right triangles, with the length and width as the legs and the diagonal as the hypotenuse. By the Pythagorean theorem, the diagonal is d = √(l² + w²), where l is the length and w is the width. This calculator also derives the angle the diagonal makes with the length side, the area, and the perimeter from the same two measurements.
How the calculation works
Enter the length and width and choose the unit they are measured in. The calculator squares each value, adds them, and takes the square root to get the diagonal: d = √(l² + w²). It finds the angle between the diagonal and the length side with θ = arctan(w / l), converted to degrees. It also multiplies length by width for the area (A = l × w) and adds all four sides for the perimeter (P = 2(l + w)).
Common mistakes
- Adding instead of using the Pythagorean theorem: the diagonal is not l + w. For an 8 ft by 6 ft rectangle, the diagonal is √(8² + 6²) = √100 = 10 ft, not 14 ft.
- Mixing units: keep length and width in one consistent unit — convert inches to feet, or centimeters to meters, before entering the values.
- Confusing the diagonal with a side: the diagonal is always longer than either the length or the width, since it's the hypotenuse of the right triangle they form.
Real-world applications
- Carpentry and construction use the 3-4-5 (or measured-diagonal) method to "square" a rectangular frame or foundation: equal diagonals confirm the corners are true 90° angles.
- TV, monitor, and picture-frame sizes are usually quoted as the diagonal measurement, so this formula converts between diagonal and the actual width/height.
- Moving furniture or equipment through doorways or stairwells often depends on the diagonal, which is the longest straight-line dimension of a rectangular object.
- Land surveying and CAD layout use the diagonal and angle to verify rectangular plots and panels are correctly proportioned.