Parallel and Perpendicular Lines Calculator

Enter the slope of a line and a point, and this tool finds the parallel line and the perpendicular line through that point, each written in point-slope, slope-intercept, and standard form, with a graph.

Enter the slope of the reference line and a point the new lines pass through.

Read the reference slope from any form (in y = mx + b it is m). Whole numbers, decimals, or fractions.

The Two Rules You Need

Finding parallel and perpendicular lines comes down to two slope rules, and then point-slope form does the rest.

  • Parallel lines share a slope. If the original line has slope m, a parallel line also has slope m.
  • Perpendicular lines have negative-reciprocal slopes. Flip the slope over and change its sign. The negative reciprocal of 2 is −1/2, and the negative reciprocal of −3/4 is 4/3.

Notice the neat check: multiply a slope by its perpendicular slope and you always get −1. For 2 and −1/2, that is 2 × (−1/2) = −1.

How to Find a Parallel Line

Keep the same slope, then pin the line to your point with point-slope form. For a line with slope 2 through the point (1, 4), the parallel line is y − 4 = 2(x − 1), which becomes y = 2x + 2.

How to Find a Perpendicular Line

Take the negative reciprocal for the slope, then use the same point. The perpendicular slope to 2 is −1/2, so through (1, 4) the perpendicular line is y − 4 = −1/2(x − 1), which becomes y = −1/2 x + 9/2.

Special Case: Horizontal and Vertical Lines

A horizontal line has slope 0. Its parallel is another horizontal line, but its perpendicular is vertical, written as x = a constant, because the negative reciprocal of 0 is undefined. The calculator handles this for you and shows the vertical equation.

Check the Algebra

Every answer above is written in point-slope form first. If you want to review that form on its own, read the point-slope formula guide, see how to find it, or convert the results with the main calculator.

Frequently asked questions

What slope does a parallel line have?
The same slope. Parallel lines never meet, so they rise at exactly the same rate. If the reference slope is m, the parallel line also has slope m.
What slope does a perpendicular line have?
The negative reciprocal. Flip the slope and change its sign. If the reference slope is 2, the perpendicular slope is −1/2. If it is −3/4, the perpendicular slope is 4/3.
How do you write the line once you have the slope?
Use point-slope form. Drop the new slope and the given point into y − y₁ = m(x − x₁), then convert to slope-intercept or standard form if you need to.
What is perpendicular to a horizontal line?
A vertical line. A horizontal line has slope 0, and its negative reciprocal is undefined, so the perpendicular line is vertical and written as x = a constant.
Do parallel and perpendicular lines pass through the same point here?
Yes. This tool finds the one parallel line and the one perpendicular line that both pass through the point you enter.

y − y₁ = m(x − x₁)

Need the plain point-slope calculator?

Free, instant, and it shows every step and the graph.