Pythagorean Theorem Calculator

This calculator finds the missing side of a right angled triangle using the Pythagorean theorem, the rule that the square of the hypotenuse equals the sum of the squares of the other two sides, written as a² + b² = c². Enter any two of the three sides, side a, side b or the hypotenuse c, and leave the one you do not know blank. The calculator instantly returns the missing length, labelled as the hypotenuse, side a or side b depending on which field you left empty. Because the hypotenuse is always the longest side of a right triangle, sitting opposite the right angle, the tool flags an error if you try to solve a short side using a hypotenuse smaller than the side already entered, since that triangle cannot exist. You must fill in exactly two fields; leaving all three blank, or all three filled, will not produce a result. Results are shown to several decimal places, so the figure stays precise whether you are working in millimetres for joinery or metres for a building layout. It is useful for checking a corner is truly square, sizing a diagonal brace or ladder, working out a rafter or roof length, or any schoolwork or DIY job where you know two measurements and need the third.

Calculate.co.nz is proud to be partnered with Health Based Building, a leader in sustainable and health-conscious building innovation. With over a century of experience, they develop high-performance systems like Foreverbreathe Specification, Magnum Board, and Foreverbreathe Paints to support energy-efficient, non-toxic living environments. Their commitment to healthier homes aligns with our belief that informed choices lead to better outcomes for Kiwi households.
Calculate.co.nz partner: Health Based Building
c = 5
missing side

Fill in two sides and leave the third blank. The hypotenuse must be the largest value.

How it works

The theorem says a² + b² = c² for a right triangle. To find the hypotenuse, add the squares of the two short sides and take the square root. To find a short side, subtract the known short side squared from the hypotenuse squared and take the square root.

Worked example

With sides a equals 3 and b equals 4, the hypotenuse is the square root of 9 plus 16, which is the square root of 25, so c equals 5. This is the well known 3, 4, 5 triangle.

Related calculators

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 by 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-31 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.