Parallel lines never meet, and perpendicular lines meet at a right angle. In coordinate geometry, slope is the quickest way to tell which relationship you have.
For two non-vertical lines, the rule is simple: equal slopes mean parallel lines, and negative reciprocal slopes mean perpendicular lines. If one line is vertical and the other is horizontal, they are also perpendicular.
How to tell if lines are parallel
Parallel lines have the same direction and stay the same distance apart in a plane. On a graph, they have the same tilt.
If two distinct non-vertical lines have slopes and , they are parallel when
The word distinct matters. If the slope and intercept both match, the equations may describe the same line written in two forms.
How to tell if lines are perpendicular
Perpendicular lines intersect at a angle. When both slopes are defined, the condition is
That is the same as saying the slopes are negative reciprocals.
For example, if one slope is , the perpendicular slope is . If one slope is , the perpendicular slope is .
This rule applies only when both slopes exist as numbers. A vertical line has undefined slope, so its perpendicular partner is a horizontal line with slope .
Worked example: classify two lines from their equations
Decide whether these lines are parallel, perpendicular, or neither:
First rewrite each equation so the slope is easy to read.
From , solve for :
So the first slope is .
From , solve for :
So the second slope is .
Now compare them. The negative reciprocal of is , so the lines are perpendicular. You can check with the product rule:
That tells you something geometric right away: when these lines meet, they form a right angle.
A fast way to check any pair of lines
When a problem gives two equations, use this order:
- Rewrite each line so the slope is easy to read.
- Compare the slopes.
- If the slopes match, check whether the lines are distinct before calling them parallel.
- If the slopes are negative reciprocals, call the lines perpendicular.
- If neither condition holds, the lines are neither parallel nor perpendicular.
This keeps you from mixing up same slope, opposite slope, and negative reciprocal slope.
Common mistakes with slope
One common mistake is saying perpendicular lines have opposite slopes. That is not enough. Slopes of and are opposites, but they are not negative reciprocals, so those lines are not perpendicular.
Another mistake is forgetting the special case of vertical and horizontal lines. A vertical line has undefined slope, so you cannot test it by multiplying slopes to get .
Students also sometimes call two lines parallel just because the slopes match. If the intercepts also match, the equations describe the same line, not two distinct parallel lines.
Where parallel and perpendicular lines are used
Parallel and perpendicular lines show up in graphing, analytic geometry, coordinate proofs, and line-equation problems. They are also useful in design and engineering settings where direction and right angles matter.
The practical point is that slope turns a visual idea into a quick numerical test.
Try a similar problem
Try your own version with the lines and . Read the slopes first, decide whether the lines are parallel, perpendicular, or neither, and then check whether the intercepts change your answer.
If you want one more case after that, explore Slope Formula and then classify a pair of lines from two points instead of from equations.
Need help with a problem?
Upload your question and get a verified, step-by-step solution in seconds.
Open GPAI Solver →