Triangle Calculator: Solve Sides, Angles, and Ambiguous Cases
A student can find one SSA angle and stop, but a second triangle may also fit. A triangle calculator checks both inverse-sine candidates before it calls the answer complete.
The triangle calculator on this page solves SSS, SAS, ASA, AAS and SSA data, returns area and perimeter, and names the mistake behind a claimed solution.
Triangle Calculator
Pick the case that matches your givens, solve the missing parts, and check a claimed answer.
Side a faces angle A.
Side b faces angle B.
Side c faces angle C.
Angles are in degrees.
SSS: Three Sides
Known: a, b, c. First move: cosine rule for the angles.
The two shorter sides must add to more than the longest side.
Using the Triangle Calculator
The triangle calculator on this page starts from the given pattern, then shows each solved value.
SSS
Type three sides. Default: sides 5, 6 and 7 give angles 44.42 deg, 57.12 deg and 78.46 deg.
SAS
Type sides a and b with angle C between them. Default: a = 7, b = 9 and C = 60 deg give c = 8.185.
ASA and AAS
Type two angles and one labelled side. Default: A = 50 deg, B = 60 deg and c = 8 give C = 70 deg.
SSA
Type angle A, side a and side b. Default: A = 30 deg, a = 7 and b = 10 give two solutions.
Check My Answer
Type claimed sides and angles, with SSA givens when they apply. Default: sides 7, 10 and 13.56 with angles 30 deg, 45.58 deg and 104.42 deg fit, but the claim is incomplete.
Worked Examples
The worked rows below repeat the tool defaults.
| Mode | Default | Answer |
|---|---|---|
| SSS | Sides 5, 6 and 7 | Angles 44.42 deg, 57.12 deg and 78.46 deg |
| SAS | a = 7, b = 9, C = 60 deg | c = 8.185 |
| ASA and AAS | A = 50 deg, B = 60 deg, c = 8 | C = 70 deg, a = 6.522, b = 7.373 |
| SSA | A = 30 deg, a = 7, b = 10 | Two solutions |
| Claimed answer | Sides 7, 10 and 13.56 | Fits, but incomplete |
Reading the Result
The solved sides and angles come first, followed by area, perimeter and type. A verdict line names the failed check when a claimed solution does not fit.
What It Solves
The triangle calculator on this page uses standard notation: side a faces angle A, side b faces angle B, and side c faces angle C.
A valid result has positive side lengths and interior angles that add to 180 deg. The tool can return a missing side, a missing angle, area, perimeter and type when the givens fix the size. Three angles alone fix shape only, so at least one side must be given for a numeric size.
How to Calculate
The triangle calculator on this page chooses the starting rule from the given pattern.
The law of cosines starts SSS and SAS: a squared = b squared + c squared - 2bc cos A. The law of sines starts ASA, AAS and SSA once an angle and its opposite side are paired: a / sin A = b / sin B = c / sin C. When C = 90 deg, cos C = 0, so the cosine rule reduces to the square relationship in the Pythagorean theorem.
Choose the Starting Rule
| Case | First step | Reason |
|---|---|---|
| SSS | Cosine rule | No side-angle pair is known |
| SAS | Cosine rule | Two sides and the angle between them are known |
| ASA and AAS | Sine rule | The third angle comes from the 180 deg total |
| SSA | Sine rule | One angle and the side facing it are known |
SSS and SAS
The triangle calculator on this page tests the side pattern before it solves SSS or SAS data.
For SSS sides 5, 6 and 7, the triangle inequality passes because 5 + 6 is greater than 7. The angles are A = 44.42 deg, B = 57.12 deg and C = 78.46 deg. For SAS, a = 7, b = 9 and included angle C = 60 deg give c = 8.185, A = 47.78 deg and B = 72.22 deg. Sides 2, 3 and 5 fail because 2 + 3 = 5, so the figure is flat.
Check the Given Pattern
If 60 deg were read as facing a = 7 with b = 9, sin B would be 1.113, so no triangle would exist. The position of the angle changes the case.
| Case | Given | Result |
|---|---|---|
| SSS | Sides 5, 6 and 7 | A = 44.42 deg, B = 57.12 deg, C = 78.46 deg |
| SAS | a = 7, b = 9, C = 60 deg | c = 8.185, A = 47.78 deg, B = 72.22 deg |
| Flat sides | Sides 2, 3 and 5 | No triangle |
ASA and AAS
The triangle calculator on this page finds the third angle before it scales the sides.
With A = 50 deg and B = 60 deg, the angle sum leaves C = 70 deg. With c = 8, the sine rule gives a = 6.522 and b = 7.373. A claimed C = 80 deg is wrong because 50 + 60 + 80 = 190. With the same angles and c = 16, the sides double to a = 13.043 and b = 14.746.
| Given | Third angle | Sides |
|---|---|---|
| A = 50 deg, B = 60 deg, c = 8 | C = 70 deg | a = 6.522, b = 7.373 |
| A = 50 deg, B = 60 deg, c = 16 | C = 70 deg | a = 13.043, b = 14.746 |
| A = 50 deg, B = 60 deg, claimed C = 80 deg | Total 190 deg | No triangle |
SSA and Two Answers
The triangle calculator on this page tests both inverse-sine candidates in SSA data.
For A = 30 deg, a = 7 and b = 10, sin B = 5/7. This ambiguous case gives B = 45.58 deg with C = 104.42 deg and c = 13.559, or the supplementary angle B = 134.42 deg with C = 15.58 deg and c = 3.761. For A = 30 deg, a = 4 and b = 10, sin B = 1.25, so no triangle exists. For A = 30 deg, a = 5 and b = 10, B = 90 deg, C = 60 deg and c = 8.660.
Compare With the Height
The height is h = b sin A. For the default, h = 5 and 5 is less than 7, while 7 is less than 10, so two triangles fit.
| SSA data | Test | Answers |
|---|---|---|
| A = 30 deg, a = 7, b = 10 | sin B = 5/7 | Two solutions |
| A = 30 deg, a = 4, b = 10 | sin B = 1.25 | No triangle |
| A = 30 deg, a = 5, b = 10 | B = 90 deg | One solution |
Area, Perimeter and Type
The triangle calculator on this page returns area, perimeter and type after the sides and angles are solved.
For sides 5, 6 and 7, the semiperimeter is s = 9. The Heron formula gives area = sqrt(9 x 4 x 3 x 2) = 14.6969, shown as 14.70. The perimeter is 18, and the type is acute and scalene. For the SAS default, area = 27.28 and perimeter = 24.185. Half of 5 x 6 = 15 is not the SSS area, because side 6 is not a height on base 5.
Check a Claimed Answer
The triangle calculator on this page checks a claimed solution before it accepts it.
Claimed sides 2, 3 and 5 fail the strict side test. Claimed angles 50 deg, 60 deg and 80 deg fail because the total is 190 deg. For sides 9 and 4.5 with angle 50 deg between them, c = 7.013 and the angle facing side 9 is 100.56 deg, not 79.44 deg. The default SSA claim fits one triangle, but it is incomplete because c = 3.761 also fits.
| Claim | Verdict |
|---|---|
| Sides 2, 3 and 5 | Wrong, flat figure |
| Angles 50 deg, 60 deg and 80 deg | Wrong, total 190 deg |
| Angle facing side 9 claimed 79.44 deg | Wrong, correct value 100.56 deg |
| SSA default claimed once | Fits, but incomplete |
Angle Units and Final Values
The triangle calculator on this page reads angle inputs in degrees.
A value given in radians must be converted before it is typed. Keep full values until the final step, because rounding early can shift an angle. The checks are sin 60 deg = 0.8660, sin 60 rad = -0.3048, and pi/2 rad = 90 deg. In the SAS default, c = 8.1853527719 gives A = 47.7837 deg, while c rounded to 8.2 gives A = 47.7507 deg.
Use It in Real Problems
The triangle calculator on this page fits the same case checks to plots, braces and sight lines.
A triangular plot with sides 5, 6 and 7 has perimeter 18 and area 14.70. A brace setup with sides 7 and 9 and angle 60 deg between them needs c = 8.185. Two sight angles of 50 deg and 60 deg with side c = 8 give a = 6.522 and b = 7.373.
A Survey Problem
If the known side doubles to c = 16 while the angles stay 50 deg and 60 deg, the other sides become 13.043 and 14.746. The shape is the same, but the size is not.
Why Answers Can Differ
Answers differ when flat sides are accepted, when three angles do not add to 180 deg, or when a side is paired with the wrong angle. They also differ when the acute inverse-sine candidate is kept without testing its partner, when rad values are typed as deg values, or when early rounded values are reused. The tool on this page checks those cases before it returns a value.
Questions Students Ask
These questions cover the case choices students meet most often, with checked numbers.
How can I tell SSA has two answers without testing both?
Compare a with h = b sin A. For A = 30 deg, a = 7 and b = 10, h = 5 and 5 is less than 7, while 7 is less than 10, so two triangles fit.
Why did inverse sine give an angle that made the total short?
For sides 9 and 4.5 with angle 50 deg between them, c = 7.013. The angle facing side 9 is 100.56 deg, not the acute candidate 79.44 deg.
Which rule starts each case?
SSS and SAS start with the cosine rule. ASA, AAS and SSA start with the sine rule after the third angle or the paired side is identified. The SAS default gives c = 8.185.
Can sides 2, 3 and 5 form a triangle?
No. The sum 2 + 3 equals 5, so the figure is flat. The two shorter sides must pass the longest side, not merely reach it.
Why do three angles not fix one size?
Angles fix shape only. Angles 50 deg, 60 deg and 70 deg with c = 8 give a = 6.522 and b = 7.373, while c = 16 gives a = 13.043 and b = 14.746.
Which angle unit should I use?
Match the unit in the problem. The checks are sin 60 deg = 0.8660, sin 60 rad = -0.3048, and pi/2 rad = 90 deg.
Frequently Asked Questions
Final Thought
The triangle calculator on this page keeps the case, the paired sides and angles, and the verdict visible, so each answer can be audited instead of guessed. Start by naming the case you have, then pair each side with its opposite angle before solving. In SSA problems, test both inverse-sine candidates, since a second triangle may also fit the same data. Keep angle units consistent, avoid reusing early rounded values, and check that the angles and sides agree before accepting the result. Compare the height with the given side when the ambiguous case is unclear.
