Triangle Calculator

Solve any triangle: sides, angles, area and perimeter

Solve a triangle from three sides (SSS), two sides and the angle between them (SAS), or two angles and a side (AAS) - all sides, angles, area, perimeter, heights and type.
Share
Try an example:
Your result will appear here as you type.

About Triangle Calculator

Formula

Law of cosines: c² = a² + b² − 2ab·cos C

Heron: Area = √(s(s−a)(s−b)(s−c)), s = (a+b+c) ÷ 2

Worked examples

Sides 5 and 7 with 60° between

c = √(25 + 49 − 35) = √39 ≈ 6.245; area = ½ × 5 × 7 × sin 60° ≈ 15.155.

How it works

  1. SSS: angles from the law of cosines.
  2. SAS: the third side from the law of cosines, then as SSS.
  3. AAS: the third angle is 180° minus the other two; sides from the law of sines.
  4. Area by Heron's formula.

What you need

  • Three facts about the triangle, including at least one side.

Tips

  • Angle C is opposite side c, and so on.

Limitations

  • The ambiguous SSA case (two sides and a non-included angle) is not covered.

Runs in your browser. Calculations run in your browser - nothing you enter is sent anywhere.

Definitions

Law of sines
a ÷ sin A = b ÷ sin B = c ÷ sin C.
Scalene / isosceles / equilateral
No, two or three equal sides.

Frequently asked questions

Why does it say the sides cannot make a triangle?+

Each side must be shorter than the other two added together (the triangle inequality).

Was this calculator helpful?