Triangle calculator — sides, angles and area

Enter any three known values — sides or angles — and the triangle calculator finds the rest with the sine rule and the cosine rule. It works as an angle calculator too: enter three sides to get all three angles. You also get the area, perimeter, heights and the radii of the incircle and circumcircle, with the triangle drawn to scale.

Enter the sides as positive numbers in the same units and the angles in degrees. Side a is opposite angle A, b is opposite B and c is opposite C.

a = 5b = 6c = 744.42°57.12°78.46°ABC
Sides and angles
a = 5; b = 6; c = 7A ≈ 44.42°; B ≈ 57.12°; C ≈ 78.46°

Triangle: a = 5; b = 6; c = 7; A ≈ 44.42°; B ≈ 57.12°; C ≈ 78.46°. Area ≈ 14.7.

Step-by-step breakdown
  1. Perimeter18
  2. Area (by Heron’s formula)14.7
  3. Perpendicular height to each sidea: 5.88; b: 4.9; c: 4.2
  4. Radius of the inscribed circle (incircle)r ≈ 1.63
  5. Radius of the circumscribed circle (circumcircle)R ≈ 3.57
  6. Type of triangleacute-angled, scalene

Step-by-step working

  1. Use the cosine rule to find the angle:

    cos A = (b² + c² − a²) / 2bc = (6² + 7² − 5²) / (2 · 6 · 7) ≈ 0.7143, A ≈ 44.4153°
  2. Use the cosine rule to find the angle:

    cos B = (a² + c² − b²) / 2ac = (5² + 7² − 6²) / (2 · 5 · 7) ≈ 0.5429, B ≈ 57.1217°
  3. The angles in a triangle add up to 180°:

    C = 180° − A − B ≈ 180° − 44.4153° − 57.1217° ≈ 78.463°

Formula

a²=b² + c² − 2bc · cos A

The cosine rule links the three sides with the angle between two of them. Together with the sine rule and the 180° angle sum, it lets you solve any triangle.

How we got there

cos A = (b² + c² − a²) / 2bc = (6² + 7² − 5²) / (2 · 6 · 7) ≈ 0.7143, A ≈ 44.4153°

The calculator writes the values you entered with ‘=’ and the values it has found with ‘≈’: they are rounded to two decimal places.

How to solve a triangle

  1. Work out what you know

    Three sides, two sides and an angle, or one side and two angles — this decides which rule to start with.

  2. Find a missing side or angle

    If you know two sides and the angle between them, use the cosine rule; if you know a side and the angle opposite it, use the sine rule.

  3. Get the third angle from the angle sum

    A + B + C = 180°, so C = 180° − A − B.

  4. Check your answer

    The largest angle is opposite the longest side, and each side is shorter than the other two added together.

Still stuck on triangle questions? Find a maths tutor for Year 10

Three facts that solve any triangle

The angles in a triangle add up to 180°. The sine rule says the sides are proportional to the sines of the opposite angles. The cosine rule extends Pythagoras’ theorem to any triangle.

Every triangle problem comes down to these three facts — the calculator shows which one it uses at each step.

When a triangle does not exist

The triangle inequality: each side must be shorter than the other two added together. Sides 1, 2 and 3 do not make a triangle — the three points lie on one straight line.

For angles: they must add up to exactly 180°, so a triangle can never have two obtuse angles.

Common mistakes

  • Mixing up which side is opposite which angle: a is opposite A, b is opposite B.
  • Working out sines and cosines in radians when the angles are in degrees — check that your calculator is in degree mode.
  • Forgetting the second solution when you know two sides and an angle that is not between them.

Frequently asked questions

Three, including at least one side: three sides; two sides and an angle; or one side and two angles. Three angles on their own fix only the shape of the triangle, not its size — any similar triangle fits.

If the known angle is acute and opposite the shorter of the two sides, and that side is longer than b sin A, the sine of the missing angle gives two values: an acute angle and an obtuse one. Then both triangles exist, and the calculator shows both. If the side is shorter than b sin A, there is no triangle.

Use Heron’s formula: area = √(s(s − a)(s − b)(s − c)), where s is half the perimeter. For sides 5, 6 and 7: s = 9, area = √(9 × 4 × 3 × 2) = √216 ≈ 14.7.

Compare the square of the longest side with the sum of the squares of the other two: if it is smaller, the triangle is acute-angled; if it is equal, right-angled; if it is larger, obtuse-angled.

The radius of the inscribed circle (incircle) is r = area / s, where s is half the perimeter, and the radius of the circumscribed circle (circumcircle) is R = abc / (4 × area). By the sine rule, a / sin A = 2R as well.

Any units, as long as they are all the same: centimetres, metres, squares on a grid. The sides come out in the same units and the area in square units.

Is geometry your weak spot?

Book a free introductory lesson with a Mathema tutor. 30 minutes online, no commitment — we find the gap and the plan to close it.