Skip to content
Angle Finder Protractor Logo
Angle Finder Protractor
Free online calculator

Triangle Solver

Last updated: September 29, 2026

A triangle is fixed the moment you know three independent measurements - three sides, two sides with the angle between them, or two angles with one side. This solver takes whichever of those you have and returns everything else: the remaining sides, all three angles, the area and the perimeter.

Pick what you measured from the "Given" menu and fill in the fields that stay active - the others switch off so you cannot mix incompatible inputs. Every result updates as you type, in degrees for angles and in whatever unit you typed for the sides (millimetres, centimetres, inches - the answer follows your unit).

Everything runs in your browser. Nothing you enter is uploaded anywhere.

Angle A — °
Angle B — °
Angle C — °
Side a —
Side b —
Side c —
Area (squared units) —
Perimeter —

law of cosines: a² = b² + c² − 2bc·cos A · law of sines: a / sin A = b / sin B · area = ½·a·b·sin C · Heron: √(s(s−a)(s−b)(s−c)) with s = (a+b+c) / 2

The third angle always follows from A + B + C = 180°. A set of three numbers only forms a real triangle when each side is shorter than the sum of the other two - otherwise the solver reports "no solution".

Worked examples

Three sides: the classic 3-4-5 triangle

Given SSS: a = 3, b = 4, c = 5

A 36.87° · B 53.13° · C 90° · area 6 · perimeter 12

Two sides and the angle between them

Given SAS: a = 5, b = 6, C = 60°

c 5.57 · A 51.05° · B 68.95° · area 12.99 · perimeter 16.57

Two angles and a side (surveying-style measurement)

Given ASA: A = 50°, B = 60°, c = 10

C 70° · a 8.15 · b 9.22 · area 35.30 · perimeter 27.37

Equilateral triangle from one side

Given SSS: a = 7, b = 7, c = 7

A 60° · B 60° · C 60° · area 21.22 · perimeter 21

How to solve a triangle (and which measurements you need)

Three pieces of information are enough because a triangle has three degrees of freedom: the three side lengths, or any combination that adds up to the same amount of independent data. The three standard combinations have short names used in every geometry class. SSS means you measured all three sides - common when the triangle is an object you can walk around with a tape measure. SAS means two sides and the angle where they meet, which is what you get from a bevel gauge or a theodolite reading between two visible corners. ASA means two angles and one connecting side, the typical result of measuring a baseline and two bearings from its ends.

Once you have three valid values, the rest follows with two rules. The law of cosines turns three sides into an angle: a² = b² + c² − 2bc·cos A, rearranged as cos A = (b² + c² − a²) / (2bc) when the angle is what you need. The law of sines then passes the problem around the triangle: a / sin A = b / sin B = c / sin C, so one known angle-side pair unlocks the other two. The third angle costs nothing at all - subtract the two you know from 180°.

Area has two equally good formulas, and the solver picks the one that matches your inputs. With two sides and the included angle it is area = ½·a·b·sin C. With three sides it is Heron's formula: halve the perimeter to get s, then take √(s(s−a)(s−b)(s−c)). Both give the answer in square units of whatever unit you typed for the sides, so centimetres become square centimetres without any conversion step.

Watch for two failure modes. Three lengths that violate the triangle inequality - any side equal to or longer than the other two added together - collapse into a flat line or nothing at all, and the solver says so instead of returning nonsense. In the two-angle case, the two known angles must add up to less than 180°; if they reach or pass it, there is no room left for the third angle. Small rounding errors in field measurements usually show up as angles that miss 180° by a fraction of a degree, which is a sign to re-measure rather than trust the numbers.

Where this comes in handy: checking a rafter or truss cut against the plan angle, confirming that a bracket really is square, converting a bearing into a corner angle for trim work, or solving the triangles hidden inside a ramp, a roof plane or a solar array layout. If one of your values came from the on-screen protractor instead of a tape, type it in as an angle and let the solver work out the geometry around it.

Want to measure an angle instead of calculating one? Open the on-screen angle finder and protractor - it measures angles on screen, over an uploaded photo or through your camera, with no upload.

Triangle solver FAQ

What three values do I need to solve a triangle?
Any three independent measurements: three sides (SSS), two sides and the angle between them (SAS), or two angles and one side (ASA). Two sides and a non-included angle (SSA) is the ambiguous case and is not offered here on purpose.
How do I find the missing angle of a triangle?
Subtract the two known angles from 180°. If you only know sides, first use the law of cosines - cos A = (b² + c² − a²) / (2bc) - to get one angle, then the law of sines for the next.
What is the area of a triangle given three sides?
Use Heron's formula: s = (a + b + c) / 2, then area = √(s(s − a)(s − b)(s − c)). For a 3-4-5 triangle, s = 6 and the area is √(6 · 3 · 2 · 1) = 6.
How do I know if three lengths form a triangle at all?
Every side must be shorter than the sum of the other two. For 3, 4 and 5 that works (3 + 4 > 5), but for 1, 2 and 5 it fails, so no triangle exists and the solver reports no solution.

Related angle tools