• Foundation
  • About 17 min
  • 5 practice questions

Parallel and perpendicular lines and the angle between two lines

Prove the slope conditions for parallel and perpendicular lines, derive tan θ = |(m₂ − m₁)/(1 + m₁m₂)| for the angle between two lines, and apply them.

If something looks wrong, please tell us.

Once each line has a slope, questions about how two lines sit relative to each other become simple algebra. Are they parallel? Do they meet at a right angle? At what angle do they cross? This lesson answers all three using only slopes.

Parallel lines

Let non-vertical lines l₁ and l₂ have slopes m₁ and m₂ and inclinations α and β. If l₁ ∥ l₂, they make equal corresponding angles with the x-axis, so α = β and tan α = tan β, that is, m₁ = m₂. Conversely, if m₁ = m₂ then tan α = tan β, and since tan takes each value only once between 0° and 180° (excluding 90°), α = β and the lines are parallel.

Two non-vertical lines are parallel if and only if their slopes are equal: m₁ = m₂.

Perpendicular lines

If l₁ ⊥ l₂, then β = α + 90° (the inclinations differ by a right angle). So m₂ = tan β = tan(α + 90°) = −cot α = −1/tan α = −1/m₁. Hence m₁m₂ = −1. Conversely, if m₁m₂ = −1, then tan α = −cot β = tan(β ± 90°), so α and β differ by 90° and the lines are perpendicular.

Two non-vertical lines are perpendicular if and only if m₁m₂ = −1, that is, each slope is the negative reciprocal of the other.

A horizontal line (slope 0) and a vertical line (no slope) are also perpendicular; the product rule simply does not apply to them because a vertical line has no slope.

The angle between two lines

Let lines L₁ and L₂ have slopes m₁ = tan α₁ and m₂ = tan α₂. Where they cross they form two adjacent angles θ and φ with θ + φ = 180°. Take θ = α₂ − α₁. Using the formula for tan(A − B):

  1. tan θ = tan(α₂ − α₁) = (tan α₂ − tan α₁)/(1 + tan α₁ tan α₂) = (m₂ − m₁)/(1 + m₁m₂), provided 1 + m₁m₂ ≠ 0.
  2. tan φ = tan(180° − θ) = −tan θ.
  3. So one of the two angles has a positive tangent (it is acute) and the other a negative tangent (it is obtuse).
  4. The acute angle is therefore given by taking the absolute value.

Acute angle θ between lines of slopes m₁ and m₂: tan θ = |(m₂ − m₁)/(1 + m₁m₂)|, 1 + m₁m₂ ≠ 0. The obtuse angle is 180° − θ.

Three relationships between two lines

  • Parallel
    • m₁ = m₂
    • tan θ = 0, θ = 0°
    • Never meet (or coincide)
  • Perpendicular
    • m₁m₂ = −1
    • 1 + m₁m₂ = 0, so tan θ is undefined
    • θ = 90°
  • Neither
    • Use tan θ = |(m₂ − m₁)/(1 + m₁m₂)|
    • Gives the acute angle
    • Obtuse angle = 180° − θ

Worked examples

Worked example 1: the angle between two lines

Find the acute angle between lines of slopes 2 and 1/3. tan θ = |(1/3 − 2)/(1 + 2 × 1/3)| = |(−5/3)/(5/3)| = 1, so θ = 45°, and the obtuse angle is 135°.

Worked example 2: finding the other slope

The acute angle between two lines is π/4 and one line has slope 2. Find the slope m of the other. tan(π/4) = 1 = |(m − 2)/(1 + 2m)|. So (m − 2)/(1 + 2m) = 1 or −1.

  • If it equals 1: m − 2 = 1 + 2m, giving m = −3.
  • If it equals −1: m − 2 = −1 − 2m, giving 3m = 1, m = 1/3.

The other slope is −3 or 1/3. Two answers appear because two different lines through a point make 45° with a given line, one on each side. Check m = −3: (−3 − 2)/(1 − 6) = 1.

Worked example 3: perpendicularity gives an unknown

The line through (1, 2) and (4, 8) is perpendicular to the line through (0, 3) and (x, 1). Find x. Slope of the first line = (8 − 2)/(4 − 1) = 2. Slope of the second = (1 − 3)/(x − 0) = −2/x. Perpendicular: 2 × (−2/x) = −1, so −4/x = −1 and x = 4. Check: the second slope is −2/4 = −1/2, and 2 × (−1/2) = −1.

Worked example 4: a right-angled triangle without Pythagoras

Show that A(1, 1), B(3, 2), C(2, 4) form a right-angled triangle. Slope AB = (2 − 1)/(3 − 1) = 1/2; slope BC = (4 − 2)/(2 − 3) = −2. Their product is (1/2)(−2) = −1, so AB ⊥ BC and the right angle is at B.

Worked example 5: a parallelogram by slopes

For P(0, 0), Q(4, 1), R(5, 4), S(1, 3): slope PQ = 1/4 and slope SR = (4 − 3)/(5 − 1) = 1/4, so PQ ∥ SR; slope QR = 3/1 = 3 and slope PS = 3/1 = 3, so QR ∥ PS. Both pairs of opposite sides are parallel, so PQRS is a parallelogram.

Key takeaways

  • Parallel: m₁ = m₂. Perpendicular: m₁m₂ = −1.
  • Acute angle: tan θ = |(m₂ − m₁)/(1 + m₁m₂)|; the absolute value gives two possible slopes when you work backwards.
  • Slopes prove right angles and parallelograms without the distance formula.

Check your understanding

  1. 1. Lines with slopes 3/4 and k are perpendicular. What is k?

    1. 3/4
    2. −3/4
    3. 4/3
    4. −4/3
    Show answer

    Answer: D. Perpendicular lines satisfy m₁m₂ = −1, so (3/4)k = −1 and k = −4/3.

  2. 2. What is the acute angle between lines with slopes 1 and 0?

    1. 30°
    2. 45°
    3. 60°
    4. 90°
    Show answer

    Answer: B. tan θ = |(0 − 1)/(1 + 0)| = 1, so θ = 45°. A line of slope 1 makes 45° with any horizontal line.

  3. 3. Find the acute angle between lines with slopes √3 and 1/√3.

    1. 30°
    2. 45°
    3. 60°
    4. 15°
    Show answer

    Answer: A. tan θ = |(√3 − 1/√3)/(1 + √3 × 1/√3)| = |(2/√3)/2| = 1/√3, so θ = 30°. This agrees with inclinations 60° and 30°, which differ by 30°.

  4. 4. The line through (2, 5) and (4, k) is parallel to a line of slope 3. What is k?

    1. 8
    2. 9
    3. 11
    4. 13
    Show answer

    Answer: C. Parallel lines have equal slopes: (k − 5)/(4 − 2) = 3, so k − 5 = 6 and k = 11.

  5. 5. Assertion (A): The lines with slopes 2 and −1/2 are perpendicular. Reason (R): For perpendicular lines, 1 + m₁m₂ = 0, so the formula for tan θ has a zero denominator and θ = 90°.

    1. Both A and R are true, and R is the correct explanation of A
    2. Both A and R are true, but R is not the correct explanation of A
    3. A is true, but R is false
    4. A is false, but R is true
    Show answer

    Answer: A. Both are true. 2 × (−1/2) = −1, so the lines are perpendicular, and then 1 + m₁m₂ = 0, which is why the angle formula breaks down exactly at θ = 90°. R correctly explains A.

Privacy · Terms · Refunds · Delivery