Home · Math · Plane Geometry · Diagonal of a Rectangle Calculator

Diagonal of a Rectangle Calculator

Diagonal of a rectangle from length and width by Pythagoras, with the angle the diagonal makes and the rectangle's area.

Your figures

Example result — edit the figures to make it yours

7.21

Diagonal

Angle to length side33.69 deg
Area24.00

6 4 Rectangle · 6 × 4
The shape for your figures, drawn and labelled from the same values the result is computed from — change a figure and the drawing follows.

What this calculator does

Diagonal of a rectangle from length and width by Pythagoras, with the angle the diagonal makes and the rectangle's area. Every figure on this page is computed from the formula or definition stated below, with no hidden rounding steps, and the method notes name the exact convention where more than one exists.

The formula and method

d = sqrt(L^2 + W^2)

The diagonal splits a rectangle into two right triangles, so d = sqrt(L^2 + W^2). Its angle to the length side is atan(W/L). All angles are in degrees; trigonometric outputs use the degree-based functions so no radian conversion is needed.

A quick field check for squareness: both diagonals of a true rectangle are equal, so measure both and compare.

Worked example

With the example inputs this page opens with (length 6, width 4), the result is 7.21 — diagonal. Change any figure and the result updates with the same formula.

Quick reference

Quick reference — varying length
LengthDiagonal
35.00
4.86.25
67.21
7.58.50
99.85
1212.65

Computed with the same formulas as the calculator above — enter any values there for figures beyond this table.

Common questions

How does the Diagonal of a Rectangle Calculator work?

Diagonal of a rectangle from length and width by Pythagoras, with the angle the diagonal makes and the rectangle's area. Length - Width -> Diagonal. The result updates as you type, and the formula and method on this page state the exact definitions used, so you can reproduce the calculation by hand.

What inputs does the Diagonal of a Rectangle Calculator need?

Length - Width -> Diagonal. Invalid entries — such as a zero denominator, an out-of-range value or a malformed list — produce a plain-language message instead of a misleading number.

Is the Diagonal of a Rectangle Calculator free to use?

Yes. It runs entirely in your browser with no sign-up, and the same calculator is available as an embeddable widget via the Embed button, so it can be placed on another site with its calculation intact.