Distance between two parallel lines

This is an old revision of this page, as edited by Wamiq (talk | contribs) at 17:27, 28 April 2013 (Syed Wamiq Ahmed Hashmi moved page Distance between two parallel lines to Distance between two straight lines: Generalisation). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

The distance between two parallel lines in the plane is the perpendicular distance from a point on one line to the other line.

Formula and proof

Because the lines are parallel the perpendicular distance between them is a constant, so it does not matter which point is chosen to measure the distance. Given the equations of two non-vertical parallel lines

 
 

the distance between the two lines is the distance between the two intercepts of these lines with the perpendicular line

 

This distance can be found by first solving the linear systems

 

and

 

to get the coordinates of the intercept points. The solutions to the linear systems are the points

 

and

 

The distance between the points is

 

which reduces to

 

When the lines are given by

 
 

the distance between them can be expressed as