Triangle Solver

Solve any triangle using SSS, SAS, ASA, or AAS with law of cosines & sines.

Geometry calculator

Solve a triangle from three known sides and angles with SSS, SAS, ASA, AAS, or SSA. The calculator checks your measurements and shows every valid SSA solution.

Enter three known measurements

Side labels use the standard convention: lowercase side a is opposite angle A, and so on. Side lengths use your chosen unit; the calculator does not assume meters, inches, or another scale.

Enter a positive side length
Enter a positive side length
Enter a positive side length

Results

One valid triangle · SSS

Triangle solution

Side a
3
Side b
4
Side c
5
Angle A
36.8699°
Angle B
53.1301°
Angle C
90°
Area
6 square units
Perimeter
12 units
Angle sum
180°
ABCabc
Illustrative shape, not drawn to scale. Side a is opposite angle A, side b opposite B, and side c opposite C.
  • a = 3
  • b = 4
  • c = 5

How to solve a triangle

Select the three measurements you know, enter positive side lengths and valid angles, and choose the angle unit and displayed precision. The calculator fills in the remaining sides and angles and reports area and perimeter. Side lengths are returned in the same user-defined unit as the side you enter.

SSS: method used

The law of cosines finds the angles from the three sides. Heron's formula finds the area.

Formula: cos A = (b² + c² − a²) / (2bc); area = √(s(s − a)(s − b)(s − c)), where s = (a + b + c) / 2. Formula notation uses degrees; radian inputs are converted internally.

  • SSS: cosine rule for the angles, followed by Heron's formula for area.
  • SAS: cosine rule for the third side, then the sine rule for the angles.
  • ASA and AAS: use the angle sum and sine rule.
  • SSA: check both the principal sine-rule angle and its supplementary candidate.

Displayed digits only change rounding. Calculations use the full available numeric precision. A result may be unavailable when the measurements are impossible, degenerate, or outside the range that browser numbers can represent reliably.

Frequently asked questions

What do SSS, SAS, ASA, AAS, and SSA mean?
They name the known measurements: side-side-side, side-angle-side, angle-side-angle, angle-angle-side, and side-side-angle. In each case, a lowercase side is opposite the matching uppercase angle.
Why can SSA have two answers?
The sine rule can produce an angle and its supplement. If both candidates leave a positive third angle, both triangles are valid and are shown separately. Some SSA measurements produce one triangle or none.
Are the side lengths meters or inches?
Side lengths use whatever unit you enter. The calculator preserves that unit for sides and uses square units for area; it does not convert or infer a physical unit.
Are my measurements saved or sent anywhere?
Triangle calculations run in this page in your browser. The tool does not save or send the values you enter.
Infinio Tools
© 2026 Infinio Labs