Geometry

Rectangle Diagonal Formula: Find the Corner-to-Corner Distance

Find a rectangle's diagonal using d = √(length² + width²). Follow worked examples, mixed-unit checks, inverse side calculations, and measurement limits. This guide explains the reasoning, not just the keystrokes.

Published · Updated · 6 min read

Draw the diagonal between opposite corners

A rectangle's diagonal is the straight distance from one corner to the opposite corner. If its side lengths are l and w, the diagonal is d = √(l² + w²). The line divides the rectangle into two right triangles, with l and w forming perpendicular legs and d forming the hypotenuse. It is a direct distance across the face, not the length of a route following two sides around the edge.

A true rectangle has right angles and equal opposite sides. Its two diagonals have equal length. Those geometric conditions matter: the same adjacent side lengths in a slanted parallelogram do not imply the same corner distance. Before applying the formula to an object or sketch, establish that the rectangle model is appropriate. A rough drawing alone cannot confirm a right angle, and two dimensions do not describe an arbitrary four-sided figure.

Use the Pythagorean relationship in the correct direction

The Pythagorean theorem gives d² = l² + w² because the diagonal faces the right angle. Square both side lengths, add the squares and take the positive square root. Lengths are positive, so the negative algebraic root is not a physical diagonal. Parentheses matter when typing an expression: the square root must cover the entire sum, not just the first squared length. A scientific calculator can check the expression directly.

Do not replace the square root of a sum with the sum of square roots. For positive sides, √(l² + w²) is smaller than l + w. The latter is an edge-following route and is longer than the straight diagonal. At the same time, the diagonal is longer than either side individually. These two bounds offer an independent check: max(l, w) < d < l + w for a nondegenerate rectangle.

Work a whole-number diagonal example

Suppose a rectangular display board measures 24 inches by 10 inches. Calculate 24² = 576 and 10² = 100, then add them to obtain d² = 676 in². The positive square root is 26 inches. In the Rectangle Calculator, select the two-sides mode and enter 24 and 10 with inches as the unit. Alongside diagonal 26 inches, the area should be 240 in² and the perimeter 68 inches.

Those three answers describe different properties of the same board. A cover needs its surface dimensions or area; edge trim relates to perimeter; a corner-to-corner brace relates to diagonal. The diagonal being 26 inches does not make the board 26 inches wide or tall. A single diagonal also does not determine the other dimensions unless an aspect ratio or another independent constraint is supplied. Keep the question's intended measurement attached to the number.

Allow a non-integer result when the geometry requires it

For a 2.4 m by 1.8 m rectangle, d = √(5.76 + 3.24) m = √9 m = 3 m. Other dimensions need not produce an exact decimal. A 5 m by 2 m rectangle gives d = √29 m, approximately 5.385164807 m. Rounding the answer to 5.39 m is reasonable for an exercise requesting two decimal places; rounding the side lengths before squaring can produce a different problem.

For a square of side s, the same relationship becomes d = s√2. A one-meter square therefore has diagonal about 1.414213562 meters, not 2 meters. Doubling both side lengths doubles the diagonal, while the area increases by four. This scaling check helps separate linear and square quantities. It also explains why comparing rectangular objects solely by their areas will not identify which one has the larger corner-to-corner dimension.

Rectangle sides and checked diagonal lengths
SidesSquared diagonalDiagonal
24 in and 10 in676 in²26 in
2.4 m and 1.8 m9 m²3 m
5 m and 2 m29 m²√29 ≈ 5.385164807 m

Both sides must use the same unit. The final square root returns a length.

Convert every side to one unit before squaring

Imagine a panel with sides 4 feet and 30 inches. Convert 4 feet to 48 inches, then calculate d = √(48² + 30²) inches = √3204 inches, approximately 56.60388679 inches. Alternatively, use 4 feet and 2.5 feet to obtain √22.25 feet, approximately 4.716990566 feet. Multiplying the latter by 12 reproduces the inch result. Using 4 and 30 as though they share a unit would be a different rectangle.

A compound length such as 5 feet 8 inches is 68 inches or 5 + 8/12 feet, not 5.8 feet. Preserve enough conversion precision through the diagonal calculation. The tool's unit selector labels unchanged input numbers rather than converting existing dimensions, so switching from inches to centimeters requires updating the numbers too. Label source measurements clearly when copying dimensions from a drawing that uses more than one unit system.

Use a known diagonal to recover one missing side

If the diagonal d and one side l are known, rearrange to w = √(d² − l²). A diagonal of 26 inches and a known side of 24 inches give w = √(676 − 576) = 10 inches. The Rectangle Calculator has a side-and-diagonal mode for that case. Enter the side and the full corner-to-corner diagonal, not half of the diagonal or a face dimension from a different object.

The diagonal must be strictly greater than the supplied side for a rectangle with positive width. Equality gives zero width and a degenerate shape; a smaller diagonal makes the required squared width negative. Near equality, measurement errors have a large relative effect on the recovered small side. If a ruler reports rounded values that violate the inequality, investigate the measurements rather than forcing a square root or assigning an arbitrary missing dimension.

Know what a face diagonal can and cannot establish

The formula in this guide concerns a flat rectangular face. The space diagonal through a rectangular box uses three perpendicular dimensions and is a different calculation. Similarly, checking whether a rigid board passes through a doorway depends on orientation, depth and clearance, not just a comparison of two face diagonals. Use the geometric result as one dimension in the relevant problem rather than treating it as a universal fit guarantee.

Two matching diagonal measurements can be a useful practical check, but equal diagonals alone do not prove an arbitrary quadrilateral is a rectangle. Other shapes can share that property. Construction checks require suitable constraints and tolerances on sides and angles. This educational calculation does not replace those checks. When describing a real frame, state which right-angle assumptions were independently established and what precision the measurements support.

Report and reverse-check the corner distance

A reproducible answer for the display board reads: sides 24 in and 10 in, d² = 576 + 100 = 676 in², therefore d = 26 in. Check that 26 exceeds 24 and 10 but is less than their sum of 34. Squaring 26 should recover 676, the original sum of squared sides. These comparisons catch unit mistakes and missing-root errors before a copied number enters another calculation.

Use the missing-side guide for the tool's other input combinations, such as area plus perimeter, where the available conditions require different algebra. Use the shape-area guide when only surface coverage matters. Keep the final diagonal in linear units with rounding appropriate to the inputs. A long decimal output records arithmetic precision; it does not establish that a physical object has been measured accurately to that many places.

Frequently asked questions

Is the diagonal length plus width?

No. Length plus width follows two edges. The straight diagonal is √(length² + width²).

Are both rectangle diagonals equal?

Yes, for a true rectangle. Equality alone does not prove that an arbitrary quadrilateral is a rectangle.

Can a rectangle side equal its diagonal?

Only in a degenerate zero-width limit. A rectangle with two positive sides has a diagonal longer than either side.

Does a 26-inch diagonal determine width?

Not by itself. You also need a side, aspect ratio or another sufficient independent condition.

Sources

References used to support definitions and interpretation in this guide.

  1. OpenStax — Geometric Formulas
  2. Wolfram MathWorld — Rectangle