Pythagorean Theorem Calculator
Know two sides of a right triangle and need the third? Enter any two of the legs a, b and the hypotenuse c, leave the unknown blank, and this calculator solves it with the Pythagorean theorem plus the area and perimeter.
How to use the Pythagorean theorem calculator
- Enter the two sides you know into their fields: legs a and b, or one leg and the hypotenuse c.
- Leave the side you want to find blank.
- Read the solved side, the full triangle, the area and the perimeter, which update as you type.
Examples
Solve the hypotenuse (3-4-5)
a = 3, b = 4
c = 5, area 6, perimeter 12
Solve a leg (5-12-13)
a = 5, c = 13
b = 12, area 30, perimeter 30
Frequently asked questions
What is the Pythagorean theorem?
For a right triangle, the square of the hypotenuse equals the sum of the squares of the two legs: a squared plus b squared equals c squared, where c is the side opposite the right angle.
How do I find a leg instead of the hypotenuse?
Rearrange the formula. A leg equals the square root of the hypotenuse squared minus the other leg squared, so a = sqrt(c squared minus b squared). The hypotenuse must be longer than the leg you already know.
Why does the hypotenuse have to be the longest side?
The hypotenuse sits opposite the right angle and is always the longest side of a right triangle. If you try to solve a leg with a hypotenuse that is shorter than the known leg, no real triangle exists and the tool flags it.
How are the area and perimeter calculated?
Because the two legs meet at the right angle, the area is half their product: area = a times b divided by 2. The perimeter is simply the three sides added together, a + b + c.
Do the sides have to be whole numbers?
No. You can enter any positive decimals. Whole-number sets like 3-4-5 or 5-12-13 are called Pythagorean triples, but most right triangles have at least one irrational side, such as a = b = 1 giving c = sqrt(2).
Is my data sent anywhere?
No. The calculation runs entirely in your browser, so the numbers you type are never uploaded or stored.
Related tools
Triangle Calculator
Find a triangle's area from base and height or from three sides with Heron's formula, and solve right triangles with the Pythagorean theorem.
Circle Calculator
Enter any one circle property and get the radius, diameter, circumference and area instantly. Free, accurate and runs in your browser.
Scientific Notation Converter
Convert numbers to and from scientific notation and E notation. Enter a number or a value like 1.23 x 10^4 to see the standard decimal form. Free and private.
Area Calculator
Find the area of a circle, square, rectangle, triangle, trapezoid, parallelogram, ellipse, sector or rhombus. Free and runs in your browser.
Arithmetic Sequence Calculator
Find the nth term, the sum of n terms and the full term list for any arithmetic or geometric sequence. Enter the first term, step or ratio, and n.
Average Calculator
Find the mean, median, mode, range, sum, count, min and max of a list of numbers. Paste values separated by commas, spaces or new lines.