Step by step
Solve 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.
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.