Drag the round handles to change legs a and b — or type values above. The squares show a² + b² = c².
Step by step
This Pythagorean theorem calculator solves any right triangle: enter two sides — either both legs or a leg and the hypotenuse — and leave the third blank to find it, with every a² + b² = c² step shown.
Drag the round handles to change legs a and b — or type values above. The squares show a² + b² = c².
Step by step
Enter any two sides — leave the one you want to find blank — to see the missing side and the working.
Fill in any two of the three fields — leg a, leg b, or hypotenuse c — and leave the field you want to solve for blank.
If the hypotenuse is blank, it computes c = √(a² + b²). If a leg is blank, it rearranges the formula to solve for that leg, for example a = √(c² - b²).
The missing side appears at the top, and each squaring, adding/subtracting, and square-root step is listed below it. Need the midpoint of a line segment instead? The Midpoint Calculator handles coordinate geometry.
The right-triangle relationship appears throughout geometry. The Distance Formula Calculator is the theorem applied to coordinates, the Law of Cosines Calculator generalises it to any triangle, the Area of a Triangle Calculator completes the triangle, and the Square Root Calculator handles the final step by hand.