Triangle Calculator
Solving a triangle means finding all three sides and angles from the ones you know. This triangle calculator handles three sides (SSS), two sides and the included angle (SAS), two angles and a side (ASA), and the ambiguous case (SSA), which can give two triangles. It draws each triangle to scale.
How to use the triangle calculator
- Choose what you know, such as three sides.
- Enter the sides and angles (angles in degrees).
- Press Calculate to see every side, angle, the area and a scale drawing.
Formula
Worked example: SSS 5, 6, 7
- What do you know?: Three sides (SSS)
- Side a: 5
- Side b: 6
- Side c: 7
✓ Answer checked
- Area
- Perimeter
- Type
- scalene, acute
- Circumradius R / inradius r
Step-by-step working (4 steps)
Law of cosines for A Law of cosines
Rearrange the law of cosines to find an angle from three sides.
Law of cosines for B Law of cosines
Do the same for B.
Angle sum Angle sum = 180°
The angles of a triangle add to 180°.
Area Area = ½ab sin C
Half the product of two sides and the sine of the angle between them.
Formulas used
How this was checked
- ✓ The three angles add to 180°.
- ✓ The law of sines ratios are equal for all three sides.
- ✓ Heron's formula gives the same area as ½ab sin C.
Angles in degrees. Decimals rounded to 6–8 significant figures.
Frequently asked questions
When do I use the law of cosines?
When you know three sides, or two sides and the angle between them. Otherwise use the law of sines.
Why can SSA give two triangles?
Because sin B = sin(180° − B), two different angles can fit. The calculator checks both and shows each valid triangle.
What is the triangle inequality?
Each side must be shorter than the other two added together. If not, the sides cannot form a triangle.
Related calculators
Pythagorean Theorem Calculator
Find the hypotenuse or a missing side of a right triangle using a² + b² = c².
Trigonometry Calculator
Find sin, cos, tan, csc, sec and cot of any angle in degrees or radians.
Area Calculator
Find the area of a rectangle, square, triangle, circle, trapezoid or parallelogram.
