1. Home
  2. Math
  3. Triangle Calculator

Triangle Calculator

A triangle is fixed by three values with at least one side. Sides 7, 8 and 9 give angles of 48.19°, 58.41° and 73.40° and an area of 26.83.

Two sides and an angle that is not between them (SSA) can make two different triangles. This calculator shows both when that happens, which most tools skip.

Three sides

Answer —

How we got this

    Your next step

    Your answer carries over, so you don’t have to type it again.

    How the triangle is labelled

    Corners are A, B and C. Each side has the same letter as the corner opposite it: side a is opposite angle A, and so on. The angles always add up to 180°.

    Law of sines and law of cosines

    RuleFormulaUse it for
    Law of cosinesc² = a² + b² − 2ab·cos CSSS and SAS
    Law of sinesa ÷ sin A = b ÷ sin B = c ÷ sin CASA, AAS and SSA
    Angle sumA + B + C = 180°The third angle

    The ambiguous case (SSA)

    With sides a, b and angle A (opposite a), compute sin B = b·sin A ÷ a. If sin B > 1 there is no triangle. If B and 180° − B both leave room for a third angle, there are two valid triangles; otherwise one.

    Example

    a = 7, b = 8, A = 48°: sin B = 8 × 0.7431 ÷ 7 = 0.8493, so B = 58.14° or 121.86°. Both work, giving C = 73.86° or 10.14°.

    Area formulas

    • Base and height: ½ × b × h.
    • Two sides and the angle between: ½ × a × b × sin C.
    • Three sides (Heron’s formula): √(s(s − a)(s − b)(s − c)), where s is half the perimeter.

    Frequently asked questions

    What do SSS, SAS, ASA, AAS and SSA mean?

    They list what you know in order around the triangle: S is a side and A is an angle. SAS means two sides with the angle between them.

    Can three angles solve a triangle?

    No. AAA fixes the shape but not the size; similar triangles of any size share the same angles.

    Why can SSA give two triangles?

    The side opposite the known angle can swing to meet the base at two points. Both make valid triangles.

    How do I know if three sides make a triangle?

    Each pair of sides must add up to more than the third side (the triangle inequality).

    Last updated · Written and checked by the AzCalculator team · Calculations run in your browser with full precision and are rounded only for display. How we build calculators