ASA or AAS
Two angles and a side
Law of sinesBoth laws solve any triangle, not only right ones. If you know an angle and the side across from it, use the law of sines. If you do not, use the law of cosines.
Law of sinesa / sin A = b / sin B = c / sin C
Law of cosinesc² = a² + b² − 2ab cos C
Look for a matched pair: an angle and the side opposite it. Matched pair, law of sines. No pair, law of cosines. In every picture below, the highlighted parts are the ones you know.
ASA or AAS
Two angles and a side
Law of sinesSSA
Two sides and an angle that is not between them
Law of sines, check for two answersSAS
Two sides and the angle between them
Law of cosinesSSS
All three sides
Law of cosinesAAA gives the shape but not the size, so three angles alone cannot fix a side length. If the triangle has a 90° angle, the Pythagorean theorem and SOH CAH TOA are faster.
The angle in the formula is the one between the two sides you square and add. The side by itself on the left is the one across from that angle. Swap the letters and you get three equivalent forms.
c² = a² + b² − 2ab cos C
a² = b² + c² − 2bc cos A
b² = a² + c² − 2ac cos B
SAS: find the third side
SSS: find an angle
When C = 90°, cos C = 0 and the formula collapses to a² + b² = c². The cosine is negative for angles over 90°, which is why obtuse triangles get a larger c² (see the unit circle for why).
Every side over the sine of its opposite angle is the same number. Pick the two fractions that contain only one unknown, then cross-multiply.
a / sin A = b / sin B = c / sin C
ASA or AAS: find a side
A = 48°, B = 65°, a = 12. Find b.
Need c? First C = 180° − 48° − 65° = 67°, then c = 12 · sin 67° / sin 48° ≈ 14.9.
Area from two sides and the angle between them: ½ · a · b · sin C. For the 8 and 11 triangle with a 40° angle, that is about 28.3 square units.
Given angle A, the side a across from it, and a second side b, swing side a like a gate. It can miss the base, touch it, or cross it twice. Compute the height first: h = b · sin A.
A = 30°, b = 10, a = 7. Then h = 5, and 5 < 7 < 10, so two triangles fit: B₁ ≈ 134.4° and B₂ ≈ 45.6°.
a < h The side falls short of the base. No triangle.
a = h It just touches. One right triangle.
h < a < b It crosses twice. Two triangles.
a ≥ b One crossing makes a triangle. One triangle.
Why two answers: sin B = (10 · sin 30°) / 7 ≈ 0.714, and an angle and its supplement (180° minus it) have the same sine, so B ≈ 45.6° or B ≈ 134.4°. Keep the second one only if it still fits: 30° + 134.4° is under 180°, so it does.
Triangle problems go wrong at step 2 far more than in the algebra. If a problem will not give way, photograph it and work through it with an AI trig tutor that shows each step and asks you why you chose that law. Then Stephen AI can quiz you on fresh SAS, SSA and SSS setups until the choice is automatic.
In any triangle, each side divided by the sine of its opposite angle gives the same number: a / sin A = b / sin B = c / sin C. Use it when you know an angle and the side across from it, plus one more piece. With A = 48°, B = 65° and a = 12, b = 12 · sin 65° / sin 48° ≈ 14.6.
It is the Pythagorean theorem with a correction term for any triangle: c² = a² + b² − 2ab cos C. Here C is the angle between sides a and b, and c is the side across from C. Use it when you know two sides and the angle between them (SAS), or all three sides (SSS).
Look for a matched pair, an angle and the side opposite it. If you have one, use the law of sines (cases AAS, ASA and SSA). If you do not, use the law of cosines (cases SAS and SSS). The law of sines needs a known ratio a / sin A to work from, and in SAS and SSS no side has a known opposite angle yet.
It happens with SSA, two sides and an angle that is not between them. The sine of an angle equals the sine of its supplement, so sin B = 0.714 gives both B ≈ 45.6° and B ≈ 134.4°. Depending on the side lengths there can be no triangle, one right triangle, one triangle, or two triangles. Always check whether the second angle still fits inside 180° with the given angle.
Given angle A, the side a opposite it, and the other side b, compute the height h = b · sin A. If a < h, there is no triangle. If a = h, there is one right triangle. If h < a < b, there are two triangles. If a ≥ b, there is exactly one triangle. With A = 30°, b = 10 and a = 7, h = 5, and 5 < 7 < 10, so there are two triangles.
Rearrange it to solve for the cosine: cos C = (a² + b² − c²) / (2ab), then take the inverse cosine. For sides 5, 7 and 9, the angle opposite 9 has cos C = (25 + 49 − 81) / 70 = −0.1, so C ≈ 95.7°. A negative cosine means the angle is obtuse. Find the largest angle first, because the other two are then guaranteed to be acute.
If C = 90°, then cos C = 0, so the term 2ab cos C vanishes and c² = a² + b² remains. The Pythagorean theorem is the special case of the law of cosines for right triangles.
Yes. Since sin 90° = 1, the law of sines gives a / sin A = c, which is the same as sin A = a / c, the right-triangle ratio. It works, but SOH CAH TOA and the Pythagorean theorem are usually quicker when there is a 90° angle.
With two sides and the angle between them, area = ½ · a · b · sin C. For sides 8 and 11 with a 40° angle between them, area = ½ · 8 · 11 · sin 40° ≈ 28.3 square units.
The most common cause is calculator mode. Set it to degrees unless the problem is in radians. The next causes are pairing a side with the wrong angle (the angle must be opposite), forgetting the square root at the end of the law of cosines, and subtracting 2ab cos C before multiplying (compute 2ab cos C first, then subtract it from a² + b²).
Label the triangle, choose the law, check SSA for a second answer. Stephen AI walks through each step with you and explains the ones you get stuck on.