Triangle calculator

Solve sides, angles, area, and perimeter, including the two-solution SSA case.

Use the same length unit throughout. Angles are in degrees.

ABCabc
Labels only · not to scale
Assumptions & limits

Use one length unit throughout. Side a is opposite A, b opposite B, c opposite C. Inputs and computed sides: 10⁻⁹–10⁹. Angles are in degrees, strictly between 0° and 180°. ASA specifies side c between A and B. SSA can produce zero, one or two solutions. Near-degenerate sides with a triangle-inequality gap below 10⁻¹² of the longest side are outside supported precision.

YOUR ANSWER

Triangle solutions

1 solution

sides (a, b, c)
3, 4, 5 units
angles (A, B, C)
36.8699°, 53.1301°, 90°
area
6 units²
perimeter
12 units
How it’s calculatedCalculated on your device

C = 90°. c = √(a² + b²). Area = ab / 2. A, B are opposite a, b.

Displayed values may be rounded. Calculations keep the underlying precision.

a is opposite A, b opposite B, c opposite C. Sides, including computed sides, must be 10⁻⁹–10⁹ in one unit. Angles are in degrees. Triangle inequalities are strict. An inequality gap below 10⁻¹² of the longest side is rejected as beyond supported precision; zero-area figures are not triangles. Diagram labels are schematic, not to scale.

The formula, made simple

Solve a triangle from two perpendicular legs, three sides (SSS), two sides and their included angle (SAS), two angles and their included side (ASA), or two sides and an opposite angle (SSA). See every valid solution.

a/sin A = b/sin B = c/sin C. c² = a² + b² − 2ab cos C. A + B + C = 180°. Area = √[s(s − a)(s − b)(s − c)] with s = (a + b + c)/2. For SSA, test both B = arcsin(b sin A/a) and 180° − B.

A worked example

Legs a = 3 and b = 4 give c = 5, area 6, perimeter 12, and angles about 36.8699°, 53.1301°, 90°. SSA with a = 7, b = 10 and A = 30° gives two triangles, with B about 45.5847° or 134.4153°.

A few useful answers

Why can SSA give two answers?

A sine value can correspond to an acute or obtuse angle. Both candidate angles are checked against a positive third angle, so zero, one or two triangles may remain.

Can I enter any three measurements?

Choose one of the listed sets and follow its labels. Three angles alone cannot determine size. ASA uses A, B, and their included side c; SAS uses a, b and their included angle C.

Back to calculator ↑