Let A and B be the length of the legs of a right triangle, and C be the hypotenuse.
Then, from the Pythagorean Theorem:
If the missing side is the hypotenuse C, then we can isolate it as:
If the missing side is one leg, we can substract the length of the other leg from both sides and take the square root, so: