Solve triangles — SSS, SAS, ASA, SSA. Laws of sines and cosines, area formulas.
Updated Oct 17, 20262 min read
Right triangle
Pythagorean
a² + b² = c² (hypotenuse c)
sin θ
= opposite / hypotenuse
cos θ
= adjacent / hypotenuse
tan θ
= opposite / adjacent
Area
= ½ · base · height
Any triangle
Law of sines
a / sin A = b / sin B = c / sin C = 2R (circumradius)
Law of cosines
c² = a² + b² − 2ab · cos C
Area (SAS)
= ½ · a · b · sin C
Area (Heron)
= √(s(s−a)(s−b)(s−c)), s = (a+b+c)/2
Sum of angles
A + B + C = 180°
Solving strategies
Given
Strategy
SSS (3 sides)
Law of cosines to find any angle; law of sines for others
SAS (2 sides + included angle)
Law of cosines for third side; law of sines for remaining angles
ASA / AAS
Sum of angles for third angle; law of sines for sides
SSA (ambiguous case)
Law of sines — may yield 0, 1, or 2 solutions
Useful points
Incenter
Intersection of angle bisectors — inscribed circle
Circumcenter
Intersection of perpendicular bisectors — circumscribed circle
Centroid
Intersection of medians — center of mass
Orthocenter
Intersection of altitudes
Worked examples
SAS. Given a = 7, b = 10 and C = 40°. Law of cosines: c² = 49 + 100 − 2 × 7 × 10 × cos 40° = 149 − 140 × 0.7660 = 41.75, so c = 6.46. For angle A use the law of sines: sin A = 7 × sin 40° / 6.46 = 7 × 0.6428 / 6.46 = 0.6963, so A = 44.1° and B = 180° − 40° − 44.1° = 95.9°. Check: 7 / sin 44.1° = 10.05 and 10 / sin 95.9° = 10.05, equal as the law requires.
Area two ways. From the two sides and the included angle: ½ × 7 × 10 × sin 40° = 35 × 0.6428 = 22.5. Using Heron with s = (7 + 10 + 6.46) / 2 = 11.73: √(11.73 × 4.73 × 1.73 × 5.27) = √506.2 = 22.5. They agree.
The ambiguous SSA case. Given A = 30°, a = 5, b = 8: sin B = 8 × sin 30° / 5 = 0.8, so B = 53.13° or B = 180° − 53.13° = 126.87°. Both are valid because 30° + 126.87° is still under 180°, giving two different triangles. If the side opposite the given angle were 4 (exactly 8 × sin 30°), there would be one right triangle; below that, none.
Common mistakes
Wrong angle mode. A calculator set to radians gives nonsense for degree inputs, and vice versa.
Taking arcsin as the only answer. Inverse sine returns angles up to 90°; an obtuse angle with the same sine is also possible, which is the source of the SSA ambiguity.
Using the law of sines when the law of cosines is needed. With SSS or SAS you do not have an angle and its opposite side as a pair, so start with cosines.
Rounding early. Carry extra digits until the final answer; small rounding in an angle becomes a visible error in a side.
Skipping the sum check. Angles must total 180° and the largest side must face the largest angle.
Was this article helpful?
Cookies & ads
Tools run client-side — your inputs stay in your browser. No ad network is installed, so no ad cookies are set. Choose what this site may store on your device. Privacy · Cookies
Essential StorageTheme, consent state, CSRF tokens. Required for the site to work.
Always on
PersonalizationRecently used tools, custom colors, accessibility preferences. Stored locally on your device.
AdvertisingOnly applies if an ad network is installed. None is today, so no ad cookies are set either way. Details.
AnalyticsAggregate, anonymous page-view counts so we know which tools to improve.
AI IntegrationStores your API key locally for optional AI features. Key never leaves your device.