Triangle Solver
Free online triangle solver. All triangle parameters (sides, angles, area). Accurate and easy to use.
Sides
a = 5.0000
b = 6.0000
c = 7.0000
Angles
A = 44.42°
B = 57.12°
C = 78.46°
Area: 14.6969
Perimeter: 18.0000
Semi-perimeter: 9.0000
Type: Scalene & Acute
Steps
Using Law of Cosines: cos(A) = (b² + c² − a²) / (2bc)
cos(A) = (6² + 7² − 5²) / (2 × 6 × 7)
cos(A) = (36 + 49 − 25) / 84
cos(A) = 0.7142857142857143
A = 44.42°
Same for B, then C = 180 − A − B
Embed this tool
Copy and paste the code below into your website to embed this tool for free. An attribution link to The Util Box is required.
<iframe src="https://www.theutilbox.org/embed/triangle-solver" width="600" height="500" frameborder="0" style="border: none; max-width: 100%;" title="Free Triangle Solver tool from The Util Box"></iframe> <!-- Free tool by The Util Box — https://www.theutilbox.org/tools/triangle-solver --> <a href="https://www.theutilbox.org/tools/triangle-solver">Triangle Solver by The Util Box</a>
Frequently Asked Questions about Triangle Solver
Triangle Solver — Sides and Angles from Whichever Three You Know
This triangle solver works out the missing parts of a triangle from any three of its six measurements. Give it three sides, or two sides and the included angle, or two angles and a side, and it returns the remaining sides and angles, the area, the perimeter and the semi-perimeter, along with the type of triangle it has just solved.
It recognises which of the standard cases you have given it and labels the result accordingly — SSS, SAS, ASA, AAS, or SSA — so you always know which law was applied to get your answer.
The Five Cases and the Law Behind Each
| Given | Law used |
|---|---|
| Three sides (SSS) | cos A = (b² + c² − a²) / 2bc |
| Two sides and the included angle (SAS) | c² = a² + b² − 2ab·cos C |
| Two angles and a side (ASA) | a / sin A = c / sin C |
| Two angles and the opposite side (AAS) | a / sin A = b / sin B |
| Two sides and a non-included angle (SSA) | Ambiguous — may give one or two triangles |
The area comes from Heron's formula, which needs the semi-perimeter:
√(s(s − a)(s − b)(s − c)). The type is classified two ways at once — by side
(equilateral, isosceles or scalene) and by angle (right, acute or obtuse) — and both are shown together, so a
5-5-6 triangle is reported as "Isosceles & Acute".
The Ambiguous Case, and Other Limits
- SSA can produce two different triangles. When you give two sides and a
non-included angle, the sine rule can return two valid answers. The tool recognises this: it compares the
opposite side against the altitude
h = b·sin(A)and reports "no triangle", "right triangle case" or "two possible triangles" accordingly. - Only the first of the two possible SSA triangles is returned. The steps panel says that two triangles exist, but the displayed solution is the one with the smaller angle B. The second solution has the supplementary angle and is not shown.
- At least three values must be entered, and the three must fit one of the cases above. Extra values that conflict with the case are ignored.
- No unit selector. Sides are entered as bare numbers, so whatever unit you work in — metres, inches, feet — the area and perimeter come back in that unit and its square.
- Degenerate and impossible triangles are not rejected. The law of cosines will return an error value for a set of sides that cannot close, so check the angle sum and the type before trusting a result.
Related Calculators
- Pythagorean Calculator — the right-triangle case on its own.
- Circle Calculator — area, circumference, radius and diameter.
- Unit Circle Calculator — the trigonometric values for any angle.
- Surface Area Calculator — the three-dimensional solids built from these shapes.
- 3D Volume Calculator — the volumes of prisms, cylinders and spheres.
- Scientific Calculator — the numeric workbench for checking your trigonometry.
- Slope Calculator — gradients and the angles they make.
Everything is calculated locally in your browser, so nothing is uploaded and it keeps working offline.