Triangle Calculator

Enter any three known parts of a triangle, or two for a right triangle, and get every side, angle, area, height and radius with the working and a drawing to scale.

Free, no sign-upRuns in your browserUpdated November 2026
Angle unit

Side a is opposite angle A, b is opposite B and c is opposite C. Use any one length unit for all sides.

Solution
—
Step-by-step working
—

How to use the Triangle Calculator

  1. Pick what you know: SSS, SAS, ASA, AAS, SSA or a right triangle.
  2. Choose degrees or radians, then type the three known values (or any two for a right triangle). Side a is always opposite angle A.
  3. 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.
  4. 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:

Angle sum: A + B + C = 180° Law of sines: a/sin A = b/sin B = c/sin C = 2R Law of cosines: c² = a² + b² − 2ab·cos C
Known partsMethodNumber of triangles
SSS (three sides)Cosine rule for two angles, then the angle sum1 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 angleAlways 1
ASA / AAS (two angles, one side)Angle sum for the third angle, then the sine rule1 if the angles add to less than 180°
SSA (two sides, angle not between them)Sine rule for the second angle0, 1 or 2 (the ambiguous case)
Right trianglePythagoras and sin, cos, tan1

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

s = (a + b + c)/2 Area = √[s(s − a)(s − b)(s − c)] hₐ = 2·Area/a r = Area/s R = abc/(4·Area)

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?
If you know two sides and the angle between them (SAS), use the cosine rule: c² = a² + b² − 2ab cos C. If you know two angles and a side, first find the third angle from A + B + C = 180°, then use the sine rule. For a right triangle, use c² = a² + b².
What is the ambiguous case of the sine rule?
When you know two sides and an angle that is not between them (SSA), the sine rule can give two possible angles, B and 180° − B. If both satisfy A + B < 180°, two different triangles fit the data. The calculator checks both and shows each one.
How do I find the area of a triangle with three sides?
Use Heron's formula. Find the semi-perimeter s = (a + b + c)/2, then Area = √[s(s − a)(s − b)(s − c)]. For sides 5, 6 and 7, s = 9 and the area is √216 ≈ 14.70.
Can any three lengths make a triangle?
No. The sum of any two sides must be greater than the third side (the triangle inequality). For example, 3, 4 and 8 cannot form a triangle because 3 + 4 < 8.
What is the difference between inradius and circumradius?
The inradius r is the radius of the largest circle that fits inside the triangle, r = Area/s. The circumradius R is the radius of the circle through all three vertices, R = abc/(4·Area). For every triangle R ≥ 2r, with equality only for an equilateral triangle.
How do I know if a triangle is acute, right or obtuse from its sides?
Compare the square of the longest side c with a² + b². If c² < a² + b² the triangle is acute, if they are equal it is right-angled, and if c² > a² + b² it is obtuse.

Last reviewed November 2026. Results are estimates for information only — see our disclaimer.