Distance between two points
Measure straight-line distance between two Cartesian points.
Find slope and y-intercept from two points.
Find slope and y-intercept from two points.
First x coordinate: 1; First y coordinate: 2; Second x coordinate: 4; Second y coordinate: 8.
Slope: 2 ; Y-intercept: 0 .
A vertical line has zero horizontal change, so its slope is undefined. Its equation is x equal to the common x coordinate.
Results are rounded for display; calculations use unrounded values. Read our calculation methodology.
Slope is vertical change divided by horizontal change. The intercept completes the line equation y = mx + b.
Find slope and y-intercept from two points.
| Input | What to enter |
|---|---|
| First x coordinate | Enter a number of at least -1000000000 and no more than 1000000000. |
| First y coordinate | Enter a number of at least -1000000000 and no more than 1000000000. |
| Second x coordinate | Enter a number of at least -1000000000 and no more than 1000000000. |
| Second y coordinate | Enter a number of at least -1000000000 and no more than 1000000000. |
A vertical line has zero horizontal change, so its slope is undefined. Its equation is x equal to the common x coordinate.