The Pythagorean Theorem Formula – All Forms and Derivation
The Pythagorean theorem can be written as a single equation, but from it several practical forms follow, each handy in different situations. In this article we'll go through all of them.
a, b – the legs (the sides adjacent to the right angle)
c – the hypotenuse (the side opposite the right angle)
Then the following holds:
a2+b2=c2
In words: the sum of the squares of the legs equals the square of the hypotenuse.
Formula for the hypotenuse
If you know both legs and are looking for the hypotenuse, you solve for c by taking the square root of both sides:
c=a2+b2
📌 Remember: When computing the hypotenuse, a2 and b2 are always added.
Example:a=6, b=8
c=62+82=36+64=100=10
Formula for a leg
If you know the hypotenuse and one of the legs, you compute the other by subtracting:
a=c2−b2
b=c2−a2
📌 Remember: When computing a leg, you always subtract the square of the known leg from c2.
Example:c=17, b=8
a=172−82=289−64=225=15
⚠️ The expression under the square root must be positive. If you get a negative number, you've mixed something up – most likely the hypotenuse and a leg.
Why squared
The square in the formula is no accident – it comes from the area of a square. Originally, the Pythagorean theorem was proved geometrically: on each side of a right triangle you build a square, and the area of the square on the hypotenuse is exactly equal to the sum of the areas of the two squares on the legs.
area of small squarea2+area of small squareb2=area of large squarec2