SumReflex Math tools
a²+b²

Geometry

Pythagorean Theorem Calculator

Solve a missing leg or hypotenuse in a confirmed right triangle with the Pythagorean theorem.

Preparing Pythagorean Theorem Calculator
Please wait ...
Input
Leave the unknown side blank, enter the other two side lengths, and the calculator will solve the missing value for the right triangle.
Input summary
Your calculator summary shows here.

Step-by-Step Calculation

a²+b²
Step-by-step work appears here
Calculate first and the full working will be placed here.

Right-triangle side notes

Using the Pythagorean theorem only when the triangle really has a right angle

The right angle is the entry ticket

The Pythagorean theorem works for right triangles. It connects the two legs and the hypotenuse through a^2 + b^2 = c^2. If the triangle does not have a 90 degree angle, this calculator is not the correct tool even if the shape looks close to a right triangle. The first check is therefore geometric, not arithmetic: identify the right angle and label the side across from it as the hypotenuse.

The hypotenuse is always the longest side of a right triangle. If a value entered for c is shorter than a leg, the setup should be inspected before calculating. When the problem is about all sides and acute angles, not only the missing side, the Right Triangle Calculator gives a fuller setup. For general triangle measurements without a guaranteed 90 degree angle, use the Triangle Calculator instead.

If the right angle is only implied by a drawing, do not assume it unless the problem marks it or says the sides are perpendicular. A nearly square-looking corner in a sketch may not be intended as an exact 90 degree angle.

Solving for a leg is different from solving for the hypotenuse

When both legs are known, the calculator adds the squares and then takes the square root to find the hypotenuse. When one leg and the hypotenuse are known, the missing leg comes from subtracting the known leg square from the hypotenuse square. That subtraction step is where many hand solutions go wrong. The hypotenuse square must be the larger square in a real right triangle.

A quick estimate helps. Legs of 3 and 4 should produce 5. A leg of 5 with hypotenuse 13 should produce 12. Recognizable triples are not required, but they are useful for checking whether the output is in the expected range. If the final step is only a square root, the Root Calculator can support that specific operation, but this page keeps the side relationship visible.

Units also need to match before the theorem is used. A leg in inches and a hypotenuse in feet should be converted first. Squaring mismatched units creates a result that looks mathematical but does not describe the real triangle.

Coordinate and measurement problems often hide the same relationship

The theorem appears in more than textbook triangle diagrams. The distance between two coordinate points uses horizontal and vertical changes as the legs of a right triangle. A ladder against a wall, a diagonal across a rectangle, a ramp, or a screen size can use the same relationship. The calculator result should be labeled with the unit from the original measurements, such as inches, feet, meters, or grid units.

If the task starts with two coordinate points, the Distance Calculator may be the direct route because it builds the horizontal and vertical changes first. If the task is a lesson on angles and sides in triangles, the angles in a triangle lesson can support the geometry language around the calculation.

When the final answer is rounded, keep the unrounded side length for any later calculation. Rounding a diagonal too early can slightly change area, slope, or follow-up measurement work.