Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools

Triangle Calculator

How to use
  1. Choose what you know: Three sides (SSS), Two sides and the angle between (SAS) or A side and its two angles (ASA). Learn more about the three cases
  2. Type the sides as plain numbers and the angles with deg, as in 60deg (a number with no unit is read as radians).
  3. Read all three sides and angles, the area, the perimeter and the kind of triangle. Learn more about reading the answer
  4. The triangle is drawn to scale. Side aa is blue, side bb amber and side cc navy; each lies opposite the angle with the same letter.
  5. How it was found names the law used at each step.

Sides
a=3,b=4,c=5\displaystyle a = 3, \quad b = 4, \quad c = 5
Angles
A=36.87∘,B=53.13∘,C=90∘\displaystyle A = 36.87^\circ, \quad B = 53.13^\circ, \quad C = 90^\circ
Area
12absin⁡C=6\displaystyle \tfrac{1}{2}ab\sin C = 6
Perimeter
a+b+c=12\displaystyle a + b + c = 12
Kind
right, scalene\displaystyle \text{right, scalene}
How it was found

With three sides known, the law of cosines gives each angle: cos⁡A=b2+c2−a22bc=16+25−940=0.8\cos A = \dfrac{b^2 + c^2 - a^2}{2bc} = \dfrac{16 + 25 - 9}{40} = 0.8, so A=36.87∘A = 36.87^\circ.

In the same way cos⁡B=a2+c2−b22ac=0.6\cos B = \dfrac{a^2 + c^2 - b^2}{2ac} = 0.6, so B=53.13∘B = 53.13^\circ.

The angles of a triangle add up to 180∘180^\circ: C=180∘−36.87∘−53.13∘=90∘C = 180^\circ - 36.87^\circ - 53.13^\circ = 90^\circ.

Each side lies opposite the angle with the same letter, and the longest side is opposite the largest angle, 90∘90^\circ.

Area: half the product of two sides and the sine of the angle between them, 12absin⁡C=6\dfrac{1}{2}ab\sin C = 6.



Three sides (SSS)

DemoThree sides
Step 0 of 3
With all three sides known, the law of cosines gives each angle:

cos⁡A=b2+c2−a22bc\cos A = \dfrac{b^2 + c^2 - a^2}{2bc}


and the same with the letters rotated. The third angle can also be found from A+B+C=180∘A + B + C = 180^\circ.

Three lengths make a triangle only if each is shorter than the sum of the other two. Otherwise the calculator says so.
Side aa lies opposite angle AA, side bb opposite BB, side cc opposite CC.

Reading the answer

  • Sides and Angles list all six parts, whichever three you typed.
  • Area is 12absin⁡C\dfrac{1}{2}ab\sin C.
  • Perimeter is a+b+ca + b + c.
  • Kind names the triangle by its largest angle (acute, right, obtuse) and by its sides (scalene, isosceles, equilateral).

  • Angles are given in degrees. Lengths are rounded to four decimals.

Two sides and the angle between them (SAS)

DemoTwo sides and an angle, then a side and two angles
Step 0 of 3
With sides aa and bb and the angle CC between them, the law of cosines gives the third side directly:

c2=a2+b2−2abcos⁡Cc^2 = a^2 + b^2 - 2ab\cos C


For C=90∘C = 90^\circ the last term vanishes and this is the Pythagorean theorem. Once cc is known the triangle has three known sides, and the other angles follow as in the first case.

A side and two angles (ASA)

With side cc and the angles AA and BB at its ends, the third angle is C=180∘−A−BC = 180^\circ - A - B. The law of sines then gives the other sides:

asin⁡A=bsin⁡B=csin⁡C\dfrac{a}{\sin A} = \dfrac{b}{\sin B} = \dfrac{c}{\sin C}


The two angles must add up to less than 180∘180^\circ, or the sides would never meet.

If the known side is not between the two angles (the case AAS), find the third angle first; then the side lies between two known angles.

The two laws

  • The law of cosines needs three sides, or two sides and the angle between them. It extends the Pythagorean theorem to any triangle.
  • The law of sines needs a side and the angle opposite it, plus one more part. It says each side is proportional to the sine of the opposite angle.

  • The longest side is always opposite the largest angle, and the shortest side opposite the smallest.

Common mistakes

  • Typing degrees without deg. 60 alone is read as 60 radians.
  • Using the wrong angle in SAS. The angle must be the one between the two known sides.
  • Pairing a side with the wrong angle. Side aa is opposite angle AA.
  • Forgetting the triangle inequality. Not every three lengths make a triangle.
  • Using the Pythagorean theorem in a triangle with no right angle. Use the law of cosines.