"Solving" a triangle means finding every side and angle from just three known values โ€” and which formula you need depends entirely on which three values you're starting with.

What "Solving a Triangle" Means

Any triangle has six measurements: three sides and three angles. Knowing any three of them (as long as they're not all three angles, which doesn't fix a triangle's size) is usually enough to calculate the other three โ€” but the method depends on which three you know. One case needs care: two sides plus an angle that is not between them (SSA) can match two different triangles, or none at all, so always check both possibilities when solving it with the Law of Sines.

SSS: Three Sides Known

When all three sides are known, the Law of Cosines finds each angle: cยฒ = aยฒ + bยฒ โˆ’ 2abยทcos(C), rearranged to solve for the angle instead of the side.

SAS: Two Sides and the Included Angle

When you know two sides and the angle between them, the Law of Cosines finds the third side directly, then the Law of Sines finds the remaining angles.

Right Triangles: A Simpler Special Case

KnownMethod
Two legsPythagorean theorem: cยฒ = aยฒ + bยฒ
One leg + hypotenusePythagorean theorem, solved for the missing leg
One side + one angleBasic trigonometry (sine, cosine, tangent)
Why right triangles are simpler: the 90ยฐ angle removes a degree of freedom, so the Pythagorean theorem and basic trig ratios solve them directly, without needing the more general Law of Cosines or Law of Sines.

Once You Have All Sides and Angles

With a fully solved triangle, area follows easily โ€” either the classic ยฝ ร— base ร— height for right triangles, or Heron's formula (using all three sides) for any triangle regardless of type.

Worked Examples

Three Sides Known (SSS)

Take sides a = 7, b = 8, c = 9. With the law of cosines, cos A = (b² + c² − a²) ÷ (2bc) = (64 + 81 − 49) ÷ 144 = 0.6667, so A is about 48.19°. Likewise cos B = (49 + 81 − 64) ÷ 126 = 0.5238, so B is about 58.41°. The last angle is 180 − 48.19 − 58.41 = 73.40°. As a check, cos C = (49 + 64 − 81) ÷ 112 = 0.2857, which gives 73.40° as well.

Two Sides and the Angle Between (SAS)

Take a = 5, b = 7 and C = 60°. Then c² = 25 + 49 − 2 × 5 × 7 × cos 60° = 74 − 35 = 39, so c is about 6.245. The area is ½ × 5 × 7 × sin 60°, about 15.16.

A Right Triangle

Legs of 6 and 8 give a hypotenuse of √(36 + 64) = 10. The angles are arctan(6 ÷ 8) = 36.87° and 53.13°, which add up to 90°.

When No Triangle Exists

The two shorter sides must add up to more than the longest. Sides of 2, 3 and 6 fail, because 2 + 3 = 5 is less than 6, so no triangle can be built. The angles must always total 180°, which is a quick check on any answer.

Check your own triangles with the triangle calculator.