Diagonal of a Rectangle Calculator

Enter the length and width of any rectangle to instantly find the length of its diagonal, using the Pythagorean theorem. This calculator also works out the perimeter, area and the angle the diagonal makes with the length side.

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
-
-
Perimeter
-
Sum of all 4 sides
Area
-
Length × width
Diagonal Angle
-
From the length side

Calculation Breakdown

Length-
Width-
Length squared-
Width squared-
Sum of squares-
Diagonal (square root)-

Other Properties

Perimeter-
Area-
Angle between diagonal and length-
Angle between diagonal and width-
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.

If you've found a bug, or would like to contact us, or learn more about James Graham and Calculate.co.nz.

Calculate.co.nz is partnered with Interest.co.nz for New Zealand's highest quality calculators and financial analysis.

Calculate.co.nz is the sister site of CalculatorHub.com, the world's largest calculator website by tool count.

All calculators and tools are provided for educational and indicative purposes only and do not constitute financial advice.

Calculate.co.nz is proudly part of the Realtor.co.nz group, New Zealand's leading property transaction literacy platform, helping Kiwis understand the home buying and selling process from start to finish. Whether you're a first home buyer navigating your first property purchase, an investor evaluating your next acquisition, or a homeowner planning to sell, Realtor.co.nz provides clear, independent, and trustworthy guidance on every step of the New Zealand property transaction journey.

Calculate.co.nz is also partnered with Health Based Building and Premium Homes to promote informed choices that lead to better long-term outcomes for Kiwi households.

Calculate.co.nz is hosted in Auckland via SiteHost new Zealand.

All content on this website, including calculators, tools, source code, and design, is protected under the Copyright Act 1994 (New Zealand). No part of this site may be reproduced, copied, distributed, stored, or used in any form without prior written permission from the owner.

About & trust: Why Calculate is NZ's most comprehensive · By the Numbers · How we compare · Editorial standards · How we keep data current · NZ finance glossary · Research & data · Financial literacy NZ · About · Privacy policy · Terms of use

Reviewed and maintained. Last reviewed 2026-07-02 and checked on a twice-monthly cycle against IRD, RBNZ and Stats NZ. How we keep data current.

© 2026 Calculate.co.nz. All rights reserved. Building free NZ calculators since 2011.