Free Triangle Calculator (SSS, SAS, ASA, AAS, SSA)

Free triangle calculator: solve any triangle from 3 known sides or angles, including the SSA ambiguous case, with area, perimeter, heights and a scaled drawing.

  • No upload, 100% private
  • Instant, in your browser
  • 100% free, no signup
Loading tool…
Read the complete guideHow to Solve Any Triangle: Law of Sines, Law of Cosines and SSA →

About the Triangle Calculator tool

Any triangle has six measurements — three sides and three angles — and three of them, including at least one side, are usually enough to find the rest. Which formula to use depends on what you know, and this is where most mistakes happen. This triangle calculator solves every standard case: SSS (three sides), SAS (two sides and the included angle), ASA (two angles and the side between them), AAS (two angles and another side) and the notorious SSA case.

SSA — two sides and an angle that is not between them — is called the ambiguous case because it can produce no triangle, exactly one, or two different triangles. The calculator works out the height h = b·sin A, compares it with side a, and shows every valid solution; when there are two, you can switch between them. Throughout, it uses the law of cosines and the law of sines, choosing the numerically safe formula (for example, finding the smaller angle first with the law of sines so an obtuse angle is never missed).

Once solved, you get the area, perimeter, all three heights and medians, the inradius and circumradius, angles in degrees and radians, and the classification by sides (scalene, isosceles, equilateral) and by angles (acute, right, obtuse). A drawing scaled to your triangle is labelled with every side and angle.

How to use Triangle Calculator

  1. Pick what you know: SSS, SAS, ASA, AAS or SSA.
  2. Enter the three values in the labelled boxes — side a is opposite angle A, and so on. Angles are in degrees.
  3. Read the area and all sides and angles in the result card.
  4. If SSA gives two triangles, choose “Triangle 1” or “Triangle 2” to view each one.
  5. Click “Show steps” to see which law was used at each stage.

Features

All five cases

SSS, SAS, ASA, AAS and SSA, with input labels that show where each value sits.

Ambiguous case solved properly

SSA returns zero, one or two triangles with an explanation based on the height.

Complete measurements

Area, perimeter, heights, medians, inradius, circumradius and radian angles.

Triangle type

Classified as scalene, isosceles or equilateral and as acute, right or obtuse.

Scaled drawing

An SVG sketch drawn to proportion, with a right-angle mark when one exists.

When to use it

  • Solve trigonometry homework using the law of sines and cosines.
  • Find the area of an irregular triangular plot of land from its three sides.
  • Work out roof pitch angles or truss lengths in construction.
  • Check navigation or surveying triangles from measured distances and bearings.

Frequently asked questions

What is the SSA ambiguous case?

When you know two sides and an angle opposite one of them, the other side can swing into two positions. For an acute angle A: if a < b·sin A there is no triangle, if a = b·sin A or a ≥ b there is one, and if b·sin A < a < b there are two. For a right or obtuse A there is one triangle when a > b and none otherwise.

When do I use the law of cosines vs the law of sines?

Use the law of cosines (c² = a² + b² − 2ab·cos C) for SSS and SAS, where no side–angle pair is known. Use the law of sines (a/sin A = b/sin B = c/sin C) once you know a side and its opposite angle, as in ASA, AAS and SSA.

Can I solve a triangle from three angles?

No. Three angles fix the shape but not the size — infinitely many similar triangles share them. You need at least one side.

How is the area calculated?

Using ½·b·c·sin A, which is equivalent to Heron’s formula for three sides and to ½ × base × height.

Why do the three sides need to satisfy the triangle inequality?

Each side must be shorter than the other two combined, otherwise the ends cannot meet. Sides 1, 2 and 3 only form a flat line, so the calculator rejects them.

Related tools