Home ↓
CalculatorsVerified

Math & Geometry

Triangle Solver (Sides & Angles)

Solve any triangle from three sides, two sides and the included angle, or two angles and a side: all sides, angles, area, perimeter and type.

How to use this calculator

  1. Choose what you know: three sides, two sides and the angle between them, or two angles and the side between them.
  2. Enter the values; angles are in degrees and sides in any unit.
  3. Read the missing sides and angles, the area, the perimeter and the type of triangle.
  4. Use the circumradius and inradius if you need the circumscribed or inscribed circle.

Solving a triangle

A triangle is fully determined by three independent measurements, at least one of which is a side. With three sides (SSS), the law of cosines gives each angle: cos A = (b² + c² − a²) ÷ 2bc. With two sides and the included angle (SAS), the law of cosines gives the third side first. With two angles and the side between them (ASA), the third angle is 180° minus the other two, and the law of sines, a ÷ sin A = b ÷ sin B = c ÷ sin C, gives the remaining sides.

The area comes from Heron's formula, √(s(s − a)(s − b)(s − c)) with s half the perimeter, which works for every triangle without needing a height.

Where it is used

Surveyors, carpenters and engineers solve triangles to measure land, set out roofs and trusses, and compute forces. Navigation and astronomy use the same laws. A quick check: the angles must add up to 180°, the longest side is opposite the largest angle, and each side must be shorter than the sum of the other two — otherwise the measurements cannot form a triangle.

The ambiguous case

Knowing two sides and an angle that is not between them (SSA) can produce two different triangles, one or none, which is why this calculator asks for the included angle. If you have an SSA measurement, use the law of sines carefully and check both possible angles.

Formula & method

Law of cosines: c² = a² + b² − 2ab cos CLaw of sines: a ÷ sin A = b ÷ sin B = c ÷ sin CHeron: Area = √(s(s−a)(s−b)(s−c)), s = half the perimeter

Worked example

Sides 3, 4 and 5

  1. cos C = (3² + 4² − 5²) ÷ (2 × 3 × 4) = 0, so C = 90°
  2. A = 36.87°, B = 53.13°
  3. s = 6; area = √(6 × 3 × 2 × 1) = 6

Answer: A right, scalene triangle with an area of 6 and a perimeter of 12.

Frequently asked questions

Why does SSS sometimes fail?

Three lengths form a triangle only if each side is shorter than the sum of the other two (the triangle inequality).

Can I solve a triangle from three angles?

No. Angles alone fix the shape but not the size; you need at least one side.

What is the law of cosines?

c² = a² + b² − 2ab cos C, a generalisation of Pythagoras’ theorem.

How do I find the height?

Height on side a = 2 × area ÷ a.

What units should I use?

Any unit for the sides; the area is in that unit squared and the angles in degrees.

What is an obtuse triangle?

One with an angle greater than 90°.

For right triangles, is there a simpler tool?

Yes, the Pythagorean calculator solves right triangles from two sides.