Formula and Method for Finding a Triangle Side
When you know two sides of a triangle and the angle between them (the included angle), you can find the length of the third side with the Law of Cosines: c² = a² + b² − 2ab·cos(C), where a and b are the two known sides, C is the angle between them, and c is the unknown side opposite that angle. Unlike the Pythagorean theorem, which only works on right triangles, the Law of Cosines works on any triangle — acute, obtuse, or right.
How the calculation works
Enter the two known sides (a and b) and the angle between them (C, in degrees). The calculator squares each side, subtracts twice their product times the cosine of the included angle, and takes the square root to get side c. Once c is known, the remaining angle A (opposite side a) is recovered from the Law of Cosines rearranged as cos(A) = (b² + c² − a²) / (2bc), and angle B follows from the triangle angle sum: B = 180° − C − A. Adding all three sides gives the perimeter.
Common mistakes
- Using the angle that isn't between the two known sides: the Law of Cosines in this form requires C to be the included angle — the one formed by sides a and b. Using a non-included angle here gives the wrong side.
- Forgetting to convert degrees/radians: if your angle is measured in radians, convert to degrees (or adjust the formula) before entering it, since this calculator expects degrees.
- Entering an impossible angle: the included angle must be strictly between 0° and 180°; values outside that range don't correspond to a real triangle.
Real-world applications
- Surveying and land measurement use the Law of Cosines to find an unmeasured property boundary from two measured sides and the angle between them.
- Navigation and aviation use it to compute distances between two points when the bearing (angle) and two known legs are available.
- Engineering and construction use it to solve truss and framing geometry where a direct measurement of one side is impractical.
- Physics uses the same formula (as the "law of cosines" form of vector addition) to find the resultant of two vectors given their magnitudes and the angle between them.