Distance between two points
Enter your numbers — the results update instantly.
Distance5
Slope1.33
Midpoint(2.5, 4)
Line equationy = 1.333333x + 0.6666667
Formula
d = √((x₂−x₁)² + (y₂−y₁)²)
Worked example
Given: x₁ = 1; y₁ = 2; x₂ = 4; y₂ = 6
Result: Distance = 5; Slope = 1.33; Midpoint = (2.5, 4); Line equation = y = 1.333333x + 0.6666667
How it is calculated
1. Enter the values you know. 2. The calculator converts them to base units and applies the formula. 3. The result is shown in the unit you choose.
Frequently asked questions
How do I calculate it?
Formula: d = √((x₂−x₁)² + (y₂−y₁)²). Given: x₁ = 1; y₁ = 2; x₂ = 4; y₂ = 6. Result: Distance = 5; Slope = 1.33; Midpoint = (2.5, 4); Line equation = y = 1.333333x + 0.6666667.
Is the calculator free and private?
Yes. It is free, needs no sign-up and runs in your browser — the numbers you type stay on your device.