Triangle Calculator

Solve any triangle from three sides or angles: missing sides and angles, area, perimeter, heights and a scaled drawing.

Runs in your browser. Nothing is uploaded.

Enter any three values, at least one of them a side. Angle A is opposite side a.

Area

–

How to use the Triangle Calculator

  1. Enter any three values among the sides a, b, c and the angles A, B, C, including at least one side.
  2. Leave the other boxes empty.
  3. The missing sides and angles, area and perimeter appear, with a scaled drawing.
  4. If two different triangles fit your values, both are shown.

Solve any triangle

Know some sides and angles of a triangle and need the rest? Enter any three values, including at least one side, and the calculator works out everything else: the missing sides and angles, area, perimeter, heights, medians and the radii of the inscribed and circumscribed circles. A scaled drawing shows the shape.

Labelling

Side a is opposite angle A, side b opposite B and side c opposite C. Label your triangle the same way before entering values, so each side is paired with the right angle.

The methods

  • SSS (three sides): the law of cosines gives each angle: cos A = (b² + c² − a²) ÷ 2bc.
  • SAS (two sides and the included angle): the law of cosines gives the third side, a² = b² + c² − 2bc cos A.
  • ASA and AAS (two angles and a side): the third angle is 180° minus the other two, and the law of sines, a ÷ sin A = b ÷ sin B = c ÷ sin C, gives the remaining sides.
  • SSA (two sides and a non-included angle): the law of sines gives a second angle, which can have two valid values, so there may be two triangles, one or none.

The calculator names the method it used, so you can follow the same route by hand.

Extra measurements

  • Area: ½ab sin C.
  • Heights: the perpendicular distance from each corner to the opposite side.
  • Medians: lines from each corner to the middle of the opposite side.
  • Inradius and circumradius: the radii of the circles inside and around the triangle.
  • Type: equilateral, isosceles or scalene, and acute, right-angled or obtuse.

Private

All calculations happen in your browser.

Frequently asked questions

Which combinations of values work?

Three sides (SSS), two sides and the angle between them (SAS), two angles and a side (ASA or AAS), or two sides and an angle not between them (SSA). Three angles alone fix only the shape, not the size, so at least one side is needed.

Why are there sometimes two answers?

With two sides and an angle not between them, the third side can swing into two positions, giving two different triangles. This is the "ambiguous case" of the law of sines. Sometimes only one fits, or none.

Are angles in degrees?

Yes. Enter angles in degrees; results are in degrees too.

Why does it say the sides can't form a triangle?

Any two sides together must be longer than the third. Sides 1, 2 and 3 only make a flat line, not a triangle.

Is anything uploaded?

No. The triangle is solved in your browser.

Tutorials