How to use the triangle solver
- In What you know, choose Three sides (SSS), Two sides and the included angle (SAS), Two angles and the side between them (ASA), Two angles and a non-included side (AAS) or Two sides and a non-included angle (SSA).
- Fill in the three boxes that appear. Angles are in degrees.
- Read Area, Perimeter and Type, then the Solved triangle table with all sides, angles, inradius, circumradius and the height to side a.
- Look at the diagram to check the shape, and read Method to see which law was used.
What it does and when to use it
A triangle is fixed by three measurements, as long as at least one is a side. This solver handles every such case taught in school trigonometry. Surveyors and builders use the same steps to find a distance they cannot measure, such as the width of a river from two angles and a baseline (ASA), or the length of a roof brace from two sides and the angle between them (SAS).
For right triangles, the Pythagorean calculator is quicker. If you only need a missing angle from two others, use the angle calculator. Sine and cosine values for a single angle come from the trigonometry calculator.
How it works
- SSS: law of cosines for each angle, cos A = (b² + c² − a²)/(2bc); the third angle is 180° minus the other two.
- SAS: law of cosines for the third side, c² = a² + b² − 2ab·cos C, then the angles as in SSS.
- ASA and AAS: third angle C = 180° − A − B, then the law of sines, a/sin A = b/sin B = c/sin C.
- SSA: sin B = b·sin A / a. If both B and 180° − B leave room for angle C, there are two solutions.
Area comes from Heron’s formula, √(s(s − a)(s − b)(s − c)) with s = (a + b + c)/2. Inradius is area ÷ s, and circumradius is abc ÷ (4 × area).
Worked examples
Three sides, step by step. Sides a = 7, b = 8, c = 9.
- cos A = (8² + 9² − 7²)/(2 × 8 × 9) = 96/144 = 0.6667, so A = 48.1896851°.
- cos B = (7² + 9² − 8²)/(2 × 7 × 9) = 66/126 = 0.5238, so B = 58.41186449°.
- C = 180° − A − B = 73.3984504°.
- s = 24 ÷ 2 = 12, and area = √(12 × 5 × 4 × 3) = √720 = 26.83281573.
The tool labels it an acute scalene triangle.
Two angles and a side. A = 40°, B = 65° and c = 10. Then C = 75°, a = 6.654627014 and b = 9.38278864.
The ambiguous case. a = 7, b = 10, A = 35°. The tool shows Solution 1 with B = 55.02426762° and Solution 2 with B = 124.9757324°. The second triangle is obtuse, with c = 4.178914411.
Limits and tips
- All sides and angles must be greater than zero, and each angle less than 180°.
- The diagram shows only the first solution in the ambiguous case.
- Results show up to 10 significant figures. A right angle found by calculation is labelled “right” when it is within a tiny tolerance of 90°.
- Everything runs in your browser.
Frequently asked questions
Which side is opposite which angle?
Why does SSA sometimes give two triangles?
Why does it say no triangle exists?
Can I enter angles in radians?
What are the inradius and circumradius?
How do we know nothing is uploaded? Test it yourself on the privacy proof page.