Parallel and Perpendicular Lines
Two lines are parallel if they never intersect; they are perpendicular if they meet at a right angle. Both conditions can be stated precisely using slopes: parallel lines have equal slopes, and perpendicular lines have slopes whose product is .
Quick Reference
| Relationship | Slope Condition | Example |
|---|---|---|
| Parallel | Slopes $3$ and $3$ | |
| Perpendicular | Slopes $2$ and |
Parallel Lines
Two lines in the same plane are called parallel if they never intersect, no matter how far they are extended. The figure below shows several lines of the form , which are all parallel to each other:

Parallel Lines Theorem: Two nonvertical lines with slopes and are parallel if and only if .
Proof (click to expand)
() Parallel lines have equal slopes.
Let the two lines be and . To find an intersection, set them equal:
Parallel lines have no intersection, so this equation must have no solution. That happens exactly when , i.e., .
() Lines with equal slopes are parallel.
Suppose . Setting gives .
- If , there is no solution: the lines do not intersect and are parallel.
- If , the equations are identical: the lines coincide, which can also be considered parallel.
Example 1. Write the equation of the line parallel to that passes through $(2, 5)$.
Solution
First, rewrite the given line in slope-intercept form:
<p>The slope is . The parallel line has the same slope.</p>
Method (a): Point-Slope Form
Method (b): Slope-Intercept Form
Write and substitute $(2, 5)$:
Both methods give .
Perpendicular Lines
Two lines are perpendicular if they intersect at a right angle ($90°$). The figure below shows lines of slope $2$ and lines of slope , which are perpendicular to each other:

Perpendicular Lines Theorem: Two nonvertical lines with slopes and are perpendicular if and only if:
Equivalently, the slopes of perpendicular lines are negative reciprocals of each other: .
A horizontal line (slope $0$) is perpendicular to every vertical line (undefined slope).
Proof using the Pythagorean Theorem (click to expand)
Assume lines and with slopes and intersect perpendicularly at :

Move one unit to the right from to reach point on and point on . By the Distance Formula:
The lines are perpendicular if and only if (Pythagorean Theorem):
\begin{aligned} (1 + m_1^2) + (1 + m_2^2) &= (m_2 - m_1)^2 \\ 2 + m_1^2 + m_2^2 &= m_2^2 - 2m_1 m_2 + m_1^2 \\ 2 &= -2m_1 m_2 \\ m_1 m_2 &= -1. \quad \square \end{aligned}Example 2. Write the equation of the line perpendicular to that passes through .
Solution
Rewrite the given line in slope-intercept form:
The slope of the given line is . The perpendicular slope is:
Method (a): Point-Slope Form
Method (b): Slope-Intercept Form
Write and substitute :
The equation is .

Example 3. Show that , , and are vertices of a right triangle.
Solution
Compute the slopes of all three sides:

Check whether any pair of slopes multiplies to :
Since , sides and are perpendicular. Therefore triangle is a right triangle with the right angle at vertex .
Frequently Asked Questions
How do I know if two lines are parallel?
Two nonvertical lines are parallel if and only if they have the same slope. Rewrite both equations in slope-intercept form and compare the slopes. If and , the lines are distinct and parallel. If both the slopes and intercepts are equal, the lines are the same.
How do I find the slope of a perpendicular line?
If a line has slope , any line perpendicular to it has slope (the negative reciprocal). For example, if the slope is , the perpendicular slope is . Note: horizontal lines (slope 0) are perpendicular to vertical lines (undefined slope), which is the one case the formula does not apply to.What is a negative reciprocal?
The negative reciprocal of a number is : flip the fraction and change the sign. For example:- Negative reciprocal of $2$ is .
- Negative reciprocal of is .
Can two lines be both parallel and perpendicular?
No. Parallel lines have equal slopes, while perpendicular lines have slopes with product . If , then , which equals only if (imaginary). For real lines, no two distinct lines can be simultaneously parallel and perpendicular.How do I write the equation of a line parallel or perpendicular to a given line?
Follow these steps:- Find the slope of the given line by rewriting it in slope-intercept form.
- For a parallel line, use the same slope. For a perpendicular line, take the negative reciprocal.
- Use the point-slope form with the new slope and the given point to write the equation.