Positive slope
A line rises from left to right when the y-value increases as x increases.
(1, 2) and (5, 10)
m = (10 - 2) / (5 - 1) = 2
Calculate the slope (m) between two points on a line with our easy-to-use slope calculator. The slope measures the steepness of a line and is a fundamental concept in mathematics.
Slope is a measure of the steepness of a line. It tells you how much the y-value changes for each unit change in the x-value. Slope is commonly denoted by the letter m in the equation of a line y = mx + b, where b is the y-intercept.
m = (y₂ - y₁) / (x₂ - x₁)
Where (x₁, y₁) and (x₂, y₂) are two distinct points on the line. The slope is calculated by finding the ratio of the 'rise' (the vertical change) to the 'run' (the horizontal change).
Understanding slope has many practical applications:
A line rises from left to right when the y-value increases as x increases.
(1, 2) and (5, 10)
m = (10 - 2) / (5 - 1) = 2
A line falls from left to right when the y-value decreases as x increases.
(2, 8) and (6, 4)
m = (4 - 8) / (6 - 2) = -1
Vertical lines have no defined slope because the run is zero.
(3, 1) and (3, 9)
Undefined because x₁ = x₂
A positive slope means the line rises as you move from left to right. The y-value increases when the x-value increases.
A negative slope means the line falls from left to right. The y-value decreases as the x-value increases.
A vertical line has no horizontal change, so the run is zero. Division by zero is undefined, so the slope is undefined.
Slope appears in construction, map elevation, economics, physics, data analysis, and any situation where you need to measure rate of change.