The 5-12-13 Triangle

The second-smallest primitive Pythagorean triple, 52 + 122 = 132: its angles and measurements, its multiples, worked examples, and the endless family of triples it belongs to.

By the PythagoreanTheorem.net teamUpdated 9 min read

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.

12² = 144 5² = 25 1313 13² − 12² = 13 + 12 = 25 = 5²
The border of the 13-square (13 cells along the top, 12 down the side) slides over to fill a 5-by-5 square, so 132 = 122 + 52.

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 13
r = 2 22.62°67.38° a = 5b = 12c = 13 ABC
The 5-12-13 triangle is long and low: its smallest angle is only about 22.62°. Its inscribed circle has radius exactly 2.

These 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

PropertyValueWhere it comes from
Sides5, 12, 13Legs 5 and 12, hypotenuse 13
Angles90°, ≈ 22.62°, ≈ 67.38°arctan(5/12) and arctan(12/5)
Perimeter305 + 12 + 13
Area301 over 2 × 5 × 12
Inradius2(a + b − c)/2 = (5 + 12 − 13)/2
Circumradius6.5Half the hypotenuse
Altitude to the hypotenuse60 over 13 ≈ 4.625 × 12 over 13
Pieces of the hypotenuse cut by that altitude25 over 13 ≈ 1.92 and 144 over 13 ≈ 11.0852 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 = 13

Because 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 kSidesPerimeterArea
15-12-133030
210-24-2660120
315-36-3990270
420-48-52120480
525-60-65150750
630-72-781801,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 = 12

The 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 = 24

The 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 = 13

The 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?

12 59 1315 5-12-13 + 9-12-15base 5 + 9 = 14area = ½ · 14 · 12 = 84
Two right triangles that share a leg of 12 combine into a triangle with sides 13, 14 and 15.

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 + b

So 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 + 1

Every 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.

na = 2n + 1b = 2n2 + 2nc = b + 1Check: a2 = b + cSmallest angle
13459 = 4 + 536.87°
25121325 = 12 + 1322.62°
37242549 = 24 + 2516.26°
49404181 = 40 + 4112.68°
5116061121 = 60 + 6110.39°
6138485169 = 84 + 858.80°
715112113225 = 112 + 1137.63°
817144145289 = 144 + 1456.73°
919180181361 = 180 + 1816.03°
1021220221441 = 220 + 2215.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.

3-4-5: 36.87°5-12-13: 22.62°7-24-25: 16.26°9-40-41: 12.68° long leg b (scaled to the same length)
Drawn with the same long leg, the family gets flatter and flatter: the hypotenuse hugs the long leg and the smallest angle shrinks toward 0°.

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

  1. 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.
  2. Euclid, Elements, Book I, Proposition 47, ed. D. E. Joyce: Proposition I.47.
  3. Eric W. Weisstein, "Pythagorean Triple", MathWorld.

Keep exploring