CalculatorBear
English

Triangle Calculator

Solve a triangle from three known values (SSS, SAS, ASA, AAS or SSA) and get all sides, angles, area, perimeter and more, with a drawing.

Side a is opposite angle A.

Side b is opposite angle B.

Side c is opposite angle C.

Area

6

Sides a, b, c
3, 4, 5
Angles A, B, C
36.869898°, 53.130102°, 90°
Perimeter
12
Semiperimeter
6
Type
Scalene, right
Inradius
1
Circumradius
2.5
Medians to a, b, c
4.272, 3.60555, 2.5
Altitudes to a, b, c
4, 3, 2.4
Triangle with sides a, b, c and angles A, B, CABCa = 3b = 4c = 5

Results are provided for general information only.

About the triangle calculator

A triangle has six parts: three sides (a, b, c) and three angles (A, B, C), where each angle is opposite the side with the same letter. Knowing three of them, including at least one side, fixes the rest. Pick the tab that matches what you know.

SSS gives three sides, SAS gives two sides and the angle between them, ASA gives two angles and the side between them, AAS gives two angles and a side that is not between them, and SSA gives two sides and an angle that is not between them.

The SSA case can be ambiguous. Depending on the numbers there may be no triangle, exactly one, or two different triangles. When two exist, the calculator shows both solutions and draws both.

Along with sides and angles you get the area, perimeter, inradius, circumradius, medians and altitudes, and a labelled drawing. Impossible inputs, such as sides that break the triangle inequality or angles that add up to 180° or more, are rejected with an explanation.

Formula

  • Law of cosines: c² = a² + b² − 2ab·cos C
  • Law of sines: a ÷ sin A = b ÷ sin B = c ÷ sin C
  • Angles: A + B + C = 180°
  • Heron's formula: area = √(s(s−a)(s−b)(s−c)), s = (a + b + c) ÷ 2
  • Inradius = area ÷ s; circumradius = abc ÷ (4 × area)

Example

With sides 3, 4 and 5 (SSS) the angles are 36.87°, 53.13° and 90°, the perimeter is 12 and the area is 6. It is a right triangle.