Skip to content
Family Table Math
Auto

Parallel and Perpendicular Lines

Slopes tell you more than how steep one line is. By comparing the slopes of two lines, you can tell straight away whether they’re parallel (they never meet) or perpendicular (they meet at a right angle), without drawing anything. You’ll use this to find equations of lines, to predict how many solutions a linear system has, and to check shapes like rectangles and right triangles.

Two different non-vertical lines are parallel exactly when they have the same slope:

m1=m2m_1 = m_2

The lines y=2x−1y = 2x - 1 and y=2x+3y = 2x + 3 both have slope 22. They rise at the same rate, so the gap between them never changes and they never meet. (If two lines have the same slope and the same yy-intercept, they aren’t two lines at all: they’re the same line.)

All vertical lines are parallel to each other, and so are all horizontal lines.

Perpendicular lines have negative reciprocal slopes

Section titled “Perpendicular lines have negative reciprocal slopes”

Two lines are perpendicular exactly when their slopes are negative reciprocals: flip the fraction and change the sign.

m2=−1m1or, equivalently,m1×m2=−1m_2 = -\frac{1}{m_1} \qquad \text{or, equivalently,} \qquad m_1 \times m_2 = -1

For example, 22 and −12-\dfrac{1}{2} are negative reciprocals, because 2×(−12)=−12 \times \left(-\dfrac{1}{2}\right) = -1. So y=2x−1y = 2x - 1 and y=−12x+4y = -\dfrac{1}{2}x + 4 are perpendicular.

Two parallel lines with slope 2, and a line with slope -1/2 that meets y = 2x - 1 at a right angle at (2, 3) y = 2x − 1 y = 2x + 3 y = −½x + 4 (2, 3) 2 4 −2 2 6
y=2x−1y = 2x - 1 and y=2x+3y = 2x + 3 are parallel; y=−12x+4y = -\tfrac{1}{2}x + 4 is perpendicular to both.

Why does this work? Picture a slope triangle with a run of 22 and a rise of 11 (slope 12\tfrac{1}{2}). Turn the whole picture a quarter turn counterclockwise. The run of 22 becomes a rise of 22, and the rise of 11 becomes a run of 11 to the left. The turned line has slope 2−1=−2\dfrac{2}{-1} = -2. Turning swaps rise and run (that’s the reciprocal) and sends one of them backwards (that’s the negative sign).

The exception: a horizontal line (slope 00) and a vertical line (undefined slope) are perpendicular, but you can’t multiply their slopes to get −1-1. Spot these by their equations: y=by = b and x=ax = a.

To compare slopes, you first need each line’s slope. Rewrite each equation in the form y=mx+by = mx + b and read off mm.

For Ax+By+C=0Ax + By + C = 0 (or Ax+By=DAx + By = D), solving for yy always gives the slope m=−ABm = -\dfrac{A}{B}. For example, 3x−4y+8=03x - 4y + 8 = 0 becomes y=34x+2y = \dfrac{3}{4}x + 2, and −AB=−3−4=34-\dfrac{A}{B} = -\dfrac{3}{-4} = \dfrac{3}{4}. It’s safest to solve for yy until you’re confident with the shortcut.

Finding a parallel or perpendicular line through a point

Section titled “Finding a parallel or perpendicular line through a point”
  1. Find the slope of the given line.
  2. Use the same slope (parallel) or the negative reciprocal (perpendicular).
  3. Substitute that slope and the given point into y=mx+by = mx + b, and solve for bb.
  4. Write the equation in the form the question asks for, and check the point.

For these SAT questions, mental math is usually fastest: find the slope, keep it for a parallel line, or flip it and change its sign for a perpendicular line. Desmos is a good check: graph the given line and your answer and see whether they look parallel or meet at a right angle, and whether your line passes through the given point (type it as (x, y)). Don’t decide from the picture alone, though: if you’ve zoomed so the axes have different scales, perpendicular lines no longer look square, so always confirm with the slopes. See using Desmos on the SAT.

Example 1: Parallel, perpendicular, or neither?

Section titled “Example 1: Parallel, perpendicular, or neither?”

Decide whether each pair of lines is parallel, perpendicular, or neither.

  • (a) y=3x−2y = 3x - 2 and 6x−2y+5=06x - 2y + 5 = 0
  • (b) y=23x+1y = \dfrac{2}{3}x + 1 and 3x+2y=83x + 2y = 8
  • (c) 2x+5y=102x + 5y = 10 and y=25x−3y = \dfrac{2}{5}x - 3

Solution.

(a) The first slope is 33. Solve the second equation for yy:

−2y=−6x−5y=3x+52\begin{aligned} -2y &= -6x - 5 \\ y &= 3x + \frac{5}{2} \end{aligned}

Both slopes are 33 and the yy-intercepts are different, so the lines are parallel.

(b) The first slope is 23\dfrac{2}{3}. For the second, 2y=−3x+82y = -3x + 8, so y=−32x+4y = -\dfrac{3}{2}x + 4, with slope −32-\dfrac{3}{2}.

23×(−32)=−1\frac{2}{3} \times \left(-\frac{3}{2}\right) = -1

The lines are perpendicular.

(c) For the first, 5y=−2x+105y = -2x + 10, so y=−25x+2y = -\dfrac{2}{5}x + 2, with slope −25-\dfrac{2}{5}. The second slope is 25\dfrac{2}{5}. The slopes aren’t equal, and their product is −425-\dfrac{4}{25}, not −1-1. The lines are neither. (The slopes are opposites, but not reciprocals.)

Example 2: A parallel line through a point

Section titled “Example 2: A parallel line through a point”

Find the equation of the line through (8,−1)(8, -1) that is parallel to 3x−4y+8=03x - 4y + 8 = 0. Give the answer in standard form.

Solution. Solve the given equation for yy:

−4y=−3x−8y=34x+2\begin{aligned} -4y &= -3x - 8 \\ y &= \frac{3}{4}x + 2 \end{aligned}

Its slope is 34\dfrac{3}{4}, so the parallel line also has slope 34\dfrac{3}{4}. Substitute (8,−1)(8, -1):

−1=34(8)+b−1=6+bb=−7\begin{aligned} -1 &= \frac{3}{4}(8) + b \\ -1 &= 6 + b \\ b &= -7 \end{aligned}

So y=34x−7y = \dfrac{3}{4}x - 7. Multiply by 44 and rearrange:

4y=3x−283x−4y−28=0\begin{aligned} 4y &= 3x - 28 \\ 3x - 4y - 28 &= 0 \end{aligned}

Check with (8,−1)(8, -1): 3(8)−4(−1)−28=24+4−28=03(8) - 4(-1) - 28 = 24 + 4 - 28 = 0. ✓

Example 3: A perpendicular line through a point

Section titled “Example 3: A perpendicular line through a point”

Find the equation of the line through (4,−1)(4, -1) that is perpendicular to y=−23x+4y = -\dfrac{2}{3}x + 4.

Solution. The given slope is −23-\dfrac{2}{3}. Flip it and change the sign: the perpendicular slope is 32\dfrac{3}{2}.

Check: −23×32=−1-\dfrac{2}{3} \times \dfrac{3}{2} = -1. ✓

Substitute (4,−1)(4, -1):

−1=32(4)+b−1=6+bb=−7\begin{aligned} -1 &= \frac{3}{2}(4) + b \\ -1 &= 6 + b \\ b &= -7 \end{aligned}

The line is y=32x−7y = \dfrac{3}{2}x - 7, or 3x−2y−14=03x - 2y - 14 = 0 in standard form.

Check with (4,−1)(4, -1): 3(4)−2(−1)−14=12+2−14=03(4) - 2(-1) - 14 = 12 + 2 - 14 = 0. ✓

A triangle has vertices P(−3,2)P(-3, 2), Q(1,4)Q(1, 4) and R(3,0)R(3, 0). Show that it is a right triangle.

Solution. A right angle means two sides are perpendicular. Find the slope of each side:

mPQ=4−21−(−3)=24=12mQR=0−43−1=−42=−2mPR=0−23−(−3)=−26=−13m_{PQ} = \frac{4 - 2}{1 - (-3)} = \frac{2}{4} = \frac{1}{2} \qquad m_{QR} = \frac{0 - 4}{3 - 1} = \frac{-4}{2} = -2 \qquad m_{PR} = \frac{0 - 2}{3 - (-3)} = \frac{-2}{6} = -\frac{1}{3}

Since 12×(−2)=−1\dfrac{1}{2} \times (-2) = -1, sides PQPQ and QRQR are perpendicular. The triangle has a right angle at QQ, the vertex the two sides share.

Taking the reciprocal but forgetting the negative (or the reverse). The perpendicular slope to 25\dfrac{2}{5} is −52-\dfrac{5}{2}. Neither 52\dfrac{5}{2} nor −25-\dfrac{2}{5} works. Check by multiplying: you must get −1-1.

Reading the slope straight from standard form. In 3x+2y=83x + 2y = 8, the slope is not 33 (or 22). Solve for yy first: y=−32x+4y = -\dfrac{3}{2}x + 4, so the slope is −32-\dfrac{3}{2}.

Calling the same line “parallel”. If two equations give the same slope and the same yy-intercept, they describe one line. For example, y=3x+1y = 3x + 1 and 6x−2y+2=06x - 2y + 2 = 0 are the same line.

Multiplying slopes for horizontal and vertical lines. y=5y = 5 and x=−2x = -2 are perpendicular, even though you can’t multiply 00 by an undefined slope. Recognize them by their equations.

Using the original line’s point. When you find a parallel or perpendicular line, substitute the new point into y=mx+by = mx + b, not a point from the given line.

1. (Warm-up) A line has the given slope. Find the slope of a line parallel to it and the slope of a line perpendicular to it.

  • (a) 44
  • (b) −35-\dfrac{3}{5}
  • (c) 00
Solution

(a) Parallel: 44. Perpendicular: −14-\dfrac{1}{4}.

(b) Parallel: −35-\dfrac{3}{5}. Perpendicular: 53\dfrac{5}{3}.

(c) Parallel: 00 (another horizontal line). Perpendicular: undefined (a vertical line).

2. (Warm-up) Find the slope of the line 6x−3y+2=06x - 3y + 2 = 0.

Solution−3y=−6x−2y=2x+23\begin{aligned} -3y &= -6x - 2 \\ y &= 2x + \frac{2}{3} \end{aligned}

The slope is 22.

3. (Core) Decide whether each pair of lines is parallel, perpendicular, or neither.

  • (a) y=−13x+2y = -\dfrac{1}{3}x + 2 and 3x−y=43x - y = 4
  • (b) 2x+3y=62x + 3y = 6 and 4x+6y+1=04x + 6y + 1 = 0
  • (c) y=5x−1y = 5x - 1 and y=−5x+2y = -5x + 2
Solution

(a) The second line is y=3x−4y = 3x - 4, slope 33. Since −13×3=−1-\dfrac{1}{3} \times 3 = -1, they are perpendicular.

(b) The first line is y=−23x+2y = -\dfrac{2}{3}x + 2. The second is 6y=−4x−16y = -4x - 1, so y=−23x−16y = -\dfrac{2}{3}x - \dfrac{1}{6}. Same slope, different yy-intercepts: parallel.

(c) The slopes are 55 and −5-5. They aren’t equal, and 5×(−5)=−255 \times (-5) = -25, not −1-1: neither.

4. (Core) Find the equation of the line through (−2,4)(-2, 4) that is parallel to y=−3x+1y = -3x + 1.

Solution

The slope is −3-3. Substitute (−2,4)(-2, 4):

4=−3(−2)+b⇒4=6+b⇒b=−24 = -3(-2) + b \quad\Rightarrow\quad 4 = 6 + b \quad\Rightarrow\quad b = -2

The line is y=−3x−2y = -3x - 2.

Check: −3(−2)−2=4-3(-2) - 2 = 4. ✓

5. (Core) Find the equation, in standard form, of the line through (6,1)(6, 1) that is perpendicular to 3x+2y−5=03x + 2y - 5 = 0.

Solution

Solve the given equation for yy: 2y=−3x+52y = -3x + 5, so y=−32x+52y = -\dfrac{3}{2}x + \dfrac{5}{2}. Its slope is −32-\dfrac{3}{2}, so the perpendicular slope is 23\dfrac{2}{3}.

Substitute (6,1)(6, 1):

1=23(6)+b⇒1=4+b⇒b=−31 = \frac{2}{3}(6) + b \quad\Rightarrow\quad 1 = 4 + b \quad\Rightarrow\quad b = -3

So y=23x−3y = \dfrac{2}{3}x - 3. Multiply by 33: 3y=2x−93y = 2x - 9, so

2x−3y−9=02x - 3y - 9 = 0

Check with (6,1)(6, 1): 2(6)−3(1)−9=02(6) - 3(1) - 9 = 0. ✓

6. (Core) The line x=4x = 4 is vertical.

  • (a) Find the equation of the line through (−5,2)(-5, 2) that is parallel to it.
  • (b) Find the equation of the line through (−5,2)(-5, 2) that is perpendicular to it.
Solution

(a) A line parallel to a vertical line is also vertical. Through (−5,2)(-5, 2) it is x=−5x = -5.

(b) A line perpendicular to a vertical line is horizontal. Through (−5,2)(-5, 2) it is y=2y = 2.

7. (Core) Show that the quadrilateral with vertices A(0,0)A(0, 0), B(4,2)B(4, 2), C(3,4)C(3, 4) and D(−1,2)D(-1, 2) is a rectangle.

Solution

Find the slope of each side:

mAB=2−04−0=12mBC=4−23−4=−2mCD=2−4−1−3=12mDA=0−20−(−1)=−2m_{AB} = \frac{2 - 0}{4 - 0} = \frac{1}{2} \qquad m_{BC} = \frac{4 - 2}{3 - 4} = -2 \qquad m_{CD} = \frac{2 - 4}{-1 - 3} = \frac{1}{2} \qquad m_{DA} = \frac{0 - 2}{0 - (-1)} = -2

Opposite sides have equal slopes (AB∥CDAB \parallel CD and BC∥DABC \parallel DA), so ABCDABCD is a parallelogram. Neighbouring sides have slopes 12\dfrac{1}{2} and −2-2, whose product is −1-1, so every corner is a right angle. ABCDABCD is a rectangle.

8. (Challenge) Consider the line kx+2y−6=0kx + 2y - 6 = 0. Find the value of kk that makes it

  • (a) parallel to y=23x+1y = \dfrac{2}{3}x + 1
  • (b) perpendicular to y=23x+1y = \dfrac{2}{3}x + 1
Solution

Solve for yy: 2y=−kx+62y = -kx + 6, so y=−k2x+3y = -\dfrac{k}{2}x + 3. The slope is −k2-\dfrac{k}{2}.

(a) Set −k2=23-\dfrac{k}{2} = \dfrac{2}{3}. Multiply both sides by −2-2: k=−43k = -\dfrac{4}{3}.

(b) The perpendicular slope is −32-\dfrac{3}{2}. Set −k2=−32-\dfrac{k}{2} = -\dfrac{3}{2}, so k=3k = 3.

Check (b): 3x+2y−6=03x + 2y - 6 = 0 gives y=−32x+3y = -\dfrac{3}{2}x + 3, and −32×23=−1-\dfrac{3}{2} \times \dfrac{2}{3} = -1. ✓

9. (Challenge) Triangle ABCABC has vertices A(1,1)A(1, 1), B(5,3)B(5, 3) and C(a,7)C(a, 7). Find aa so that the triangle has a right angle at BB.

Solution

A right angle at BB means AB⊥BCAB \perp BC.

mAB=3−15−1=12m_{AB} = \frac{3 - 1}{5 - 1} = \frac{1}{2}

So BCBC must have slope −2-2:

7−3a−5=−24=−2(a−5)4=−2a+10a=3\begin{aligned} \frac{7 - 3}{a - 5} &= -2 \\ 4 &= -2(a - 5) \\ 4 &= -2a + 10 \\ a &= 3 \end{aligned}

Check: mBC=7−33−5=4−2=−2m_{BC} = \dfrac{7 - 3}{3 - 5} = \dfrac{4}{-2} = -2, and 12×(−2)=−1\dfrac{1}{2} \times (-2) = -1. ✓