Skip to content
Jellykit

Triangle Calculator

Solve any triangle from three known sides and angles, with area, perimeter, heights and a drawing to scale.

  • Runs on your device
Loading tool

About Triangle Calculator

Fill in any three of the six values, sides a, b and c and the angles A, B and C opposite them, with at least one side. The calculator finds the rest, says whether the triangle is acute, right or obtuse, and draws it to scale.

It also gives the area, perimeter, the height and median to each side and the radii of the inscribed and circumscribed circles. When two sides and an angle not between them allow two different triangles, both are solved and drawn, and values that cannot form a triangle are explained rather than ignored.

How it works

  1. With three sides, each angle comes from the law of cosines, after checking that every side is shorter than the other two together.
  2. With two sides and the angle between them, the law of cosines gives the third side first; the triangle is then solved from its three sides.
  3. With one side and two angles, the third angle is what makes 180°, and the law of sines scales the other two sides.
  4. With two sides and an angle opposite one of them, the law of sines can allow two triangles, one or none. Every triangle that fits is shown.
  5. Area is half of two sides times the sine of the angle between them; the other figures follow from the area and the sides.

Questions

Which sides and angles go together?

The usual convention: side a is opposite angle A, b opposite B and c opposite C. The drawing labels each corner and side so you can check that you entered them in the right places.

Why does it show two triangles?

Two sides and an angle that is not between them do not always fix one triangle. If the side opposite the angle is shorter than the other known side, it can meet the third side at two points, giving one acute and one obtuse solution.

Can I enter three angles?

Three angles fix the shape but not the size, so infinitely many triangles fit. Replace one angle with a side and the triangle is fixed.

What units does it use?

Angles are in degrees. Lengths can be in any unit, as long as all sides use the same one; the area comes out in that unit squared. Lengths from 0.000000001 to 1,000,000,000,000 are accepted.

How exact are the results?

The calculation uses double-precision arithmetic, good to about 15 significant digits, and shows up to 10 decimal places. Results such as a 90° angle in a 3, 4, 5 triangle come out exact at any setting.

Everything you enter here is processed in this browser tab. Nothing is uploaded, logged or shared. How privacy works here.