CCalclabhub

Math · 75 calculators

Diagonal Of A Rectangle Calculator

The diagonal of a rectangle is the straight line between two opposite corners, and the Pythagorean theorem makes it easy to find from the two side lengths. This page shows how to square and add the sides, take the square root, and interpret the result alongside the perimeter, the area and the diagonal-to-length ratio. The worked examples start with the classic 6 by 8 rectangle whose diagonal is exactly 10.

Last updated

Diagonal

10

Perimeter
28
Area
48
Diagonal to length ratio
1.6667

Values update as you type. This calculator covers the single scenario its formula assumes — see Common Mistakes for what it leaves out.

The formula this calculator uses

d = √(l² + w²)

d
Diagonal — the distance between opposite corners
l
Length of the rectangle
w
Width of the rectangle
P
Perimeter, 2(l + w)

How to check the result by hand

  1. 1

    Write down the two side lengths

    Identify the length and the width and make sure both are in the same unit. With the default inputs the length is 6 and the width is 8. If one side is given in centimetres and the other in metres, convert first, because adding squares of mismatched units produces a meaningless diagonal.

  2. 2

    Square each side

    Multiply each side by itself. For the default rectangle the length squared is 36 and the width squared is 64. Squaring is what turns the two perpendicular legs into the terms of the Pythagorean theorem, so do this before adding anything together.

  3. 3

    Add the two squares

    Sum the squared sides to get the square of the diagonal. Here 36 + 64 = 100. This number is d², not the diagonal itself, so it is always larger than the diagonal for any rectangle with positive sides. Skipping the final square root is a frequent slip.

  4. 4

    Take the square root

    Find the positive square root of the sum to obtain the diagonal. For the default rectangle √100 = 10. For a square of side 9 the sum is 162 and the diagonal is 12.727922061357855. The diagonal is always longer than either side but shorter than the sum of the two sides.

  5. 5

    Find the related quantities and check

    Compute the perimeter as 2(l + w), the area as l × w and the diagonal-to-length ratio as d/l. For the default rectangle these are 28, 48 and 1.6666666666666667. Sanity-check that the diagonal exceeds the longer side and is less than l + w; otherwise the sides were added before being squared.

Common Questions

How does the Diagonal Of A Rectangle Calculator work?

Square the length and the width, add the squares, then take the square root to get the diagonal. The perimeter is twice the sum of the sides and the area is their product. Dividing the diagonal by the length shows how much longer the corner-to-corner path is than one of the edges.

What do I need to enter in the Diagonal Of A Rectangle Calculator?

It takes 2 inputs: Length (length), Width (length). Fields that expect a unit say so next to the label.

Where does Diagonal come from?

It comes from d = √(l² + w²) — the diagonal is the hypotenuse of a right-angled triangle whose legs are the two sides. Square each side, add the squares and take the positive square root.

What is the most common mistake with the Diagonal Of A Rectangle Calculator?

Adding the sides before squaring. Computing (l + w)² instead of l² + w² adds an extra 2lw term and makes the diagonal too large. For the default rectangle that error gives 14 rather than 10. Square each side separately first, then add the two results.

For worked examples, common mistakes and the limits of this formula, read the full How To Calculate The Diagonal Of A Rectangle page.