About the Triangle Calculator
Choose what you know and enter the values. With three sides (SSS) the law of cosines gives the angles. With two sides and the angle between them (SAS) it gives the third side first. With two angles and the side between them (ASA) the angles sum to 180° and the law of sines gives the other sides.
The calculator also reports the area, perimeter, inradius, circumradius and the type of triangle. It rejects impossible triangles, such as sides that fail the triangle inequality or angles that sum to 180° or more.
How to Use the Triangle Calculator
- Choose SSS, SAS or ASA.
- Enter the known sides and angles.
- Read the sides, angles, area and type.
Formula and Method
Law of cosines
c² = a² + b² − 2ab cos C
Law of sines
a ÷ sin A = b ÷ sin B = c ÷ sin C
Area
½ ab sin C
Worked Example
A 5-6-7 triangle
Input: a = 5, b = 6, c = 7
- cos A = (36 + 49 − 25) ÷ 84 = 0.714 → 44.42°
- Area = √(9 × 4 × 3 × 2)
Result: 14.70.
Frequently Asked Questions
Why can’t any three lengths make a triangle?
Each side must be shorter than the sum of the other two.
What is Heron’s formula?
Area = √(s(s − a)(s − b)(s − c)) with s half the perimeter.
What about SSA?
Two sides and a non-included angle can give two triangles, one or none, so it is not offered here.
How are angles in a triangle related?
They sum to 180°.
Related Calculators
Sources and Further Reading
Accuracy and Scope
Results use standard IEEE-754 double-precision arithmetic and are rounded for display. For exam, engineering or research work, verify critical values with a second method. See our full disclaimer.