Distance Between Parallel Lines
For parallel lines Ax+By+Cโ=0 and Ax+By+Cโ=0 (same A,B), the perpendicular distance is d = |CโโCโ|/โ(Aยฒ+Bยฒ). Pick any point on one line and use point-to-line distance.
Did our AI summary help? Let us know.
Same formula as point-to-line distance from (0,โCโ/B) to second line. d = 0 when lines coincide (Cโ=Cโ). Distance is independent of which line is "first".
Ready to run the numbers?
Why: Distance between parallel lines appears in geometry, tolerance analysis, and path planning. The formula is the same as point-to-line distance from any point on one line to the other.
How: d = |CโโCโ|/โ(Aยฒ+Bยฒ). Lines must be parallel (same A and B). If Cโ=Cโ, lines coincide and d=0. The distance is measured perpendicular to both lines.
Run the calculator when you are ready.
Parallel Lines (Ax + By + C = 0)
Both lines share the same A and B. Only C differs.
For educational and informational purposes only. Verify with a qualified professional.
๐งฎ Fascinating Math Facts
d = |CโโCโ|/โ(Aยฒ+Bยฒ) for parallel lines.
โ Coordinate Geometry
Perpendicular distance is the shortest.
โ Property
Key Takeaways
- โข Parallel lines have the same slope (same A and B in Ax+By+C=0)
- โข Formula:
- โข The distance is measured perpendicular to both lines
- โข For horizontal lines y=kโ and y=kโ: d = |kโโkโ|
- โข For vertical lines x=kโ and x=kโ: d = |kโโkโ|
Did You Know?
The distance between parallel lines is constant โ the same at every point along the lines.
Pick any point on Lโ, find its perpendicular distance to Lโ. Same as point-to-line distance with |CโโCโ|.
Lane width on roads is the distance between parallel lane markings. Standard is about 3.5โ4 meters.
Rail gauge (distance between rails) is measured as the perpendicular distance between the inner edges.
Used for spacing of parallel walls, beams, and structural elements.
If lines are not parallel, they intersect and the distance is 0 at the intersection.
Understanding the Formula
For parallel lines and :
The numerator is the difference in intercepts (scaled). The denominator normalizes by the length of the normal vector (A, B).
Expert Tips
Same A and B
Both lines must have identical A and B. Only C differs. If A,B differ, lines are not parallel.
Horizontal Lines
For y=kโ and y=kโ, use A=0, B=1, Cโ=โkโ, Cโ=โkโ. Distance = |kโโkโ|.
Vertical Lines
For x=kโ and x=kโ, use A=1, B=0, Cโ=โkโ, Cโ=โkโ. Distance = |kโโkโ|.
Coincident
If Cโ=Cโ, the lines are the same and distance is 0.
Frequently Asked Questions
What if the lines are not parallel?
This formula applies only to parallel lines. Non-parallel lines intersect, so the distance between them is 0 at the intersection.
Why must A and B be the same?
Parallel lines have the same direction. In Ax+By+C=0, (A,B) is the normal vector. Same normal โ same direction โ parallel.
Can the distance be zero?
Yes, when Cโ=Cโ. Then the lines are coincident (the same line).
How do I convert y=mx+b?
For y=mx+bโ and y=mx+bโ, rewrite as mxโy+bโ=0 and mxโy+bโ=0. A=m, B=โ1, Cโ=bโ, Cโ=bโ.
What about vertical lines?
For x=kโ and x=kโ, use A=1, B=0, Cโ=โkโ, Cโ=โkโ. Distance = |kโโkโ|.
Units of distance?
Same units as the coordinate system. If x,y are in meters, distance is in meters.
Real-world applications?
Road lane width, railway gauge, spacing of parallel walls, fence posts, and structural beams.
How to Use This Calculator
- Enter A, B (same for both lines) and Cโ, Cโ for the two parallel lines Ax+By+C=0.
- Click a sample example to auto-fill and calculate.
- Click Calculate to get the perpendicular distance.
- Review the visualization and step-by-step solution.
- Use Copy Results to share.
Disclaimer: This calculator is for parallel lines only. Both lines must have the same A and B coefficients.
Related Calculators
Point To Line Distance Calculator
Point To Line Distance Calculator - Calculate and learn about coordinate-geometry concepts
MathematicsManhattan Distance Calculator
Manhattan Distance Calculator - Calculate and learn about coordinate-geometry concepts
MathematicsPoint To Plane Distance Calculator
Point To Plane Distance Calculator - Calculate and learn about coordinate-geometry concepts
MathematicsThree D Distance Calculator
Three D Distance Calculator - Calculate and learn about coordinate-geometry concepts
MathematicsParallel Line Calculator
Parallel Line Calculator - Calculate and learn about coordinate-geometry concepts
MathematicsPerpendicular Line Calculator
Perpendicular Line Calculator - Calculate and learn about coordinate-geometry concepts
Mathematics