Pythagorean Theorem Calculator

Pythagorean Theorem Calculator

Growing AI Skill PRO

Enter Calculation

Results

Side b
12
Area A 30

Formula

Side b=Hypotenuse c2−Side a2A=12Side a·Side b\begin{gathered} {{\text{Side } b}} = \sqrt{{{\text{Hypotenuse } c}}^{2} - {{\text{Side } a}}^{2}} \\[1.5em] A = \tfrac{1}{2}\,{{\text{Side } a}}\cdot{{\text{Side } b}} \end{gathered}
Usage stats

Advertisement

Report an error on this page

What is the Pythagorean Theorem?

The Pythagorean theorem describes the relationship between the three sides of a right triangle (a triangle with one 90° angle). It states that the square of the hypotenuse — the longest side, opposite the right angle — equals the sum of the squares of the two shorter sides (the legs): \(a^2 + b^2 = c^2\). This calculator rearranges that equation so you can solve for whichever side is unknown, and it also reports the triangle's area.

Right triangle with legs a and b and hypotenuse c
A right triangle: legs a and b meet at the right angle, with hypotenuse c opposite it.

How to use this calculator

Pick what you want to Solve for: side a, side b, hypotenuse c, or area A. The calculator then uses the two values that make sense for that choice. To find the hypotenuse, enter both legs a and b. To find a leg, enter the hypotenuse and the other leg. To find the area, enter the two legs. Choose a unit (it is only a label — no conversion is performed) and the number of significant figures, then submit.

The formula explained

Rearranging \(a^2 + b^2 = c^2\) gives three solving formulas: the hypotenuse is $$c = \sqrt{a^2 + b^2}$$ a missing leg is $$a = \sqrt{c^2 - b^2} \quad \text{or} \quad b = \sqrt{c^2 - a^2}$$ Because a leg formula subtracts under the square root, the hypotenuse must be strictly longer than the known leg, otherwise no real triangle exists. The area of a right triangle is simply half the product of its two legs: $$A = \tfrac{1}{2}\,a\,b$$

Advertisement
Squares built on each side of a right triangle showing a squared plus b squared equals c squared
Geometric view: the squares on the two legs add up to the square on the hypotenuse.

Worked example

For the classic 3-4-5 triangle, set \(a = 3\) and \(b = 4\) and solve for the hypotenuse: $$c = \sqrt{3^2 + 4^2} = \sqrt{9 + 16} = \sqrt{25} = 5$$ The area is $$\tfrac{1}{2} \cdot 3 \cdot 4 = 6$$ So a 3-4-5 right triangle has a hypotenuse of 5 and an area of 6 square units — a perfect Pythagorean triple.

Common Pythagorean Triples

A Pythagorean triple is a set of three positive integers \(a, b, c\) that satisfy \(a^2 + b^2 = c^2\). The table lists the best-known primitive triples, meaning the three numbers share no common factor greater than 1. The area of each right triangle is \(\tfrac{1}{2}ab\).

Leg a Leg b Hypotenuse c Check: a² + b² = c² Area (½·a·b)
3 4 5 9 + 16 = 25 6
5 12 13 25 + 144 = 169 30
8 15 17 64 + 225 = 289 60
7 24 25 49 + 576 = 625 84
20 21 29 400 + 441 = 841 210
9 40 41 81 + 1600 = 1681 180

Note: any whole-number multiple of a triple also works. For example, 6-8-10 (2 × 3-4-5) and 9-12-15 (3 × 3-4-5) are valid right triangles, but they are not primitive because their sides share a common factor.

Example Results for Different Inputs

The formulas used are \(c = \sqrt{a^2 + b^2}\) when both legs are known, \(a = \sqrt{c^2 - b^2}\) or \(b = \sqrt{c^2 - a^2}\) when the hypotenuse and one leg are known, and area \(= \tfrac{1}{2}ab\).

Known values Solve for Substitution Result Area
a = 3, b = 4 c \(\sqrt{9 + 16} = \sqrt{25}\) c = 5 6
a = 1, b = 1 c \(\sqrt{1 + 1} = \sqrt{2}\) c ≈ 1.4142 0.5
c = 13, a = 5 b \(\sqrt{169 - 25} = \sqrt{144}\) b = 12 30
c = 10, b = 6 a \(\sqrt{100 - 36} = \sqrt{64}\) a = 8 24
a = 7, b = 10 c \(\sqrt{49 + 100} = \sqrt{149}\) c ≈ 12.2066 35

Irrational results such as √2 and √149 are rounded here to four decimal places; their exact values are the square roots shown.

Advertisement

How to Solve by Hand

  1. Identify the hypotenuse. The hypotenuse \(c\) is the side opposite the right angle (90°) and is always the longest side. The other two sides are the legs \(a\) and \(b\).
  2. Square the known sides. Compute \(a^2\), \(b^2\), or \(c^2\) for whichever values you have.
  3. Add or subtract. To find the hypotenuse, add the squares: \(c^2 = a^2 + b^2\). To find a missing leg, subtract the square of the known leg from \(c^2\): \(a^2 = c^2 - b^2\).
  4. Take the square root. \(c = \sqrt{a^2 + b^2}\), or \(a = \sqrt{c^2 - b^2}\).
  5. Compute the area. Multiply the two legs and halve: \(\text{Area} = \tfrac{1}{2}ab\).
  6. Check your answer. Confirm that \(c\) is longer than both legs and that \(a^2 + b^2 = c^2\) holds (allowing for small rounding differences).

Example (hypotenuse): legs \(a = 7\) and \(b = 10\). Then \(c^2 = 7^2 + 10^2 = 49 + 100 = 149\), so \(c = \sqrt{149} \approx 12.2066\). Area \(= \tfrac{1}{2} \times 7 \times 10 = 35\). Check: 12.2066 is greater than 10 and 7, and \(12.2066^2 \approx 149\).

Example (missing leg): \(c = 10\) and \(b = 6\). Then \(a^2 = 10^2 - 6^2 = 100 - 36 = 64\), so \(a = 8\). Area \(= \tfrac{1}{2} \times 8 \times 6 = 24\). Check: \(64 + 36 = 100\).

FAQ

Which side is the hypotenuse? The hypotenuse (c) is always the longest side and lies directly opposite the right angle.

Why do I get an error when solving for a leg? When solving for a leg, the hypotenuse must be longer than the known leg; if it is equal or shorter, \(c^2 - \text{leg}^2\) is not positive and no real triangle can be formed.

What are Pythagorean triples? They are whole-number side sets that satisfy \(a^2 + b^2 = c^2\), such as 3-4-5, 5-12-13, 8-15-17 and 7-24-25. The calculator works with any positive decimals, not only triples.

Last updated:

Most popular in Geometry

View all Geometry calculators