The Pythagorean theorem states that the sum of the squares of the two shorter sides of a right triangle equals the square of the longest side or hypotenuse. It is used to calculate the length of the hypotenuse given the lengths of the other two sides. Two examples demonstrate using the Pythagorean theorem to find the length of unknown sides of right triangles.