Triangle Calculator three values in, all six out

A triangle with sides 7, 9 and 12 has an area of 31.305 (Heron’s formula) and a perimeter of 28. The law of cosines gives its angles as 35.4309°, 48.1897°, 96.3794°, so it is scalene, obtuse. Enter any three values, including at least one side, to solve a triangle.

Your result

Area

31.305

Sides a, b, c
7, 9, 12
Angles A, B, C
35.4309°, 48.1897°, 96.3794°
Perimeter
28
Type
Scalene, obtuse
Heights hₐ, h_b, h_c
8.9443, 6.9567, 5.2175
Median to side a
10.0125
Inradius / circumradius
2.2361 / 6.0374
Angles in radians
0.61839, 0.84107, 1.68214

Step-by-step working

  1. Law of cosines: cos A = (b² + c² − a²) ÷ 2bc = 0.814815 → A = 35.4309°
  2. cos B = (a² + c² − b²) ÷ 2ac → B = 48.1897°
  3. C = 180° − A − B = 96.3794°
  4. Area (Heron): s = 14, A = √(s(s−a)(s−b)(s−c)) = 31.305
  • A 35.4° 35.4
  • B 48.2° 48.2
  • C 96.4° 96.4
How the 180° is shared between the anglesDegrees180total

Understand it

What the Triangle Calculator Does

A triangle calculator finds every side and angle of a triangle from any three values that fix its shape, as long as at least one is a side. It also works out the area, perimeter, heights, medians and the radii of the inscribed and circumscribed circles.

Choose the case that matches what you know: SSS, SAS, ASA, AAS or SSA. The SSA case is “ambiguous”: two different triangles can fit the same data. Many solvers show only one of them, but this calculator detects the second and shows it too. Each answer comes with the law of sines or cosines working, so you can check it step by step.

How the Triangle Formula Works

Law of sines: a ÷ sin A = b ÷ sin B = c ÷ sin C = 2R Law of cosines: c² = a² + b² − 2ab·cos C Heron: Area = √(s(s−a)(s−b)(s−c)), s = (a+b+c) ÷ 2 Inradius r = Area ÷ s Circumradius R = abc ÷ (4·Area)
a, b, c
sides; side a is opposite angle A, and so on
A + B + C
always 180°

Three angles alone (AAA) cannot fix a triangle’s size, only its shape, so at least one side is always needed.

Worked Examples

3-4-5 right triangle

What do you know?: Right triangle – two legs · Side a: 3 · Side b: 4

Area6

Area 6; angles 36.8699°, 53.1301°, 90°.

SAS: sides 10 and 14, 60° between

What do you know?: SAS – two sides and the angle between them · Side a: 10 · Side b: 14 · Angle C: 60 °

Area60.6218

Third side c = 12.49, area 60.6218.

Ambiguous SSA: a = 8, b = 10, A = 40°

What do you know?: SSA – two sides and an angle not between them · Side a: 8 · Side b: 10 · Angle A: 40 °

Area (first of two solutions)39.9269

Two triangles fit. B = 126.5359°, C = 13.4641°, c = 2.8978, area 9.3135.

Equilateral, side 6

What do you know?: SSS – three sides · Side a: 6 · Side b: 6 · Side c: 6

Area15.5885

Area 15.5885 (= 9√3).

Original analysis

Triangle Analysis in numbers

Every chart below is generated from the same tested formula that powers the calculator above, so you can see the patterns behind a single result.

View data table
Side aSolutionsAngle B
60none
7266.7° or 113.3°
8253.5° or 126.5°
9245.6° or 134.4°
10140°
11135.8°

When does SSA give two triangles?

With b = 10 and angle A = 40°, the outcome depends only on side a. If a is shorter than b·sin A (6.43), no triangle exists. If a is between 6.43 and 10, two triangles fit. If a is 10 or more, there is exactly one. The table shows the possible values of angle B.

Area of triangles with perimeter 30Area0102030405010-10-109-10-118-10-126-10-145-11-143-13-14434240262419
View data table
Area
10-10-1043.3
9-10-1142.4
8-10-1239.7
6-10-1426
5-11-1424.5
3-13-1419

Same perimeter, very different areas

For a fixed perimeter of 30, the equilateral triangle encloses the most area. Stretching the triangle into a long, thin shape shrinks the area towards zero, even though the perimeter stays the same.

Common Triangle Questions

Is this a right triangle calculator?

Yes. Choose “Right triangle – two legs” to get the hypotenuse by Pythagoras, both acute angles and the area. For other known values, use SAS with C = 90°.

How do I use the law of sines?

Each side divided by the sine of its opposite angle gives the same number. Choose ASA, AAS or SSA, and the working steps show the law of sines applied to your values.

How do I find the area of a triangle with three sides?

Use Heron’s formula: s = half the perimeter, then area = √(s(s−a)(s−b)(s−c)). Choose SSS and enter the sides.

Tips and Common Mistakes

  • Label sides so that side a is opposite angle A. Most mistakes come from mismatching sides and angles.
  • The longest side is always opposite the largest angle.
  • In the SSA case, check whether the second solution fits your real-world problem, such as a roof pitch or a survey.

Frequently asked questions

What information do I need to solve a triangle?

Three values, including at least one side: three sides (SSS), two sides and an angle (SAS or SSA), or two angles and a side (ASA or AAS).

What is the triangle inequality?

Any two sides must add up to more than the third. Sides 2, 3 and 6 cannot form a triangle because 2 + 3 is less than 6.

Why can SSA give two answers?

For a given sine value, there are two angles between 0° and 180°, such as 30° and 150°. If both leave room for a third angle, two different triangles match the data.

How do I find the third angle?

Subtract the other two from 180°. The angles of any flat triangle add up to exactly 180°.

Sources and methodology

Last reviewed

byBhuvanesh S. Runs through our automated test suite on every build.

Results are estimates. Double-check anything important before relying on it.