One Calculator Logo One Calculator
Mathematics & Statistics • Formulas shown

Triangle Calculator

Quick Answer

A triangle with sides 5, 6 and 7 has angles of 44.42°, 57.12° and 78.46°, a perimeter of 18 and an area of 14.70, found with the law of cosines and the formula area = ½ab sin C. It is scalene and acute.

Result

The area is 14.696938

Sides a, b, c5, 6, 7
Angles A, B, C44.4153°, 57.1217°, 78.463°
Perimeter18
Typescalene, acute
Inradius1.63299
Circumradius3.57217
Step-by-step calculation
  1. Law of cosines: cos A = (b² + c² − a²) ÷ 2bc
  2. Area = ½ ab sin C

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

  1. Choose SSS, SAS or ASA.
  2. Enter the known sides and angles.
  3. 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

All Math & Statistics 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.