About the Triangle Calculator
Solving a triangle means finding all three sides and all three angles from the parts you are given. It is a core skill in trigonometry, used in surveying, navigation, engineering drawings and physics problems with forces at angles. The difficulty lies in recognising which case you have and which law to apply first.
This calculator handles every case taught in school and university courses. It names the case, shows the formula used for each unknown, and checks that the angles sum to 180° and that the law of sines ratios agree. For the famous ambiguous case, two sides and an angle that is not between them, it finds whether there are zero, one or two possible triangles and lists each one.
What does it mean to solve a triangle?
Label the triangle so that side is opposite angle , side opposite and side opposite . Solving the triangle means finding all six of these values. Three independent values that include at least one side are usually enough, because three angles alone fix the shape but not the size.
The cases are named by the given parts in order around the triangle: SSS (three sides), SAS (two sides and the angle between them), ASA (two angles and the side between them), AAS (two angles and a side not between them) and SSA (two sides and an angle not between them).
How to use the Triangle Calculator
- Label your triangle so each side letter matches the opposite angle letter.
- Enter exactly three known values; angles are in degrees.
- Leave the other three boxes empty.
- Press Solve triangle.
- Read the case, the steps, and every side, angle, the area and perimeter; for SSA, check whether two triangles are listed.
Formulas
Angle sum
Law of sines
Law of cosines
Area
Worked example: SSS: 3, 4, 5
The first example is the 3-4-5 triangle, an SSS case. The law of cosines gives , so , and similarly and . The area is and the perimeter is 12.
An SAS example has , and . Then , so , and the area is .
The solution below is generated by the same engine that powers the calculator above.
Final answer
How we read your problem
Side a is opposite angle A, b opposite B and c opposite C. This is the SSS case.
Step-by-step solution
Each angle from the law of cosines
Area and perimeter
Formulas used
Law of sines
Law of cosines
Area
Three measurements including a side normally fix a triangle. Two sides with a non-included angle (SSA) can give zero, one or two triangles.
Verification
- Triangle 1: angles sum to 180°; a/sin A = 5 = c/sin C = 5.
Detailed explanation
Which law to use
Use the law of cosines when you know all three sides (SSS) or two sides and the angle between them (SAS). In both cases the law of sines has no complete ratio to start from. Using the law of cosines for the remaining angles also avoids a pitfall: an angle's sine cannot tell an acute angle from its obtuse partner, but its cosine can.
Use the law of sines when you know two angles and a side (ASA or AAS). First find the third angle from the angle sum, then each unknown side from a complete ratio. With , and , the third angle is and .
The ambiguous case (SSA)
Given , and , the law of sines gives . Two angles have this sine: about 49.886° and its supplement, about 130.114°. Both leave room for a positive third angle, so two different triangles fit the data, one with and one with .
If the side opposite the given angle is too short, comes out greater than 1 and no triangle exists; with , and , it would be about 1.53. If the side is long enough, as with , and , the obtuse candidate makes the angles exceed 180°, so exactly one triangle exists.
Checking a solution
A correct solution satisfies several checks. The angles add to 180°, the largest side is opposite the largest angle, and the three ratios , and are equal; that common ratio is the diameter of the circumscribed circle.
For SSS input, the triangle inequality must hold: each side must be shorter than the sum of the other two. Lengths 1, 2 and 3 fail because the two short sides lie flat along the long one, so the calculator reports that no triangle exists.
Common mistakes
- Mislabelling sides so that a is not opposite A.
- Using the law of sines to find an obtuse angle and getting its acute partner instead.
- Forgetting the second solution in the ambiguous SSA case.
- Leaving a handheld calculator in radian mode.
- Rounding an intermediate side before using it to find the next angle.
Tips
- Sketch the triangle roughly to scale before calculating.
- Find the largest angle first with the law of cosines when you have SSS.
- In SSA problems, compare the side opposite the given angle with the other given side to anticipate the number of triangles.
- For right triangles, the Pythagorean theorem calculator gives exact radical answers.
- The area formula ½ab sin C works with any two sides and the angle between them.
Frequently asked questions
How many values do I need to solve a triangle?
Three, including at least one side. Three angles alone describe the shape but allow triangles of any size.
When should I use the law of sines instead of the law of cosines?
Use the law of sines when you know an angle and its opposite side, as in ASA, AAS and SSA. Use the law of cosines for SSS and SAS, where no such pair is known.
What is the ambiguous case in trigonometry?
It is the SSA case, two sides and a non-included angle. The data can describe no triangle, one triangle or two different triangles, because an acute angle and its supplement share the same sine.
How do I find the area of a triangle without the height?
Use Area = ½ab sin C with two sides and the angle between them, or Heron's formula when you know all three sides.
Why does the calculator say no triangle exists?
Either the sides break the triangle inequality, the given angles already add to 180° or more, or in SSA the side opposite the angle is too short to reach the third side.
Can the triangle calculator handle obtuse triangles?
Yes. It uses the law of cosines wherever an angle could be obtuse, so angles larger than 90° are found correctly.
What is the common ratio in the law of sines?
The ratio a/sin A equals the diameter of the triangle's circumscribed circle, so it is the same for all three side–angle pairs.
Solve your triangle
Enter any three sides or angles above, including at least one side, to get the complete triangle.