Skip to content

Triangle Calculator

Solve a triangle completely from three known values. The calculator uses the law of cosines, the law of sines and Heron's formula, and classifies the triangle.

How to use the triangle calculator

  1. Choose which values you know.
  2. Enter them (angles in degrees).
  3. Get all sides, angles, area and perimeter.

Examples

SSS 3, 4, 5

Answer: Right triangle, area 6

What the triangle calculator does

Enter any three facts about a triangle (at least one of them a side), and it finds all the missing sides and angles, plus the area and perimeter. It uses right-triangle trig, the law of sines or the law of cosines, depending on what you know, and flags the ambiguous SSA case where two triangles are possible.

Which rule to use

You know Use
Right triangle, 2 sides Pythagorean theorem, then trig
Right triangle, side and angle SOH-CAH-TOA
SSS (three sides) Law of cosines for an angle
SAS (two sides and the angle between them) Law of cosines for the third side
ASA or AAS Law of sines
SSA Law of sines (0, 1 or 2 triangles)

Law of sines:

Law of cosines:

Worked example (SAS)

, , .

  1. Law of cosines: , so .
  2. Law of sines: , so .
  3. Angles add to 180°: .
  4. Area .

The ambiguous case (SSA)

Given , and angle (not between them), there may be no triangle, one, or two. If comes out above 1, there's none. If both and fit with , there are two. The calculator shows both.

Facts that always hold

  • The angles add to .
  • The longest side is opposite the largest angle.
  • Triangle inequality: any two sides must add up to more than the third. Sides 3, 4 and 8 can't make a triangle.

Common mistakes

  • Calculator in radians instead of degrees.
  • Using the law of sines to find the largest angle first (it can give the acute angle when the real one is obtuse). Find the largest angle with the law of cosines.
  • Rounding early and carrying the error forward.

Formulas

Practice problems

Try each one first, then open the answer to check your work.

  1. 1.Two angles are 48° and 67°. Find the third.

    Show answer

    65°.

  2. 2., , . Find .

    Show answer

    .

  3. 3.Sides 5, 7, 9: find the largest angle.

    Show answer

    , so .

  4. 4.Find the area with , , .

    Show answer

    12. .

  5. 5.Can sides 2, 3, 6 form a triangle?

    Show answer

    No. .

Key terms

Law of sines
.
Law of cosines
.
Included angle
The angle between two given sides.
Obtuse angle
An angle between 90° and 180°.
Triangle inequality
Any two sides add up to more than the third.

Frequently asked questions

When does SSA (two sides and a non-included angle) fail?

SSA can give zero, one or two triangles (the ambiguous case), which is why this calculator uses SSS, SAS and ASA.

What do SSS, SAS, ASA and AAS mean?

They describe what you know: S for a side and A for an angle, in order around the triangle. SAS means two sides and the angle between them.

Why can SSA give two triangles?

The given side opposite the known angle can swing to meet the base in two different places, making one acute and one obtuse triangle.

How do I classify a triangle?

By sides: equilateral (all equal), isosceles (two equal) or scalene (none equal). By angles: acute, right or obtuse.

How do I find the area without the height?

Use with two sides and the angle between them, or Heron's formula with all three sides.