HandyTools Hub

📐 Triangle Calculator

Solve triangles from sides and angles — SSS, SAS, ASA, or SSA

🔒 100% client-side processing

Given
Three sides (SSS)

The Triangle Calculator solves any triangle from three known measurements, in the four configurations geometry actually uses: SSS, SAS, ASA, and SSA. Enter what you know, and it returns all three sides, all three angles in degrees, the area, and the perimeter, with a scaled diagram showing the resulting shape. It is for checking geometry homework, resolving field measurements in surveying and engineering, and working out triangular cuts in carpentry.

How to Use

  1. Pick the mode that matches your known values — SSS, SAS, ASA, or SSA. The four tabs relabel the inputs accordingly.
  2. Enter three values. Sides are unitless positive numbers; angles are in degrees between 0 and 180.
  3. Read the full solution: every side, every angle, area, and perimeter, computed instantly.
  4. Check the diagram. The sketch is scaled to the true side proportions, which is a quick way to catch a mistyped number.
  5. Watch the SSA case. For two sides and a non-included angle, the tool reports whether there are zero, one, or two valid solutions.

The Four Input Modes

Each mode corresponds to a standard congruence criterion, and the reason there are exactly four is that they are the combinations that determine a triangle uniquely.

  • SSS — three sides. The most constrained case. Once all three sides are fixed, the triangle is rigid: there is exactly one shape. The tool solves for the angles using the law of cosines.
  • SAS — two sides and the included angle. The angle between the two known sides fixes the third side by the law of cosines, after which the remaining angles follow.
  • ASA — two angles and the included side. Because the angles of a triangle sum to 180°, knowing two determines the third. The known side is then used with the law of sines to find the other two.
  • SSA — two sides and a non-included angle. The one configuration that can be ambiguous, described below.

The Ambiguous SSA Case

SSA is the case worth understanding, because it is the only one where a set of measurements can describe more than one triangle. Picture a known side anchored at one vertex with a known angle at the other end; the second known side can swing out and meet the base in two positions — one producing an acute angle, one an obtuse angle. Both triangles satisfy the given data.

There are three possible outcomes. The swing may miss entirely (no triangle), touch at exactly one point (one, right-angled solution), or cross twice (two solutions). When you have measured a physical object, one of the two will be geometrically impossible in context — a side that would have to pass through the object, or an angle that contradicts a second observation. Use the diagram to see which shape is plausible, and note both in your work if the problem calls for it. Silently returning only the acute solution is how calculators produce “wrong” answers for this configuration.

Worked Examples

Example 1 — an SSS check. Sides of 3, 4, and 5. The tool confirms a right triangle by returning angles of about 36.87°, 53.13°, and 90°, an area of 6, and a perimeter of 12. Students can use this to verify that their own working matches, and the diagram makes the right angle visible.

Example 2 — a surveying measurement. Two sides of a plot meet at an angle of 62°, with lengths of 40 m and 55 m. In SAS mode, the tool returns the third side (about 51.1 m) along with the remaining angles, which is exactly what is needed to compute the area of the parcel and mark the boundary.

Example 3 — an SSA ambiguity in carpentry. A brace is cut with one side of 300 mm, another of 200 mm, and a 30° angle opposite the shorter side. SSA reports two possible shapes — a shallow triangle and a steeper one. The drawing shows which matches the intended joint, so the cut is made to the right geometry rather than the first solution printed.

The Formulas Behind the Answers

The calculator applies the standard identities, in the order each mode requires:

  • Law of cosines — for SSS and SAS: c² = a² + b² − 2ab·cos(C). This finds the missing side from two sides and the included angle, or an angle from all three sides.
  • Law of sines — for ASA and SSA: a / sin(A) = b / sin(B) = c / sin(C). With two angles known, the third follows from the 180° sum, and the ratio yields the remaining sides.
  • Area from three sides — Heron’s formula: Area = √(s(s−a)(s−b)(s−c)), where s is half the perimeter.
  • Area from two sides and an included angle — Area = ½ · a · b · sin(C).

Both area methods return the same value for the same triangle; the tool picks whichever the input mode makes available.

Common Mistakes

  • Choosing the wrong mode. SSA and SAS differ by whether the angle sits between the known sides. Picking the wrong tab gives a solution to a different problem that still looks plausible.
  • Entering an angle in radians. All inputs and outputs are in degrees. An angle of 1 radian is about 57.3°, so a value of 1 entered as degrees creates a very different triangle.
  • Ignoring the triangle inequality. Sides of 1, 2, and 10 cannot close; the tool reports it, but knowing the rule lets you spot a bad measurement before calculating.
  • Forgetting the second SSA solution. If your context knows the triangle is obtuse, the acute result alone is not the answer.
  • Rounding intermediate values by hand. Work from the calculator’s full-precision output rather than re-entering rounded numbers, which compounds error across several steps.

Features

  • Four input modes: SSS, SAS, ASA, and SSA with relabelled inputs
  • Explicit ambiguous-case handling for SSA — zero, one, or two solutions listed
  • Complete solution: all sides, all angles in degrees, area, and perimeter
  • Area via Heron’s formula or ½ab·sin(C), matching the known values
  • Scaled SVG diagram drawn from the computed side proportions
  • Clear validation for impossible inputs, and fully client-side processing

Frequently Asked Questions

How does the calculator decide which mode to use?

You choose the mode, because the mode encodes what you already know. Pick SSS when you have three sides, SAS when you have two sides and the angle between them, ASA when you have two angles and the side between them, and SSA when you have two sides and an angle that is not between them. The inputs relabel to match the mode, so you can see exactly which measurements are expected.

Why does SSA sometimes give two valid answers?

With two sides and a non-included angle, the known side can rotate around one vertex and still form a legal triangle in two positions — one acute and one obtuse. This is the ambiguous case. The calculator reports both rather than silently choosing, because in a real measurement either could be the true shape of the object.

How do I know an input is impossible before I calculate?

Three checks catch almost every invalid set. Every side must be shorter than the sum of the other two (the triangle inequality). The three angles must sum to exactly 180°. And every side and angle must be a positive number. The calculator runs all three and reports the specific violation rather than returning a meaningless result.

Is the area an exact value or a rounded one?

It is computed directly from your inputs and displayed rounded for readability, not approximated by dividing the triangle into a grid. With three known sides the tool applies Heron's formula, which is exact in the mathematical sense; when an angle is known it uses half the product of two adjacent sides times the sine of that angle.

Can I use it for right triangles?

Yes, and right triangles are just a special case — set one angle to 90°. If you know two sides of a right triangle, SAS or SSS will solve it and the Pythagorean relationship falls out of the results. The dedicated Pythagorean mode, if you have one side and a hypotenuse, is simply a triangle solved with the 90° constraint fixed.

Does the diagram affect the accuracy of the numbers?

No. The diagram is a schematic drawn from the same computed values, scaled to the real side proportions so you can sanity-check the shape. The numbers and the drawing come from one solution, which is why a result that looks wrong in the picture usually indicates an input typo rather than a calculation bug.

Reviewed by the HandyTools Hub team · Last updated