Understand the method
What does the distance of parallel lines calculation mean?
Parallel lines never meet, so the gap between them is constant everywhere, and it is measured perpendicular to the lines. For two parallel lines in standard form with identical A and B, only the constant terms differ.
When to use it
Use it for lane and track spacing, offsets between parallel walls, and tolerance gaps between parallel features.
Formula
In plain text: d = |C₂ − C₁| / √(A² + B²)
Variables and units
| Symbol | Meaning |
|---|---|
| Ax + By + C₁ = 0 | first line |
| Ax + By + C₂ = 0 | second line |
| d | distance, |C₁ − C₂|/√(A² + B²) |
How to use the calculator
- Enter each known value in its labeled field.
- Select the answer precision you want.
- Choose Calculate answer to see the result and working.
Worked example
For 3x + 4y − 10 = 0 and 3x + 4y + 5 = 0, the constants differ by 15 and √(9 + 16) = 5, so the separation is 3 units.
Common mistakes
- The A and B coefficients must be identical; rescale a line if they differ.
- Use the absolute difference of the constants.
- Vertical and horizontal parallel pairs also fit the formula once written in standard form.
Interpret the result
Because the distance is constant, measuring at any point along either line gives the same value.