Triangle Calculator

Calculate the area, perimeter, angles, and sides of any triangle.

Triangle Type

Right Scalene

PropertyValue
Side a3
Side b4
Side c5
Angle A36.8699°
Angle B53.1301°
Angle C90°
Area6
Perimeter12

How to Solve a Triangle

A triangle has 6 properties: 3 sides and 3 angles. You need at least 3 known values (with at least one being a side) to solve for all 6. Select the combination you know:

  • SSS - all three sides known. Uses the Law of Cosines: cos(A) = (b² + c² - a²) / (2bc) to find angles.
  • SAS - two sides and the included angle between them. Uses Law of Cosines to find the third side, then Law of Sines for remaining angles.
  • ASA - two angles and the side between them. The third angle = 180° - A - B. Uses Law of Sines for the remaining sides.
  • AAS - two angles and a non-included side. Find the third angle first, then use Law of Sines.

Note: SSA (two sides and a non-included angle) can have 0, 1, or 2 valid triangles depending on the values, known as the "ambiguous case."

Triangle Formulas and Laws

Angles sum:    A + B + C = 180°

Law of Sines:  a/sin(A) = b/sin(B) = c/sin(C)

Law of Cosines:
a² = b² + c² - 2bc·cos(A)
b² = a² + c² - 2ac·cos(B)
c² = a² + b² - 2ab·cos(C)

Area formulas:
Area = (1/2) × base × height
Area = (1/2) × a × b × sin(C)
Area = √(s(s-a)(s-b)(s-c))  [Heron's]
where s = (a+b+c)/2

Worked example (SAS): sides a = 8, b = 11, angle C = 42°

Find side cc² = 8² + 11² - 2(8)(11)cos(42°) = 64 + 121 - 176(0.7431) = 54.09, c = 7.35
Find angle Asin(A) = 8 × sin(42°) / 7.35 = 0.728, A = 46.7°
Find angle BB = 180° - 42° - 46.7° = 91.3°
Area(1/2)(8)(11)sin(42°) = 29.5 square units

Frequently Asked Questions

For any triangle with sides a, b, and c, each side must be strictly less than the sum of the other two: a + b > c, b + c > a, and a + c > b. If any condition fails, no triangle can be formed with those lengths. For example, sides 3, 4, 9 cannot form a triangle because 3 + 4 = 7, which is less than 9. Sides 3, 4, 6 can: 3+4=7 > 6, 3+6=9 > 4, 4+6=10 > 3. All three conditions must hold.

Related Calculators