Parallel Line Calculator
Test cases replayed : 2 of 2 match · Methodology · No outside source listed
Enter the slope and y-intercept of the line, and the point the parallel line must pass through.
Result
y-intercept of the parallel line, y₀ − m × x₀
Slope of the parallel line (same as the given line)
- Distance between the two lines
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Slope m of the given line y = mx + b: enter a number.
- y-intercept b of the given line: enter a number.
- Point: x₀: enter a number.
- Point: y₀: enter a number.
- Read the result: y-intercept of the parallel line, y₀ − m × x₀; the panel also shows Slope of the parallel line (same as the given line) and Distance between the two lines.
How this calculator works
Parallel lines have the same slope. The line through (x₀, y₀) with slope m is y − y₀ = m(x − x₀), so its y-intercept is b = y₀ − m × x₀.
The distance between the parallel lines y = mx + b₁ and y = mx + b₂ is |b₂ − b₁| ÷ √(1 + m²).
The formula
| Symbol | Meaning |
|---|---|
| Slope m of the given line y = mx + b | |
| Point: x₀ | |
| Point: y₀ | |
| y-intercept of the parallel line, y₀ − m × x₀ |
Worked example
| Slope m of the given line y = mx + b | 2 |
|---|---|
| y-intercept b of the given line | 1 |
| Point: x₀ | 3 |
| Point: y₀ | 4 |
| Slope of the parallel line (same as the given line) | 2 |
|---|---|
| Distance between the two lines | 1.3416 |
y-intercept of the parallel line, y₀ − m × x₀ -2
Each step uses the unrounded value of the step before it; figures on this page are rounded for display.
Frequently asked questions
What line through (3, 4) is parallel to y = 2x + 1?
y = 2x − 2. The two lines are |−2 − 1| ÷ √5 ≈ 1.3416 units apart.
What about a vertical line x = c?
A vertical line has no slope; the parallel line through (x₀, y₀) is simply x = x₀.