Triangle Calculator

Enter the triangle measurements you know, then solve for the missing properties. Different combinations of sides and angles may lead to one, multiple or no valid triangles.

Quick answer. Sides 3, 4 and 5 make a right scalene triangle with area 6, perimeter 12, inradius 1 and circumradius 2.5. Sides 9 and 7 with a 30° angle between them give a third side of 4.57.

What the calculator does

Pick what you know, enter the three values, and the calculator finds everything else about the triangle: all three sides, all three angles, the area, perimeter, semiperimeter, inradius, circumradius, the three heights and the three medians. It also labels the triangle as equilateral, isosceles or scalene, and as acute, right or obtuse.

The three ways to start

  • SSS, three sides. The angles come from the law of cosines. The sides must satisfy the triangle inequality: any two must add up to more than the third.
  • SAS, two sides and the angle between them. The law of cosines gives the third side, then the other two angles.
  • ASA, two angles and the side between them. The third angle is 180° minus the other two, and the law of sines gives the other sides.

The tool does not offer SSA (two sides and an angle that is not between them). That case can have two answers, one answer or none, so it needs extra care and is not covered here.

Worked example with the default numbers (SSS)

The page opens on sides 3, 4 and 5. Since 3² + 4² = 5², it is a Scalene (Right) triangle. The semiperimeter is s = 12 ÷ 2 = 6, and Heron’s formula gives the area as √[6 × 3 × 2 × 1] = 6. The angles are 36.8699°, 53.1301° and 90°. The inradius is area ÷ s = 6 ÷ 6 = 1 and the circumradius is 5 ÷ (2 × sin 90°) = 2.5.

Heights and medians of the 3-4-5 triangleEach height is 2 × area ÷ the side it stands on: 2 × 6 ÷ 5 = 2.4. The median to the hypotenuse equals half of it, 2.5.Heights and medians of the 3-4-5 triangleHeight to side a4Height to side b3Height to side c2.4Median to side a4.272Median to side b3.60555Median to side c2.5
Heights and medians of the 3-4-5 triangle.

The heights are 4, 3 and 2.4, and the medians are 4.272, 3.60555 and 2.5.

Worked example: two sides and the included angle (SAS)

With sides 9 and 7 and an included angle of 30°, the law of cosines gives c² = 81 + 49 − 2 × 9 × 7 × cos 30° = 20.8808, so c = 4.5696. The calculator then finds the other angles, 100.0094° and 49.9906°, and an area of 15.75, which also equals ½ × 9 × 7 × sin 30° = 15.75. It is a Scalene (Obtuse) triangle.

Third side of a triangle with sides 9 and 7, by the included angleThe wider the angle between the two sides, the longer the third side: 4.57 at 30° and 15.463 at 150°. At 180° it would be 16, the two sides laid end to end.Third side of a triangle with sides 9 and 7, by the included angle30°4.5760°8.18590°11.402120°13.892150°15.463
A wider included angle stretches the third side.
Included angleThird side c
30°4.5696
60°8.1854
90°11.4018
120°13.8924
150°15.4635

Worked example: two angles and the included side (ASA)

With angles of 60° and 60° and a side of 5 between them, the third angle is 60°, and the law of sines gives both other sides as 5. The result is an Equilateral (Acute) triangle with area 10.8253, or √3 ÷ 4 × 25.

Area of the three default triangles on the page (square units)The SAS triangle has an area of 15.75 and the ASA triangle, which is equilateral with sides of 5, an area of 10.825.Area of the three default triangles on the page (square units)SSS: 3, 4, 56SAS: 9, 7, 30°15.75ASA: 60°, 60°, 510.825
The three default examples compared by area.

The formulas behind the answers

  • Law of cosines: a² = b² + c² − 2bc cos A. It works for any triangle and is a form of the Pythagorean theorem with a correction term.
  • Law of sines: a ÷ sin A = b ÷ sin B = c ÷ sin C. It links each side to the opposite angle.
  • Heron’s formula: Area = √[s(s − a)(s − b)(s − c)], with s the semiperimeter.
  • Inradius = area ÷ s, and circumradius = a ÷ (2 sin A).
  • Median to side a = ½ √(2b² + 2c² − a²), and height to side a = 2 × area ÷ a.

Types of triangle

SidesTypeAreaPerimeterAngles
5, 5, 5Equilateral (Acute)10.825321560°, 60°, 60°
5, 5, 6Isosceles (Acute)121653.13°, 53.13°, 73.74°
3, 4, 5Scalene (Right)61236.87°, 53.13°, 90°
2, 3, 4Scalene (Obtuse)2.90474928.96°, 46.57°, 104.48°

The type by sides depends on how many sides are equal: all three for equilateral, two for isosceles, none for scalene. The type by angles depends on the largest angle: less than 90° is acute, exactly 90° is right and more than 90° is obtuse.

When no triangle exists

Sides of 2, 3 and 6 cannot form a triangle, because 2 + 3 is not more than 6. The calculator says so instead of giving an answer. In the SAS tool the included angle must be strictly between 0° and 180°. In the ASA tool the two angles must add up to less than 180°, since a triangle’s three angles add up to exactly 180°.

Common mistakes

  • Using an angle that is not between the two given sides in the SAS tool.
  • Entering the angles in radians. The tool expects degrees.
  • Mixing units, such as one side in feet and another in inches.
  • Thinking three angles are enough. They fix the shape but not the size, so a side is always needed.
  • Expecting the area units to match the side units. If the sides are in metres, the area is in square metres.

How to read your result

The large line names the triangle and gives the area. Below it are the sides and angles labelled to match the letters, so side a is opposite angle A. The next group shows the perimeter, semiperimeter, inradius and circumradius, and the last two lines give the heights and the medians. Values are shown to up to five decimal places.

The answers use the standard formulas, so they are exact up to rounding. Check that the units of your sides match before using the area in a real project.

What to do next

Common questions

How do I find the area of a triangle from its three sides?

Use Heron's formula. Find the semiperimeter s, which is half the perimeter, then take the square root of s times (s minus a) times (s minus b) times (s minus c). For sides 3, 4 and 5 the area is 6.

What do SSS, SAS and ASA mean?

They are the ways to define a triangle: three sides (SSS), two sides and the angle between them (SAS), or two angles and the side between them (ASA).

Why does the calculator say my sides cannot form a triangle?

The sum of any two sides must be greater than the third. Sides of 2, 3 and 6 fail because 2 plus 3 is less than 6.

Can I find a triangle from three angles?

No. Three angles fix the shape but not the size, so you also need at least one side.

What are the inradius and circumradius?

The inradius is the radius of the largest circle inside the triangle, equal to the area divided by the semiperimeter. The circumradius is the radius of the circle through all three corners.

What is a median of a triangle?

A median is a line from a corner to the midpoint of the opposite side. The calculator gives all three. The median to the hypotenuse of a right triangle is half the hypotenuse.

Sources: Wikipedia: Triangle; Wikipedia: Law of cosines; Wikipedia: Heron's formula

More Math Calculators

Pick another tool to jump straight to it.