c=13, b=12
- Input
- c=13, b=12
- Expected output
- a=5
a² = 169−144 = 25; the (5,12,13) triple is the best-known primitive triple after (3,4,5).
find leg right triangle
To find one leg of a right triangle from the hypotenuse c and the other leg b, isolate a = √(c² − b²). The tool requires c strictly greater than b: if c ≤ b, the value inside the square root would be zero or negative, with no real solution.
a² = 169−144 = 25; the (5,12,13) triple is the best-known primitive triple after (3,4,5).
a² = 100−36 = 64; the (6,8,10) triple is (3,4,5) multiplied by 2, so it stays Pythagorean.
a² = 49−25 = 24, which is not a perfect square; that is why this leg comes out irrational, unlike the previous examples.
In a right triangle, the square of the hypotenuse equals the sum of the squares of the legs: c² = a² + b². Attributed to Greek mathematician Pythagoras (~570–495 BC).
Because the formula subtracts the known leg's square from the hypotenuse's square (a²=c²−b²); if c were smaller than or equal to b, the value inside the root would be zero or negative, so the calculator blocks that input instead of showing a numeric error.
No. It is only a whole number when the three sides form a Pythagorean triple, like (5,12,13) or (6,8,10). In other cases, such as c=7 and b=5, the result is irrational (a ≈ 4.899) and shows as a decimal.
Check whether all three sides are positive whole numbers that satisfy a²+b²=c² exactly, without rounding; in the (5,12,13) and (6,8,10) examples they do, but for c=7, b=5 the leg of ≈4.899 is not a whole number, so it is not a triple.
Fill in two of the three fields. The third will be calculated automatically.
All calculations stay in your browser. No data is sent to any server.