Updated
Using Slope calculator
Slope = (second y − first y) ÷ (second x − first x). Y-intercept = first y − slope × first x.
The two points must have different x coordinates for a finite slope. Coordinate units determine the slope units; vertical lines are reported as undefined.
A worked example
With first x coordinate = 1, first y coordinate = 2, second x coordinate = 3, second y coordinate = 6, the slope is 2.
Before you use the result
The two points must have different x coordinates for a finite slope. Coordinate units determine the slope units; vertical lines are reported as undefined.
Example results for first x coordinate
These examples use First y coordinate: 2; Second x coordinate: 3; Second y coordinate: 6. They are reference calculations, not recommended settings.
| First x coordinate | Slope |
|---|---|
| 0.5 | 1.6 |
| 1 | 2 |
| 2 | 4 |
Cite this page
ToolOctopus. “Slope calculator.” Updated 2026-09-26. https://tooloctopus.com/slope-calculator.
Add an access date if your instructions require one.
Citation formatting uses citeproc-js by Frank Bennett and Citation Style Language styles. Licence and source code.
