worldngayon students

Triangle solver

Enter any three of the six measurements, including at least one side. The solver finds the other sides and angles, the area and perimeter, shows each step, and draws your triangle to scale, including the tricky case where two different triangles fit.

Side a is opposite angle A, b opposite B, c opposite C. Angles in degrees.

°
°
°

Examples:

Naming a triangle

The angles are A, B and C, and each side is named after the angle opposite it: side a is opposite angle A, and so on. The three angles always add up to 180°.

The law of sines

a ÷ sin A = b ÷ sin B = c ÷ sin C. Use it when you know a side and the angle opposite it (ASA, AAS, and the SSA case).

The law of cosines

c² = a² + b² − 2ab cos C. Use it when you know three sides (SSS) or two sides and the angle between them (SAS). When C = 90°, cos C = 0 and it becomes Pythagoras' theorem, c² = a² + b².

The ambiguous case (SSA)

If you know two sides and an angle that is not between them, there may be no triangle, one triangle, or two different triangles. That is because two angles have the same sine (θ and 180° − θ). Try the "SSA: two triangles" example and switch between the two solutions.

Area

Area = ½ab sin C, using two sides and the angle between them. With three sides, Heron's formula gives the same answer.

Questions students ask

Why do I need at least one side?

Three angles fix the shape of a triangle but not its size: a small and a large triangle can have exactly the same angles (they are similar).

How do I solve a right-angled triangle?

Enter 90 for the right angle and two other values. The solver uses the same laws, which reduce to Pythagoras' theorem and SOH CAH TOA for right angles.

More math tools

Connected tools

The same idea from another angle, across the site.