Free Online Pythagorean Theorem Calculator With Steps
Give any two sides of a right angled triangle and get the third, together with both acute angles, the area, the perimeter and the height to the hypotenuse. The subtraction is arranged so that two nearly equal sides keep their accuracy, and a hypotenuse shorter than a leg is explained rather than returning not a number.
The sum runs in your browser. Nothing you type is sent anywhere.
📏 The sides you have
In a right angled triangle the two short sides are the legs and the long one opposite the right angle is the hypotenuse. Any two of the three are enough.
Each step with your own numbers in it, in the order you would write it out.
| Step | With your numbers |
|---|
| When | Calculation | Actions |
|---|
Number formatting
Rounding only changes what you see. The sum itself always runs at full precision, so a rounded number never feeds into the next step.
Display
Full screen hides the page around the tool. Press Escape, or the button in the bar, to come back.
History
Your data
Settings, history and saved setups live in this browser and nowhere else. There is no account and no server, which also means clearing them here is final.
Enjoying WizTools123? Help keep our server infrastructure 100% free and open for everyone.
How to Use the Pythagorean Theorem
Three steps, and the third is the one that teaches.
What to Know About Right Angled Triangles
Which side is which, and where the arithmetic goes wrong.
Key Features & Capabilities
What it does, and what it deliberately does not.
About the Pythagorean Theorem
The Pythagorean theorem says that in a right angled triangle the square on the hypotenuse equals the sum of the squares on the other two sides. It is the oldest piece of mathematics most people can still state from memory, and it is the basis of every distance calculation there is: the straight line distance between two points on a grid is a Pythagorean calculation, and so is the length of a diagonal, the reach of a ladder and the shortest path across a rectangle.
Using it forwards is easy. Square the two legs, add them, take the square root, and you have the hypotenuse. Using it backwards, to find a leg from the hypotenuse and the other leg, is where the arithmetic gets delicate. The formula asks for c squared minus a squared, and when c and a are close to each other those two numbers agree in most of their digits. Subtracting them cancels all the agreeing digits and leaves only the few that differed, so the answer is computed from far less information than it looks.
The repair is old and simple: c squared minus a squared is the same as c minus a, times c plus a. Both factors are computed exactly, and nothing cancels. With a hypotenuse of a million and a leg of 999999 the two arrangements give visibly different answers, and the factored one is right. It costs nothing, so it is what the page uses.
The other case worth handling properly is the impossible triangle. If someone types a hypotenuse that is shorter than a leg there is no such shape, and the formula asks for the square root of a negative number. Returning not a number is technically honest and practically useless. Naming the side that is too long, and by how much, points straight at the typing mistake, which is almost always what has happened.
Frequently Asked Questions
Legs, hypotenuse, triples and what counts as impossible.
Every Other Math Tool
35 more tools in this set. All free, all in your browser.