Slope Calculator example
{
"x1": 2,
"y1": 3,
"x2": 8,
"y2": 15
}
{
"slope": 2,
"rise": 12,
"run": 6,
"equation": "y = 2x − 1",
"distance": 13.416407865,
"midpoint": "(5, 9)"
}
Math
Calculate slope, rise, run, line equation, distance, and midpoint from two coordinate points.
Published Last reviewed
Calculate slope, rise, run, line equation, distance, and midpoint from two coordinate points. Enter first point x₁, first point y₁, second point x₂, second point y₂ in a purpose-built workspace that keeps related controls together and makes units explicit. Slope is change in y divided by change in x. The same point pair determines the y-intercept, Euclidean distance, and coordinate midpoint. The result panel reports slope, rise, run, line equation, point distance with copy-ready values and supporting context. When both x-coordinates are equal, the line is vertical and its slope and y-intercept are undefined. Processing stays in your browser and the entered values are not sent to UtilityPages.
Workspace
Adjust the values below to turn the calculation into a visual, interpretable result.
Complete the fields to prepare a result.
Enter the values above, then calculate slope to see the result.
Slope is change in y divided by change in x. The same point pair determines the y-intercept, Euclidean distance, and coordinate midpoint.
Slope is change in y divided by change in x. The same point pair determines the y-intercept, Euclidean distance, and coordinate midpoint. When both x-coordinates are equal, the line is vertical and its slope and y-intercept are undefined.
{
"x1": 2,
"y1": 3,
"x2": 8,
"y2": 15
}
{
"slope": 2,
"rise": 12,
"run": 6,
"equation": "y = 2x − 1",
"distance": 13.416407865,
"midpoint": "(5, 9)"
}
This tool does not store your inputs or results on UtilityPages.org.
Slope is change in y divided by change in x. The same point pair determines the y-intercept, Euclidean distance, and coordinate midpoint.
Enter first point x₁, first point y₁, second point x₂, second point y₂. Use values from the same scenario and keep measurement units consistent with the labels shown.
The result workspace reports slope, rise, run, line equation. Supporting values are included so the primary result can be checked and interpreted.
When both x-coordinates are equal, the line is vertical and its slope and y-intercept are undefined.