Academy
Formulas/maths/Straight Lines/Distance Between Parallel Lines

Distance Between Parallel Lines

Distance between ax + by + c₁ = 0 and ax + by + c₂ = 0.
Derivation

Let the two parallel lines be ax+by+c1=0ax + by + c_1 = 0 and ax+by+c2=0ax + by + c_2 = 0.

Pick any point on the first line. Setting x=0x = 0: the point is (0,c1b)\left(0, -\frac{c_1}{b}\right).

Its distance to the second line:

d=a0+b(c1b)+c2a2+b2=c2c1a2+b2d = \frac{\left|a \cdot 0 + b \cdot \left(-\frac{c_1}{b}\right) + c_2\right|}{\sqrt{a^2+b^2}} = \frac{|c_2 - c_1|}{\sqrt{a^2+b^2}} d=c1c2a2+b2\boxed{d = \frac{|c_1 - c_2|}{\sqrt{a^2 + b^2}}}

Note: The two lines must have identical coefficients of xx and yy (not just proportional) before applying this formula. If given a1x+b1y+c1=0a_1x + b_1y + c_1 = 0 and a2x+b2y+c2=0a_2x + b_2y + c_2 = 0 with a1a2=b1b2=k\frac{a_1}{a_2} = \frac{b_1}{b_2} = k, first rewrite the second line as a1x+b1y+c2k=0a_1x + b_1y + \frac{c_2}{k} = 0, then apply the formula.