The Pythagorean Theorem — Everything You Need to Know
The Pythagorean theorem states that in any right triangle, the square of the hypotenuse equals the sum of the squares of the other two sides: a² + b² = c², where c is the hypotenuse (the longest side, opposite the right angle) and a and b are the two legs. This fundamental relationship was known to Babylonian mathematicians as early as 1800 BCE — nearly 1,200 years before Pythagoras himself lived — and has been proven in over 370 different ways throughout history.
The theorem is not just a mathematical curiosity. It is the foundation of Euclidean geometry, GPS technology, computer graphics, structural engineering, and navigation. When a GPS satellite calculates your position, it is essentially solving a three-dimensional version of the Pythagorean theorem to find the distance from multiple satellites simultaneously. The theorem underlies the distance formula in algebra, the dot product in linear algebra, and the metric tensor in general relativity.
Pythagorean Triples — Perfect Integer Solutions
A Pythagorean triple consists of three positive integers (a, b, c) satisfying a² + b² = c². The most famous is (3, 4, 5). Any multiple of a Pythagorean triple is also a triple — so (6, 8, 10), (9, 12, 15), and (30, 40, 50) all work. There are infinitely many primitive Pythagorean triples (those where a, b, c share no common factor).
| a | b | c | Verification | Scale Multiple |
| 3 | 4 | 5 | 9 + 16 = 25 | Foundation triple |
| 5 | 12 | 13 | 25 + 144 = 169 | Common in exams |
| 8 | 15 | 17 | 64 + 225 = 289 | Engineering use |
| 7 | 24 | 25 | 49 + 576 = 625 | Construction use |
| 20 | 21 | 29 | 400 + 441 = 841 | Less common |
| 9 | 40 | 41 | 81 + 1600 = 1681 | Primitive triple |
💡 Pro Tip — The 3-4-5 Rule in Construction: Builders and surveyors use the 3-4-5 Pythagorean triple to create perfect right angles without a protractor. Measure 3 feet along one wall, 4 feet along the adjacent wall, and if the diagonal between the two endpoints measures exactly 5 feet, the corner is a perfect 90°. Scale this up to 6-8-10 or 9-12-15 for larger rooms. This technique is used in laying foundations, tiling floors, and setting fence posts.
The Distance Formula — Pythagorean Theorem in Coordinates
The distance between two points (x₁, y₁) and (x₂, y₂) in a coordinate plane is: d = √[(x₂−x₁)² + (y₂−y₁)²]. This is simply the Pythagorean theorem applied to the horizontal and vertical distances between the points. The horizontal distance (x₂−x₁) is leg a, the vertical distance (y₂−y₁) is leg b, and the straight-line distance d is the hypotenuse c. Google Maps, robotics path planning, and collision detection in video games all use this formula millions of times per second.
Pythagorean Theorem in Real-World Applications
The theorem's applications extend far beyond classroom exercises. In architecture and construction, it determines rafter lengths for roofs. If a roof has a horizontal run of 12 feet and a rise of 5 feet, the rafter length is √(12² + 5²) = √(144 + 25) = √169 = 13 feet. Knowing this in advance tells the builder exactly how much lumber to order. Stair building similarly uses the theorem to calculate stringer length from rise and run.
In navigation, the theorem calculates straight-line distances. A ship traveling 30 miles east then 40 miles north is √(30² + 40²) = 50 miles from its starting point. Pilots use a 3D version — the distance formula in three dimensions adds a third squared term for altitude: d = √(x² + y² + z²). This is how air traffic control calculates separation distances between aircraft flying at different altitudes.
In screen and display technology, the diagonal size of a TV or monitor is calculated using the Pythagorean theorem. A 16:9 ratio screen that is 1920 pixels wide and 1080 pixels tall has a diagonal of √(1920² + 1080²) = √(3,686,400 + 1,166,400) = √4,852,800 ≈ 2203 pixels. For a 27-inch monitor, each pixel is 27/2203 ≈ 0.01225 inches, giving a pixel density of about 81.6 PPI.
Obtuse and Acute Triangles — Beyond Right Triangles
The Pythagorean theorem also helps classify any triangle by comparing a² + b² to c² (where c is the longest side). If a² + b² = c², the triangle is a right triangle. If a² + b² > c², it's an acute triangle (all angles less than 90°). If a² + b² < c², it's an obtuse triangle (one angle greater than 90°). This relationship, called the law of cosines generalization, is used in surveying to determine land plot shapes without needing to directly measure all angles.
💡 Pro Tip — Special Right Triangles: Two triangle types have fixed angle ratios that make calculations much simpler. The 45-45-90 triangle has legs in ratio 1:1:√2, so if each leg is x, the hypotenuse is x√2. The 30-60-90 triangle has sides in ratio 1:√3:2. If the shortest side is x, the hypotenuse is 2x and the middle side is x√3. These show up constantly in trigonometry, calculus, and physics problems.
Frequently Asked Questions
What is the Pythagorean theorem and when can I use it?
The Pythagorean theorem (a² + b² = c²) applies only to right triangles — triangles with exactly one 90° angle. The hypotenuse c is always the side opposite the right angle and is always the longest side. You can use it whenever you know two sides of a right triangle and need the third, or when you need to verify whether three given lengths form a right triangle. For non-right triangles, use the law of cosines: c² = a² + b² − 2ab×cos(C).
How do I find the missing leg (not the hypotenuse)?
Rearrange a² + b² = c² to isolate the unknown leg. If you know hypotenuse c and leg a, then b = √(c² − a²). For example, with hypotenuse 13 and leg 5: b = √(13² − 5²) = √(169 − 25) = √144 = 12. Always make sure the number under the square root is positive — if c² < a², you've mislabeled which side is the hypotenuse (the hypotenuse must always be the longest side).
What are the angles of a 3-4-5 right triangle?
The 3-4-5 right triangle has angles of 90°, approximately 53.13°, and approximately 36.87°. The 90° angle is opposite the hypotenuse (5). The angle opposite the side of length 4 is arctan(4/3) ≈ 53.13°, and the angle opposite the side of length 3 is arctan(3/4) ≈ 36.87°. Notice that 90° + 53.13° + 36.87° = 180°, as must be true for all triangles. These specific angles are irrational — they cannot be expressed as simple fractions of 180°.
Does the Pythagorean theorem work in 3D?
Yes, and it extends naturally. The distance between two points in 3D space is d = √(x² + y² + z²), which is just the theorem applied twice. First find the diagonal of the base: d₁ = √(x² + y²), then treat d₁ and z as the two legs of a new right triangle: d = √(d₁² + z²) = √(x² + y² + z²). The diagonal of a rectangular box with dimensions l × w × h is √(l² + w² + h²). A 3×4×12 box has a space diagonal of √(9 + 16 + 144) = √169 = 13 feet.
How many proofs of the Pythagorean theorem exist?
Over 370 distinct proofs have been published, making it one of the most-proven theorems in mathematics. The American President James Garfield published an original proof in 1876 using a trapezoid. Euclid's classic proof (Elements Book I, Proposition 47) uses area arguments. Leonardo da Vinci discovered a proof using symmetry. Albert Einstein reportedly devised a proof as a child using similar triangles and the concept of proportionality. Bhaskara, a 12th-century Indian mathematician, proved it with a simple diagram showing four copies of the triangle rearranged around a central square.
Can the Pythagorean theorem be used with non-integer values?
Absolutely — the theorem works for any positive real numbers. For example, a right triangle with legs of 1 and 1 has a hypotenuse of √2 ≈ 1.41421356. A triangle with legs 2.5 and 6 has hypotenuse √(6.25 + 36) = √42.25 = 6.5. In practice, most real-world triangles involve irrational hypotenuses — only specific integer combinations (Pythagorean triples) produce whole-number hypotenuses. For decimal results, our calculator gives the answer to 6 significant figures.