Diagonal of a Rectangle Calculator


Instructions: Please provide the length and width of the rectangle in the boxes below.

Enter the length of the rectangle

Enter the width of the rectangle

Open this calculator in the Dashboard →

More about Calculating the Diagonal of a Rectangle

This calculator finds the diagonal of a rectangle instantly when you enter its length and width. Essentially, it applies the Pythagorean theorem behind the scenes, so there is no need to work through the algebra by hand.

All you need to do is enter your length and width values above and click on 'Calculate' to get the exact diagonal length.

What Is the Diagonal of a Rectangle?

The diagonal of a rectangle is the line segment that connects two opposite corners, cutting across the interior of the shape. Every rectangle has two diagonals, and because of the shape's symmetry, both diagonals MUST have equal length.

Knowing the diagonal is useful for anything from checking that a frame or door is square to calculating the longest object that will fit inside a rectangular box, or even if you build a table.

Diagonal of a Rectangle Calculator

Diagonal Formula: The Pythagorean Connection

The diagonal of a rectangle with length \(l\) and width \(w\) is given by:

\[d = \sqrt{l^2 + w^2}\]

Why d² = l² + w² works

Drawing a diagonal splits the rectangle into two identical right triangles. In each triangle, the length and width of the rectangle act as the two legs, and the diagonal itself becomes the hypotenuse.

Since the Pythagorean theorem states that the square of the hypotenuse equals the sum of the squares of the legs, it follows directly that \(d^2 = l^2 + w^2\), and taking the square root gives the diagonal length.

How To Use This Calculator

Using the tool takes only a few seconds:

  • Step 1: Enter the length of the rectangle.
  • Step 2: Enter the width of the rectangle.
  • Step 3: Click Calculate to see the diagonal, computed using \(d = \sqrt{l^2 + w^2}\).

Does the Diagonal Change with a Square?

A square is a special case of a rectangle whose length and width are equal, so the same diagonal formula still applies without modification, only considering \(l = w\).

Special case when length equals width

When \(l = w\), the formula simplifies because both terms under the square root are identical:

\[d = \sqrt{l^2 + l^2} = \sqrt{2l^2} = l\sqrt{2}\]

So for a square, the diagonal is just the side length multiplied by \(\sqrt{2}\), roughly 1.414 times the side.

Related Rectangle Calculations

The diagonal is only one of several basic measurements tied to a rectangle's dimensions. To find how much surface a rectangle covers, use the Area of Rectangle calculator. To find the total distance around its edges, the Perimeter of a Rectangle calculator handles that calculation from the same length and width inputs.

log in to your account

Don't have a membership account?
REGISTER

reset password

Back to
log in

sign up

Back to
log in