This calculator solves a triangle when you know all three side lengths (the SSS case). Enter the three side lengths, and it returns the three angles in degrees, plus the area and perimeter. It uses the law of cosines and Heron’s formula, so you get exact results without drawing anything.
Formula
For a triangle with sides a, b, and c, the law of cosines relates each angle to the three sides:
cos(A) = (b² + c² − a²) / (2bc)
So angle A (opposite side a) is:
A = arccos[(b² + c² − a²) / (2bc)]
Similarly, B = arccos[(a² + c² − b²) / (2ac)] and C = arccos[(a² + b² − c²) / (2ab)]. All angles are in degrees.
The area is given by Heron’s formula:
Area = √[s(s − a)(s − b)(s − c)], where s = (a + b + c) / 2 is the semiperimeter.
In the calculator, the area expression is written as 0.25 × √[(a+b+c)(−a+b+c)(a−b+c)(a+b−c)] which is algebraically identical but avoids a separate semiperimeter step.
Worked Example
Using the default values: a = 5, b = 6, c = 7.
- Compute angle A: cos(A) = (6² + 7² − 5²) / (2 × 6 × 7) = (36 + 49 − 25) / 84 = 60/84 = 0.7142857. A = arccos(0.7142857) ≈ 44.42°.
- Compute angle B: cos(B) = (5² + 7² − 6²) / (2 × 5 × 7) = (25 + 49 − 36) / 70 = 38/70 = 0.5428571. B = arccos(0.5428571) ≈ 57.12°.
- Compute angle C: cos(C) = (5² + 6² − 7²) / (2 × 5 × 6) = (25 + 36 − 49) / 60 = 12/60 = 0.2. C = arccos(0.2) ≈ 78.46°.
- Check: A + B + C = 44.42 + 57.12 + 78.46 = 180.00°.
- Area using Heron: s = (5+6+7)/2 = 9. Area = √[9(9−5)(9−6)(9−7)] = √[9×4×3×2] = √216 ≈ 14.70 square units.
- Perimeter = 5 + 6 + 7 = 18 units.
The calculator gives the same results: A = 44.42°, B = 57.12°, C = 78.46°, area = 14.70, perimeter = 18.00.
When to Use the SSS Triangle Calculator
Use this tool whenever you know all three side lengths of a triangle and need the angles or area. Common situations include:
- Surveying a triangular plot of land where you measured the three boundary lengths.
- Construction or carpentry: you know the three sides of a triangular frame or brace and need the angle to cut.
- Navigation or geometry homework: given three sides, find the angles.
- Checking whether a triangle is acute, right, or obtuse: if one angle is exactly 90°, the sides satisfy the Pythagorean theorem.
- Computing the area of a triangle when you don’t know the height.
The SSS case is one of the four classic triangle-solving situations (SSS, SAS, ASA, SSA). It is always uniquely determined: three side lengths define exactly one triangle (up to mirror image), so the angles are fixed.
How to Read the Results
The three angles are labeled by the side opposite them: angle A is opposite side a, B opposite b, C opposite c. The sum should always be 180° (within rounding). The area is in square units matching the side units: if sides are in meters, area is in square meters; if feet, square feet.
The calculator also gives the perimeter, which is simply the sum of the sides. If you only need the angles, ignore the area and perimeter.
For a quick sanity check, the largest angle is opposite the longest side. In the example, side c = 7 is longest, and angle C = 78.46° is indeed the largest. If the largest side squared equals the sum of the squares of the other two, the triangle is right-angled; if it’s greater, the triangle is obtuse.
Common Mistakes and Misconceptions
- Unit mix-ups: All three sides must be in the same unit. Mixing meters and centimeters will produce nonsense angles. Convert first.
- Triangle inequality: The sum of any two sides must be greater than the third. If not, no triangle exists. For example, sides 1, 2, 3 fail because 1+2 is not greater than 3. The calculator will show an error or a nonsensical angle because the arccos argument is outside [−1, 1].
- Degrees vs radians: This calculator returns degrees. If you use a scientific calculator, make sure it’s in degree mode.
- Rounding too early: If you round intermediate values, the final angles may be off by a few tenths of a degree. Keep full precision until the end.
- Confusing which angle is which: Angle A is opposite side a, not adjacent to it. This is a common source of error when checking work.
A frequent misconception is that the law of cosines is only for right triangles. Actually, it works for any triangle; the Pythagorean theorem is just the special case when C = 90°.
Limitations of the SSS Method
The SSS method is deterministic: given three valid sides, there is exactly one set of angles. However, the law of cosines can be numerically unstable for very flat triangles (where one angle is near 180°). In such cases, the arccos argument may be slightly outside [−1, 1] due to rounding, producing an error. This is rare with real measurements but possible with extreme ratios.
The area formula (Heron’s) also becomes less accurate for very thin triangles because of catastrophic cancellation in the product. If you need high precision for extremely elongated triangles, consider using a different method or higher precision arithmetic.
Also, the calculator assumes Euclidean geometry on a flat plane. It does not apply to spherical triangles (e.g., on the Earth’s surface) or hyperbolic geometry.
Frequently Asked Questions
What if the sides don’t form a triangle?
If the triangle inequality is violated (e.g., sides 1, 2, 5), the calculator will show an error or a result like “Cannot compute” because the arccos argument is out of range. In reality, no such triangle exists. Always check that the sum of any two sides is greater than the third.
Can I use this for right triangles?
Yes, but it’s overkill. For a right triangle, you only need two sides and the Pythagorean theorem to find the third, then simple trig for the angles. This calculator works fine, but it will give the same results with more steps.
What units should I use?
Any unit you like, as long as all three sides are in the same unit. The angles are dimensionless (degrees), and the area will be in square units of whatever you used. For example, if you enter feet, the area is in square feet.
How do I find the height of the triangle?
Once you have the area, you can find the height to any side: height = 2 × area / base. For example, with sides 5, 6, 7, the height to side a (length 5) is 2 × 14.70 / 5 = 5.88 units.
Why does my calculator give a different angle?
Check that you’re using degree mode, not radians. Also verify that you’re using the correct formula for the angle you want: cos(A) = (b² + c² − a²) / (2bc). A common mistake is swapping b and c, but since the formula is symmetric in b and c, that doesn’t matter. More likely, you used the wrong side in the numerator.
Can I use this to find the angles if I only know two sides and the included angle (SAS)?
No, this calculator is specifically for SSS. For SAS, you’d use the law of cosines to find the third side first, then the law of sines to find the other angles. That’s a different calculation.
Related
Formula used
in a | Side a | - | 5 | 0 | 100000 in b | Side b | - | 6 | 0 | 100000 in c | Side c | - | 7 | 0 | 100000 out A | Angle A (opposite a) | deg | acosd((b^2 + c^2 - a^2) / (2 * b * c)) | 2 out B | Angle B (opposite b) | deg | acosd((a^2 + c^2 - b^2) / (2 * a * c)) | 2 out C | Angle C (opposite c) | deg | acosd((a^2 + b^2 - c^2) / (2 * a * b)) | 2 out area | Area | units² | 0.25 * sqrt((a+b+c) * (-a+b+c) * (a-b+c) * (a+b-c)) | 2 out per | Perimeter | units | a + b + c | 2
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.
- Sharpe Ratio Calculator & Formula
- Stress Concentration Factor Calculator
- Work Rate Calculator: Formula & Examples5.00 hours
- Sustainable Growth Rate Calculator & Formula10.50 %
- Spring Rate Calculator: Formula & Examples
- Utilization Rate Calculator: Formula & Examples80.0 %