Parallel and Perpendicular Lines
Stand on a railway bridge and look down the track. The two rails run on and on towards the
horizon and never meet — if they ever did, the train would derail. Now look at a
street map of a city like New York: avenue after avenue crossing street after street, every
junction a perfect right angle. Both pictures are made of straight lines, and both hide the
same secret: how two lines sit relative to each other is decided entirely by their
gradients.
Write each line as
y = mx + c and
two beautifully simple facts appear:
\text{parallel: } m_1 = m_2 \qquad\qquad \text{perpendicular: } m_1 m_2 = -1
The intercepts c can be anything at all — they only slide the
lines up or down the page. It is the gradient, and the gradient alone, that decides whether
two lines are rails that never touch or streets that cross at a perfect corner. Those two
facts unlock a whole family of exam questions: find a line parallel to this one through
that point, find the perpendicular through here, are these two lines
perpendicular? This page works through all of them.
For two straight lines with gradients m_1 and m_2:
- the lines are parallel exactly when m_1 = m_2 (and they are distinct lines when their intercepts differ);
- the lines are perpendicular exactly when m_1 m_2 = -1, i.e. m_2 = -\tfrac{1}{m_1} (the negative reciprocal).
Parallel lines share a gradient
Two lines are parallel when they never meet, however far you extend them —
like the rails of a track. For that to happen they must tilt by exactly the same
amount: if one climbed even slightly faster than the other, the gap between them would keep
changing and eventually close. So their gradients are equal:
m_1 = m_2
For example y = 2x + 1 and y = 2x - 4
are parallel: both climb 2 up for every 1 across. Their different intercepts just place one
rail above the other — the vertical gap between them is always 5, at every value of
x.
In fact y = 2x + c describes an infinite family of
parallel lines, one for every value of c — a whole railway yard
of tracks, all with gradient 2. That is exactly why "find the parallel line through this
point" is so quick: the gradient is already decided; the only job left is choosing the
right c so the line passes through your point.
Perpendicular lines have negative-reciprocal gradients
Two lines are perpendicular when they cross at a right angle — a street
meeting an avenue. The rule connecting their gradients is less obvious than the parallel
one, but just as tidy: their gradients multiply to -1.
m_1 m_2 = -1 \qquad\Longleftrightarrow\qquad m_2 = -\frac{1}{m_1}
We call -\tfrac{1}{m_1} the negative reciprocal,
and getting it right is a two-move dance — do both moves, every time:
- Flip the fraction (take the reciprocal): 2 \to \tfrac{1}{2}, or \tfrac{3}{4} \to \tfrac{4}{3}.
- Change the sign: positive becomes negative, negative becomes positive.
So for gradient m_1 = 2 the perpendicular gradient is
m_2 = -\tfrac{1}{2}, and indeed
2 \times \left(-\tfrac{1}{2}\right) = -1. For a fraction it works
the same way: if m_1 = \tfrac{3}{4}, flip it to get
\tfrac{4}{3}, change the sign to get
m_2 = -\tfrac{4}{3}, and check:
\tfrac{3}{4} \times \left(-\tfrac{4}{3}\right) = -\tfrac{12}{12} = -1. ✓
Notice what the sign change means geometrically: a perpendicular pair always contains one
uphill line and one downhill line. Two uphill lines can never be
perpendicular — their product would be positive, and it needs to be
-1.
See it move
Drag the gradient slider for the first line. Its parallel partner always
copies the gradient exactly (just shifted down — same tilt, different intercept), and its
perpendicular partner always takes the negative reciprocal, meeting it at a
right angle no matter what you do.
Two things are worth hunting for as you slide. First, watch the perpendicular partner
see-saw: when your line is steep, its perpendicular is gentle, and when your line is
gentle, its perpendicular is steep — a gradient of 4 pairs with
-\tfrac{1}{4}. Second, watch the signs: whenever your line goes
uphill, its perpendicular goes downhill, and vice versa. Both behaviours are the formula
m_2 = -\tfrac{1}{m_1} made visible.
Worked example 1: a parallel line through a point
Find the equation of the line parallel to y = 2x + 3 that
passes through the point (4, 5).
Step 1 — copy the gradient. Parallel means the same gradient, so read
m = 2 straight off the given equation. Our answer must look like
y = 2x + c — only c is still unknown.
Step 2 — use the point to find c. The line has
to pass through (4, 5), so those coordinates must satisfy the
equation. Substitute x = 4, y = 5:
5 = 2(4) + c \;\Rightarrow\; 5 = 8 + c \;\Rightarrow\; c = -3
Answer: y = 2x - 3. A quick sanity check: it has
gradient 2 (parallel ✓) and when x = 4 it gives
y = 8 - 3 = 5 (through the point ✓). Every "parallel through a
point" question is these same two steps: copy m, then
substitute the point to find c.
Worked example 2: a perpendicular line through a point
Find the equation of the line perpendicular to
y = \tfrac{2}{3}x + 1 that passes through
(2, 4).
Step 1 — find the perpendicular gradient, slowly. The given gradient is
m_1 = \tfrac{2}{3}. Take the negative reciprocal in two moves:
- Flip: \tfrac{2}{3} \to \tfrac{3}{2}.
- Change the sign: \tfrac{3}{2} \to -\tfrac{3}{2}.
So m_2 = -\tfrac{3}{2}. Verify before moving on:
\tfrac{2}{3} \times \left(-\tfrac{3}{2}\right) = -\tfrac{6}{6} = -1. ✓
Step 2 — use the point to find c. The new line
is y = -\tfrac{3}{2}x + c and must pass through
(2, 4):
4 = -\tfrac{3}{2}(2) + c \;\Rightarrow\; 4 = -3 + c \;\Rightarrow\; c = 7
Answer: y = -\tfrac{3}{2}x + 7. Same recipe as
example 1 — the only new ingredient is that step 1 now says negative reciprocal
instead of copy.
Worked example 3: parallel, perpendicular or neither?
Exam questions love to hand you lines in disguise — not in the form
y = mx + c. The golden rule: rearrange every equation
into y = mx + c first, and only then compare gradients.
Take line A to be y = 3x - 4, gradient
m_A = 3, and compare it with three others:
Line B: 2y = 6x + 1. Don't read "6"! Divide both
sides by 2 first: y = 3x + \tfrac{1}{2}. Now the gradient is
m_B = 3 = m_A, so A and B are parallel (and
distinct, since -4 \neq \tfrac{1}{2}).
Line C: x + 3y = 9. Rearrange: subtract
x to get 3y = -x + 9, then divide by 3:
y = -\tfrac{1}{3}x + 3. So
m_C = -\tfrac{1}{3}, and
m_A \times m_C = 3 \times \left(-\tfrac{1}{3}\right) = -1 — A and
C are perpendicular.
Line D: y = -3x + 2. Here
m_D = -3. Is it equal to m_A? No
(3 \neq -3 — opposite signs are not parallel!). Does the
product make -1? No:
3 \times (-3) = -9. So A and D are neither —
they cross, but not at a right angle.
That three-way check — equal? product -1? otherwise neither — is
the complete decision procedure. It never needs a sketch, only tidy algebra.
These three mistakes account for most lost marks on this topic:
-
The perpendicular gradient is the negative reciprocal — flip and change
sign. For m = 2 the answer is
-\tfrac{1}{2}, not -2 (sign changed
but not flipped) and not \tfrac{1}{2} (flipped but sign
unchanged). Doing only one of the two moves is the single most common error.
-
Always run the check m_1 m_2 = -1. It takes
two seconds and catches both half-done moves above:
2 \times (-2) = -4 ✗ and
2 \times \tfrac{1}{2} = 1 ✗, but
2 \times \left(-\tfrac{1}{2}\right) = -1 ✓.
-
Rearrange before you read the gradient. The line
2y = 6x + 1 does not have gradient 6. Divide by 2
first — y = 3x + \tfrac{1}{2} — and the true gradient is 3. The
gradient can only be read from the form y = mx + c, with
y alone on the left.
Why the negative reciprocal? Rotate the triangle
The rule m_2 = -\tfrac{1}{m_1} can look like a magic trick, but
there is a lovely picture behind it. Every gradient is a little right-angled
slope triangle: gradient 2 means "go 1 across, 2 up". To build a perpendicular
line, rotate that whole triangle a quarter turn about its corner — the line rotates
90°, so of course the new line is perpendicular.
Now look at what the rotation did to the triangle. The old run (1 across) is
standing upright, and the old rise (2 up) is lying flat — rise and run have
swapped, which is exactly the "flip the fraction" move. And because the triangle
turned, one of the directions reversed — that is the sign change. New gradient:
\tfrac{\text{rise}}{\text{run}} = \tfrac{-1}{2}. Step through the
figure to watch it happen:
The same argument works for any starting gradient \tfrac{a}{b}:
rotate the triangle and you get -\tfrac{b}{a}, and the product is
\tfrac{a}{b} \times \left(-\tfrac{b}{a}\right) = -1, always. The
formula isn't a rule to memorise so much as a rotation you can see.
Almost — there is exactly one famous exception. A horizontal line
(y = 3, gradient 0) and a
vertical line (x = 2) are certainly
perpendicular — they make the classic street-map corner. But try the rule:
0 \times m_2 = -1 has no solution, because a vertical line has no
gradient at all (its "run" is zero, and you cannot divide by zero). The negative reciprocal
of 0 would be -\tfrac{1}{0} —
undefined.
So the honest statement of the rule is: for two lines that both have gradients,
perpendicular \Leftrightarrow m_1 m_2 = -1; and separately, every
horizontal line is perpendicular to every vertical line. You can see the exception looming in
the interactive chart above: slide m close to
0 and the perpendicular partner rears up steeper and steeper,
chasing the vertical line it can never quite name. Surveyors, architects and games
programmers all hit this edge case — it is why software that handles lines often stores them
as ax + by = c instead of y = mx + c,
a form with no forbidden direction.
See it explained