The Formula That Contains the Pythagorean Theorem
In a hurry? Skip straight to the numbers.
Open the Cosine Rule Calculator →The cosine rule calculator finds the third side of any triangle from two sides and the angle between them, working for triangles with no right angle. Its most beautiful feature is that it does not replace the famous Pythagorean theorem but contains it: the ancient right-triangle relationship emerges from the cosine rule as a special case. Understanding the cosine rule as a generalization, with an extra term that corrects for non-right angles, reveals a satisfying unity between the most famous theorem in geometry and its broader cousin.
Beyond the Right Angle
The Pythagorean theorem is powerful but limited: it relates the sides of a triangle only when one of its angles is exactly a right angle. Most triangles are not so cooperative; their angles are larger or smaller than a right angle, and for these the simple relationship of squares does not hold. The cosine rule removes this restriction, providing a relationship among the sides that works for any triangle whatsoever, regardless of its angles. It is the tool for the general case that the Pythagorean theorem cannot handle alone.
A Correction Term
The elegance of the cosine rule is that it looks almost exactly like the Pythagorean theorem, with one extra piece added. It says the square of one side equals the sum of the squares of the other two, just as Pythagoras claimed, but then it subtracts a correction term that depends on the angle between them. This correction term adjusts for how far the angle differs from a right angle. When the angle is not right, the two shorter sides do not relate to the third by squares alone, and the extra term supplies exactly the needed adjustment.
| Angle | Correction term |
|---|---|
| Right angle | Vanishes (Pythagoras) |
| Other angles | Adjusts the relationship |
Pythagoras as a Special Case
Here is the satisfying part. When the angle between the two sides happens to be a right angle, the correction term becomes exactly zero, and the cosine rule collapses into precisely the Pythagorean theorem. The general formula, at that one special angle, becomes the famous one. This means the Pythagorean theorem is not a separate truth but a particular instance of the cosine rule, the case where the correcting term disappears. The general law quietly holds the special one inside it, revealed by choosing a right angle.
The Power of Generalization
This relationship illustrates one of mathematics' most beautiful patterns: a general principle that contains a famous special case, unifying and extending it. Rather than two unrelated facts, there is one broader truth with the celebrated result nested within. The cosine rule extends the reach of the Pythagorean insight from right triangles to all triangles, while honoring the original by reproducing it exactly when the angle is right. The calculator computes a triangle's third side using this general law, wielding a formula that both surpasses and embraces the most famous theorem in geometry.
For a side and two angles instead, use the Sine Rule Calculator; to solve a whole triangle, the Triangle Solver.
Ready to Put This Into Practice?
Now that you understand how it works, plug in your own numbers and get an instant, accurate result.
Use the Cosine Rule Calculator Now →