The 3-4-5 Triangle

The smallest right triangle with whole-number sides, 32 + 42 = 52: its angles and measurements, why builders use it to square corners, and a proof that no other right triangle has consecutive whole-number sides.

By the PythagoreanTheorem.net teamUpdated 11 min read

A 3-4-5 triangle is a right triangle whose sides are 3, 4 and 5 units long, or any multiple of those, such as 6-8-10. It is a right triangle because 32 + 42 = 9 + 16 = 25 = 52. Its angles are 90°, about 36.87° and about 53.13°, and it is the smallest Pythagorean triple.

The two shorter sides, 3 and 4, are the legs: they meet at the right angle. The longest side, 5, is the hypotenuse. Small whole numbers make it the triangle builders use to square corners and the first example most students meet of the Pythagorean theorem.

Why 3, 4 and 5 make a right triangle

Build a square on each side of the triangle and cut it into unit squares. The square on the side of length 3 holds 9 unit squares, the square on the side of length 4 holds 16, and the square on the hypotenuse holds 25. The two smaller squares together contain exactly as many unit squares as the big one.

93 164 255 9 + 16 = 25unit squares
Count the unit squares: 9 on the shortest side plus 16 on the middle side gives the 25 on the hypotenuse. That is 32 + 42 = 52 drawn as areas.

That is the Pythagorean theorem in its original, geometric form. It also works in reverse: the converse of the Pythagorean theorem says that if three lengths satisfy a2 + b2 = c2, the triangle they form has a right angle. So any triangle with sides 3, 4 and 5 is guaranteed to be a right triangle, with the 90° angle between the sides of length 3 and 4. You don't need a protractor: the side lengths settle it.

3-4-5 triangle angles

One angle is exactly 90°. The other two are not round numbers, but trigonometry gives them quickly. Call the angle opposite the side of length 3 angle A, and the angle opposite the side of length 4 angle B. The tangent of an angle is the opposite side divided by the adjacent side:

tanA = 3 over 4 = 0.75  ⇒  A = arctan0.75 ≈ 36.87°tanB = 4 over 3  ⇒  B = arctan4 over 3 ≈ 53.13°

Both angles are rounded to the nearest hundredth of a degree, and they add up correctly: 36.87° + 53.13° + 90° = 180°. The sines and cosines, unlike the angles, are exact and tidy, which is why the 3-4-5 triangle appears in so many trigonometry problems:

sinA = 3 over 5 = 0.6,   cosA = 4 over 5 = 0.8,   sinB = 0.8,   cosB = 0.6
r = 1 36.87°53.13° a = 3b = 4c = 5 ABC
The smaller angle, about 36.87°, sits opposite the shortest side; the larger acute angle, about 53.13°, sits opposite the side of length 4. The inscribed circle has radius exactly 1.

Common mistakeThe 3-4-5 triangle is not a 30-60-90 triangle, even though its angles look close. A 30-60-90 triangle has sides in the ratio 1 : √3 : 2, so its sides can never all be whole numbers. The 3-4-5 triangle is special because of its sides, not its angles.

Properties of the 3-4-5 triangle

Every measurement of the triangle follows from its three sides. These are the ones that come up most often.

PropertyValueWhere it comes from
Sides3, 4, 5Legs 3 and 4, hypotenuse 5
Angles90°, ≈ 36.87°, ≈ 53.13°arctan3 over 4 and arctan4 over 3
Perimeter123 + 4 + 5
Area61 over 2 × 3 × 4: the legs are a base and its height
Inradius1a + b − c over 2 = 3 + 4 − 5 over 2
Circumradius2.5Half the hypotenuse
Altitude to the hypotenuse2.43 × 4 over 5 = 12 over 5
Pieces of the hypotenuse cut by that altitude1.8 and 3.232 over 5 and 42 over 5

The inradius is the radius of the largest circle that fits inside the triangle. For every right triangle it equals r = (a + b − c)/2, which here is exactly 1. The 3-4-5 triangle is in fact the only whole-number right triangle with inradius 1. Setting a + b − c = 2, substituting c = a + b − 2 into a2 + b2 = c2 and simplifying gives (a − 2)(b − 2) = 2, and the only way to write 2 as a product of positive whole numbers is 1 × 2. So the legs must be 3 and 4.

The circumradius, the radius of the circle through all three corners, is 2.5 because the hypotenuse of a right triangle is always a diameter of that circle (Thales' theorem). The altitude from the right angle to the hypotenuse is 2.4, and it splits the triangle into two smaller copies of itself: 1.8-2.4-3 and 2.4-3.2-4, which are the 3-4-5 triangle scaled by 0.6 and by 0.8. That splitting is the idea behind the similar triangles proof and the geometric mean theorem.

A hidden 45°The incircle touches the bottom leg 1 unit from the right angle, so 4 − 1 = 3 units from A; it touches the vertical leg 3 − 1 = 2 units from B. The lines from A and B to the circle's center bisect those angles, so tan(A/2) = 1/3 and tan(B/2) = 1/2. Since A/2 + B/2 = 45°, the triangle proves the classic identity arctan(1/2) + arctan(1/3) = 45°.

Multiples of the 3-4-5 triangle

Multiply all three sides by the same positive number k and you get another right triangle, because

(3k)2 + (4k)2 = 9k2 + 16k2 = 25k2 = (5k)2

The new triangle is similar to the original, a scaled copy, so it has exactly the same angles: 90°, about 36.87° and about 53.13°. The number k doesn't have to be whole; 1.5-2-2.5 and 0.3-0.4-0.5 are 3-4-5 triangles too.

34689123-4-56-8-109-12-15
Scaling by 2 and by 3 gives 6-8-10 and 9-12-15. The three hypotenuses are parallel, so the angle at the base never changes.
Scale kSidesPerimeterArea
0.10.3-0.4-0.51.20.06
0.51.5-2-2.561.5
13-4-5126
26-8-102424
39-12-153654
412-16-204896
515-20-2560150
1030-40-50120600

The perimeter grows in step with k, but the area grows with k2: doubling the sides multiplies the area by 4, tripling multiplies it by 9. Look at the 6-8-10 row: its area and perimeter are both 24. Only one other whole-number right triangle shares that property, the 5-12-13 triangle, whose area and perimeter are both 30. (Setting ab/2 = a + b + c leads to (a − 4)(b − 4) = 8, which allows only these two.)

The 3-4-5 triple is primitive: its three numbers have no common factor. All of its multiples are not. In Euclid's formula it is the very first case, m = 2 and n = 1: m2 − n2 = 3, 2mn = 4 and m2 + n2 = 5. For many more triples, see the list of Pythagorean triples.

The 3-4-5 rule for square corners

The 3-4-5 rule, sometimes called the 3-4-5 method, is how carpenters, bricklayers and landscapers check that a corner is exactly 90° without a giant set square. It is the converse of the Pythagorean theorem put to work: if the three distances measure 3, 4 and 5, the corner must be square.

  1. Mark 3 units along one side of the corner, measured from the corner point. Any unit works: feet, yards or meters.
  2. Mark 4 units along the other side, in the same unit.
  3. Measure the diagonal between the two marks. If it is exactly 5 units, the corner is 90°.
  4. Adjust and re-measure. A diagonal longer than 5 means the corner is wider than 90° (obtuse); a shorter one means it is narrower (acute). This is the same test described on the acute, right or obtuse page.

Use the biggest multiple that fits, such as 6-8-10 or 9-12-15 feet for a foundation, because a larger triangle makes the same measuring error matter less. With legs of 3 and 4 feet, a diagonal that is 1/8 inch too long means a corner of about 90.25°, which puts a 20-foot wall about an inch out of line at its far end. With legs of 9 and 12 feet, the same 1/8-inch slip gives about 90.08°. (Angles from the law of cosines, rounded to the nearest hundredth.)

4 spaces3 spaces5 spaces
A closed loop with 12 equal spaces, pulled tight with 3, 4 and 5 spaces on the sides, forms a right angle where the 3-space and 4-space sides meet.

The same triangle hides in roof framing. A roof that rises 9 inches for every 12 inches of level run (a "9-in-12" pitch) forms 9-12-15 triangles, so each foot of run needs 15 inches of rafter and the roof slopes at about 36.87°. The rafter length calculator handles every other pitch, and the Pythagorean theorem in construction covers foundations, decks and stairs in detail.

Why 3-4-5 is the only triple of consecutive numbers

3, 4 and 5 are consecutive whole numbers. Could another right triangle have consecutive sides, say 20-21-22? No, and a few lines of algebra prove it for every possible size at once. Call the middle side n, so the sides are n − 1, n and n + 1. The longest side, n + 1, must be the hypotenuse:

(n − 1)2 + n2= (n + 1)2n2 − 2n + 1 + n2= n2 + 2n + 1n2 − 4n= 0n(n − 4)= 0

So n = 0 or n = 4. A side can't have length 0, so n = 4 and the sides are 3, 4 and 5. This is a proof, not a search result: there is no larger example waiting to be found.

The same argument works for any equally spaced sides. Write them as n − d, n and n + d, with a positive gap d:

(n − d)2 + n2 = (n + d)2  ⇒  n2 = 4nd  ⇒  n = 4d

The sides are then 3d, 4d and 5d. In words: every right triangle whose sides are equally spaced is a scaled 3-4-5 triangle, even when the gap d is a fraction or an irrational number.

Two consecutive sidesAsk for just two consecutive sides and there are infinitely many triples. Consecutive legs give 3-4-5, 20-21-29, 119-120-169, 696-697-985 and so on. A long leg one less than the hypotenuse gives 3-4-5, 5-12-13, 7-24-25, 9-40-41 and so on, a family explained on the 5-12-13 triangle page.

Two more curiosities. The product 3 × 4 × 5 = 60, and the product of the three sides of every Pythagorean triple is a multiple of 60, because one side is always divisible by 3, one by 4 and one by 5. And while two cubes never add up to a cube (that is Fermat's Last Theorem), three can: 33 + 43 + 53 = 27 + 64 + 125 = 216 = 63.

A short history of the 3-4-5 triangle

The 3-4-5 triangle was in use long before Pythagoras (about 570–495 BCE), in several cultures. Here is what the evidence supports, and where it runs out.

  • Babylon, about 1800 BCE. The clay tablet Plimpton 322 lists fifteen rows of numbers belonging to right triangles with whole-number sides. Row 11 gives a short side of 45 and a diagonal of 75, which belong to the 45-60-75 triangle: 3-4-5 scaled by 15.
  • India, roughly 800–200 BCE. The Sulba Sutras, manuals for building Vedic fire altars with cords and stakes, use 3-4-5 and other triples such as 5-12-13 to lay out right angles. Their dates are uncertain.
  • China, Han dynasty. The Zhoubi Suanjing, compiled roughly 2,000 years ago, opens with a dialogue that explains the right-triangle rule using a base of 3, a height of 4 and a diagonal of 5. See the Gougu theorem.
  • Rome, 1st century BCE. The architect Vitruvius, in Book IX of De architectura, credits Pythagoras with making a right angle from rods 3, 4 and 5 feet long, and recommends the same proportions for laying out staircases.
  • Egypt: a popular but unproven story. You will often read that Egyptian "rope-stretchers" (land surveyors) used a rope with 12 equally spaced knots to make 3-4-5 right angles for temples and pyramids. No ancient text or picture shows this. The idea began as a suggestion by the German historian Moritz Cantor in the late 19th century, and historians still disagree about it. The Egyptian rope-stretchers page weighs the evidence.

Using one triangle is different from proving the theorem for every right triangle. For who proved what, and when, see the history of the Pythagorean theorem.

Frequently asked questions

What are the angles of a 3-4-5 triangle?

90°, about 36.87° and about 53.13°. The 36.87° angle is opposite the side of length 3 and equals arctan3 over 4; the 53.13° angle is opposite the side of length 4. Every multiple, such as 6-8-10, has the same three angles.

Is a 3-4-5 triangle always a right triangle?

Yes. Because 32 + 42 = 52, the converse of the Pythagorean theorem guarantees a 90° angle between the sides of length 3 and 4. That holds in any unit, whether inches, feet or meters, and for any scaled copy.

What is the 3-4-5 rule in construction?

It is a way to check a square corner with only a tape measure. Mark 3 units along one edge and 4 along the other; if the diagonal between the marks is exactly 5, the corner is 90°. Larger multiples like 6-8-10 or 9-12-15 give more accurate results.

Is 6-8-10 a 3-4-5 triangle?

Yes. 6-8-10 is the 3-4-5 triangle with every side doubled, so it has the same shape and the same angles. Its area is 24, four times the original area of 6, while its perimeter, also 24, is twice the original 12.

What is the area of a 3-4-5 triangle?

6 square units. The two legs are perpendicular, so one is the base and the other is the height: 1 over 2 × 3 × 4 = 6. A 3-4-5 triangle scaled by k has area 6k2.

Is the 3-4-5 triangle a special right triangle?

In most textbooks, "special right triangles" means the 45-45-90 and 30-60-90 triangles, which are special because of their angles. The 3-4-5 triangle is special because of its sides: it is the smallest right triangle whose sides are all whole numbers.

Sources and further reading

  1. Euclid, Elements, Book I, Propositions 47 and 48 (the theorem and its converse), ed. D. E. Joyce: Proposition I.47.
  2. Eleanor Robson, "Words and pictures: new light on Plimpton 322", American Mathematical Monthly 109 (2002), 105–120.
  3. Vitruvius, The Ten Books on Architecture, Book IX, introduction, translated by M. H. Morgan (1914).
  4. Eric W. Weisstein, "Pythagorean Triple", MathWorld.

Keep exploring