How to Use a Pythagorean Theorem Calculator (a, b, c)
To use a Pythagorean theorem calculator, pick which side you need — the hypotenuse c or a leg a or b — enter the two sides you already know, and read the missing side and the triangle's area instantly. The tool applies a² + b² = c², automatically choosing the right rearrangement so you never have to reshuffle the formula yourself. Here is the full walkthrough, plus what happens under the hood.
What the calculator does
The ByteTools Pythagorean Theorem Calculator solves any right triangle from two known sides. Give it two legs and it returns the hypotenuse; give it the hypotenuse and one leg and it returns the other leg. Alongside the missing side it computes the triangle's area and shows the exact formula it used, so the answer is checkable rather than a black box. Everything runs locally in your browser with JavaScript — nothing is uploaded or stored, and it works offline once loaded.
Step by step
- Choose what to solve for. Select c (the hypotenuse), or a or b (a leg). This tells the calculator which rearrangement to apply.
- Enter the two known sides. Type the lengths you have. Any consistent unit works — centimetres, inches, metres — as long as both entries use the same one.
- Read the result. The missing side and the triangle's area appear immediately, updating as you type.
- Check the worked formula. The tool shows the substitution it made, so you can confirm the logic and use it in homework or a report.
A worked example
Suppose you know the two legs of a right triangle are 3 and 4 and you want the hypotenuse. Choose to solve for c, enter 3 and 4, and the calculator squares both legs (9 and 16), adds them (25), and takes the square root to give c = 5 — the classic 3-4-5 triangle. It also reports the area as ½ × 3 × 4 = 6. Now flip it: if you know the hypotenuse is 5 and one leg is 3, solve for a leg and it computes √(5² − 3²) = √16 = 4.
| You know | Solve for | Formula used | Result |
|---|---|---|---|
| Legs 3 and 4 | c | √(3² + 4²) | 5 |
| Hypotenuse 5, leg 3 | a leg | √(5² − 3²) | 4 |
| Legs 5 and 12 | c | √(5² + 12²) | 13 |
| Hypotenuse 13, leg 5 | a leg | √(13² − 5²) | 12 |
Why it runs in your browser
All the arithmetic happens on your device, so your inputs never leave the page — useful whether you are solving a graded assignment or working measurements for a client. Because there is no server round-trip, results are instant, and the tool keeps working even with no connection. It also validates that the hypotenuse is the longest side, so an impossible triangle (a leg longer than the hypotenuse) is caught before it produces a wrong answer.
Try the Pythagorean Theorem Calculator — free and 100% in your browser.
FAQ
Can I enter decimals or only whole numbers?
Decimals are fine. Real measurements rarely land on clean integers, so enter values like 6.5 or 2.75 directly. The clean whole-number answers come only from Pythagorean triples such as 3-4-5; most inputs give a decimal hypotenuse.
Do both sides need to be in the same unit?
Yes. Mixing centimetres and inches produces a meaningless result. Convert everything to one unit first, then read the answer back in that same unit.
What if the calculator rejects my numbers?
If you are solving for a leg and enter a hypotenuse shorter than the known leg, no right triangle exists and the tool flags it. Double-check that the value you labelled as the hypotenuse really is the longest side.
Does it show the steps or just the answer?
It shows both — the final side and area, plus the exact formula with your numbers substituted in, so you can follow and reproduce the calculation by hand.
Related free tools
- Triangle Solver — solve any triangle, not just right ones
- Slope Calculator — find gradient between two points
- Area Calculator — areas for many shapes
- Scientific Calculator — roots, powers and more
Built by ByteVancer
ByteTools is a free product of ByteVancer, a software and web development studio building web apps, SaaS, and custom software. If you need a custom calculator, internal tool, or a full web app built for your business, explore what ByteVancer can build for you.
Recommended reading
Pythagorean Theorem: Tips and Common Mistakes
Avoid the classic Pythagorean theorem mistakes: mixing up the hypotenuse, unit errors, and misusing a² + b² = c² on non-right triangles. Pro tips inside.
Pythagorean Theorem Use Cases in Real Life
Real-world Pythagorean theorem examples: squaring a deck, sizing a TV, finding a ladder reach, and more where a² + b² = c² solves everyday problems.
XOR Cipher Use Cases: CTFs, Learning, and Puzzles
Real use cases for the XOR cipher, from CTF challenges and teaching bitwise logic to lightweight obfuscation, with concrete worked examples.
XOR Cipher Tips: Keys, Security, and Common Mistakes
Pro tips and common mistakes for the repeating-key XOR cipher: key length, reuse pitfalls, format choices, and when to switch to real encryption.