General Triangle Solver
Solve a triangle from SSS or SAS: every angle, the area and the perimeter, by the law of cosines.
General Triangle Solver
Solve a triangle from SSS or SAS: every angle, the area and the perimeter, by the law of cosines.
What the page prints, and what it refuses
Every figure is printed with the rule or formula that produced it, and any numerical tolerance is stated on the result rather than implied. The page refuses an input the formula does not define and names the value it read; it prints no answer it cannot support.
The calculation runs entirely in this browser tab; nothing is uploaded.
The page solves a triangle from three sides, or from two sides and the angle between them. The 3–4–5 triangle gives a right angle at C, the other angles 36.8699° and 53.1301°, and an area of 6.
SAS first computes the third side with c² = a² + b² − 2ab·cos C, then continues as SSS. Every angle comes from the law of cosines, so the three values genuinely solve the triangle rather than being read from a special-case table.
Two inputs, one triangle
SSS has a unique triangle up to reflection. SAS also has one, because the included angle fixes the third side. SSA can have two, which is why the page does not offer it: choosing between the ambiguous cases would need a rule the page cannot infer.
Angles are returned in degrees and their sum is printed as a check against 180°. A failure of the triangle inequality is refused, including the SAS case where the computed side cannot close the figure.
How to use General Triangle Solver
Choose SSS or SAS. Enter the three sides for SSS, or the two sides and the included angle for SAS.
Press Run. The result prints all three sides, all three angles, their sum, the area and the perimeter.
What to Expect
Best for
- Solving a triangle from SSS or SAS
- Checking an angle by the law of cosines
- Finding a triangle's area without a height
Not ideal for
- SSA, which can have two solutions
- AAA, which fixes shape but not size
- A triangle on a sphere
What this tool keeps
- The mode and the values it needs
What may need cleanup
- Nothing: every figure is a final number
Common errors
- A failing triangle inequality is refused
- An included angle outside 0–180° is refused
Example use cases
- Solve the 3–4–5 triangle
- Solve SAS with a 60° included angle
- Check an angle against the law of cosines
Sample input
SSS with a = 3, b = 4, c = 5
Sample output
C = 90°, area = 6, perimeter = 12
Who this is for
- Geometry students
- Readers checking a triangle solution
Frequently asked questions
Why is SSA not offered?
Two sides and a non-included angle can produce zero, one or two triangles. That ambiguity needs a case analysis, and a single answer would silently hide the second solution.
Why check the angles sum to 180?
It is a check on the arithmetic, not an input. A sum away from 180° would mean the three law-of-cosines evaluations disagree, which the page surfaces.
Are the answers exact?
No. The angles come from arccos of a floating-point ratio, so they are printed to four decimals. The side lengths and area carry six.
Build custom tools for your store
Join the SDK program to create useful ecommerce utilities for your store.