Slope Formula: m = (y2 - y1) / (x2 - x1) = rise / run
Slope is a measure of the steepness of a line. It describes how much a line rises (or falls) for each unit of horizontal movement. Slope is often represented by the letter "m" and is also known as gradient, incline, or grade.
The slope between two points (x1, y1) and (x2, y2) is calculated as:
m = (y2 - y1) / (x2 - x1) = rise / run
Where:
Once you know the slope, you can write the equation of the line in slope-intercept form:
y = mx + b
Where:
To find b, substitute one point into the equation:
b = y1 - m * x1
The slope can be converted to an angle using the arctangent function:
angle = arctan(m)
Find the slope between points (2, 3) and (6, 11):
m = (11 - 3) / (6 - 2) m = 8 / 4 m = 2 The line rises 2 units for every 1 unit to the right.
Find the slope between points (1, 8) and (5, 2):
m = (2 - 8) / (5 - 1) m = -6 / 4 m = -1.5 The line falls 1.5 units for every 1 unit to the right.
Find the equation of a line through (2, 3) with slope 2:
y = mx + b 3 = 2(2) + b 3 = 4 + b b = -1 Line equation: y = 2x - 1
Roof pitch, road grades, and ramp angles are all measured using slope.
Supply and demand curves, marginal cost, and rate of change in economic models.
Velocity-time graphs where slope represents acceleration.
Terrain analysis, water flow direction, and elevation change calculations.