Rectangle Diagonal Calculator

Rectangle Diagonal Calculator

#12 · Geometry AI Skill PRO

Enter Calculation

Formula

d=Length2+Width2d = \sqrt{\text{Length}^{2} + \text{Width}^{2}}

Example

d=102+202≈22.36d = \sqrt{10^{2} + 20^{2}} \approx 22.36
Usage stats

Advertisement

Results

Input Length 10
Input Width 20
Diagonal 22.36
Area 200
Perimeter 60
w = 20 l = 10 d = 22.36

Report an error on this page

What the Rectangle Diagonal Calculator Does

This calculator finds the straight-line distance across a rectangle—from one corner to the opposite corner—using just two measurements: the length and the width. Because a rectangle's diagonal splits it into two right triangles, the diagonal is simply the hypotenuse, which we can solve with the Pythagorean theorem. The tool works with any consistent unit (cm, inches, metres, feet), and as a bonus it also reports the rectangle's area and perimeter from the same two numbers.

How to Use It

  • Length: enter the longer (or any) side of the rectangle.
  • Width: enter the adjacent side.

Press calculate and you instantly get the diagonal, plus the area and perimeter. Keep both inputs in the same unit so the results make sense—if length is in inches, width must be in inches too.

The Formula Explained

The diagonal is computed as:

$$d = \sqrt{\text{Length}^{2} + \text{Width}^{2}}$$

Here l is the length and w is the width. Each side is squared, the squares are added, and the square root of that sum is the diagonal. The calculator also derives:

  • \(\text{Area} = l \times w\)
  • \(\text{Perimeter} = 2 \times (l + w)\)
Advertisement
Rectangle with length, width, and diagonal forming a right triangle
The diagonal splits the rectangle into two right triangles, with length and width as the legs.

Worked Example

Suppose you have a rectangle with a length of 8 and a width of 6.

  • Diagonal: $$\sqrt{8^{2} + 6^{2}} = \sqrt{64 + 36} = \sqrt{100} = \mathbf{10}$$
  • Area: \(8 \times 6 = \mathbf{48}\)
  • Perimeter: \(2 \times (8 + 6) = \mathbf{28}\)

This is the classic 6-8-10 right triangle, so the diagonal comes out to a clean 10 units. Most real-world rectangles produce a decimal diagonal, which the calculator handles automatically.

Right triangle showing Pythagorean theorem with squares on each side
The diagonal is the hypotenuse: d squared equals length squared plus width squared.

More Worked Examples

Each example uses the same formula, \(d = \sqrt{l^2 + w^2}\). Before you start, make sure the length and width are in the same unit. The diagonal comes out in that unit too.

Example 1: A 4 ft × 8 ft plywood sheet (decimal result)

In North America, plywood is usually sold in 4 ft × 8 ft sheets. To find the distance from corner to corner:

  1. Square each side: \(8^2 = 64\) and \(4^2 = 16\).
  2. Add the squares: \(64 + 16 = 80\).
  3. Take the square root: \(\sqrt{80} \approx 8.94427\) ft.
  4. Round: about 8.944 ft.
  5. Convert the decimal part to inches: \(0.94427 \times 12 \approx 11.33\) in. So the diagonal is about 8 ft 11.3 in.
$$d = \sqrt{8^2 + 4^2} = \sqrt{64 + 16} = \sqrt{80} \approx 8.944\ \text{ft}$$

Example 2: A metric room measuring 5.2 m × 3.8 m

  1. Square each side: \(5.2^2 = 27.04\) and \(3.8^2 = 14.44\) (both in m²).
  2. Add the squares: \(27.04 + 14.44 = 41.48\).
  3. Take the square root: \(\sqrt{41.48} \approx 6.4405\) m.
  4. Round: about 6.44 m, which is roughly 644 cm from one corner to the opposite corner.
$$d = \sqrt{5.2^2 + 3.8^2} = \sqrt{27.04 + 14.44} = \sqrt{41.48} \approx 6.44\ \text{m}$$

Example 3: Checking a 12 ft × 16 ft deck frame for square

A rectangular frame is square (all corners at 90°) only when its diagonals match the value from the Pythagorean theorem.

  1. Square each side: \(12^2 = 144\) and \(16^2 = 256\).
  2. Add the squares: \(144 + 256 = 400\).
  3. Take the square root: \(\sqrt{400} = 20\) ft exactly, so no rounding is needed.
  4. Check the frame: measure both diagonals. If each one reads 20 ft and the two are equal, the frame is square. If one is longer than the other, push the frame along the longer diagonal until both match.
$$d = \sqrt{12^2 + 16^2} = \sqrt{144 + 256} = \sqrt{400} = 20\ \text{ft}$$

This 12-16-20 frame is the 3-4-5 triangle scaled up by 4. That is why builders use 3-4-5 measurements as a quick way to check a corner is square.

Advertisement

Common Rectangle Sizes and Their Diagonals

Every diagonal below was calculated with \(d = \sqrt{l^2 + w^2}\). The diagonal is in the same unit as the sides. The Pythagorean triples come out as whole numbers, so they work well for setting out square corners at any scale, in feet, metres or anything else. Paper and sheet sizes are listed in the units their standards use.

Item Length Width Calculation Diagonal
3-4-5 triple 4 3 \(\sqrt{16 + 9} = \sqrt{25}\) 5
6-8-10 triple 8 6 \(\sqrt{64 + 36} = \sqrt{100}\) 10
5-12-13 triple 12 5 \(\sqrt{144 + 25} = \sqrt{169}\) 13
8-15-17 triple 15 8 \(\sqrt{225 + 64} = \sqrt{289}\) 17
9-12-15 triple 12 9 \(\sqrt{144 + 81} = \sqrt{225}\) 15
12-16-20 triple 16 12 \(\sqrt{256 + 144} = \sqrt{400}\) 20
Unit square 1 1 \(\sqrt{1 + 1} = \sqrt{2}\) ≈ 1.414
Plywood sheet (North American size) 8 ft 4 ft \(\sqrt{64 + 16} = \sqrt{80}\) ≈ 8.944 ft
US Letter paper (North American standard) 11 in 8.5 in \(\sqrt{121 + 72.25} = \sqrt{193.25}\) ≈ 13.90 in
A4 paper (ISO 216) 297 mm 210 mm \(\sqrt{88209 + 44100} = \sqrt{132309}\) ≈ 363.74 mm

Note: 6-8-10, 9-12-15 and 12-16-20 are all the 3-4-5 triangle scaled by 2, 3 and 4. Use the largest one that fits your layout. Over longer distances, small measuring errors have less effect on the angle.

Frequently Asked Questions

Does it matter which side I call length and which I call width?
No. Because both values are squared and added together, swapping them gives the identical diagonal, area, and perimeter.

What units does the calculator use?
It is unit-agnostic. Whatever unit you enter (inches, cm, feet, metres), the diagonal comes back in that same unit and the area in that unit squared.

Why is the diagonal useful in DIY and construction?
Checking the diagonal is the fastest way to confirm a frame, deck, or wall is truly square. If the measured corner-to-corner distance matches the calculated diagonal, your corners are exact right angles.

Last updated:

Most popular in Geometry

View all Geometry calculators