Use this Parallel and Perpendicular line calculator to find the equation of a line that is parallel or perpendicular to a given line. Enter the original line’s slope and either a point or a second slope, and the calculator outputs the new slope and full equation.
You will also learn the exact slope rules and how to verify your result, so you can apply the same method to homework and real geometry problems.
What “parallel” and “perpendicular” mean in coordinate geometry
In the coordinate plane, a line is described by its slope and an equation. Two lines are:
- Parallel if they have the same slope and never intersect.
- Perpendicular if their slopes are negative reciprocals and they intersect at a right angle.
Most problems in algebra and precalculus reduce to matching slope rules and then finding the intercept using a point.
Core formulas (the slope rules you must know)
Let the given line have slope m. The calculator uses these rules:
| Relationship | New slope | Key idea |
|---|---|---|
| Parallel | mp = m | Same direction, same steepness |
| Perpendicular | m⟂ = -1/m | Right angle rule |
Once the slope is known, the line equation uses the slope-intercept form:
- y = mx + b
To find b, plug in a known point (x0, y0) on the new line:
- b = y0 − m x0
How to use the calculator (what to enter)
The calculator computes a parallel or perpendicular line equation using your inputs. You can use any consistent slope and point values.
- Choose Parallel or Perpendicular.
- Enter the given line slope (m).
- Enter the point the new line must pass through: x and y.
- Click Calculate to get the new slope and the equation y = mx + b.
If you already know the second slope and want to check the relationship, you can use the “Compare slopes” mode provided in the calculator to determine whether the lines are parallel, perpendicular, or neither.
Verification: quick checks that prevent mistakes
After you calculate the equation, verify it with a fast slope check and a point check.
- Parallel check: compare slopes. They must match exactly (or within a small rounding tolerance).
- Perpendicular check: multiply slopes. For perpendicular lines, m · mnew = −1 (again, within rounding tolerance).
- Point check: plug your given point into the equation. The left side must equal the right side.
These checks catch common errors like mixing up negative signs or using the wrong point.
Practical examples (real classroom-style use)
Example 1: Parallel line through a point
Suppose a line has slope m = 3. You need a parallel line that passes through (2, 5).
- Parallel slope: mp = 3
- Find intercept: b = 5 − 3·2 = 5 − 6 = −1
Final equation: y = 3x − 1.
Example 2: Perpendicular line through a point
A given line has slope m = 2. Find the perpendicular line through (−1, 4).
- Perpendicular slope: m⟂ = −1/2
- Find intercept: b = 4 − (−1/2)·(−1)
Compute carefully: (−1/2)·(−1) = 1/2, so b = 4 − 1/2 = 7/2.
Final equation: y = −(1/2)x + 7/2.
Common edge cases (and how the calculator handles them)
Some inputs create special situations. Here are the ones you should watch for.
- Given slope m = 0: the original line is horizontal. A perpendicular line must be vertical, which cannot be written as y = mx + b. The calculator flags this case.
- Perpendicular slope requires division by m: if m = 0, the perpendicular slope would require −1/0, which is undefined. The calculator reports “vertical line” instead of a numeric slope.
- Rounding: decimal slopes like 0.333 may represent fractions in real problems. The calculator rounds output for readability, while keeping enough precision for checks.
Frequently Asked Questions
How do you find the equation of a line parallel to another line?
Parallel lines have the same slope. Use the given slope m as the new slope. Then use the point (x0, y0) the new line passes through to compute b with b = y0 − mx0. Substitute m and b into y = mx + b.
What is the slope of a line perpendicular to a given line?
Perpendicular lines have slopes that are negative reciprocals. If the given slope is m, the perpendicular slope is −1/m. After you get that slope, plug in any point the new line must pass through to find the intercept b and write y = mx + b.
Can perpendicular lines have a slope of 0?
Yes, one of the lines can be horizontal with slope 0. But the line that is perpendicular to a horizontal line must be vertical, and vertical lines are not expressible in y = mx + b form. Instead, use x = constant.
Why does the calculator sometimes show a vertical line instead of an equation?
If the perpendicular relationship would require dividing by zero (for example, given slope m = 0), the perpendicular line is vertical. Vertical lines have undefined slope, so the calculator reports it as x = x0 or a vertical form rather than a y = mx + b equation.
How can I check if my two lines are parallel or perpendicular?
Compute or read each slope. For parallel lines, the slopes must match. For perpendicular lines, multiply the slopes; the product should be −1. If either line is vertical, treat it separately: vertical is perpendicular to horizontal.
Bottom-line takeaway
Parallel lines keep the same slope. Perpendicular lines flip to the negative reciprocal slope. With those rules and one point, you can always build the full equation y = mx + b.
Use the Parallel and Perpendicular line calculator above to get accurate results fast, then verify with the slope and point checks.



