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 entered3x+4y=5∥3x+4y=153x + 4y = 5 \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. With both lines written as Ax+By=CAx + By = C with the same A=3A = 3 and B=4B = 4, the distance depends only on the constants C1C_1 and C2C_2.

    d=∣C1−C2∣A2+B2=∣5−15∣32+42=1025=2\begin{aligned} d &= \frac{\left|C_1 - C_2\right|}{\sqrt{A^2 + B^2}} \\ &= \frac{\left|5 - 15\right|}{\sqrt{3^2 + 4^2}} \\ &= \frac{10}{\sqrt{25}} \\ &= 2 \end{aligned}
  2. Result

    So the parallel lines are 22 units apart.

Worked examples