Trigonometry
How to Solve Any Triangle, Case by Case
By MathSolver Pro Editorial Team · Published
To solve a triangle is to find all three sides and all three angles from the parts you are given. Which tool to use depends on which three parts you know, so the first step is always to identify the case.
What it means to solve a triangle
Every triangle has six parts: three sides and three angles. In general, knowing three of them, including at least one side, fixes the triangle, and the other three can be calculated. Knowing only the three angles is not enough, because similar triangles of every size share the same angles; that case is sometimes called AAA and has no unique solution.
The known parts are described by the order in which they appear around the triangle. ASA means two angles with the side between them; SAS means two sides with the angle between them. The six possible patterns, and the tool for each, are:
- Right triangle with any two other parts: basic ratios and the Pythagorean theorem.
- AAS or ASA: angle sum, then the law of sines.
- SAS: the law of cosines for the third side, then the remaining angles.
- SSS: the law of cosines for the angles.
- SSA: the law of sines with a check for zero, one or two triangles.
- AAA: shape only, no unique size.
Always sketch the triangle and label the given parts before choosing a method. Most errors come from pairing a side with the wrong angle.
Right triangles: SOH CAH TOA
In a right triangle, for an acute angle , the three basic ratios relate the angle to the sides: the opposite side, the adjacent side and the hypotenuse.
Example 1: hypotenuse 10, one angle
- Opposite side: .
- Adjacent side: .
- Other acute angle: .
- Check: .
Example 2: height of a tree from its shadow
- A tree casts an 18 m shadow when the sun is above the horizon.
- The height is opposite the angle and the shadow is adjacent, so use tangent: m.
To find an angle, use an inverse ratio. A 3, 4, 5 right triangle has its smaller acute angle at .
Two angles and a side (AAS, ASA)
Find the third angle by subtracting from . You then have every angle and one side, which is a complete pair for the law of sines:
Example 3 (ASA): , ,
- .
- .
- , so the triangle is isosceles and without further calculation.
These cases always have exactly one solution, provided the two given angles add to less than .
Two sides and the included angle (SAS)
Use the law of cosines to find the side opposite the known angle. Then find a second angle. The safest choice is the angle opposite the shorter of the two original sides, because it must be acute, so the inverse sine gives it without ambiguity.
Example 4: , ,
- , so .
- Since is obtuse, and are both acute. gives .
- .
- Check: the longest side, 19.79, faces the largest angle, .
Three sides (SSS)
First confirm the sides satisfy the triangle inequality: each side must be shorter than the sum of the other two. Then use the cosine form of the law of cosines, starting with the angle opposite the longest side:
Example 5: sides 6, 8 and 9
- Angle opposite 9: , so .
- Angle opposite 6: , so .
- Angle opposite 8: .
- All three angles are acute, as predicted by .
Two sides and a non-included angle (SSA)
This is the ambiguous case. Solve for the unknown angle with the law of sines, , and then examine the result:
- If , no triangle exists.
- If , there is one right triangle.
- If , test both and . Each one that leaves a positive third angle gives a valid triangle.
For example, , and give , so or . Both leave room for a third angle, so there are two triangles. The law of sines article works both of them out in full, along with the no-triangle and one-triangle cases.
Angles of elevation and depression
Many applied problems describe angles measured from the horizontal. An angle of elevation is measured upwards to an object; an angle of depression is measured downwards. Because the horizontal lines at the observer and at the object are parallel, the angle of depression from A to B equals the angle of elevation from B to A.
Example 6: a road's rise
- A straight road climbs at for 200 m measured horizontally. How much height does it gain?
- Rise m.
- As a grade, that is about 5.2 percent, since .
Problems with two observations, such as sighting the top of a building from two points along the ground, are solved by combining a right triangle with an oblique one, often using the law of sines in the oblique part.
A checklist for every answer
- The three angles add to .
- The longest side is opposite the largest angle, and the shortest side opposite the smallest.
- Every side is shorter than the sum of the other two.
- Recomputing one side with the other law gives the same value, up to rounding.
- Answers are rounded only at the end, to the precision the question asks for.
Once a triangle is solved, its area follows from using any two sides and the angle between them. The law of cosines calculator solves all the oblique cases with steps, and the distance formula calculator handles triangles given by coordinates.
Rounding and precision
Triangle problems chain several calculations together, so small rounding errors early on can grow into visible differences at the end. Keep full calculator precision for every intermediate value, either by storing results in memory or by writing at least four significant figures. Round only the final answers, and round them to the precision the question asks for, usually one or two decimal places for angles in degrees and a sensible number of significant figures for lengths.
Because of rounding, the three angles you report may add to or . That is not an error in method. If the sum is off by a whole degree or more, though, something has gone wrong, most often a side paired with the wrong angle or a missed obtuse solution. A second independent calculation, such as finding the last side with both laws, is the most reliable way to confirm that your answer is right.
Frequently asked questions
How many parts do I need to solve a triangle?
Three, including at least one side. Three angles alone determine only the shape. The SSA arrangement may give zero, one or two triangles, so it needs an extra check.
Which law should I start with for an oblique triangle?
If you have a side and its opposite angle, start with the law of sines. If you have SAS or SSS, there is no such pair, so start with the law of cosines.
Why find the largest angle first in SSS problems?
Only the largest angle can be obtuse. Finding it with the inverse cosine identifies it correctly, and the other two angles are then certain to be acute, so no ambiguity remains.
Can a triangle be solved from three angles?
Not uniquely. Every enlargement of the triangle has the same angles, so you can find the ratios of the sides but not their lengths. One side length is needed to fix the size.
What does SOH CAH TOA stand for?
It is a memory aid for the right triangle ratios: Sine is Opposite over Hypotenuse, Cosine is Adjacent over Hypotenuse, and Tangent is Opposite over Adjacent.