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.
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²)
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 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.
| Step | Calculation | Result |
|---|---|---|
| Square the length | 8² | 64 |
| Square the width | 6² | 36 |
| Add the squares | 64 + 36 | 100 |
| Take the square root | √100 | 10 m |
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).
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.