Why use our Triangle Calculator?
- All six ways to solve a triangle. SSS, SAS, ASA, AAS, SSA and a right triangle from any two values. Pick what you know and type the numbers.
- The SSA ambiguous case, handled. It finds whether zero, one or two triangles fit, and draws and solves both when there are two.
- Every measure in one place. Sides, angles, area, perimeter, semi-perimeter, heights, medians, angle bisectors, inradius, circumradius and the type of triangle.
- A live drawing and the working. The triangle is drawn to scale as you type, and each step is shown with your own numbers.
- English, Hindi and Urdu. Every label, error and step is translated, the Urdu page runs right to left, and nothing is uploaded or shown with ads.
How to use the Triangle Calculator
How to use it: 1) Pick what you know: three sides (SSS), two sides and the angle between them (SAS), two angles and the side between them (ASA), two angles and another side (AAS), two sides and an angle that is not between them (SSA), or any two values of a right triangle. 2) Type the numbers. Side a is opposite angle A, side b is opposite angle B, and side c is opposite angle C. 3) The drawing, the result cards and the step by step working update as you type. Reset brings back the example and Copy results copies the answer.
A triangle is fixed by three measurements, provided they are the right kind. The calculator accepts the usual combinations: all three sides (SSS), two sides and the angle between them (SAS), two angles and any side (ASA or AAS), a base and height, or two sides of a right triangle. It works out the third side, all three angles, the area and the perimeter.
With three sides, the area comes from Heron's formula. Add the sides and halve the total to get the semi-perimeter s, then take the square root of s × (s − a) × (s − b) × (s − c). The angles come from the law of cosines. With two sides and the angle between them, the law of cosines finds the third side first. With two angles and a side, the third angle is 180° minus the other two, and the law of sines gives the other sides.
The type has two parts. By sides, a triangle is equilateral (three equal sides), isosceles (two equal) or scalene (none equal). By angles, it is right (one angle is 90°), obtuse (one angle is more than 90°) or acute (all angles are less than 90°).
For two sides and an angle that is not between them (SSA), the calculator uses the law of sines: sin B = b × sin A ÷ a. If a is shorter than the height b × sin A, no triangle fits. If a equals that height, one right triangle fits. If a is shorter than b but longer than the height, two triangles fit, with B and with 180° − B. Otherwise one fits. The other measures are the heights h_a = 2 × area ÷ a, the medians m_a = ½ × √(2b² + 2c² − a²), the angle bisectors t_a = √(bc((b + c)² − a²)) ÷ (b + c), the inradius r = area ÷ s and the circumradius R = abc ÷ (4 × area). For sides 7, 8 and 9: h_a = 7.6665, m_a = 7.7621, t_a = 7.7326, r = 2.2361 and R = 4.6957. The area uses the numerically stable form of Heron's formula described by W. Kahan (2000), so very thin triangles stay accurate.
Check it by hand: for sides 7, 8 and 9, the semi-perimeter is s = (7 + 8 + 9) ÷ 2 = 12. Heron formula gives the area as √(12 × 5 × 4 × 3) = √720 = 26.83. The perimeter is 24. The angle A comes from cos A = (8² + 9² − 7²) ÷ (2 × 8 × 9) = 96 ÷ 144 = 0.6667, so A = 48.19°.
Heron: s = (a + b + c) ÷ 2, area = √(s(s − a)(s − b)(s − c)) Base and height: area = ½ × base × height Law of cosines: cos A = (b² + c² − a²) ÷ (2bc), and a² = b² + c² − 2bc cos A Law of sines: a ÷ sin A = b ÷ sin B = c ÷ sin C Right triangle: c² = a² + b² (Pythagoras) Angles: A + B + C = 180°
Worked example
Sides 7, 8 and 9. The semi-perimeter is 12, so the area is √(12 × 5 × 4 × 3) = √720 = 26.8328. The perimeter is 24. The angles are 48.1897°, 58.4119° and 73.3985°, so it is a scalene, acute triangle.
Sides 3, 4 and 5 give an area of 6 and angles of 36.8699°, 53.1301° and 90°, which is a right triangle.
SAS: sides b = 8 and c = 9 with 60° between them. The third side is a = √(8² + 9² − 2 × 8 × 9 × cos 60°) = √73 = 8.544, and the area is ½ × 8 × 9 × sin 60° = 31.1769.
SSA: a = 8, b = 10 and angle A = 40°. The height from C is 10 × sin 40° = 6.4279. Because a is shorter than b but longer than that height, two triangles fit. In the first, B = 53.4641°, C = 86.5359°, c = 12.423 and the area is 39.9269. In the second, B = 126.5359°, C = 13.4641°, c = 2.8978 and the area is 9.3135.
Good to know
- Not every set of numbers makes a triangle. Three sides need the longest to be shorter than the other two added together, and two angles must add up to less than 180°. The calculator tells you when it is impossible.
- Two sides and an angle that is not between them (SSA) can give two triangles, one or none. The calculator tells you which and shows both when there are two. For a right triangle, the two values must be different kinds, and two angles alone cannot fix its size.
- Keep every length in the same unit. The area is in square units of that unit. Results are rounded for display to 4 decimal places, and angles are in degrees.
Questions people ask
How do I find the area of a triangle with 3 sides?
Use Heron's formula. Add the sides and halve it to get s, then the area is the square root of s × (s − a) × (s − b) × (s − c). For sides 7, 8 and 9 the area is 26.83. Enter them in the 3 sides tab.
What is the formula for the area of a triangle?
Half of the base times the height, where the height is measured at a right angle to the base. If you only know the sides, use Heron's formula. If you know two sides and the angle between them, the area is ½ × b × c × sin A.
How do I find the angles of a triangle from its sides?
Use the law of cosines: cos A = (b² + c² − a²) ÷ (2bc), then take the inverse cosine. Repeat for B. The third angle is 180° minus the other two. The calculator does all three.
How do I solve a right triangle with two sides?
Use the Pythagorean theorem. The hypotenuse is the square root of the two legs squared and added. If you know the hypotenuse and one leg, subtract instead. Then the angles come from the sides.
Why does the calculator say my triangle is impossible?
Because the numbers cannot close up into a triangle. The longest side must be shorter than the other two combined, and the angles must add up to less than 180° before the third angle is found.
What are the types of triangle?
By sides: equilateral, isosceles and scalene. By angles: acute, right and obtuse. Every triangle has one of each kind of label, for example a scalene right triangle.
What is the SSA ambiguous case?
When you know two sides and an angle that is not between them, the side opposite the angle can swing to two places. Depending on the numbers, no triangle, one triangle or two triangles fit. The calculator checks this for you and solves both triangles when there are two.
What are heights, medians and angle bisectors?
A height (altitude) drops from a vertex at a right angle to the opposite side. A median joins a vertex to the midpoint of the opposite side. An angle bisector splits an angle in two equal parts and ends on the opposite side. The calculator gives all three for every vertex.
What is the area of a 3-4-5 right triangle?
The legs are 3 and 4, so the area is 3 × 4 ÷ 2 = 6.
Part of the guide: Math and study calculators: percentages, fractions, GPA and everyday sums