Two lines are parallel when their slopes are equal, perpendicular when their slopes multiply to −1, and neither when both tests fail. Vertical lines are the exception: two verticals are parallel, a vertical paired with a horizontal is perpendicular, and vertical versus any other slope is neither. Every classification in this article reduces to those four rules, applied to exact fractions.
Start With Slope as a Fraction, Not a Decimal
Slope is the rise over the run between two points: m = (y₂ − y₁) / (x₂ − x₁). Keep it as a reduced fraction like 3/4. Decimals such as 0.75 make the perpendicular test unreliable, because 0.75 × (−1.333…) never lands exactly on −1. For lines through (2, 3) and (6, 6), the rise is 3 and the run is 4, so m = 3/4. For lines through (0, 1) and (3, 5), the rise is 4 over a run of 3, so m = 4/3. Those two slopes multiply to exactly 12/12 = 1, which classifies them as neither parallel nor perpendicular. Checking the same numbers as decimals gives 0.75 × 1.333 = 0.99975, an answer that looks close enough to matter when it does not.
Fractions also survive rewriting. Swap the rise and run, then flip the sign, and you have the perpendicular partner. The reciprocal of 3/4 is 4/3, and negating it gives −4/3. That one operation is the entire perpendicular test.
Apply the Two Slope Tests in the Right Order
Run the parallel check first, then the perpendicular check, then default to neither. Parallel means m₁ = m₂, including the special case where both lines are vertical. Perpendicular means m₁ × m₂ = −1, which is the same as saying one slope is the negative reciprocal of the other. If a line has m = 5, the perpendicular slope is −1/5. If m = −2/3, the perpendicular slope is 3/2. Anything else falls to neither.
Order matters when the numbers are untidy. Suppose a student computes m₁ = 2/3 and m₂ = 3/2 and announces perpendicular. The actual product is 1, not −1, because the sign flip was skipped. Verify the product before you name the relationship.
Equal slopes settle the parallel case instantly, so you never have to compute a product. Checking parallelism costs one comparison, while checking perpendicularity costs one multiplication plus a sign rule. Cheap tests first is standard practice across math, from divisibility rules to polynomial factoring.
Table the Six Slope Cases Side by Side
The table below is the version most textbooks compress into a paragraph and most students then misremember. Read the product column as the deciding value.
| Line 1 slope | Line 2 slope | Product | Relationship |
|---|---|---|---|
| 3/4 | 3/4 | 9/16 | Parallel |
| 3/4 | −4/3 | −1 | Perpendicular |
| 2 | 2 | 4 | Parallel |
| 2 | −1/2 | −1 | Perpendicular |
| 2/3 | 3/2 | 1 | Neither |
| 1/2 | −1/2 | −1/4 | Neither |
| Vertical | Vertical | undefined | Parallel |
| Vertical | 0 | undefined | Perpendicular |
| Vertical | 2 | undefined | Neither |
| 0 | 0 | 0 | Parallel |
| 0 | 2 | 0 | Neither |
The 2/3 and 3/2 row is the trap. Only a sign flips you from parallel-looking to perpendicular-looking, and both fractions look like mirror images of each other. The 1/2 and −1/2 row traps a second group: people see the opposite signs and stop there, ignoring that reciprocals were never taken. The fifth through seventh rows explain why vertical lines must be handled in words rather than by multiplication.
Classify Lines From Coordinates With a Worked Example
Take A(1, 2), B(4, 6), C(5, 1), and D(9, 4). Line AB has slope (6 − 2)/(4 − 1) = 4/3. Line CD has slope (4 − 1)/(9 − 5) = 3/4. The product is 12/12 = 1, so AB and CD are neither parallel nor perpendicular. Keep those coordinates; they recur later.
Now shift one point. Move D to (8, 0). Line CD becomes (0 − 1)/(8 − 5) = −1/3. Compare AB's −1/3 with CD's 4/3: the product is −4/9, still neither. Try again with D at (7, −1): the slope is (−1 − 1)/(7 − 5) = −1, giving a product of −4/3. Still neither. Through all three tries, AB and CD never became perpendicular because only one of the two conditions, the sign flip, was ever met.
Accuracy beats speed here. Misreading a single coordinate flips the answer, which is why a prepared grid and a second pass matter. Layered checklists keep the two conditions visible at once: did I flip the sign, and did I invert the fraction?
Recognize Horizontal and Vertical Lines by Name
A horizontal line has slope 0; a vertical line's slope is undefined, because the run in the slope formula is zero and division by zero is not a real number. Textbook ESL and geometry guides, including the slope summaries on Purplemath and the Khan Academy slope unit, repeat that vertical lines have no definable slope. Rules that only compare fractions therefore have to hold two facts, not compute anything. Rotate a page, and the visual check is obvious.
Vertical padding causes a specific error. A student writes that the perpendicular of y = 5 is y = −1/5. That line is horizontal with slope 0, not vertical. The perpendicular to a horizontal line is x = a constant, which has no slope.
A "perpendicular to y = 3" exercise tests this exact distinction. An answer of y = −1/3 is wrong; the correct line is x = some constant. The shift from dependent to independent variable is the giveaway.
Use the Product Rule as a Float Check and in Construction
In a graphics shader or CAD tool, slopes are floats, and exact −1 rarely appears. Scale the tolerance to the canvas: at 1000 pixels with a 3/4 slope, a deviation of 0.0005 in the slope moves the endpoint by roughly half a pixel. Visually, a perpendicular at 0.0005 off is indistinguishable from one that is exact.
Construction runs the rule backwards: need a parallel line through (5, −2) to y = 3x + 7? Copy the slope of 3 and write y = 3x − 17. Need a perpendicular? Use −1/3: y = −1/3 x − 1/3. Compare that with the earlier 3/4 and −4/3 example; the arithmetic is identical, just shifted.
Textbook economics is worth naming. Curricula identify parallel and perpendicular relationships in Grade 4 (Pennsylvania Core Standards M04.C-G.1.1.2), and the slope version of the test appears in Algebra I. Reinforcement across eight years of schooling is why those rules are still worth mastering.
Determine the Relationship With a Six-Problem Mixed Practice
Do the six problems below before reading the answers. Each takes under a minute with fraction arithmetic.
1: Line through (0, 0) and (4, 8); line through (0, 3) and (2, 7). Slopes 2 and 2. 2: Line through (1, 1) and (5, 5); line through (1, 5) and (5, 1). Slopes 1 and −1. 3: Line with equation y = −2x + 4; line through (3, 0) and (4, 3). Slopes −2 and 3. 4: Line with equation y = 7; line with equation x = 2. 5: Line through (2, 1) and (5, 7); line through (0, 0) and (4, 4). Slopes 2 and 1. 6: Line through (0, 0) and (3, 2); line through (2, 0) and (5, −2). Slopes 2/3 and −2/3.
Answers: 1 parallel, 2 perpendicular, 3 neither, 4 perpendicular, 5 neither, 6 neither. Problem 6 is the closest miss: the reciprocal is right but the sign flip pushes it off the target, so the product is −4/9.
Failure handling matters as much as the answer key. A negative slope on a rising-looking line usually means two points were subtracted in the wrong order, so recompute from the same first point. If the slopes disagree after a recheck, graph the points to detect a coordinate typo.
Check Each Answer With a Protractor or Dynamic Geometry
If you can plot the two lines, you can eyeball the answer before the slope proves it. A 90-degree angle on a quadrant-protractor at a state grading cut (the document approving the device for classroom use) shows perpendicular within its 0.5-degree scale subdivisions, and a matching gap shows parallel. Dynamic geometry apps, including GeoGebra's slope controls, update slope readings live as you drag a point.
The check exposes sign errors in one look. A rising line plotted alongside a line you call perpendicular must have an opposite tendency, or at least the wrong tilt. Levels of proof settle disputes: a sketch that visibly crosses at a right angle is evidence for perpendicularity, and coordinate subtraction is proof.
Insert the word "approximately" for measured geometry. The protractor says the lines look perpendicular; the coordinates confirm it by product.
Work Through the Parallelogram, Triangle, and Trapezoid Proofs
Slope relations decide quadrilateral shapes. A parallelogram has two pairs of parallel sides, so both pairs must have equal slopes. A rectangle needs one pair of parallel sides plus one pair of perpendicular sides. A trapezoid needs exactly one pair of parallel sides, and many students call isosceles any trapezoid with equal legs.
Name a five-step triangle proof. Take A(0, 0), B(3, 4), C(7, −1). Slope AB = 4/3. Slope BC = (−1 − 4)/(7 − 3) = −5/4. Slope AC = −1/7. The product of AB and BC is −5/3, not −1, so this triangle is not right-angled at B. Move C to (7, 0) and slope BC = −1, product −4/3, still not perpendicular; move C to (7, 3) and slope BC = −1/4, product −1/3. To make AB ⊥ BC you need BC = −3/4, which happens when C sits at (7, 2) since (−4)/(2) wait — that gives slope −4/2 = −2. Slope check again: from B(3, 4) to C(7, 2), rise −2 over run 4 is −1/2, giving product −2/3. The perpendicular target for AB's 4/3 is m = −3/4, so BC's rise must be −3 for a run of 4: C(7, 1). Then slope BC = −3/4 and the product is exactly −1.
Order the sides correctly, and the proof works. Slope AB versus slope BC, not AB versus AC, is where right angles live. Use the sequential edges of the polygon, or you will test a diagonal you never intended.
FAQ
Do parallel lines ever have different slopes?
No, for straight lines in the coordinate plane, equal slopes and parallelism are the same fact. But curvature breaks the pattern: two arcs of concentric circles are "parallel curves" without sharing a slope. Keep the slope rule for lines only.
What slope is perpendicular to a slope of 0?
A vertical line, whose slope is undefined. Any horizontal line and any vertical line cross at exactly 90 degrees, so the product test breaks down and the special case takes over.
Is a line perpendicular to itself possible?
Only in degenerate setups, not for real straight lines. Applying the negative reciprocal to 1/2 gives −2, never 1/2, so a line cannot be perpendicular to its own direction.
What if both slopes are undefined?
Two vertical lines have undefined slopes, and they are parallel because they never meet. You cannot multiply undefined slopes, so classify by inspecting the equations.
Can I check the slope product with a calculator?
Yes, but convert fractions to exact decimals first and aim for a result of −1, not −0.99 or −1.01. If the product sits at −0.9999, round only after confirming the intended fractions, or you may misclassify near-miss pairs.
Why is 2/3 parallel to 6/9?
Because 6/9 reduces to 2/3. Equivalent fractions represent the same slope, so reach for the reduced form before comparing two lines. A pair that looks different in raw coordinates often turns out identical after reduction.
Do perpendicular lines have to look like a right angle on paper?
On a faithfully scaled graph, yes. In a stretched or skewed chart axis, the visual angle lies, so rely on the slope product, not the picture.