How it works
The Pythagorean theorem applies only to right triangles (one 90° angle). The two shorter sides (legs) are a and b; the longest side opposite the right angle is the hypotenuse c.
- Find c: c = √(a² + b²)
- Find a: a = √(c² − b²)
- Find b: b = √(c² − a²)
FAQ
What is a Pythagorean triple?
A set of three positive integers (a, b, c) that satisfy a² + b² = c² — for example (3, 4, 5), (5, 12, 13), (8, 15, 17).
Does it work for non-right triangles?
No. For oblique triangles use the law of cosines.