In a right triangle with c as the longest side, the theorem asserts that a2 + b2 = c2. You may use this equation to calculate the length if you know the lengths of the other two sides. The illustration depicts two right triangles with one side lacking their measure.