Active experiment

Distance of Parallel Lines Calculator

Distance between parallel standard-form lines.

Step 01 · Set up

Fill in the mathematics

Replace the highlighted values below. Tab moves naturally through the equation.

Step 03 · Answer

Ready when you are

Substitution & process

Enter the known values, then select Calculate. Your working steps will appear here.

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

d=|C2−C1|A2+B2

In plain text: d = |C₂ − C₁| / √(A² + B²)

Variables and units

SymbolMeaning
Ax + By + C₁ = 0first line
Ax + By + C₂ = 0second line
ddistance, |C₁ − C₂|/√(A² + B²)

How to use the calculator

  1. Enter each known value in its labeled field.
  2. Select the answer precision you want.
  3. 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.