Skip to main content
Calcimator

Pythagorean Theorem Calculator

Find the missing side of a right triangle using the Pythagorean theorem. Calculate area, perimeter, and angles.

This calculator solves the two classic Pythagorean theorem problems from a single pair of inputs, switching formulas entirely based on which mode you select. In hypotenuse mode, Side A and Side B are treated as the two legs of a right triangle, and the calculator finds the hypotenuse via the square root of the sum of their squares. In missing-side mode, the roles change completely: Side A becomes the hypotenuse itself and Side B becomes one known leg, and the calculator solves algebraically for the other leg instead. Of the two number fields, Side B has noticeably more pull over the reported hypotenuse than Side A does at the calculator's default values — nudging Side B by ten percent moves the hypotenuse by roughly 1.8 times the proportional amount that the same ten percent nudge to Side A does, because Side B (4) makes up a larger share of the resulting hypotenuse (5) than Side A (3) does, and a leg's influence on the hypotenuse scales with how large a fraction of the hypotenuse it already represents. Both legs push the result in the same direction: growing either one always grows the hypotenuse, never shrinks it. The two angle readouts also switch which inverse trig function computes them depending on mode — arctangent of a ratio of the two legs in hypotenuse mode, arcsine of a ratio against the hypotenuse in missing-side mode — rather than using one formula throughout. A gap worth flagging: in missing-side mode, if the leg you enter for Side B is actually longer than the hypotenuse you entered for Side A, the calculator does not flag the geometric impossibility — it clamps the negative quantity under the square root to zero and reports a missing side of exactly 0 instead of an error.

Inputs

Results

Result

5

Hypotenuse5
Triangle Area6
Perimeter12
Angle A36.87°
Angle B53.13°

The Pythagorean theorem

  1. 1.Square both legs and add them
    32+42=25

    The theorem is a statement about areas, not lengths: the square built on the hypotenuse has exactly the combined area of the squares built on the two legs.

  2. 2.Take the square root to get back to a length
    c=25=5

    The previous step is an area. The square root converts it back into the distance you actually wanted.

Euclid's proof arranges the three squares around the triangle and shows the two smaller ones can be cut and rearranged to fill the largest. Babylonian tablet Plimpton 322 lists Pythagorean triples roughly a thousand years earlier, so the relationship was in use long before it was proved.
Euclid, Elements, Book I, Proposition 47·c. 300 BCE
How to Use This Calculator
  1. Choose the mode: find the hypotenuse (c) from legs a and b, or find a missing leg from the hypotenuse and one leg.
  2. The Pythagorean theorem states: a² + b² = c², where c is always the hypotenuse (the longest side, opposite the right angle).
  3. Enter the two known sides; the third is derived by solving the equation algebraically.
  4. The calculator also reports the triangle's area (½ × a × b) and perimeter (a + b + c).
  5. Angles A and B (opposite sides a and b) are found using inverse trig: angle A = arctan(a/b).
  6. All side lengths must be positive; the hypotenuse must be longer than either leg.

How the result changes with Side B

Side BResult
1,0001,000
3,5003,500
6,5006,500
9,0009,000

What each input means

Solve For
Calculation mode to use.
Side A
When finding missing side, this is the hypotenuse.
Side B
Length of side B.

How this is calculated

Worked example, using the default values

  1. Identify Input Parameters
    Solve For = 1, Side A = 3, Side B = 4 = 3 input(s) provided
  2. Calculate Result
    Result = missingSide
    5 = 5
  3. Calculate Hypotenuse
    Hypotenuse
    5 = 5
  4. Calculate Triangle Area
    Triangle Area
    6 = 6

Engine last updated .

Frequently Asked Questions

Why does Side B affect the hypotenuse more than Side A does?

At the calculator's default values of 3 and 4, Side B makes up four-fifths of the resulting hypotenuse of 5, while Side A makes up only three-fifths. A leg's pull on the hypotenuse scales with how large a share of the hypotenuse it represents, so the leg that is proportionally closer in length to the hypotenuse — here, Side B — swings the result by more for the same percentage nudge.

What changes about the calculation when I switch to missing-side mode?

The two fields swap roles entirely. Side A stops being a leg and becomes the hypotenuse itself, and Side B becomes one known leg; the calculator then solves algebraically for the length of the other, unknown leg instead of computing a hypotenuse. The formulas for area, perimeter, and both angles switch to match this new arrangement as well.

Why do the two angle formulas look different between the two modes?

In hypotenuse mode, both legs are already known, so Angle A is found with the arctangent of one leg divided by the other. In missing-side mode, the hypotenuse and only one leg are known at the start, so Angle A is instead found with the arcsine of that known leg divided by the hypotenuse — a different inverse trig function suited to the information actually available in each mode.

What happens if I enter a Side B in missing-side mode that's longer than Side A?

Since Side A represents the hypotenuse in that mode, and a right triangle's hypotenuse is always the longest side, Side B being larger describes a triangle that cannot exist. Rather than reporting an error, the calculator clamps the impossible negative value under its square root to zero and reports a missing side of exactly 0.

The questions that sit next to this one — chosen by subject, including calculators filed under a different category.

More in Math & Statistics.