Pythagorean Theorem (solve for c)
c = √(a² + b²)Find the hypotenuse given both legs. Square each leg, add them, and take the square root.
Where:
a= First leg of the right triangleb= Second leg of the right trianglec= Hypotenuse (longest side)Side c
5
Area
6.00
Triple
Yes
a² + b² = c²
The hypotenuse (c) must always be the longest side
3
a² = 94
b² = 165
c² = 256
(a×b)/212
a+b+ca² + b² = c²
3² + 4² = c²
9 + 16 = c²
25 = c²
c = √25 = 5
| a | b | c | a²+b²=c² |
|---|---|---|---|
| 3 | 4 | 5 | 9+16=25 |
| 5 | 12 | 13 | 25+144=169 |
| 7 | 24 | 25 | 49+576=625 |
| 8 | 15 | 17 | 64+225=289 |
| 9 | 40 | 41 | 81+1600=1681 |
| 11 | 60 | 61 | 121+3600=3721 |
| 20 | 21 | 29 | 400+441=841 |
c = √(a² + b²)Find the hypotenuse given both legs. Square each leg, add them, and take the square root.
Where:
a= First leg of the right triangleb= Second leg of the right trianglec= Hypotenuse (longest side)a = √(c² - b²)Find a missing leg given the hypotenuse and the other leg. The hypotenuse must be longer than the known leg.
Where:
a= Missing leg to solve forb= Known legc= Hypotenuse (must be > b)Inputs
Result
3² + 4² = 9 + 16 = 25, and √25 = 5. This is the smallest Pythagorean triple, and every multiple (6-8-10, 9-12-15) is also a triple.
Inputs
Result
a² = c² - b² = 169 - 144 = 25, so a = √25 = 5. The (5, 12, 13) triple is a primitive triple (no common factors).
Inputs
Result
1² + 1² = 2, so c = √2 ≈ 1.414214. This is the diagonal of a unit square and forms a 45-45-90 triangle. Not a Pythagorean triple since √2 is irrational.
The Pythagorean theorem states that in a right triangle, the square of the hypotenuse equals the sum of the squares of the other two sides: a² + b² = c². It only works for right triangles (triangles with one 90° angle).
| Known Sides | Calculation | Missing Side |
|---|---|---|
| a=3, b=4 | 9 + 16 = 25 | c = 5 |
| a=5, b=12 | 25 + 144 = 169 | c = 13 |
| a=8, b=15 | 64 + 225 = 289 | c = 17 |
| b=7, c=25 | 625 - 49 = 576 | a = 24 |
A Pythagorean triple is a set of three positive integers (a, b, c) where a² + b² = c². The smallest triple is (3, 4, 5). Any multiple of a triple is also a triple: (6, 8, 10) = 2 × (3, 4, 5).
| Triple | a² | b² | c² |
|---|---|---|---|
| (3, 4, 5) | 9 | 16 | 25 |
| (5, 12, 13) | 25 | 144 | 169 |
| (8, 15, 17) | 64 | 225 | 289 |
| (7, 24, 25) | 49 | 576 | 625 |
To find the hypotenuse: square both legs, add them together, then take the square root. c = √(a² + b²). For legs of 6 and 8: c = √(36 + 64) = √100 = 10.
| Step | Calculation | Result |
|---|---|---|
| Square a | 6² | 36 |
| Square b | 8² | 64 |
| Add | 36 + 64 | 100 |
| Square root | √100 | 10 |
Rearrange the formula: a = √(c² - b²). Square the hypotenuse, subtract the known leg squared, then take the square root. For c = 13 and b = 5: a = √(169 - 25) = √144 = 12.
| Known | Calculation | Missing Leg |
|---|---|---|
| c=13, b=5 | √(169-25) = √144 | a = 12 |
| c=25, a=7 | √(625-49) = √576 | b = 24 |
| c=17, b=15 | √(289-225) = √64 | a = 8 |
The Pythagorean theorem is used in construction to ensure walls are square (3-4-5 rule), in navigation to calculate straight-line distances, in architecture for roof pitches, and in computer graphics for distance between two points on a screen.
| Application | What You Measure | Formula |
|---|---|---|
| TV diagonal | Width 48", Height 27" | √(2304+729) = 55" |
| Roof rafter | Run 12ft, Rise 5ft | √(144+25) = 13ft |
| Ladder reach | Wall 12ft, Base 5ft | √(144+25) = 13ft |
a² + b² = c² connects the three sides of every right triangle: the two legs (a and b) and the hypotenuse (c). For legs of 6 and 8: 36 + 64 = 100, so c = √100 = 10. To find a missing leg when you know c and one leg: a = √(c² − b²). With c = 13 and b = 12: a = √(169 − 144) = √25 = 5.
The theorem only applies to right triangles (one 90° angle). For non-right triangles, the law of cosines generalizes the formula: c² = a² + b² − 2ab·cos(C), where C is the angle opposite side c. When C = 90°, cos(90°) = 0 and the formula reduces to the Pythagorean theorem. The Trigonometry Calculator computes the cosine values needed for the generalized form.
The distance formula in coordinate geometry is a direct application: the distance between points (x₁,y₁) and (x₂,y₂) is d = √((x₂−x₁)² + (y₂−y₁)²). Between (1,2) and (4,6): d = √(9+16) = √25 = 5. This extends to 3D: d = √(Δx² + Δy² + Δz²).
A Pythagorean triple is three positive integers (a, b, c) satisfying a² + b² = c². The smallest is (3, 4, 5): 9 + 16 = 25. Every multiple is also a triple: (6, 8, 10), (9, 12, 15), (30, 40, 50). A primitive triple has no common factor among all three numbers — there are infinitely many, including (3,4,5), (5,12,13), (8,15,17), (7,24,25), and (20,21,29).
Euclid’s formula generates all primitive triples: a = m² − n², b = 2mn, c = m² + n², where m > n > 0, m and n are coprime, and one is even. For m=2, n=1: a = 3, b = 4, c = 5. For m=3, n=2: a = 5, b = 12, c = 13. This formula proves there are infinitely many Pythagorean triples, a fact that has been known since antiquity.
Fermat’s Last Theorem states that no three positive integers satisfy aⁿ + bⁿ = cⁿ for any integer n > 2. This was conjectured by Pierre de Fermat in 1637 and not proven until Andrew Wiles’ landmark 1995 proof. The case n = 2 (Pythagorean theorem) is the only power for which integer solutions exist.
| Primitive Triple | a² + b² | c² | Euclid (m,n) |
|---|---|---|---|
| (3, 4, 5) | 9 + 16 = 25 | 25 | (2, 1) |
| (5, 12, 13) | 25 + 144 = 169 | 169 | (3, 2) |
| (8, 15, 17) | 64 + 225 = 289 | 289 | (4, 1) |
| (7, 24, 25) | 49 + 576 = 625 | 625 | (4, 3) |
| (20, 21, 29) | 400 + 441 = 841 | 841 | (5, 2) |
The 3-4-5 rule is the most common field application. To verify a 90° corner: measure 3 feet along one wall, 4 feet along the other, and confirm the diagonal is exactly 5 feet. Multiplying by 2 (6-8-10) or 3 (9-12-15) accommodates larger structures while maintaining integer measurements for easy verification with a tape measure.
Roof rafter length is calculated directly: rafter = √(run² + rise²). A roof with 12-foot run and 5-foot rise needs rafters of √(144 + 25) = √169 = 13 feet. The rafter adds about 2 feet for overhang, so a 15-foot rafter length is ordered. The Right Triangle Calculator can compute all triangle properties including angles for pitch specification.
TV screen diagonals use the same formula. A 48-inch wide and 27-inch tall screen has diagonal = √(2304 + 729) = √3033 = 55.07 inches — sold as a 55-inch TV. The aspect ratio 16:9 means width = diagonal × cos(arctan(9/16)) and height = diagonal × sin(arctan(9/16)). The Area Calculator can then compute the actual screen area: 48 × 27 = 1,296 square inches.
Last Updated: Mar 26, 2026
This calculator is provided for informational and educational purposes only. Results are estimates and should not be considered professional financial, medical, legal, or other advice. Always consult a qualified professional before making important decisions. UseCalcPro is not responsible for any actions taken based on calculator results.