Equations of Perpendicular Lines
Two lines are parallel if they never cross, and perpendicular if they cross at a right angle. On a coordinate plane, both relationships come down to one number: slope. Parallel lines have the same slope. Perpendicular lines have slopes that are negative reciprocals of each other — flip the fraction, flip the sign.
That's the entire topic. Every problem in this lesson — checking whether two lines are parallel, writing a line perpendicular to a given one through a given point — starts by finding a slope and applying one of those two rules.
Parallel lines: same slope
Slope is the direction a line points. Two lines with the same slope climb (or fall) at exactly the same rate, so the vertical gap between them never changes — they can't ever meet. The lines and are parallel: same slope , different -intercepts.
The -intercepts must be different. If two equations have the same slope and the same -intercept, they are the same line, not parallel lines. So the parallel check is: slopes equal, intercepts not equal.
Perpendicular lines: negative reciprocal slopes
Two lines are perpendicular when their slopes multiply to . Equivalently, each slope is the negative reciprocal of the other: flip the fraction and change the sign. A line with slope is perpendicular to a line with slope , because .
For a whole-number slope, write it over first. Perpendicular to slope ? Write as , flip to , change the sign: . Check: .
The graph below shows a perpendicular pair: the black line and the blue line . The slopes are and , their product is , and the lines cross at a right angle.
Horizontal and vertical lines
Horizontal lines like have slope . Vertical lines like have undefined slope. The negative-reciprocal rule can't be applied to them — you can't flip into anything usable — but the geometry still works: every horizontal line is perpendicular to every vertical line.
So treat them as a memorized special case: parallel to a horizontal line means horizontal; perpendicular to a horizontal line means vertical, and vice versa.
Worked examples
Example 1: slope of a parallel line
What is the slope of a line parallel to ?
Answer:
Example 2: slope of a perpendicular line
What is the slope of a line perpendicular to a line with slope ?
Answer:
Example 3: write a parallel line through a point
Write the equation of the line parallel to through .
Answer:
Example 4: write a perpendicular line through a point
Write the equation of the line perpendicular to through .
Answer:
Try one yourself
Common questions
If two lines have the same slope, are they always parallel?
Almost — there's one exception. If they also share the same -intercept, they are the same line, not two parallel lines. Same slope plus different intercepts means parallel.
How do I find the perpendicular slope of a whole number like ?
Write it as a fraction over first: . Flip it to , then change the sign to get . Verify with the product test: .
Do horizontal and vertical lines follow the multiply-to- rule?
No — a horizontal line has slope and a vertical line has undefined slope, so the product test can't be computed. They are still perpendicular to each other; it's a special case you handle by inspection rather than by formula.
Want the video version?
Allday Everyday Math has video lessons, practice, and an AI tutor for every topic, Pre-Algebra through Algebra 2.