
What Is the Formula for Distance Between Two Parallel Lines with Solved Examples
You can join any two given points in multiple ways; it could be infinite, to say so. But if you are asked to join in a way that gives you the shortest distance between two points, there is only one way to do it. And that is through a straight line.
A straight line is a one-dimensional figure that joins two points, and it can extend to an infinite length on either side of the points. A straight line has zero curvature, and it can go vertically (up and down) or horizontally (left to right). Some of the properties of a straight line are:
They move on a straight path without changing direction.
The slope of the line (also called its gradient) is a measure of its vertical change to horizontal change. So on the x-y coordinate axis, the slope (m) is given by m = ∆y/∆x. In other words, it is a measure of the steepness of a line.
[Image will be Uploaded Soon]
Equation of a straight line is given as y = m (gradient of the line) * x + c (intercept of the line on the y axis)
A straight line has only length property but no breadth.
Straight lines can be parallel, concurrent, intersecting, or perpendicular to each other.
We can also express the slope or gradient of a straight line by its angle with the x-axis. If the angle between the x-axis and straight line is θ, then m (slope) = tan θ.
[Image will be Uploaded Soon]
In the graph above, the equation of the line is y = 4/3 * x - 2, as you can see the line cuts the y-axis at the point -2.
Let us understand some terminologies around straight lines, a distance of a line formula, length of line formula, etc., before delving into other topics like the distance between a point and a line formula and distance between two parallel lines.
Line segment - It is a portion of the straight line, which is the distance between two points falling on the line.
Parallel lines - We see them in daily lives like railway tracks, ladder rungs, etc. Two lines are parallel when they never meet in space. They maintain the same distance between each other if extended till infinity. All through their paths, these lines are not inclined towards each other at any angle.
Distance Between a Point and a Line Formula
When you need to find the distance between two objects, let us say the distance between two street lamps, you would measure the length between them.
Now we will see how you can find the distance of the line from the point when the point is not lying on the line. To find the distance between point and line, we first need to know the distance formula, which is:
XY = \[\sqrt{{((x2 - x1)^{2} + y2 - y1)^{2}}}\]
[Image will be Uploaded Soon]
Let us say there is a line l in the XY-coordinate plane and P is any point at a distance of r from the line. Then:
The equation of this line is Xx + Yy + C = 0.
The length of the perpendicular drawn from point P on the line l is P's distance from l.
The x and y-intercepts are -CX and -CY, respectively.
The line meets the x-axis at X and the y-axis at Y, respectively.
The coordinates of points X and Y are X (0, -C/Y) and Y (-C/X, 0).
[Image will be Uploaded Soon]
We calculate the area of the triangle XPY as:
area (△XPY) = 1/2 * base * height = ½ * XY * PM
So, PM = 2 * area (△XPY) /XY ---- (I)
area (△XPY) is also given by ½ * |x1(y2 − y3) + x2(y3 − y1) + x3(y1 − y2)|
Or, ½ | x1 (0 + C/Y) + (−C/X) (−C/Y − y1) +0 ( y1 − 0)| = ½ |x1 * C/Y + y1 * C/X + C2/XY|
Or, ½ |C/ (XY) |.|Xx1 + Yy1 + C|… (II)
Distance of the line XY = ((0 + C/X)2 + (C/Y − 0)2)½ = |C| × ((1/X2) + (1/Y2))½
Or, Distance, XY = |C/XY| (X2 + Y2)½ … (III)
Combining (I), (II), and (III) we can write:
PM = r = |Ax1 + Yy1 + C| / (X2 + Y2)½
Distance Between Two Parallel Lines
Two lines that never intersect, even when extended till the infinity, are parallel.
[Image will be Uploaded Soon]
Two parallel lines have equal slopes so:
Let there be a line with the equation “ax + by + c = 0”
A line parallel to this above line will be represented by equation “ax + by + t = 0”.
Now let us know how to find the distance between them.
Since the slope of two || lines are the same, they can be written as :
y = mx + k1 -> Line 1
y = mx + k2 -> Line 2
[Image will be Uploaded Soon]
Line 1 intersects the X-axis at the point P (-k1/m, 0).
The distance between lines 1 and 2 is the length of the perpendicular from line 1 on line 2 which is:
|(–m)(–k1/m) + (–k2)|/√(1 + m2) OR
d = |k1–k2|/√(1+m2).
FAQs on Distance Between Two Parallel Lines in Coordinate Geometry
1. What is the distance between two parallel lines?
The distance between two parallel lines is the length of the perpendicular segment drawn from any point on one line to the other line. Because parallel lines never intersect and have the same slope, this perpendicular distance remains constant at every point. In coordinate geometry, this distance is calculated using a standard formula when the lines are in general form.
2. What is the formula for the distance between two parallel lines?
The formula for the distance between two parallel lines Ax + By + C₁ = 0 and Ax + By + C₂ = 0 is |C₁ − C₂| / √(A² + B²).
- The coefficients of x and y must be the same for both lines.
- Take the absolute difference of the constants.
- Divide by √(A² + B²).
3. How do you find the distance between two parallel lines step by step?
To find the distance between two parallel lines, first write them in the form Ax + By + C = 0 and then apply the distance formula.
- Step 1: Ensure both equations have the same A and B values.
- Step 2: Identify C₁ and C₂.
- Step 3: Use the formula |C₁ − C₂| / √(A² + B²).
4. Why is the distance between parallel lines always constant?
The distance between parallel lines is constant because parallel lines have the same slope and never meet, so the perpendicular separation between them does not change. Any perpendicular drawn from one line to the other will have the same length. This is a key geometric property of parallel lines in Euclidean geometry.
5. How do you find the distance between two parallel lines in slope-intercept form?
To find the distance between parallel lines in slope-intercept form (y = mx + c₁ and y = mx + c₂), use the formula |c₁ − c₂| / √(1 + m²).
- Both lines must have the same slope m.
- Subtract the y-intercepts.
- Divide by √(1 + m²).
6. Can you give an example of finding the distance between two parallel lines?
Yes, for the lines 3x − 4y + 7 = 0 and 3x − 4y − 5 = 0, the distance is |7 − (−5)| / √(9 + 16) = 12 / 5.
- A = 3, B = −4
- C₁ = 7, C₂ = −5
- Distance = |7 + 5| / √25
7. What is the distance between two vertical parallel lines?
The distance between two vertical parallel lines x = a and x = b is |a − b|. Since vertical lines have equations of the form x = constant, their separation is simply the absolute difference between the constants. For example, the distance between x = 2 and x = 7 is 5 units.
8. What is the distance between two horizontal parallel lines?
The distance between two horizontal parallel lines y = c₁ and y = c₂ is |c₁ − c₂|. Horizontal lines have constant y-values, so the perpendicular distance is just the absolute difference of those constants. For example, the distance between y = 3 and y = −2 is 5 units.
9. What is the difference between the distance from a point to a line and the distance between two parallel lines?
The distance from a point to a line measures the perpendicular length from a single point, while the distance between two parallel lines measures the constant perpendicular separation between both lines.
- Point to line formula: |Ax₁ + By₁ + C| / √(A² + B²)
- Parallel lines formula: |C₁ − C₂| / √(A² + B²)
10. What are common mistakes when finding the distance between two parallel lines?
A common mistake when finding the distance between two parallel lines is forgetting to write both equations in the same standard form.
- Not matching coefficients A and B before applying the formula.
- Forgetting the absolute value sign.
- Incorrectly calculating √(A² + B²).





















