Enter two points
Point 1 (x1, y1)
Point 2 (x2, y2)
Slope (m)
2
Line equation
y = 2x
Distance
6.7082
Midpoint
(2.5, 5)
Angle
63.4349°
Frequently Asked Questions about the Slope Calculator
What is slope?
Slope (m) measures how steep a line is. It is the ratio of vertical change (rise) to horizontal change (run) between any two points on the line. A slope of 2 means the line rises 2 units for every 1 unit it moves to the right.
How do you calculate slope from two points?
Use m = (y2 - y1) / (x2 - x1). For example, given (1, 3) and (4, 9): m = (9 - 3) / (4 - 1) = 6 / 3 = 2. The order of the points does not matter as long as you subtract in the same order for both numerator and denominator.
What is the difference between positive and negative slope?
A positive slope means the line rises from left to right; a negative slope means it falls from left to right. A slope of 0 is a perfectly horizontal line. The steeper the line, the larger the absolute value of the slope.
Why is the slope of a vertical line undefined?
A vertical line has the same x-value at every point, so x2 - x1 = 0. That puts a zero in the denominator of m = (y2 - y1) / (x2 - x1), which is undefined. The calculator displays the line equation as x = c for vertical lines and marks the slope as undefined.
What is slope-intercept form?
Slope-intercept form is y = mx + b, where m is the slope and b is the y-intercept, the y-value where the line crosses the y-axis. The calculator derives b using b = y1 - m x x1, then formats the full equation (for example, y = 2x + 1).