Triangle Side Calculator
Missing sides and angles from SSS, SAS, ASA, AAS or SSA — with the right rule chosen for you
Pick the Rule From What You Are Given
Label each angle with a capital letter and the side opposite it with the matching lowercase letter. Then the given information decides the method:
| Given | Use |
|---|---|
| Two legs, or a leg and the hypotenuse of a right triangle | Pythagorean theorem |
| SSS (three sides) | Law of cosines, rearranged for an angle |
| SAS (two sides, included angle) | Law of cosines |
| ASA or AAS | Angles sum to , then law of sines |
| SSA (two sides, non-included angle) | Law of sines — ambiguous, check for two solutions |
| AAA | Shape only; sides are not determined |
Existence conditions. Angles must sum to exactly , and every side must satisfy the triangle inequality: for all three pairings. If a computed side or angle violates either, no such triangle exists — a valid answer, not a mistake.
The Two Laws
Law of cosines — works for every triangle and reduces to Pythagoras when :
The rearranged form is safe for finding angles because returns values across the full to range, so an obtuse angle comes out correctly signed.
Law of sines — needs a complete side–angle pair:
The ambiguous case. Given SSA, only ever returns an acute angle, but . So after computing , also test : if , a second valid triangle exists and both must be reported. When , no triangle exists.
Safe habit: solve for the largest unknown angle with the law of cosines, then use the law of sines for the rest — that avoids the ambiguity entirely.
Common Mistakes to Avoid
- Reporting one answer in the SSA case. Always test the obtuse partner before deciding.
- Calculator in the wrong mode. Degrees and radians produce completely different sides; in degrees but in radians.
- Misusing the law of cosines as with the wrong angle. must be the angle between and .
- Applying Pythagoras to a non-right triangle. It is only the special case of the law of cosines.
- Rounding intermediates. Carry full precision and round once at the end; rounding to shifts in the second decimal.
- Pairing a side with the wrong angle. In the law of sines, must be opposite .
示例题目
常见问题
If you know the angle between the two known sides, use the law of cosines: c^2 = a^2 + b^2 - 2ab cos C. If instead you know an angle opposite a known side, find the remaining angles first and use the law of sines.
Only in the SSA case — two sides and an angle not between them. Because sin B equals sin(180 - B), the arcsine result and its obtuse partner can both give valid triangles. Check whether A plus the obtuse partner is still under 180 degrees.
No. The triangle inequality requires the sum of any two sides to exceed the third. Lengths of 2, 3 and 9 fail because 2 + 3 is less than 9, so no triangle exists.
Prefer the law of cosines rearranged as cos C = (a^2 + b^2 - c^2)/(2ab). Its arccosine covers 0 to 180 degrees, so obtuse angles come out correctly, whereas arcsine in the law of sines only ever returns an acute value.
相关求解器
相关学习指南
免费试用 AI-Math
任何数学问题都能获得分步解答。拍照上传或输入问题即可。
开始解题