How to use the Triangle Calculator
- Pick what you know: SSS, SAS, ASA, AAS, SSA or a right triangle.
- Choose degrees or radians, then type the three known values (or any two for a right triangle). Side a is always opposite angle A.
- Read the missing sides and angles, the area by Heron’s formula, the perimeter, the three heights and the inradius and circumradius. The answer updates as you type.
- Check the drawing to scale and the step-by-step working. For SSA, compare both triangles when the ambiguous case gives two answers.
How to solve a triangle
A triangle has six parts: three sides (a, b, c) and three angles (A, B, C). Here side a is opposite angle A, b is opposite B and c is opposite C, the same convention as NCERT class 11 trigonometry. Three independent parts, including at least one side, fix the triangle. The calculator uses three standard results:
| Known parts | Method | Number of triangles |
|---|---|---|
| SSS (three sides) | Cosine rule for two angles, then the angle sum | 1 if the triangle inequality holds, otherwise 0 |
| SAS (two sides, angle between them) | Cosine rule for the third side, then the cosine rule for an angle | Always 1 |
| ASA / AAS (two angles, one side) | Angle sum for the third angle, then the sine rule | 1 if the angles add to less than 180° |
| SSA (two sides, angle not between them) | Sine rule for the second angle | 0, 1 or 2 (the ambiguous case) |
| Right triangle | Pythagoras and sin, cos, tan | 1 |
For SSS and SAS the calculator finds angles with the cosine rule rather than the sine rule. The inverse sine cannot tell an acute angle from an obtuse one, but the inverse cosine can.
Heron's formula, heights and the two radii
Worked example (SSS): a = 5, b = 6, c = 7. Then s = 9 and Area = √(9 × 4 × 3 × 2) = √216 = 14.6969. The cosine rule gives cos A = (36 + 49 − 25)/84 = 0.714286, so A = 44.4153°. Similarly B = 57.1217° and C = 78.4630°. The inradius is r = 14.6969/9 = 1.6330, the circumradius is R = 210/(4 × 14.6969) = 3.5722 and the height to side c is hc = 2 × 14.6969/7 = 4.1991. All angles are under 90° and all sides differ, so it is a scalene acute triangle.
Inside the calculator Heron's formula is evaluated in a rearranged, numerically stable form. This keeps very thin triangles accurate, where the textbook form can lose digits to rounding.
The SSA ambiguous case
Given a, b and angle A, the sine rule gives sin B = b·sin A / a. Three things can happen:
- sin B > 1: no triangle. Side a is too short to reach the base.
- sin B = 1: exactly one triangle, and B = 90°.
- sin B < 1: B can be acute (B₁) or obtuse (B₂ = 180° − B₁). Each value counts only if A + B < 180°. When both pass you get two different triangles.
Example: a = 5, b = 6, A = 40° gives sin B = 6 sin 40° / 5 = 0.771345, so B₁ = 50.4748° and B₂ = 129.5252°. Both satisfy A + B < 180°, so the calculator shows two triangles with c = 7.7784 and c = 1.4142. If a ≥ b, only the acute value of B can work, so there is never more than one triangle.
Right triangles: Pythagoras and trig ratios
With the right angle at C, c is the hypotenuse and c² = a² + b². The trig ratios follow from the sides: sin A = a/c, cos A = b/c and tan A = a/b. Enter any two values, such as two legs, a leg and the hypotenuse, or a side and an acute angle. The classic 3-4-5 triangle gives A = 36.8699°, B = 53.1301° and area 6.
Common mistakes
- Mixing up labels. Side a must be opposite angle A. With SAS, the angle you enter must be the one between the two sides.
- Leaving the calculator in the wrong mode. sin 30 in radians is −0.988, not 0.5. Use the degrees and radians switch.
- Rounding too early. Keep four or more decimal places until the final answer.
- Ignoring the triangle inequality. 2, 3 and 6 cannot form a triangle, because 2 + 3 < 6.
Exam tips (class 10, class 11 and JEE)
- Learn the side ratios of the standard triangles. A 30-60-90 triangle has sides 1 : √3 : 2, and a 45-45-90 triangle has sides 1 : 1 : √2.
- JEE problems often use r = 4R sin(A/2) sin(B/2) sin(C/2) and Area = abc/(4R). Use this tool to check your answers.
- For heights-and-distances questions in class 10, draw the right triangle first, then use tan for angle-of-elevation problems.
Frequently asked questions
How do I find the third side of a triangle?
What is the ambiguous case of the sine rule?
How do I find the area of a triangle with three sides?
Can any three lengths make a triangle?
What is the difference between inradius and circumradius?
How do I know if a triangle is acute, right or obtuse from its sides?
Last reviewed November 2026. Results are estimates for information only — see our disclaimer.