Distance between parallel lines
Two straight banks of a canal. The canal's width is measured straight across, at right angles to both banks.
ax + by + c = 0 a x + b y + c = 0ax + by + d = 0 a x + b y + d = 0
Drag to move · pinch or scroll to zoom · tap to read a point
distance = |c − d| ÷ √(a² + b²)3
Step by step
- Both lines have the same a and b, so the same slope: they are parallel.
- The dashed segment crosses straight from one to the other, at right angles.
- Its length is |c − d| ÷ √(a² + b²). Read it below.
- Move c or d. The lines move apart or come together; the slope stays.
- Before using the formula, make a and b the same in both equations (divide or multiply one equation).
Try this
- Make the lines 3x + 4y = 5 and 3x + 4y = 15. What is the distance?
- Make the distance exactly 2.
- Make the two lines the same line.
Practise this
Problems on Straight Lines with checks, marks and help from Sir are on the exam site (sign in). Practise Straight Lines on the exam site →