Diagonal of a Rectangle Calculator

This calculator works out the diagonal length of any rectangle using the Pythagorean theorem, along with perimeter, area and the angle the diagonal makes with each side. It suits any time you need the straight-line distance between two opposite corners of a rectangular space or object, whether that is checking a deck or garden bed is truly square, sizing a screen or box, or working through a geometry problem. You enter the length and width of the rectangle and choose a unit from millimetres, centimetres, metres, inches or feet, and the calculator instantly returns the diagonal length, perimeter and area in that unit, plus the angle the diagonal forms with the length side. A breakdown shows every step: the length and width squared, the sum of those squares, and the square root that gives the diagonal, alongside the angle between the diagonal and each side and confirmation that both diagonals of a rectangle are always equal. The default 8 m by 6 m example demonstrates the classic 3-4-5 triangle, giving a clean 10 m diagonal. Because a rectangle's diagonals must match for its corners to be true right angles, this tool doubles as a way to check whether something you are building is properly square: measure both diagonals and see if they agree. Results are rounded for display, so use more decimal places for construction or engineering precision.

Calculate.co.nz is proud to be partnered with Premium Homes, a recognised leader in eco-friendly, sustainable, and energy-efficient homebuilding. With a dedicated team and award-winning experience, they create homes that prioritise health, comfort, and long-term performance. Their founders, Andrew and Kelly, set out to raise the standard of residential construction in New Zealand by combining practical building expertise with a clear commitment to doing things better for homeowners.
Calculate.co.nz partner: Premium Homes
Method verified  Standard Pythagorean theorem geometry, applicable to any unit of length.

1. Rectangle Dimensions

2. About the Diagonal

A rectangle's diagonal is the straight line connecting two opposite corners. It splits the rectangle into two identical right-angled triangles, so its length is found with:

d = √(length² + width²)

Rectangle Results

Diagonal Length
10.00
m
Perimeter
28.00 m
Sum of all 4 sides
Area
48.00 m2
Length × width
Diagonal Angle
36.9°
From the length side

Calculation Breakdown

Length8.00 m
Width6.00 m
Length squared64.00 m2
Width squared36.00 m2
Sum of squares100.00 m2
Diagonal (square root)10.00 m

Other Properties

Perimeter28.00 m
Area48.00 m2
Angle between diagonal and length36.9°
Angle between diagonal and width53.1°
Both diagonals equal?Yes, always
Result: Enter a length and width above.

How to Find the Diagonal of a Rectangle

A rectangle has two diagonals, each connecting a pair of opposite corners. Because a rectangle has four right angles, drawing a diagonal splits it into two right-angled triangles. The diagonal itself becomes the hypotenuse of each triangle, while the length and width form the two shorter sides. This means the Pythagorean theorem applies directly: the diagonal squared equals the length squared plus the width squared.

The Formula

The diagonal (d) of a rectangle with length (l) and width (w) is:

d = √(l² + w²)

For example, a rectangle with a length of 8 m and a width of 6 m has a diagonal of √(8² + 6²) = √(64 + 36) = √100 = 10 m. This is a well-known "3-4-5 triangle" scaled up, which is why it gives a whole number result.

Working Example

StepCalculationResult
Square the length64
Square the width36
Add the squares64 + 36100
Take the square root√10010 m

Finding a Missing Side from the Diagonal

If you already know the diagonal and one side, you can rearrange the formula to find the missing side: missing side = √(d² minus known side²). This is useful when measuring a space where the diagonal is easier to check than a single side, such as confirming a door frame, deck, or garden bed is square (a true rectangle has equal diagonals, so if both diagonals match, the corners are 90 degrees).

Where This Is Used

Related Calculators

Sources: Pythagorean theorem, standard Euclidean geometry (rectangle diagonal = hypotenuse of two congruent right-angled triangles formed by the length and width).

This calculator applies standard geometry and works with any consistent unit of measurement. Results are rounded for display; use more decimal places for engineering or construction precision.