Try it with your numbers
Show every step
That one pair of facts answers most questions about parallel and perpendicular lines. The rest of this page covers why the rules are true, how to flip awkward slopes, how to write full equations, and the cases where the rules need a small adjustment.
How do you tell if two lines are parallel?
Two non-vertical lines are parallel when their slopes are equal and their intercepts differ. The proof takes one line of algebra. To find where and meet, set them equal. The terms cancel and leave , which is false for different intercepts, so there is no meeting point. Equal slopes mean the vertical gap between the lines never changes, so they never get closer.
The test is instant in slope-intercept form, but equations rarely arrive that way. Take and . Solving the second for gives , so . Both slopes are and the intercepts are and , so the lines are parallel. The trap is comparing the coefficient with the and calling the lines different, when the second equation had not yet been solved for .
In standard form, , the slope is . That gives a faster test: two lines are parallel when the ratio of to matches, whatever is. One more case matters. If the slopes match and the intercepts match too, the two equations describe the same line. Rewrite and you get again. Most courses do not call a line parallel to itself, and in a system of equations this case gives infinitely many solutions.
Quick check
Answer: Parallel
Why are perpendicular slopes negative reciprocals?
Start with any line through the origin with slope . It passes through the point , because one step right produces a rise of . Now rotate the whole picture counterclockwise. A rotation sends to , so lands on . The rotated line is perpendicular to the original, and its slope is rise over run:
Multiply the two slopes and the cancels, leaving . Any line parallel to the rotated one is also perpendicular to the original, which is why the rule covers every perpendicular line and not just the ones through the origin.
A second proof uses vectors. The direction of the first line is and of the second is . Perpendicular directions have dot product zero, so , which gives . This version is worth keeping, because it handles vertical lines without any trouble (more on that below).
The sign has a picture behind it. Two rising lines both tilt the same way, so they can never meet at a corner of a page. Perpendicular lines always tilt opposite ways, which is why one slope is positive and the other negative. The reciprocal handles the steepness: a steep line pairs with a shallow one.
Try this: Pick the slope . Draw the arrow from to , then the arrow from to . Find the slope of the second arrow and multiply the two slopes. You should get and see a right angle.
How do you flip fractions, negatives and decimals?

Finding the perpendicular slope takes three moves, always in the same order:
- Write the slope as a fraction. An integer becomes , and a decimal becomes a fraction.
- Flip the fraction, so numerator and denominator swap places.
- Change the sign.
A slope of therefore becomes . Students lose most of their points here by doing only one of the two changes. For , flipping alone gives and changing the sign alone gives . Both are wrong. The correct answer is , and it is the only candidate whose product with is .
| Given slope | Parallel slope | Perpendicular slope |
|---|---|---|
Convert first: , so the perpendicular slope is , which is . Flipping a decimal directly is how ends up as a messy guess.
Another mistake is treating “opposite” and “negative reciprocal” as the same. The slopes and are opposites, and their product is , so those lines are neither parallel nor perpendicular. Always finish with the multiplication check.
How do you write a parallel line through a point?
Keep the slope, then use the point to set the position. Suppose a line must pass through and be parallel to . Solving the given equation, gives , so the slope is . Now apply point-slope form:
Distribute to get , then add to both sides. Since , the answer is:
There is a shortcut when the original is in standard form. A parallel line keeps the same left side, , and only the constant changes. Substitute the point: , so the line is . Multiply the first answer by and you get , which is the same equation. No fractions appeared at any step.
How do you write a perpendicular line through a point?
Flip and negate the slope, then use the point exactly as before. Find the line through perpendicular to . The given slope is , so the perpendicular slope is . Point-slope form gives:
Distribute: . Subtract from both sides and the result is . Check by substituting : , which matches the point.
For standard form there is a swap trick. If the given line is , a perpendicular line has the left side . Take the line perpendicular to through . The left side becomes , and the point gives , so the line is . The slopes confirm it: the given line has slope and the new one has slope , and their product is . The trick works because has slope , which is the negative reciprocal of .
Quick check
Answer:
Are two lines through given points parallel or perpendicular?
When the lines come as pairs of points, compute each slope with the slope formula, then compare. Line A passes through and . Line B passes through and .
The product is , so the lines are perpendicular. Subtract in the same order in the numerator and the denominator, because swapping the order in only one of them flips the sign of the slope and wrecks the verdict.
If the slopes were and , or and , the answer would be neither. A line that is merely “different” is not perpendicular. If you need the full equation of either line afterwards, the method for the equation of a line through two points picks up exactly where this step ends.
A fraction-free version of the test saves time. Write each line’s steps as (run, rise): A is and B is . The lines are perpendicular when run times run plus rise times rise equals zero: . They are parallel when the cross products match: .
What happens with vertical and horizontal lines?
Here the product rule breaks, and the reason is worth knowing. A horizontal line has slope and a vertical line has an undefined slope. The number has no reciprocal, so cannot even be written. Yet every horizontal line is perpendicular to every vertical line. See horizontal and vertical lines for how and behave.
So the rule has one exception, handled by sight. A line perpendicular to is any horizontal line . A line through perpendicular to must be vertical, so it is . Two vertical lines are parallel to each other even though their slopes are both undefined, so “equal slopes” must be read as “both vertical” in that case.
For direction steps and , the lines are perpendicular exactly when . A vertical step and a horizontal step give , as they should.
When a problem says “find the slope of a perpendicular line” and the given line is horizontal, the honest answer is “undefined, the line is vertical”, not “no answer”.
Where are parallel and perpendicular lines used?
Systems of equations are the first place most students meet them again. Two parallel lines never meet, so the system has no solution. Two identical lines meet everywhere, so it has infinitely many. Two lines with different slopes meet at exactly one point, and if the slopes multiply to they cross at a right angle. In matrix language, a coefficient matrix with a zero 2×2 determinant signals parallel or identical lines, because is the same as equal slopes.
In coordinate geometry, perpendicular slopes prove that a quadrilateral has right angles or that a triangle is a right triangle. The perpendicular bisector of a segment passes through its midpoint at a right angle, so you need the midpoint formula for the point and the negative reciprocal for the slope. The right angle that the slopes detect is the one from types of angles, and the distance formula with the Pythagorean theorem reaches the same verdict by a different route.
Beyond the classroom, a street grid is a family of parallel and perpendicular lines. Roof rafters are parallel, and the framing square a carpenter uses tests for a right angle. In calculus, the normal line to a curve at a point is perpendicular to the tangent there, so its slope is . The shortest path from a point to a line also runs along the perpendicular, which is why this slope rule underlies distance-to-a-line problems.
Quick check
Answer: No solution
How can you check a parallel or perpendicular answer quickly?
Run through these checks in order. They take under a minute and catch almost every error:
- Parallel: the slopes are equal and the intercepts differ. Equal intercepts too means the same line.
- Perpendicular: multiply the slopes. The product must be exactly , and one slope must be positive while the other is negative.
- Equation of a line: substitute the given point into your final equation. Both sides must match.
- Scale: if the original line is steep, the perpendicular line must be shallow, and vice versa.
For a visual check, pick two points on each line and plot them on the coordinate plane. Parallel lines look like rails, and perpendicular lines look like the corner of a sheet of paper. Use equal scales on both axes, because a stretched graph makes right angles look wrong.
The solver at the top of the page lets you test your own numbers, and the practice quiz below it lets you try the same steps on fresh problems. If an answer fails a check, go back to the flip-and-negate step first. That one step accounts for most lost points.
Practice problems
0 of 5 solved
- Find the slope of any line parallel to .
Answer:
Parallel lines share a slope. The equation is in slope-intercept form, so the slope is . Every parallel line also has slope . - Find the slope of a line perpendicular to .
Answer:
The given slope is . Flip it to get . Change the sign to get . Check: . - Are and parallel, perpendicular, or neither?
Answer: Perpendicular
First line: , so . Second line: , so and . The product is , so the lines are perpendicular. - Write the equation of the line through that is parallel to .
Answer:
The slope is . Point-slope form: . Distribute: . Subtract : . Check : . - Write the equation of the perpendicular bisector of the segment from to .
Answer:
Midpoint: . Segment slope: , so the perpendicular slope is . Then , which gives .
Common questions
What is the slope of a line parallel to another line?
It is exactly the same slope. If the given line has slope , every line parallel to it also has slope , and only the y-intercept (or the point it passes through) changes.
How do you find the slope of a perpendicular line?
Write the slope as a fraction, flip it, and change its sign. A slope of becomes , and a slope of becomes .
Can two lines have the same slope and not be parallel?
Yes, if they also have the same y-intercept they are the same line, not two separate lines. Most courses reserve the word parallel for distinct lines that never meet.
What is the slope of a line perpendicular to a horizontal line?
It is undefined, because the perpendicular line is vertical. A horizontal line has slope , and zero has no reciprocal, so the product rule cannot be used here.
How do you tell if lines in standard form are parallel or perpendicular?
For the slope is . Equal values of with different mean parallel, and slopes that multiply to mean perpendicular.
Do perpendicular lines always have one positive and one negative slope?
Yes, as long as neither line is horizontal or vertical. Two rising lines or two falling lines can never meet at a right angle, so the slopes must have opposite signs.