CalculatorForEver
MATH / GUIDE

How do I find the diagonal of a rectangle?

Calculator ForEver 3 min read

A rectangle’s diagonal is the hypotenuse of a right triangle formed by its length and width. Calculate √(length² + width²) using both dimensions in the same length unit.

Locate the right angle

Adjacent rectangle sides meet at 90 degrees, so they supply the perpendicular legs. The diagonal connects opposite corners. It is longer than either side for a rectangle with two positive dimensions, which gives a useful check on the answer.

Measure a 9-by-12 rectangle

The diagonal is √(9² + 12²) = √(81 + 144) = √225 = 15 units. If the sides are meters, the diagonal is 15 meters, not square meters. The squaring is an intermediate step; the final square root restores a length unit.

Check that the outline is rectangular

A four-sided shape with unequal angles does not necessarily have a diagonal determined by only two neighboring side lengths. Measure the angle or more dimensions when the corners are not square. For physical clearance, also allow for the actual object’s thickness and orientation rather than using one ideal diagonal alone.

Build the triangle from adjacent sides

A diagonal divides a rectangle into two congruent right triangles. Its length and width meet at a right angle and become the legs, so the diagonal is their hypotenuse. For a five-by-twelve rectangle, the diagonal is √(25 + 144) = thirteen units. The result exceeds either side and remains below their sum of seventeen, which supplies a quick range check. If the side lengths are meters, the squared terms temporarily use square meters and the final root returns meters. A result still labeled square meters describes a unit error. The diagonal is a length across the rectangle, not its floor area or its boundary length.

Check similar rectangles and screen proportions

If a rectangle's dimensions double from five-by-twelve to ten-by-twenty-four, the diagonal doubles from thirteen to twenty-six. This follows from uniform length scaling. A screen's advertised diagonal can be related to width and height using the same model, but the aspect ratio is also needed if neither side is known. A diagonal by itself does not uniquely determine a rectangle: many width-height pairs can share it. If a screen includes a frame, specify whether the measured width and height describe the display or the outside housing. Comparing an outside diagonal with an advertised display diagonal can produce a mismatch even when the Pythagorean arithmetic is correct.

Avoid using the formula for an unsquared outline

A general quadrilateral or parallelogram can have adjacent sides five and twelve without a thirteen-unit diagonal because its included angle may differ from ninety degrees. The law of cosines includes that angle and supplies the appropriate general relationship. For a room, verify the right-angle assumption rather than relying on a rough sketch. For moving an object through an opening, an ideal diagonal alone may not establish fit: the object has thickness, the opening has depth, and the permitted orientation matters. Calculator ForEver's Right Triangle Calculator can check the geometric diagonal from perpendicular dimensions. Keep any physical clearance margin as a separate stated requirement instead of silently enlarging or shrinking the measured rectangle to make the result appear safe.

Questions about this calculation

Can the calculator estimate a screen diagonal?

Yes for a rectangular width and height in matching units; it reports ideal corner-to-corner length.

Try these values in the calculator

Find a hypotenuse and acute angles from two legs.

Use the right triangle calculator

References

More right triangle questions

Related tools