How to use the slope between two points calculator
Find the slope, intercept and distance between two points. Enter x₁, y₁, x₂, y₂ in the fields above; the slope m, y-intercept b, distance, angle are computed instantly and plotted on the chart so you can see how the answer changes.
Formula
Variables
- x1 — x₁
- y1 — y₁
- x2 — x₂
- y2 — y₂
Worked example
With x₁ = 1, y₁ = 2, x₂ = 5, y₂ = 10, the calculator gives slope m ≈ 2; y-intercept b ≈ 0; distance ≈ 8.944272; angle ≈ 63.43495 °.
Frequently asked questions
What is the formula for the slope between two points calculation?
Slope m = (y2-y1) / (x2-x1). Y-intercept b = y1-[Slope m] × x1. Distance = hypot(x2-x1,y2-y1). Angle (°) = atan([Slope m]). Here x1 is x₁, y1 is y₁, x2 is x₂, y2 is y₂.
What inputs do I need for the slope between two points calculator?
You need x₁, y₁, x₂, y₂. Each field is pre-filled with a typical example so you can see how the result responds as you edit the numbers.
How do I use this calculator?
Type values into the input fields. Results and the chart update instantly. Use Reset to restore the example values, Copy results to paste them elsewhere, or Share to copy a link that preserves your inputs.
Is the result exact?
Calculations use standard formulas and double-precision arithmetic, then display about seven significant figures. Real-world measurements carry uncertainty, so treat results as estimates unless your inputs are exact.