Draw a right triangle with legs 3 and 4 on grid paper and build a square on each side. The square on the 3 side holds 9 small squares and the square on the 4 side holds 16. The square on the slanted side, the hypotenuse, holds 25, exactly 9+16. That is the theorem in a picture: the two smaller squares together have the same area as the big one, so 32+42=52 and the hypotenuse is 5.
To use it, find the right angle first. The side across from it is c, the hypotenuse, and it is always the longest side. The two sides that form the right angle, the legs, are a and b, in either order. To find c, add the squares of the legs and take the square root. To find a leg, subtract: b2=c2−a2. Either way, finish with a square root, because the equation gives the area of a square, not its side.
The theorem belongs only to right triangles. A triangle with sides 4, 5 and 6 has 42+52=41 but 62=36, so it has no right angle and the equation is false for it. The mismatch even tells you the shape: when a2+b2 is bigger than c2, the largest angle is less than 90∘, and when it is smaller, the largest angle is more than 90∘.
Think of it like this. Imagine the squares on the sides of a right triangle as square trays of sand. Pour the sand from the two smaller trays into the biggest tray and it fills it exactly. If the corner is narrower than a right angle the big tray overflows, and if it is wider the sand falls short.
Core idea. The theorem connects the side lengths of right triangles only.