Pythagoras's theorem states that in any right-angled triangle, the square of the hypotenuse equals the sum of the squares of the other two sides: a squared plus b squared equals c squared, where c is the hypotenuse. This relationship lets you find any one side when you know the other two, and this calculator handles all three versions of the problem. If you know both legs a and b, it calculates the hypotenuse c = the square root of (a squared plus b squared). If you know the hypotenuse c and one leg a, it finds the missing leg b = the square root of (c squared minus a squared). The same works if you know c and b and want a. To use the calculator, enter two known side lengths and leave the third field blank. The calculator automatically detects which two you have provided, solves for the missing one, and also returns the triangle's perimeter, its area (half the base times height for a right triangle), and the two non-right angles in degrees. The default example uses a=3 and b=4, which gives the hypotenuse c=5, one of the most famous results in all of mathematics, the 3-4-5 Pythagorean triple. This tool is useful for students at every level, builders checking whether a corner is truly square (a 3-4-5 check), surveyors calculating distances, and anyone who needs the third side of a right triangle. Results are for reference only.
The calculator reads all three fields. If a and b are given and c is blank, it computes c = √(a² + b²). If c and a are given, b = √(c² − a²). If c and b are given, a = √(c² − b²). If all three are provided, it checks whether they satisfy a² + b² = c² and reports the result. Area = ½ × a × b. Angle A = arcsin(a/c), Angle B = arcsin(b/c), both in degrees.
With leg a=3 and leg b=4 (the default values), the hypotenuse c = √(9 + 16) = √25 = 5.00. Perimeter = 3 + 4 + 5 = 12.00. Area = ½ × 3 × 4 = 6.00 square units. Angle A = arcsin(3/5) = 36.87°, Angle B = arcsin(4/5) = 53.13°. This is the 3-4-5 right triangle.
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.