Black Friday · 30% Off Claim 30% Off

Diagonal Calculator

Find the exact corner-to-corner diagonal of any rectangle or square in seconds. Built on the Pythagorean theorem for squaring foundations, decks, walls, and slabs in metric or imperial.

375,000+

downloads

4.6

2,788 ratings · App Store

3.9

217 ratings · Google Play

App screenshot App screenshot

To find the diagonal of a rectangle or square, apply the Pythagorean theorem to its two adjacent sides:

Diagonal (d) = √(Length² + Width²)

On a construction site, the diagonal is the fastest and most accurate way to prove that four walls, a concrete slab formwork frame, or a deck subframe sit at true 90° right angles. Even if opposite walls measure the exact same length, the frame can still be racked into a parallelogram. Only when both corner-to-corner diagonals match the calculated hypotenuse is the layout genuinely square.

Within the Chippy Tools app (under the Check Square tool), you can enter your length and width in millimetres, centimetres, metres, feet, inches, or fractions of an inch and read the exact diagonal without converting fractions to decimals by hand.

Quick Reference Table: Common Rectangle & Square Diagonals

Use this lookup table to check common deck, shed, slab, and room dimensions in both imperial (feet and fractional inches to the nearest 1/16") and metric (metres and millimetres):

Rectangle / Square SizeImperial Diagonal (Decimal ft)Imperial Tape Mark (ft & in)Metric Size (l × w)Metric Diagonal (m / mm)
3 × 4 (3-4-5 Triple)5.000 ft5’ 0"3.0 m × 4.0 m5.000 m (5,000 mm)
6 × 8 (6-8-10 Triple)10.000 ft10’ 0"1.8 m × 2.4 m3.000 m (3,000 mm)
8 × 8 (Square)11.314 ft11’ 3-3/4"2.4 m × 2.4 m3.394 m (3,394 mm)
8 × 1012.806 ft12’ 9-11/16"2.4 m × 3.0 m3.842 m (3,842 mm)
8 × 1214.422 ft14’ 5-1/16"2.4 m × 3.6 m4.327 m (4,327 mm)
10 × 10 (Square)14.142 ft14’ 1-11/16"3.0 m × 3.0 m4.243 m (4,243 mm)
10 × 1215.620 ft15’ 7-7/16"3.0 m × 3.6 m4.686 m (4,686 mm)
10 × 1618.868 ft18’ 10-7/16"3.0 m × 4.8 m5.660 m (5,660 mm)
12 × 12 (Square)16.971 ft16’ 11-5/8"3.6 m × 3.6 m5.091 m (5,091 mm)
12 × 16 (3-4-5 × 4)20.000 ft20’ 0"3.6 m × 4.8 m6.000 m (6,000 mm)
12 × 2023.324 ft23’ 3-7/8"3.6 m × 6.0 m6.997 m (6,997 mm)
12 × 2426.833 ft26’ 10"3.6 m × 7.2 m8.050 m (8,050 mm)
16 × 16 (Square)22.627 ft22’ 7-1/2"4.8 m × 4.8 m6.788 m (6,788 mm)
16 × 2025.612 ft25’ 7-3/8"4.8 m × 6.0 m7.684 m (7,684 mm)
16 × 2428.844 ft28’ 10-1/8"4.8 m × 7.2 m8.653 m (8,653 mm)
20 × 20 (Square)28.284 ft28’ 3-7/16"6.0 m × 6.0 m8.485 m (8,485 mm)
20 × 2431.241 ft31’ 2-7/8"6.0 m × 7.2 m9.372 m (9,372 mm)
24 × 24 (Square)33.941 ft33’ 11-5/16"7.2 m × 7.2 m10.182 m (10,182 mm)
30 × 40 (3-4-5 × 10)50.000 ft50’ 0"9.0 m × 12.0 m15.000 m (15,000 mm)

How to Calculate a Diagonal Step by Step

1234

1. Diagonal of a Rectangle (Length ≠ Width)

A rectangle split from corner to corner forms two identical right-angled triangles where the length (l) and width (w) are the two perpendicular legs and the diagonal (d) is the hypotenuse:

d = √(l² + w²)

  • Metric worked example (4,500 mm × 3,200 mm deck):
    1. Square both sides: 4,500² = 20,250,000 and 3,200² = 10,240,000
    2. Add them: 20,250,000 + 10,240,000 = 30,490,000
    3. Take the square root: √30,490,000 = 5,521.8 mm (5.522 m)
  • Imperial worked example (14 ft 6 in × 10 ft 4 in room):
    1. Convert to inches (or feet): 14' 6" = 174 in; 10' 4" = 124 in
    2. Square and add: 174² + 124² = 30,276 + 15,376 = 45,652
    3. Take the square root: √45,652 = 213.663 in = 17’ 9-11/16"

(With the Chippy Tools app, you don’t need to convert 14’ 6" to 174 in—just type 14' 6" and 10' 4" directly using the dedicated imperial unit keys.)

2. Diagonal of a Square (All Sides Equal)

When all four sides have the same length (s):

d = √(s² + s²) = s × √2 ≈ s × 1.41421

  • 3,000 mm × 3,000 mm pergola: 3,000 × 1.41421 = 4,242.6 mm
  • 30 × 30 square: 30 × 1.41421 = 42.43 units

Stop Converting Feet & Inches to Decimals

Download Chippy Tools on iOS or Android to calculate exact rectangle and square diagonals in millimetres, metres, or fractional inches—100% offline.

How to Fix an Out-of-Square Frame on Site

Once you have your target diagonal from the calculator, pull your tape across both corners (Corner A to C and Corner B to D):

  1. Both diagonals equal the calculated target: Your corners are 90° and your side lengths match the plan. Nail off your bracing or pour the slab.
  2. Diagonal 1 is longer than Diagonal 2: Your frame is racked into a diamond (parallelogram). The two corners on the longer diagonal are acute (<90°), and the two corners on the shorter diagonal are obtuse (>90°).
  3. How much to shift the corner: Rack the frame inward along the long diagonal by half the difference between the two diagonals. For example, if Diagonal A measures 5,020 mm and Diagonal B measures 4,980 mm (a 40 mm difference, target 5,000 mm), tap the long corner over until Diagonal A shortens by 20 mm to 5,000 mm—Diagonal B will simultaneously lengthen by 20 mm to 5,000 mm.

Try the Diagonal Calculator: Find Rectangle & Square Diagonals

Download Chippy Tools and start calculating in seconds. Works offline, supports metric and imperial.

Frequently Asked Questions

Need help? Contact us

What is the formula for the diagonal of a rectangle?
To find the diagonal (d) of a rectangle with length (l) and width (w), use the Pythagorean theorem: d = √(l² + w²). Square the length, square the width, add the two numbers together, and take the square root. For example, a 4 m × 3 m rectangle has a diagonal of √(16 + 9) = √25 = 5 m.
What is the formula for the diagonal of a square?
Because all four sides (s) of a square are equal, the formula simplifies to d = s × √2 (or approximately side × 1.4142). For example, a 10 ft × 10 ft square pad has a diagonal of 10 × 1.4142 = 14.142 ft (14' 1-11/16").
How do I use diagonal measurements to square a deck or foundation?
Measure the length and width of your frame, calculate the target diagonal (d = √(l² + w²)), and pull a tape measure across both corner-to-corner diagonals. When both measured diagonals are equal and match the calculated diagonal, all four corners are true 90° right angles.
What is the diagonal of a 12x16 deck or shed?
The diagonal of a 12 × 16 rectangle is exactly 20 (whether in feet or metres), because 12-16-20 is a 4× multiple of the classic 3-4-5 right triangle (√(12² + 16²) = √(144 + 256) = √400 = 20).
Where is the Diagonal Calculator inside the Chippy Tools app?
Inside the Chippy Tools app, the diagonal calculator is named Check Square. Enter your two side lengths in millimetres, metres, feet, or fractional inches, and it immediately returns the exact diagonal measurement.