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.
Common searches this calculator answers include “equation of a line”, “gradient”, “rise over run”, “calculate slope between two points”, “find slope m”.
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 slope between two points calculator used for?
Find the slope, intercept and distance between two points. It helps with questions such as “equation of a line”, “gradient”, “rise over run”.
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 the slope between two points 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 slope between two points 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.