Math & Statistics

Pythagorean Theorem Calculator

Solve either the hypotenuse or one missing leg of a right triangle with explicit side units.

Private, in-browser calculationUpdated

Let’s work it out

Enter your numbers. We’ll show the working.

Choose the convention for your inputs.
Use the same selected unit for every length. Area inputs use its square.

How to use this calculator

  1. Enter first known leg and the remaining values.
  2. Check the selected units and the counting or calculation convention described below.
  3. Select Calculate to review the result and breakdown. Reset restores the example.

The formula

Hypotenuse = sqrt(a²+b²); missing leg = sqrt(hypotenuse²−known leg²)

In missing-leg mode the second side must be the hypotenuse and strictly exceed the first. The calculation uses a difference-of-squares product to reduce subtraction error near equal sides.

PUTTING IT INTO PRACTICE

A worked example

Legs 3 m and 4 m give hypotenuse 5 m. A known leg 3 m and hypotenuse 5 m give missing leg 4 m.

How to interpret your result

The right-angle assumption is essential; this identity does not solve an arbitrary non-right triangle.

Assumptions and limitations

Use the units, timing, and bounds stated beside the inputs. Example values are hypothetical; replace them with your own.

Positive sides in one selected unit; no construction tolerances or structural design.