Diagonal of a Square Calculator

Work out the diagonal of a square from its side length, or the side length from a known diagonal. The diagonal formula is d = s times the square root of 2, based on Pythagoras's theorem. This calculator also shows the area and perimeter of your square.

Calculate.co.nz is proud to be partnered with realtor.co.nz, a trusted resource for navigating the New Zealand property market. Their Helpful Articles section offers clear, well-structured insights across buying, selling, and building, making complex real estate topics more accessible. With a focus on up-to-date guidance and practical knowledge, they empower Kiwis to move forward with clarity and confidence in a constantly evolving property landscape.
Calculate.co.nz partner: realtor.co.nz
Method note  Standard geometric formula d = s√2, derived from Pythagoras's theorem. Same result every time for a given input.

1. Choose What You Know

units

Units can be mm, cm, m or any length unit. Results use the same unit as your input.

2. Formula Used

Diagonal from sided = s × √2
Side from diagonals = d ÷ √2
AreaA = s²
PerimeterP = 4s
√2 (constant used)1.414214

Your Square's Dimensions

Side Length
-
Length of each side
Diagonal
-
Corner to corner
Area
-
Square units
Perimeter
-
Total edge length

Working

Input value-
Calculation-
Result-

Diagonal to Side Ratio

Diagonal ÷ side1.414214
Percent longer than side41.42%
Two diagonals cross at90 degrees, bisecting each other
Each half-diagonal triangle45-45-90 right triangle

How to Calculate the Diagonal of a Square

A square's diagonal is the straight line connecting two opposite corners. Because all four angles in a square are right angles, drawing a diagonal splits the square into two identical right-angled triangles. Each triangle has the two sides of the square as its legs and the diagonal as its hypotenuse. Applying Pythagoras's theorem (a squared plus b squared equals c squared) with both legs equal to the side length s gives d squared = s squared + s squared = 2s squared, so d = s times the square root of 2.

Worked Example

Take a square with a side length of 5 units. The diagonal is 5 × 1.414214 = 7.071068, which rounds to 7.07 units. The area is 5² = 25 square units, and the perimeter is 4 × 5 = 20 units.

Working Backwards from the Diagonal

If you already know the diagonal and need the side length, divide by the square root of 2 (or multiply by 0.707107). For example, a square with a diagonal of 10 units has a side length of 10 ÷ 1.414214 = 7.071068 units, which rounds to 7.07 units.

Side LengthDiagonalAreaPerimeter
11.4114
57.072520
1014.1410040
100141.4210,000400

Where This Comes Up

Finding a square's diagonal is common in building and trades work, such as checking that a foundation, deck, or room frame is square by comparing the two diagonal measurements (they should be equal). It also comes up in packaging (fitting a square item into a round tube), screen and display sizing, and general geometry problems in maths and stats.

Related Calculators

Sources: Standard Euclidean geometry and Pythagoras's theorem, as taught in the NZ maths curriculum (nzmaths.co.nz). The diagonal to side ratio (√2 ≈ 1.41421) is a fixed mathematical constant.

This calculator gives exact results for a perfect square based on the values you enter. Rounding is applied for display only; the underlying calculation uses full 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.