Distance Between Parallel Lines Calculator

Enter two parallel lines to find the distance between them.

An equation in x and y, such as y = 2x + 1 or 3x + 4y = 5.

A second equation in x and y.

Try

Result

You entered6x+8y=10∥3x+4y=156x + 8y = 10 \quad \parallel \quad 3x + 4y = 15

2\displaystyle 2

Squared distance

4\displaystyle 4
Show the work
  1. Distance between parallel lines

    Parallel lines keep the same distance everywhere. Multiplying the second line by 22 gives 6x+8y=306x + 8y = 30, which has the same A=6A = 6 and B=8B = 8 as the first, so the distance depends only on the constants C1C_1 and C2C_2.

    d=∣C1−C2∣A2+B2=∣10−30∣62+82=20100=2\begin{aligned} d &= \frac{\left|C_1 - C_2\right|}{\sqrt{A^2 + B^2}} \\ &= \frac{\left|10 - 30\right|}{\sqrt{6^2 + 8^2}} \\ &= \frac{20}{\sqrt{100}} \\ &= 2 \end{aligned}
  2. Result

    So the parallel lines are 22 units apart.

Worked examples