How this rectangle diagonal calculator works
Enter the length and width of a rectangle. The calculator finds the diagonal with Diagonal = √(length² + width²). Length 3 and width 4 give √(9 + 16) = 5.0000. The result is shown to four decimal places.
The formula is the Pythagorean theorem. The diagonal is the hypotenuse of a right triangle whose legs are the two sides. Length 5 and width 12 give 13.0000. Length 6 and width 8 give 10.0000. Length 8 and width 15 give 17.0000. Swapping length and width does not change the answer.
Both sides must be finite and at least 0. An empty field or a negative value leaves the result as “--.” Decimals are allowed: 2.5 and 6 give 6.5000. A square with sides 1 and 1 gives √2 ≈ 1.4142. Keep both inputs in the same unit so the diagonal matches that unit.
Check by hand: square each side, add, then take the square root. For 10 and 24: 100 + 576 = 676, and √676 = 26.0000.