Learn · Algebra 1

Parallel and perpendicular lines

Write the equation of the line through a given point that is parallel or perpendicular to a given line, including horizontal and vertical lines.

Lesson 2 of 6About 28 minutesMA.912.AR.2.3

Written with AI assistance. No teacher has reviewed these lessons and questions yet.

01 · Learn the idea

Same slope, or slopes that multiply to −1

Two lines in a plane are parallel when they never meet. They run in the same direction, so they have the same slope. The lines y = 2x + 1 and y = 2x − 4 are parallel: both rise 2 for every 1 they run, and they cross the y-axis at different places.

Two lines are perpendicular when they meet at a right angle. Their slopes multiply to −1. The line y = −(1/2)x + 3 is perpendicular to both lines above, because 2 × (−1/2) = −1.

A quick way to find a perpendicular slope: flip the fraction and change the sign. The result is called the negative reciprocal. The slope 2 is 2/1, so the perpendicular slope is −1/2. The slope −3/4 has perpendicular slope 4/3, and (−3/4) × (4/3) = −1.

So a problem that asks for a line parallel or perpendicular to a given line is really handing you the slope. Add a point the new line passes through, and you can write its equation with point-slope form, y − y₁ = m(x − x₁).

  • y = 2x + 1
  • y = 2x − 4
  • y = −(1/2)x + 3
Two parallel lines with slope 2, and a third line with slope −1/2 that crosses each of them at a right angle.

02 · Build understanding

Worked example: a parallel line through a point

Write the equation of the line that is parallel to 3x + 2y = 8 and passes through (4, 1).

Step 1: Find the slope of the given line by solving for y. 2y = −3x + 8, so y = −(3/2)x + 4. The slope is −3/2. It is not 3: the coefficient of x is the slope only after y is alone.

Step 2: A parallel line has the same slope, so the new slope is −3/2.

Step 3: Use point-slope form with (4, 1): y − 1 = −(3/2)(x − 4).

Step 4: Simplify. −(3/2)(x − 4) = −(3/2)x + 6, so y = −(3/2)x + 7.

Step 5: Check both conditions. The slope −3/2 matches the given line. At x = 4, −(3/2)(4) + 7 = −6 + 7 = 1, so the line passes through (4, 1). In standard form the new line is 3x + 2y = 14: the same left side as the given line with a different constant.

03 · Build understanding

Worked example: a perpendicular line, given two points

A line passes through (−1, 2) and (3, 8). Write the equation of the line perpendicular to it that passes through (6, −1).

Step 1: Find the slope of the given line from its two points. (8 − 2)/(3 − (−1)) = 6/4 = 3/2.

Step 2: Take the negative reciprocal. Flip 3/2 to get 2/3, then change the sign: −2/3.

Step 3: Use point-slope form with (6, −1): y − (−1) = −(2/3)(x − 6), which is y + 1 = −(2/3)(x − 6).

Step 4: Simplify. −(2/3)(x − 6) = −(2/3)x + 4, so y = −(2/3)x + 3.

Step 5: Check both conditions. The slopes multiply to (3/2) × (−2/3) = −1. At x = 6, −(2/3)(6) + 3 = −4 + 3 = −1, so the line passes through (6, −1).

(−1, 2)(3, 8)(6, −1)
  • given line
  • y = −(2/3)x + 3
The line through (−1, 2) and (3, 8), and the perpendicular line y = −(2/3)x + 3 passing through (6, −1).

04 · Build understanding

Horizontal and vertical lines

A horizontal line has an equation like y = 4. Written in full it is 0x + y = 4: the coefficient of x is zero, so x can be anything and y is always 4. Its slope is 0.

A vertical line has an equation like x = 3, or x + 0y = 3. Now y can be anything and x is always 3. Its slope is undefined, because the run between any two of its points is 0 and you can’t divide by 0.

Every horizontal line is parallel to every other horizontal line, and every vertical line is parallel to every other vertical line. A horizontal line and a vertical line are perpendicular. The rule about slopes multiplying to −1 can’t be used here, since one of the slopes is undefined, so reason from the picture.

Take the line y = 4 and the point (3, −5), and write the parallel line and the perpendicular line through the point.

Step 1: For the parallel line, keep the direction. It is horizontal too, so every point on it has the same y-value. It passes through (3, −5), so its equation is y = −5.

Step 2: For the perpendicular line, turn to vertical. Every point on it has the same x-value as (3, −5), so its equation is x = 3.

Step 3: Check. The point (3, −5) makes y = −5 true and makes x = 3 true. The lines y = 4 and x = 3 cross at (3, 4) at a right angle.

(3, −5)(3, 4)
  • y = 4
  • y = −5
  • x = 3
The horizontal lines y = 4 and y = −5 and the vertical line x = 3, which passes through (3, −5) and meets y = 4 at (3, 4).

05 · Build understanding

Four mistakes to watch for

Flipping without changing the sign, or changing the sign without flipping. For a line with slope 3/2, the perpendicular slope is −2/3. The slope 2/3 fails because (3/2)(2/3) = 1, and −3/2 fails because (3/2)(−3/2) = −9/4. Only −2/3 gives −1.

Keeping the old y-intercept. A line parallel to y = −(3/2)x + 4 through (4, 1) is not y = −(3/2)x + 4 again, and the new intercept is not the 1 from the point. Use the point to find it: 1 = −(3/2)(4) + b gives b = 7.

Reading the slope straight off standard form. In 3x + 2y = 8 the slope is −3/2, not 3. Solve for y first.

Writing the perpendicular to a horizontal line as another "y =" equation. The line perpendicular to y = 4 through (3, −5) is x = 3. The equation y = 3 is horizontal, so it is parallel to y = 4.

Apply and explain

Your turn

Line a is y = (4/5)x − 2. Sam says y = (5/4)x + 1 is perpendicular to line a because the slopes are reciprocals. Explain why Sam is wrong, and write the equation of the line perpendicular to line a through (4, 6).

Use paper or explain your thinking aloud before opening the solution.

Check your reasoning

Perpendicular slopes must multiply to −1. Sam’s slopes multiply to (4/5)(5/4) = 1, so his line is not perpendicular. He flipped the fraction but did not change the sign. The perpendicular slope is −5/4. Through (4, 6): y − 6 = −(5/4)(x − 4), so y = −(5/4)x + 5 + 6 = −(5/4)x + 11. Check: (4/5)(−5/4) = −1, and at x = 4, −5 + 11 = 6.

  • Shows that (4/5)(5/4) = 1, not −1.
  • Gives the perpendicular slope as −5/4.
  • Writes y = −(5/4)x + 11 and checks that it passes through (4, 6).

Ready to practice?

Try the questions, get feedback, and review your reasoning.

Parallel and perpendicular lines: practice →