Skip to content
AZ Tools

Triangle Solver: SSS, SAS, ASA, AAS & SSA

Solve any triangle from three known sides and angles — SSS, SAS, ASA, AAS or the ambiguous SSA case — with area, perimeter, radii, heights and medians.

Known values
Angles in

Three sides.

Sides
Angles
Area
Perimeter
Inradius r
Circumradius R
Heights
Medians
Type
ABC

Checked against triangles built from coordinates at 50 digits with mpmath. Runs in your browser.

How to use

  1. Choose the case that matches what you know: SSS, SAS, ASA, AAS or SSA, and whether angles are in degrees or radians.
  2. Enter the three values; side a is opposite angle A, b opposite B and c opposite C.
  3. Read the missing sides and angles, area, perimeter, radii, heights, medians and type — and for SSA, each of the triangles that fit.

About this tool

Show

Give any three independent facts about a triangle and the rest follows. This solver takes the five cases that fix a triangle — three sides (SSS), two sides and the angle between them (SAS), two angles and the side between them (ASA), two angles and a side opposite one of them (AAS), or two sides and an angle opposite one of them (SSA) — and returns every side and angle, the area, perimeter, inscribed and circumscribed radii, the three heights and the three medians, whether the triangle is acute, right or obtuse and whether it is equilateral, isosceles or scalene, with a drawing to scale. Side a is always opposite angle A, and angles can be entered in degrees or radians. SSA is the ambiguous case: given a, b and the angle A opposite a, there may be two different triangles, exactly one, or none at all. When a is at least b there is one; when a is shorter, the side can swing to two positions, touch the base line at one right angle, or fall short of it, and the tool shows each triangle that exists. Three angles alone (AAA) fix only the shape, not the size, so that case is not offered. The arithmetic is chosen for thin triangles, where textbook formulas lose digits: angles come from the half-angle tangent formula rather than the arc cosine of the law of cosines, and the area from Kahan's rearrangement of Heron's formula, so a needle-shaped triangle such as 10, 10, 19.99 still gets its small angle and area to full precision. Inputs that cannot form a triangle — sides that break the triangle inequality, angles that add up to 180° or more — are refused with the reason.

Frequently asked questions

Why can SSA give two triangles?

With sides a and b and the angle A opposite a, side a can often swing into two positions that both reach the third side's line, giving an acute and an obtuse version of the triangle. If a is at least as long as b only one position works; if a is exactly b·sin A there is a single right triangle; if a is shorter still, no triangle exists.

Which side is a?

The usual convention: side a lies opposite angle A, side b opposite B and side c opposite C. In SAS the given angle A sits between sides b and c; in ASA the given side a lies between angles B and C.

How is the area calculated?

From the three sides with Heron's formula in Kahan's numerically stable arrangement, which stays accurate for very flat triangles where the textbook form cancels badly. It agrees with ½·b·c·sin A and with the shoelace formula on coordinates.

What are the inradius and circumradius?

The inradius r is the radius of the largest circle inside the triangle, r = area / s with s the half-perimeter. The circumradius R is the radius of the circle through all three corners, R = a / (2 sin A). For a 3-4-5 triangle they are 1 and 2.5.

Why is 'three angles' not an option?

Three angles fix the shape but not the size: every triangle with angles 30°, 60° and 90° is a scaled copy of the others. At least one side is needed, which is what ASA and AAS provide.

Related tools