Triangle solver: enter three known values, get the rest, the area and the working step by step
Solve a triangle
Enter any three values, at least one of them a side. Side a is opposite angle A, side b is opposite B, side c is opposite C.
Working: how to write it down
Perimeter and area
Heights, medians, angle bisectors and radii
📚 Theory: how to solve a triangle
Notation. The vertices are A, B, C. Side a = BC is opposite vertex A and angle A, b = AC is opposite B, c = AB is opposite C. The angles add up to A + B + C = 180°. The longer side is opposite the larger angle.
Law of cosines (cosine rule): a² = b² + c² − 2bc·cos A. It gives the third side when two sides and the angle between them are known, and any angle from three sides: cos A = (b² + c² − a²)/(2bc). If the cosine is negative, the angle is obtuse. For A = 90°, cos A = 0 and the law becomes Pythagoras' theorem: a² = b² + c².
Law of sines (sine rule): a/sin A = b/sin B = c/sin C = 2R, where R is the radius of the circumscribed circle. Use it when you know a side and the angle opposite it: from one side and two angles you get the other two sides.
Two sides and an angle not between them is the ambiguous case. The law of sines gives sin B = b·sin A/a. If sin B > 1, there is no triangle. If sin B = 1, there is one, and it is right-angled. If sin B < 1, angle B can be acute (B₁) or obtuse (B₂ = 180° − B₁), and each works if the two angles add up to less than 180°. The calculator checks both and shows every triangle.
Area: S = a·hₐ/2; S = ab·sin C/2 from two sides and the angle between them; Heron's formula S = √(s(s − a)(s − b)(s − c)), where s = (a + b + c)/2 is the semi-perimeter; for a right triangle, half the product of the legs. Circumradius and inradius: R = abc/(4S), r = S/s. The area is written S here because A is an angle.
Common mistakes: pairing a side with the wrong angle (here a side and its opposite angle share a colour); a calculator in radians instead of degrees; rounding in the middle of the working, so the answer misses the mark scheme; losing the second triangle in the ambiguous case.
You can type 2.5, roots (√3, 2√3) and fractions (3/4); angles are in degrees. The working keeps exact values (√39, 10√3) and only the approximate answer is rounded: to 1, 2 or 3 decimal places or 3 significant figures, as the question asks.
Frequently asked questions
Is it free to use?
Yes, this calculator is free and needs no sign-up. Everything is calculated right in your browser, not on a server.