JESUS CHRIST IS THE ONLY TRUE GOD
Math calculator

Distance Between Lines Calculator

Calculate distance between parallel lines ax+by+c₁=0 and ax+by+c₂=0.

Your calculationPrivate in your browser
Report a result

Start with a worked example

Open the worked example for Distance. The example starts with a = 3, b = 4, c₁ = 0.

Distance Between Lines Calculator formula

Distance=|c₂−c₁|/√(a²+b²).

Inputs and units

Inputs and example values for Distance Between Lines Calculator
InputFormat / rangeExample
aNumber3
bNumber4
c₁Number0
c₂Number10

Worked example

The values listed in Inputs and units give 2 for Distance.

Distance
2

Results and assumptions

Change a from 3 to 3.3 and keep the other example inputs fixed. The updated answer is 1.92843319635 (Distance).

Fix an input or unexpected result

a is required. Enter a using the format and bounds in the input table. Zero and an empty field are different: use zero only if it is allowed and represents your data.

See how to check a result or report an issue.