A 5-12-13 triangle is a right triangle with legs 5 and 12 and hypotenuse 13. It is a right triangle because 52 + 122 = 25 + 144 = 169 = 132. Its acute angles are about 22.62° and 67.38°, and after 3-4-5 it is the smallest primitive Pythagorean triple: 5, 12 and 13 share no common factor.
The legs, 5 and 12, meet at the right angle; the hypotenuse, 13, is the longest side, opposite the right angle. Because the numbers are small and the angles are not "nice", the 5-12-13 triangle is a favorite of test writers: you can't guess your way through it, but every answer comes out exact.
Why 5, 12 and 13 form a right triangle
The quickest check is the converse of the Pythagorean theorem: if the squares of the two shorter sides add up to the square of the longest, the triangle has a right angle. Here 25 + 144 = 169, so it does.
There is also a neat picture behind those numbers. A 13-by-13 square is a 12-by-12 square plus a one-unit-wide L-shaped border. That border holds 13 + 12 = 25 unit squares, which is exactly enough to build a 5-by-5 square.
In algebra, that picture is the difference of two squares: 132 − 122 = (13 − 12)(13 + 12) = 1 × 25 = 25. Whenever the hypotenuse is exactly one more than a leg, the leftover border is a single strip, and the triple works when that strip contains a perfect square number of cells. That idea generates a whole family of triples, explained further down.
5-12-13 triangle angles
One angle is 90°. Call the angle opposite the side of length 5 angle A, and the angle opposite the side of length 12 angle B. Using the tangent ratio (opposite over adjacent):
tanA = 5 over 12 ≈ 0.4167 ⇒ A = arctan5 over 12 ≈ 22.62°tanB = 12 over 5 = 2.4 ⇒ B = arctan2.4 ≈ 67.38°Both angles are rounded to the nearest hundredth of a degree; they add to 90°, as the two acute angles of every right triangle must. The sine and cosine ratios are exact fractions:
sinA = 5 over 13 ≈ 0.3846, cosA = 12 over 13 ≈ 0.9231, sinB = 12 over 13, cosB = 5 over 13These exact ratios are why the triangle appears in so many trigonometry questions. A typical one: "sinθ = 5 over 13 and θ is acute; find cosθ and tanθ." Draw a right triangle with opposite side 5 and hypotenuse 13, recognize the triple, and the adjacent side is 12, so cosθ = 12 over 13 and tanθ = 5 over 12. The Pythagorean identity sin2θ + cos2θ = 1 gives the same answer: 25 over 169 + 144 over 169 = 1.
Properties of the 5-12-13 triangle
| Property | Value | Where it comes from |
|---|---|---|
| Sides | 5, 12, 13 | Legs 5 and 12, hypotenuse 13 |
| Angles | 90°, ≈ 22.62°, ≈ 67.38° | arctan(5/12) and arctan(12/5) |
| Perimeter | 30 | 5 + 12 + 13 |
| Area | 30 | 1 over 2 × 5 × 12 |
| Inradius | 2 | (a + b − c)/2 = (5 + 12 − 13)/2 |
| Circumradius | 6.5 | Half the hypotenuse |
| Altitude to the hypotenuse | 60 over 13 ≈ 4.62 | 5 × 12 over 13 |
| Pieces of the hypotenuse cut by that altitude | 25 over 13 ≈ 1.92 and 144 over 13 ≈ 11.08 | 52 over 13 and 122 over 13 |
Decimals are rounded to the nearest hundredth. Two entries deserve a second look. First, the area and the perimeter are the same number, 30. Only one other right triangle with whole-number sides can say that: 6-8-10, the doubled 3-4-5 triangle, with area and perimeter 24. If you set 1 over 2ab = a + b + c and use a2 + b2 = c2 to eliminate c, the condition simplifies to (a − 4)(b − 4) = 8, and the only factor pairs of 8 give legs 5 and 12, or 6 and 8.
Second, the altitude to the hypotenuse is not a whole number, even though all three sides are. That is normal: the altitude of a right triangle is ab/c, and 13 does not divide 5 × 12 = 60. The two pieces it cuts from the hypotenuse follow the geometric mean theorem: 25 over 13 × 144 over 13 = (60 over 13)2.
Why 5-12-13 is a primitive triple
A Pythagorean triple is primitive when its three numbers have no common factor bigger than 1. Primitive triples are the "originals"; every other triple is a scaled copy of one of them. 5-12-13 is primitive because any common factor would have to divide 5, and 5 is prime, but 12 is not a multiple of 5. So the only common factor is 1. In particular, 5-12-13 is not a multiple of 3-4-5; it is a genuinely different shape, as its angles show.
Euclid's formula produces it from m = 3 and n = 2:
m2 − n2 = 9 − 4 = 5, 2mn = 12, m2 + n2 = 9 + 4 = 13Because 3 and 2 have no common factor and one of them is even, the formula is guaranteed to give a primitive triple. The 5-12-13 triangle also shows the patterns that every primitive triple follows: exactly one leg is even (12), and it is a multiple of 4; the hypotenuse is odd (13); one leg is a multiple of 3 (12); and one side is a multiple of 5 (5). In the tree of primitive Pythagorean triples, 5-12-13 is one of the three "children" of 3-4-5, alongside 20-21-29 and 8-15-17.
Multiples of the 5-12-13 triangle
Multiply every side by the same number k and you get a similar triangle with the same angles: (5k)2 + (12k)2 = 25k2 + 144k2 = 169k2 = (13k)2. The perimeter becomes 30k and the area 30k2.
| Scale k | Sides | Perimeter | Area |
|---|---|---|---|
| 1 | 5-12-13 | 30 | 30 |
| 2 | 10-24-26 | 60 | 120 |
| 3 | 15-36-39 | 90 | 270 |
| 4 | 20-48-52 | 120 | 480 |
| 5 | 25-60-65 | 150 | 750 |
| 6 | 30-72-78 | 180 | 1,080 |
Spotting a disguised multiple saves a lot of arithmetic. If a problem gives legs 15 and 36, divide by 3, recognize 5 and 12, and the hypotenuse is 3 × 13 = 39 without squaring anything. One curiosity: 65 appears as the hypotenuse of four different triples: 25-60-65 (5-12-13 times 5), 39-52-65 (3-4-5 times 13), and the primitive triples 16-63-65 and 33-56-65. That happens because 65 = 5 × 13 and both 5 and 13 are hypotenuses themselves.
Worked examples
Example 1: a ladder against a wall
A 13-foot ladder leans against a wall with its foot 5 feet from the base of the wall. How high up the wall does it reach?
h2= 132 − 52 = 169 − 25 = 144h= √144 = 12The ladder reaches 12 feet up the wall. The ladder is the hypotenuse, so you subtract. The ladder calculator does this for any length.
Example 2: a disguised multiple
A ramp is 26 feet long and rises 10 feet. How far does it run horizontally?
10 = 2 × 5, 26 = 2 × 13 ⇒ run = 2 × 12 = 24The run is 24 feet. Check: 102 + 242 = 100 + 576 = 676 = 262.
Example 3: distance on a grid
How far is the point (5, 12) from the origin?
d = √52 + 122 = √169 = 13The distance is exactly 13, so the point (5, 12) lies on the circle x2 + y2 = 169. See the distance formula and the equation of a circle.
Example 4: the 13-14-15 triangle
Join a 5-12-13 triangle and a 9-12-15 triangle (3-4-5 times 3) along their common leg of 12. What triangle do you get, and what is its area?
The result has sides 13, 15 and 5 + 9 = 14, with height 12 on the base 14, so its area is 1 over 2 × 14 × 12 = 84. It is not a right triangle, but all its sides and its area are whole numbers.
For more practice, the word problems page uses these triples in real settings.
The 3-4-5, 5-12-13, 7-24-25 family
In both 3-4-5 and 5-12-13, the hypotenuse is exactly one more than the long leg. If c = b + 1, the theorem becomes
a2 = c2 − b2 = (c − b)(c + b) = c + bSo the square of the short leg must split into two consecutive whole numbers: 25 = 12 + 13. That forces a to be odd (the sum of two consecutive numbers is always odd), so write a = 2n + 1. Then b + c = a2 = 4n2 + 4n + 1, and with c = b + 1:
a = 2n + 1, b = 2n2 + 2n, c = 2n2 + 2n + 1Every whole number n ≥ 1 gives a triple, and the argument shows there are no others with c = b + 1. Each one is primitive, because b and c are consecutive and consecutive numbers never share a factor.
| n | a = 2n + 1 | b = 2n2 + 2n | c = b + 1 | Check: a2 = b + c | Smallest angle |
|---|---|---|---|---|---|
| 1 | 3 | 4 | 5 | 9 = 4 + 5 | 36.87° |
| 2 | 5 | 12 | 13 | 25 = 12 + 13 | 22.62° |
| 3 | 7 | 24 | 25 | 49 = 24 + 25 | 16.26° |
| 4 | 9 | 40 | 41 | 81 = 40 + 41 | 12.68° |
| 5 | 11 | 60 | 61 | 121 = 60 + 61 | 10.39° |
| 6 | 13 | 84 | 85 | 169 = 84 + 85 | 8.80° |
| 7 | 15 | 112 | 113 | 225 = 112 + 113 | 7.63° |
| 8 | 17 | 144 | 145 | 289 = 144 + 145 | 6.73° |
| 9 | 19 | 180 | 181 | 361 = 180 + 181 | 6.03° |
| 10 | 21 | 220 | 221 | 441 = 220 + 221 | 5.45° |
Angles are rounded to the nearest hundredth. Two patterns jump out. Every odd number from 3 up is the short leg of exactly one triangle in the family, so there are infinitely many primitive triples. And the inradius (a + b − c)/2 simplifies to (2n + 1 − 1)/2 = n: the 3-4-5 triangle has inradius 1, 5-12-13 has 2, 7-24-25 has 3, and so on.
This "start from an odd number" rule is old. The Greek philosopher Proclus, writing in the 5th century CE, credits it to Pythagoras, and credits Plato with a companion rule that starts from an even number and gives triples with c = b + 2, such as 8-15-17 and 12-35-37. Attributions made a thousand years after the fact are hard to check, but the rules themselves are correct, and both are special cases of Euclid's formula (m = n + 1 gives the odd family). To explore beyond them, try the Pythagorean triples generator or browse the list of Pythagorean triples.
Frequently asked questions
What are the angles of a 5-12-13 triangle?
90°, about 22.62° and about 67.38°. The 22.62° angle is opposite the side of length 5 and equals arctan(5/12); the 67.38° angle is opposite the side of length 12. Any multiple, such as 10-24-26, has the same angles.
Is 5-12-13 a right triangle?
Yes. 52 + 122 = 25 + 144 = 169 = 132, so by the converse of the Pythagorean theorem the angle between the sides of length 5 and 12 is exactly 90°.
Is 5-12-13 a multiple of 3-4-5?
No. Dividing 5, 12 and 13 by any whole number bigger than 1 never gives whole numbers, so 5-12-13 is a primitive triple of its own. Its angles (22.62° and 67.38°) are also different from those of 3-4-5 (36.87° and 53.13°), which a multiple could never be.
What is the area of a 5-12-13 triangle?
30 square units: half of base times height, with the two legs as base and height, 1 over 2 × 5 × 12 = 30. Its perimeter is also 30, a coincidence shared by only one other whole-number right triangle, 6-8-10.
If the legs are 5 and 12, what is the hypotenuse?
13. Square the legs, add, and take the square root: √25 + 144 = √169 = 13. Recognizing the triple lets you skip the arithmetic entirely.
What Pythagorean triple comes after 5-12-13?
Ordered by hypotenuse, the next primitive triples are 8-15-17, 7-24-25 and 20-21-29. In the family where the hypotenuse is one more than the long leg, the next one is 7-24-25, then 9-40-41.
Sources and further reading
- Proclus, A Commentary on the First Book of Euclid's Elements, translated by Glenn R. Morrow (Princeton University Press, 1970), comments on Proposition I.47.
- Euclid, Elements, Book I, Proposition 47, ed. D. E. Joyce: Proposition I.47.
- Eric W. Weisstein, "Pythagorean Triple", MathWorld.
Keep exploring
- TriplesThe 3-4-5 TriangleThe 3-4-5 triangle explained: its angles (36.87° and 53.13°), area, perimeter and inradius, the 3-4-5 rule for square corners, multiples and history.
- TriplesPrimitive Pythagorean TriplesWhat makes a Pythagorean triple primitive, the quick gcd test, why exactly one leg is even, and a full proof that Euclid's formula gives every primitive triple.
- TriplesEuclid's Formula for Pythagorean TriplesEuclid's formula a = m² − n², b = 2mn, c = m² + n² explained: two derivations, a table for m ≤ 8, when the triple is primitive, and four other classic generators.
- TriplesList of Pythagorean TriplesComplete, computer-checked list of Pythagorean triples: all 52 with hypotenuse up to 100 and all 47 primitive triples up to 300, with m, n, perimeter and area.
- CalculatorsPythagorean Triples GeneratorGenerate every Pythagorean triple up to any hypotenuse, use Euclid's formula, check whether three numbers form a triple, or find all triples with a number.
- LearnThe Pythagorean IdentityThe Pythagorean identity sin²θ + cos²θ = 1 derived from the unit circle, the related tan/sec and cot/csc identities, and how to find cos from sin by quadrant.