Given two line equations, slope answers one question fast: are these lines parallel, perpendicular, or neither? Parallel lines never meet; perpendicular lines meet at a right angle. The two slope tests below turn that geometric question into arithmetic.

The two formulas and their symbols

For two distinct non-vertical lines with slopes m1m_1 and m2m_2:

m1=m2parallelm_1 = m_2 \quad\Rightarrow\quad \text{parallel} m1m2=1perpendicularm_1 m_2 = -1 \quad\Rightarrow\quad \text{perpendicular}

The perpendicular condition is the same as saying the slopes are negative reciprocals: if one slope is 22, the perpendicular slope is 12-\tfrac{1}{2}; if one is 34-\tfrac{3}{4}, the perpendicular slope is 43\tfrac{4}{3}. The word distinct matters for parallel lines: if both slope and intercept match, the equations describe the same line in two forms.

Why the slope tests hold

Parallel. Slope is the tilt of a line. Two lines with the same tilt point in the same direction and stay a fixed distance apart, so they never intersect. Equal slope is exactly "same direction."

Perpendicular. Picture a line with slope m1m_1: going right one unit, you rise m1m_1 units, a direction vector of (1,m1)(1, m_1). Rotating that direction by 9090^\circ swaps the components and flips one sign, giving (m1,1)(-m_1, 1), whose slope is 1m1=1m1\tfrac{1}{-m_1} = -\tfrac{1}{m_1}. So the perpendicular slope m2=1m1m_2 = -\tfrac{1}{m_1}, and multiplying gives m1m2=1m_1 m_2 = -1. The product rule is just that rotation written as arithmetic, which is why opposite slopes like 22 and 2-2 are not enough.

This rule needs both slopes to exist. A vertical line has undefined slope, so its perpendicular partner is simply a horizontal line with slope 00.

Worked example: classify from two equations

Decide whether these lines are parallel, perpendicular, or neither:

2xy=3x+2y=82x - y = 3 \qquad\qquad x + 2y = 8

Rewrite each so the slope is easy to read. From 2xy=32x - y = 3:

y=2x3m1=2y = 2x - 3 \quad\Rightarrow\quad m_1 = 2

From x+2y=8x + 2y = 8:

2y=x+8y=12x+4m2=122y = -x + 8 \quad\Rightarrow\quad y = -\tfrac{1}{2}x + 4 \quad\Rightarrow\quad m_2 = -\tfrac{1}{2}

The negative reciprocal of 22 is 12-\tfrac{1}{2}, so the lines are perpendicular. Confirm with the product:

2(12)=12 \cdot \left(-\tfrac{1}{2}\right) = -1

When these lines meet, they form a right angle.

Practice with the fast routine

Classify y=3x+2y = -3x + 2 and y=3x5y = -3x - 5. Read the slopes (3-3 and 3-3), and since they match, check the intercepts (22 vs. 5-5): different, so the lines are genuinely parallel. For any pair, the routine is: rewrite to read slopes, compare, confirm distinctness if slopes match, check the negative-reciprocal condition if they do not, and otherwise call them neither.

Calculation traps

Calling opposite slopes perpendicular. Slopes 22 and 2-2 are opposites but not negative reciprocals, so those lines are not perpendicular.

Forgetting the vertical/horizontal case. A vertical line has undefined slope, so you cannot test it by multiplying slopes to get 1-1; pair it with a horizontal line instead.

Calling identical lines parallel. If both slope and intercept match, the equations are the same line, not two parallel lines.

Parallel and perpendicular lines appear in graphing, analytic geometry, coordinate proofs, and line-equation problems, and in design and engineering wherever direction and right angles matter. The practical payoff is that slope turns a visual idea into a quick numerical test. For a related skill, see Slope Formula and classify a pair of lines starting from two points instead of equations.

Frequently Asked Questions

How do you know if two lines are parallel?
For two distinct non-vertical lines, compare their slopes: equal slopes mean parallel lines. The word distinct matters, because if both the slope and the intercept match, the two equations may describe the same line written in different forms. Parallel lines have the same direction and stay the same distance apart, so they never meet.
How do you know if two lines are perpendicular?
When both slopes are defined, two lines are perpendicular if the product of their slopes is negative 1, which means the slopes are negative reciprocals. For example, if one slope is 2, the perpendicular slope is negative one-half. Perpendicular lines intersect at a 90 degree angle.
Are vertical and horizontal lines perpendicular?
Yes. A vertical line has undefined slope, so the negative reciprocal rule cannot be applied to it directly, but its perpendicular partner is a horizontal line with slope 0. This special case matters because the slope-product rule only applies when both slopes exist as numbers.
What steps classify two lines from their equations?
Rewrite each equation so the slope is easy to read, usually by solving for y. Compare the slopes: if they match, check the lines are distinct before calling them parallel; if they are negative reciprocals, the lines are perpendicular; if neither condition holds, they are neither. For example, the lines y equals 2x minus 3 and y equals negative one-half x plus 4 are perpendicular.

Need help with a problem?

Upload your question and get a verified, step-by-step solution in seconds.

Open GPAI Solver →