What is slope?
Slope measures how steep a line is: how much y changes for each unit of x. Given two points, use m = (y₂ − y₁)/(x₂ − x₁). The numerator is the rise and the denominator is the run. A positive slope rises from left to right, a negative slope falls, and a zero slope is horizontal.
Calculation steps from two points
Enter the coordinates of P₁ and P₂, subtract the y-values to find the rise, subtract the x-values to find the run, and divide. The calculator also gives the line equation, angle of inclination, distance, and a graph through the selected points.
Understand special cases
When the two x-coordinates are equal, the run is zero and the line is vertical, so its slope is undefined. A horizontal line has a slope of zero. Use the example buttons to compare positive, negative, zero, fractional, and vertical lines without retyping coordinates.
Slope theory and point-slope form
Slope is a ratio of vertical change to horizontal change: m = rise/run = (y₂ − y₁)/(x₂ − x₁). It is also the coefficient in point-slope form y − y₁ = m(x − x₁). A positive slope means y increases as x increases, a negative slope means y decreases, and a zero slope creates a horizontal line. A vertical line has no finite slope because its run is zero.
Slope calculator example
For P₁ = (1, 2) and P₂ = (4, 8), the rise is 6 and the run is 3, so m = 2. The line through the points is y = 2x, the angle of inclination is about 63.435°, and the distance is √45. Enter the points, then compare the displayed equation and segment with your hand calculation. This same workflow works for negative, fractional, horizontal, and vertical lines.
Point-slope calculator example
For points (−2, 5) and (4, −7), the rise is −12 and the run is 6, so the slope is −2. Using point-slope form with (−2, 5) gives y − 5 = −2(x + 2), which simplifies to y = −2x + 1. The graph should pass through both original points and fall two units for every unit moved right.
Slope as a real-world rate
If a line represents distance over time, slope can describe speed; if it represents cost over items, slope can describe the cost per item. The units matter: a rise of 12 dollars over a run of 3 items gives a slope of 4 dollars per item. Use the calculator’s rise, run, and angle values to connect the numerical result to the situation being modeled.