Skip to content
Engyna

Triangle Calculator

Solve any triangle from three sides or angles, with area, heights, a scale drawing and the steps.

How to use the Triangle Calculator

  1. 1Choose any triangle or a right triangle.
  2. 2Enter three known sides or angles (two for a right triangle) and leave the rest empty.
  3. 3Read the missing sides and angles, area, heights and radii, and follow the drawing and the steps.

About Triangle Calculator

The Triangle Calculator solves a triangle from any three known values, at least one of them a side. It recognizes the case by itself: three sides (SSS), two sides and the angle between them (SAS), two angles and the side between them (ASA), two angles and another side (AAS), or two sides and an angle that is not between them (SSA). In the SSA case two different triangles can fit the same values; the calculator then shows both and lets you switch between them, and it tells you when no triangle exists, for example when one side is longer than the other two together.

Besides the three sides and three angles you get the area, perimeter, semi-perimeter, all three heights and medians, the inradius and circumradius, and whether the triangle is acute, right or obtuse and equilateral, isosceles or scalene. A drawing to scale labels every side and angle and can show the heights, the incircle and the circumcircle. The steps list the formulas used with their numbers: the law of cosines, the law of sines or, in right triangle mode, Pythagoras and sine, cosine and tangent. Angles can be entered in degrees or radians, results rounded to 0 to 10 decimal places, and a length unit added to every value.

Students use it to check geometry and trigonometry homework and to see how the laws of sines and cosines work, teachers to make example problems, and carpenters, roofers, surveyors and DIYers to work out a rafter length, a roof pitch, a diagonal or an angle they can't measure directly.

Frequently asked questions

How do you find the missing side of a triangle?

With two sides and the angle between them, use the law of cosines: c² = a² + b² − 2ab · cos C. With one side and two angles, find the third angle (the angles add up to 180°), then use the law of sines: a / sin A = b / sin B = c / sin C. In a right triangle Pythagoras is enough: c² = a² + b².

How is the area of a triangle calculated?

Half the base times its height, or from two sides and the angle between them: Area = ½ · b · c · sin A. From three sides alone, Heron's formula gives √(s(s − a)(s − b)(s − c)) with s as half the perimeter. For sides 5, 6 and 7 that is about 14.6969.

Why can two sides and an angle give two triangles?

When the known angle is not between the two known sides (SSA), the side opposite the angle can swing to two positions if it is shorter than the other side but longer than the height. The law of sines then gives an acute and an obtuse angle, and both triangles are valid.

Can three angles define a triangle?

No. Three angles fix only the shape; every scaled copy has the same angles. You need at least one side length to get a definite size.

What is the difference between the inradius and circumradius?

The inradius r is the radius of the largest circle that fits inside the triangle and touches all three sides: r = Area / s. The circumradius R is the radius of the circle through all three corners: R = a / (2 sin A).

  • Plot functions, find roots and intersections, and explore with sliders.

  • Solve linear, quadratic, polynomial and systems of equations step by step.

  • Multiply, invert and find determinants, eigenvalues and more.