Skip to content
Tutorials Center
My learning

Topics

Lesson 10 of 37 · Triangles and Congruence

Triangles by Sides and Angles

Classify triangles as equilateral, isosceles, scalene, acute, right or obtuse, prove that the angles sum to 180°, and test triangles in code.

The triangle is the simplest polygon and the most important. Bridges, roof trusses and cranes use triangles because a triangle with fixed side lengths cannot change shape: a rectangle can be squashed into a parallelogram, but a triangle is rigid. Mathematically, every polygon can be cut into triangles, so understanding triangles lets you understand all of them.

A triangle △ABC has three vertices, three sides (AB, BC, CA) and three interior angles (∠A, ∠B, ∠C). By convention the side opposite vertex A is called a, opposite B is b, and opposite C is c.

Classifying by sides

Type Sides Angles
Equilateral All 3 equal All 3 equal (each 60°)
Isosceles At least 2 equal The angles opposite equal sides are equal
Scalene All 3 different All 3 different

In an isosceles triangle, the two equal sides are the legs, the third is the base, and the angles at the base are the base angles. The Isosceles Triangle Theorem says that base angles are equal, and its converse says that if two angles are equal, the sides opposite them are equal.

Classifying by angles

Type Description
Acute All three angles are less than 90°
Right One angle is exactly 90°
Obtuse One angle is more than 90°

A triangle can have at most one right or obtuse angle (you will see why below). A triangle has a name from each system: for example "right isosceles" (angles 90°, 45°, 45°) or "obtuse scalene".

The triangle angle sum theorem

The three interior angles of a triangle add up to 180°.

Proof. Take △ABC. Through vertex A draw a line parallel to side BC. On this line pick points P (on the left of A) and Q (on the right) so that P, A, Q are in a straight line.

  • ∠PAB and ∠B are alternate interior angles between the parallel lines (with transversal AB), so ∠PAB = ∠B.
  • ∠QAC and ∠C are alternate interior angles (with transversal AC), so ∠QAC = ∠C.
  • Angles ∠PAB, ∠A and ∠QAC together form a straight angle: ∠PAB + ∠A + ∠QAC = 180°.

Substituting: ∠B + ∠A + ∠C = 180°. ∎

The proof uses the parallel line facts from the previous chapter, and it settles the earlier claim: because the sum is 180°, a triangle cannot have two right angles or two obtuse angles.

flowchart TD
    A["Triangle ABC"] --> B["Draw line through A parallel to BC"]
    B --> C["Alternate angles give ∠PAB = ∠B and ∠QAC = ∠C"]
    C --> D["Straight angle at A: ∠PAB + ∠A + ∠QAC = 180°"]
    D --> E["So ∠A + ∠B + ∠C = 180°"]

Every step of the proof comes from rules you have already learned.

Worked example. In △ABC, ∠A = 2x, ∠B = 3x + 5 and ∠C = x + 25. Then 6x + 30 = 180, so x = 25, giving angles 50°, 80°, 50°. Two angles are equal, so the triangle is isosceles (and acute).

Worked example. An isosceles triangle has a vertex angle of 40°. The base angles are equal and sum to 180 - 40 = 140°, so each is 70°.

Classify a triangle from its side lengths

You can tell what kind of triangle you have from its sides alone. For the angle type, compare the square of the longest side c with a² + b²:

  • c² = a² + b² means right (the Pythagorean theorem and its converse),
  • c² < a² + b² means acute,
  • c² > a² + b² means obtuse.

This works because the bigger the opposite angle, the longer the side, and the squares comparison measures exactly how "open" the largest angle is.

Python Triangle classifier

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Missing angle and the angle check

If you know two angles, you know the third. The next program finds it and checks that the triangle is possible.

Python Find the third angle

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

An isosceles triangle with a 20° vertex angle has base angles of 80°. If you are told "an isosceles triangle has one 80° angle", there are two possible triangles: 80°, 80°, 20° (the 80° is a base angle) or 80°, 50°, 50° (the 80° is the vertex angle). Always check both cases.

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. Two angles of a triangle are 35° and 65°. What is the third?

    The three angles add to 180°, and 180 - 35 - 65 = 80.
  2. 2. Which description fits a triangle with sides 5, 5 and 8?

    Two sides are equal, so it is isosceles. (It is also obtuse, because 8² = 64 is greater than 5² + 5² = 50.)
  3. 3. Why can a triangle not have two right angles?

    The angle sum is 180°, and 90° + 90° = 180°, so the third angle would have to be 0°.
  4. 4. An isosceles triangle has a vertex angle of 100°. What is each base angle?

    The base angles are equal and share 180° - 100° = 80°, so each is 40°.

Summary

  • By sides: equilateral (3 equal), isosceles (at least 2 equal), scalene (none equal).
  • By angles: acute, right (one 90°), obtuse (one above 90°).
  • The interior angles of any triangle sum to 180°, proved with a parallel line through a vertex.
  • Base angles of an isosceles triangle are equal; an equilateral triangle has three 60° angles.
  • Comparing c² with a² + b² classifies a triangle by its angles using side lengths.

Next: The Triangle Inequality and Exterior Angles