Everything Student

Triangle Calculator

Solve any triangle from three of its sides and angles, including the SSA ambiguous case, and get every side, angle, the perimeter and the area.

  • Math
  • Instant Results
  • Works Offline
ABCabc
Side a faces angle A, side b faces angle B, and side c faces angle C.

A triangle has six parts, three sides and three angles, and knowing any three of them (with at least one side) is usually enough to find the rest. Fill in what you know and this calculator finds every side and angle, the perimeter and the area, and names the triangle. When your values fit two different triangles, it shows both.

How to Use It

  1. Look at the diagram: side a faces angle A, b faces B and c faces C.
  2. Fill in exactly three boxes, at least one of them a side, and leave the other three blank.
  3. Optionally choose a Unit to label the answers.
  4. Press Calculate to see every side and angle, the perimeter, the area and the type of triangle.

How It Works

Which rule the calculator uses depends on what you know:

  • SSS (three sides) and SAS (two sides and the angle between them) use the law of cosines:
c2=a2+b2−2abcos⁡C\vA{c}^2 = \vA{a}^2 + \vA{b}^2 - 2\vA{a}\vA{b}\cos \vB{C}
  • ASA and AAS (two angles and a side) find the third angle from A+B+C=180°A + B + C = 180°, then use the law of sines:
asin⁡A=bsin⁡B=csin⁡C\frac{\vA{a}}{\sin \vB{A}} = \frac{\vA{b}}{\sin \vB{B}} = \frac{\vA{c}}{\sin \vB{C}}
  • SSA (two sides and an angle not between them) also uses the law of sines, but it can give no triangle, one, or two. That’s the ambiguous case, and the calculator shows every triangle that fits.

The area comes from Heron’s formula, with s as half the perimeter:

area=s(s−a)(s−b)(s−c)\text{area} = \sqrt{s(s - a)(s - b)(s - c)}

Worked Example

A triangle has sides b = 4 and c = 5 with A = 60° between them (SAS). The law of cosines gives the third side:

a2=42+52−2(4)(5)cos⁡60°=16+25−20=21⇒a=21≈4.583a^2 = 4^2 + 5^2 - 2(4)(5)\cos 60° = 16 + 25 - 20 = 21 \quad\Rightarrow\quad a = \sqrt{21} \approx 4.583

With all three sides known, the law of cosines gives the other angles: B ≈ 49.107° and C ≈ 70.893°.

Tips and Common Mistakes

  • Match sides to opposite angles. Side a always faces angle A; mixing them up gives a different triangle.
  • Use degrees. Convert radians first: multiply by 180 and divide by π.
  • Three angles aren’t enough. They fix the shape but not the size, so include a side.
  • Expect two answers in SSA. If your class problem says “find all triangles,” the ambiguous case is the reason.
  • Check the triangle inequality. Each side must be shorter than the other two added together, or there’s no triangle.

Frequently Asked Questions

What do I need to solve a triangle?

Any three of its six parts, as long as at least one is a side. Three angles alone fix the shape but not the size.

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

The law of cosines when you know three sides, or two sides and the angle between them. The law of sines when you know two angles and a side, or two sides and an angle that isn't between them.

What is the ambiguous case?

Two sides and an angle that isn't between them (SSA) can fit two different triangles, one or none. The calculator shows both triangles when there are two.

How is the area found?

With Heron's formula, from the three sides: area = √(s(s − a)(s − b)(s − c)), where s is half the perimeter.

Does it work in radians?

Angles are in degrees. To convert radians to degrees, multiply by 180 and divide by π.

How do I know if a triangle is right?

When one angle is 90°, or when a² + b² = c² for the longest side c. The result names the triangle as acute, right or obtuse.

Sources

Home