Calculators

Pythagorean Theorem Calculator

Find the missing side of a right triangle from two known sides locally in your browser.

Choose the missing side of a right triangle, then enter the two known sides from 0 (exclusive) to 1000000000. Uses a^2 + b^2 = c^2, where c is the hypotenuse. The calculation runs locally in your browser; your values are not uploaded or stored.

Your missing side will appear here.

Find a missing right-triangle side without uploading anything.

Choose whether the hypotenuse or a leg is missing, then enter the two known sides from 0 (exclusive) to 1000000000 to solve with a squared plus b squared equals c squared. Everything runs locally in your browser, so your values are not uploaded or stored.

Frequently Asked Questions

Everything you need to know about this tool, how it works, and privacy.

What does the Pythagorean theorem calculator show?

Choose whether the hypotenuse c or one leg (a or b) is missing, then enter the two known sides from 0 (exclusive) to 1000000000. The calculator returns the missing side with the formula used. For example, legs 3 and 4 give hypotenuse 5, while leg 4 and hypotenuse 5 give the other leg 3.

Which formulas does the Pythagorean theorem calculator use?

It uses a^2 + b^2 = c^2 for a right triangle with hypotenuse c. The hypotenuse is c = square root of (a squared + b squared), leg a = square root of (c squared - b squared), and leg b = square root of (c squared - a squared). The hypotenuse must be longer than the known leg when solving for a leg.

Which inputs are accepted?

Enter two sides greater than zero through 1000000000. Decimal values are accepted. Zero, negative numbers, non-numeric text, and values above the limit show a clear error, as does a hypotenuse that is not longer than the known leg when solving for a leg.

Do my numbers stay private?

Yes. The calculation and copy action run locally in your browser. CodeASystem does not upload or store the values you enter.