Formula
m = (y₂ - y₁) / (x₂ - x₁)
Worked example
With these values
- x₁
- 1
- y₁
- 2
- x₂
- 4
- y₂
- 8
The calculator gives
- Slope
- 2
- Y-intercept
- 0
- Equation
- y = 2x + 0
- Distance
- 6.708204
- Angle
- 63.43 °
These values are only an illustration. Replace them with yours in the form above.
How "Slope" changes with "x₁"
| x₁ | Slope |
|---|---|
| 0.5 | 1.714286 |
| 0.8 | 1.875 |
| 1 | 2 |
| 1.2 | 2.142857 |
| 1.5 | 2.4 |
All other values stay as in the example.
How to use this calculator
Change any value: results update as you type. Copy a result with one click, or share a link that keeps all your values.
Read the guide
Questions
How is the result calculated?
The calculator applies this rule: m = (y₂ - y₁) / (x₂ - x₁)
Is it free?
Yes. It is free, needs no account, and works on phone and desktop.
Are my numbers stored?
Everything runs in your browser. Nothing you type is sent to a server.