How to find and graph parallel and perpendicular lines

Once we know a line’s slope, we can use it to draw a parallel line or find a line that meets it at a right angle. Let’s use the slope and one point to write each equation.

Parallel lines have the same slope

In slope-intercept form, y=mx+b, the number m is the slope and b is the y-intercept. Distinct nonvertical lines are parallel if they have the same slope and different y-intercepts. With the same intercept as well, they’re the same line.

Write and graph a parallel line

Find the line parallel to 5x+2y=10 with y-intercept 4. Solve the given equation for y so we can read its slope.

2y=-5x+10y=-52x+5

Keep the slope -52 and use the new intercept 4. The parallel line is y=-52x+4.

Now suppose the line we want to match has slope -13, and our new line starts at (0,-2). From that intercept, move right 3 and down 1 to get (3,-3). Draw the new line through those two points.

Parallel lines with slope negative one-thirdThe solid blue line passes through zero comma one and three comma zero. The dashed pink line passes through zero comma negative two and three comma negative three.xy(0, 1)(0, −2)(3, 0)(3, −3)
Both lines move down one unit for every three units to the right.
y=-13x-2

Perpendicular lines meet at a right angle

For two nonvertical lines with nonzero slopes, perpendicular slopes are negative reciprocals: their product is -1. To find one from the other, flip the fraction and change its sign. For example, the negative reciprocal of 2 is -12.

Perpendicular lines with slopes two and negative one-halfThe solid blue line rises two units per unit to the right. The dashed pink line falls one-half unit per unit to the right. They meet at a right angle on the vertical axis.xyslope 2slope −½
With the same scale on both axes, these lines meet at a right angle.

Write a perpendicular line through a given point

Find the line through (-2,5) perpendicular to y=-47x-2. Its slope is 74. Substitute that slope and the given point into y=mx+b to find b.

5=74(-2)+bb=5+72=172y=74x+172

The slope check is (-47)(74)=-1. Substituting x=-2 into the new equation also gives y=5.

Handle horizontal and vertical lines separately

A horizontal line has slope zero, and a vertical line has undefined slope. Distinct horizontal lines are parallel, and so are distinct vertical lines. Every horizontal line meets every vertical line at a right angle. For example, the vertical line through (2,3) is x=2, and the horizontal line through that point is y=3.

For another example, see how to graph a line from its equation.