How the Triangle Calculator Works
Every triangle has six measurements: three sides (a, b, c) and three angles (A, B, C). By convention, side a is opposite angle A, side b is opposite angle B, and side c is opposite angle C. Know any three of them, including at least one side, and the other three can almost always be found. This triangle solver uses the law of cosines, the law of sines and the fact that the angles of every triangle add up to 180°. It then calculates the area, perimeter, heights, inscribed and circumscribed circle radii and medians, and draws the triangle to scale.
It's useful for trigonometry homework, geometry exams, surveying and land measurement, carpentry and roof framing, navigation, engineering drawings and game development: anywhere you need the missing measurements of a triangle.
How to Use the Triangle Solver
- Enter any three known values in the side and angle boxes. Angles are in degrees.
- Leave the unknown boxes empty. At least one of your three values must be a side, because three angles alone only fix the shape, not the size.
- Read the solution: calculated values are highlighted in the table next to the drawing.
- Check the extras: area, perimeter, type, heights, inradius, circumradius and medians.
- If two answers appear, you've hit the ambiguous SSA case, and both triangles are valid.
Which Rule Solves Which Case?
| Case | You know | Method |
|---|---|---|
| SSS | Three sides | Law of cosines for each angle |
| SAS | Two sides and the angle between them | Law of cosines for the third side, then SSS |
| ASA | Two angles and the side between them | Third angle = 180° − the others, then law of sines |
| AAS | Two angles and a side not between them | Third angle, then law of sines |
| SSA | Two sides and an angle not between them | Law of sines: may give 0, 1 or 2 triangles |
| AAA | Three angles | Not solvable: infinitely many similar triangles |
Triangle Formulas
- Law of cosines: c² = a² + b² − 2ab·cos(C). It's the Pythagorean theorem generalised to any triangle.
- Law of sines: a / sin(A) = b / sin(B) = c / sin(C) = 2R, where R is the circumradius.
- Angle sum: A + B + C = 180°.
- Heron's formula (area): Area = √[s(s−a)(s−b)(s−c)], where s = (a+b+c)/2 is the semi-perimeter.
- Area from two sides and the included angle: Area = ½ab·sin(C).
- Height to side a: ha = 2 × Area / a.
- Inradius: r = Area / s. Circumradius: R = a / (2 sin A).
- Median to side a: ma = ½√(2b² + 2c² − a²).
The Ambiguous Case (SSA)
When you know two sides and an angle that is not between them, the side opposite the known angle can "swing" to meet the base in two places. Depending on the lengths, there may be no triangle (the side is too short to reach), exactly one (it just touches, making a right angle, or it's long enough that only one position works), or two different triangles, one acute and one obtuse. For example, a = 6, b = 8 and A = 40° gives two valid triangles, with B ≈ 59° or B ≈ 121°. The calculator detects this and shows both solutions.
Types of Triangles
- By sides: equilateral (all three equal), isosceles (two equal), scalene (all different).
- By angles: acute (all angles below 90°), right (one angle exactly 90°), obtuse (one angle above 90°).
The classic 3-4-5 triangle is a scalene right triangle, since 3² + 4² = 5². Builders use it to set out perfectly square corners.
Features
- Every caseSSS, SAS, ASA, AAS and ambiguous SSA.
- Complete resultsSides, angles in degrees and radians.
- Area and perimeterUsing Heron's formula.
- Advanced measuresHeights, medians, inradius and circumradius.
- Scaled drawingSee the triangle's true shape.
- Error checksTriangle inequality and angle sums.
Frequently Asked Questions
Can I solve a triangle with only angles?
No. Three angles define the shape but not the size, so you need at least one side length.
How do I solve a right triangle?
Enter 90 for the right angle (e.g. C = 90) and any two other values, such as two sides or one side and one angle.
What is the triangle inequality?
The sum of any two sides must be greater than the third side. Otherwise the sides can't meet to form a triangle.
What units should I use?
Any length unit (cm, m, inches, feet), as long as all sides use the same one. The area will be in that unit squared.
Why do I get two answers?
You entered the ambiguous SSA case, where two different triangles match your values. Both are mathematically correct; use extra context to pick one.