ReadyCalcs · All calculators · Compare

Rectangle Diagonal Calculator

Enter length, width to find diagonal. d = √(length² + width²).

SHAPE GUIDE

The shape behind the formula

lengthwidth
Current inputsLength: 8 unitsWidth: 5 units

Schematic diagram; proportions are not to scale. Use the formula and current values below for the numerical result.

About this calculation

A rectangle diagonal connects opposite corners in a straight line through the interior, using both perpendicular side lengths. Use this rectangle diagonal calculator to find diagonal from length, width.

Formula

d = √(length² + width²)

Worked example

With Length: 8 units, Width: 5 units, diagonal is 9.433981 units.

How to calculate diagonal

The rule is d = √(length² + width²).

In the rectangle diagonal example, length 8 units produces diagonal 9.433981 units. Entering 9 units instead produces 10.29563 units.

Reading diagonal

The result is a linear corner-to-corner span, longer than either separate side of a nondegenerate rectangle. With length 8 units, width 5 units, the calculator returns diagonal 9.433981 units.

Practical use

Check a rectangular frame, screen, or opening by comparing the modeled diagonal with a physical corner-to-corner measurement. Check the straight corner-to-corner clearance across a rectangular opening.

Limits and common mistakes

Length and width must meet at a right angle. An out-of-square frame can have diagonals that differ from this ideal result. The diagonal joins opposite corners and must be longer than either side of a nondegenerate rectangle.

Why the relationship works

The diagonal and two perpendicular sides form a right triangle inside the rectangle. The corner-to-corner length is found from the combined squares of the two edges, rather than by walking around their corner. The rectangle diagonal rule uses length (units), width (units) in d = √(length² + width²); read each symbol as the field named on this page.

Interpreting another set of values

The entered length (units), width (units) define the right-angle sides inside the rectangle. The rule d = √(length² + width²) gives diagonal in units across the interior. Compare this straight span with a corner-to-corner tape measurement rather than the distance around a corner.

For a second rectangle diagonal check, keep the other default inputs fixed and change length from 8 units to 10 units. Diagonal changes from 9.433981 units to 11.18034 units. A change in one side changes the straight corner span through the right-triangle relation, not by adding the full side difference.

Checks and limits

The diagonal should exceed either side but be shorter than their sum for a nondegenerate rectangle. Two measured physical diagonals should agree if the frame is truly rectangular. The worked 9.433981 units is a straight corner span in length units. It is neither the square-unit area inside nor the full linear distance around the edges.

Inputs

  • Length (units)
  • Width (units)

Related calculators

Related guides

Start with your task