About Triangle Calculator
This triangle calculator is free, needs no sign-up and runs in your browser, so the numbers you type are never uploaded. Choose which three values you know (three sides, two sides and the angle between them, two angles and a side, or two sides and a non-included angle) and it solves the rest with the law of cosines and the law of sines, showing each step.
Besides the missing sides and angles it reports the area two ways (Heron’s formula and one half a b sin C), the perimeter, the three heights, the three medians, the inscribed and circumscribed circle radii, and whether the triangle is acute, right or obtuse and scalene, isosceles or equilateral. A scaled drawing shows the result with every side and angle labelled.
The SSA case is handled honestly: when the data fits two different triangles, both are shown, each with its own steps and diagram. A separate right triangle mode solves from any two values, such as two legs or a hypotenuse and an acute angle.
How to use Triangle Calculator
- Pick the mode that matches what you know: SSS, SAS, ASA, AAS, SSA or Right triangle.
- Type the three values in the boxes. Sides a, b, c sit opposite angles A, B, C. In right mode fill exactly two boxes.
- Choose a length unit and whether angles are in degrees or radians. Changing the angle unit converts the numbers you already typed.
- Read the sides, angles, area and other measures, and compare them with the scaled diagram.
- Open the step-by-step working to see each law of cosines or law of sines line, then Heron’s formula for the area.
- In SSA mode, check whether one solution, two solutions or none appear, and read the note that explains why.
Features
- Six modes: SSS, SAS, ASA, AAS, SSA and right triangle.
- Both solutions shown in the ambiguous SSA case, each with a diagram and its own working.
- Area by Heron’s formula and by one half a b sin C, which agree.
- Perimeter, three heights, three medians, inradius and circumradius.
- Triangle type by angles (acute, right, obtuse) and by sides (scalene, isosceles, equilateral).
- A scaled, labelled SVG diagram that follows light and dark mode.
- Degrees or radians, and eight length units from millimetres to miles.
- Clear messages when the values cannot form a triangle, instead of a wrong answer.
- Worked examples and KaTeX formulas for every step.
The formulas the calculator uses
Sides are written a, b, c and the angle opposite each is A, B, C. The law of cosines finds a side from two sides and the included angle, or an angle from three sides. The law of sines links each side to the sine of its opposite angle.
Heron’s formula gives the area from the three sides alone, with s as the semi-perimeter.
c² = a² + b² − 2ab cos C
a / sin A = b / sin B = c / sin C
s = (a + b + c) / 2
Area = √(s(s − a)(s − b)(s − c)) = ½ ab sin C
r = Area / s R = abc / (4 · Area)Worked examples
SSS: a = 3, b = 4, c = 5 gives A = 36.87°, B = 53.13°, C = 90°
A right triangle with area 6, perimeter 12, inradius 1 and circumradius 2.5.
SSS: a = 13, b = 14, c = 15 gives Area = 84
Heron’s formula: s = 21, so the area is √(21 · 8 · 7 · 6) = 84.
SAS: a = 5, C = 40°, b = 7 gives c = 4.5141, A = 45.4°, B = 94.6°
The law of cosines gives the third side, then the angles.
SSA: a = 6, b = 8, A = 30° gives Two triangles: B = 41.81° or 138.19°
Side a is shorter than b but longer than b sin A = 4, so c = 11.4003 or c = 2.4561.
Right triangle: hypotenuse 10, A = 30° gives a = 5, b = 8.6603
Opposite leg = c sin A and adjacent leg = c cos A.
Which mode for which data
| Mode | You know | Solutions |
|---|---|---|
| SSS | Three sides | One, if the triangle inequality holds |
| SAS | Two sides and the angle between them | Always one |
| ASA | Two angles and the side between them | One, if the angles add to less than 180° |
| AAS | Two angles and a side opposite one of them | One, if the angles add to less than 180° |
| SSA | Two sides and an angle opposite one of them | None, one or two |
| Right | Any two values with a 90° angle | One |
Good to know
The ambiguous case (SSA)
With two sides and an angle that is not between them, the side opposite the angle can sometimes swing to two positions. If side a is shorter than side b, compare a with the height h = b sin A. When a is less than h no triangle exists, when a equals h the triangle is a right triangle, and when a is between h and b there are two triangles. If a is at least as long as b, only one triangle fits.
The calculator lists both triangles in the two-solution case so you can pick the one that matches your drawing or problem.
Limits and precision
Results are computed in double-precision floating point and shown to four decimal places, so a displayed value can differ from an exact textbook answer in the last digit. Triangles with a very small angle are sensitive to rounding in the inputs.
Privacy: how it works
- Everything is calculated by code running in your browser tab. The values you enter are not sent to Ulkaa or to any other server, and there is nothing to sign in to.
Tips
- Check the labelling: side a is opposite angle A. Swapping a side with its neighbour gives a different triangle.
- In SAS the angle must be the one between the two sides. If it is not, use the SSA mode.
- If two angles already add to 180° or more, no triangle exists. The calculator says so.
- For a right triangle you can also use SSS with the sides 3, 4 and 5 and read C = 90°.
Frequently asked questions
Is it really free?
Yes. There is no price, no trial and no credit card. Ulkaa Tool does the work with your own device, so there is no server bill to pass on to you.
Do I need an account?
No. There is no sign-up and no login. Open the page and use it. An Ulkaa account is not needed for anything on this tool.
Does it run in my browser?
Yes. Your values are processed by code running in your browser tab, on your own device.
Is my data uploaded?
No. Your values are never sent to Ulkaa or to anyone else. You can check this yourself by watching the Network tab in your browser developer tools while you use the tool.
How do I solve a triangle with three sides?
Use the law of cosines to find each angle: cos A = (b² + c² − a²) / (2bc). Do the same for B, then C = 180° − A − B. The SSS mode shows these steps.
What is the ambiguous case of the law of sines?
It is the SSA situation, where two sides and a non-included angle can fit two different triangles. Because sin B = sin(180° − B), the angle B can be acute or obtuse. The calculator shows both when both are valid.
Can a triangle have two obtuse angles?
No. The three angles add to 180°, so at most one angle can be 90° or more. In SSA the second solution is rejected when it would break this rule.
Which area formula should I use?
Use Heron’s formula when you know all three sides, and one half a b sin C when you know two sides and the angle between them. The calculator shows both, and they agree.
What are the medians and heights of a triangle?
A height is the perpendicular distance from a vertex to the opposite side. A median joins a vertex to the midpoint of the opposite side. The three medians meet at the centroid.
Does it work in radians?
Yes. Switch the angle unit to radians. Inputs and outputs, including the steps, then use radians, and the numbers you already typed are converted.
Why does it say no triangle exists?
Either the sides break the triangle inequality (one side is at least the sum of the other two), the angles add to 180° or more, or in SSA the side opposite the angle is shorter than the height it must reach.
Popular Triangle Calculator pages
- SSS Triangle CalculatorEnter three sides and get all three angles, the area and a scaled drawing.
- SAS Triangle CalculatorEnter two sides and the angle between them to find the third side and the other angles.
- ASA Triangle CalculatorEnter two angles and the side between them to get the other two sides and the third angle.
- AAS Triangle CalculatorEnter two angles and a non-included side to get every other side and angle.
- SSA Triangle CalculatorEnter two sides and a non-included angle. The calculator shows every triangle that fits.
- Right Triangle CalculatorEnter any two values of a right triangle and get the legs, the hypotenuse, both acute angles and the area.
- Area of a Triangle CalculatorEnter three sides to get the area by Heron’s formula, with the heights and the steps.
- Heron’s Formula CalculatorEnter the three sides and see the semi-perimeter, the product and the area worked out.
- Law of Sines CalculatorEnter two angles and a side to find the others with the law of sines.
- Law of Cosines CalculatorEnter two sides and the angle between them to find the third side and the other angles.
- Isosceles Triangle CalculatorEnter the two equal sides and the base to get the angles, the height and the area.
- Equilateral Triangle CalculatorEnter the side length to get the height, the area and both circle radii.