Formula
m = \frac{y_2-y_1}{x_2-x_1}Used to calculate:
The slope of a nonvertical line from the coordinates of two distinct points on the line.
—
What Is the Slope Formula?
The slope formula calculates the rate of change of a line using two points on that line. It compares the change in the vertical coordinate, or rise, with the change in the horizontal coordinate, or run.
—
Formula and Variables
m = \frac{y_2-y_1}{x_2-x_1}| Symbol | Meaning | Unit |
Slope of the line | Units of y per unit of x | |
x-coordinate of the first point | Depends on the problem | |
| y-coordinate of the first point | Depends on the problem | |
x-coordinate of the second point | Depends on the problem | |
y-coordinate of the second point | Depends on the problem |
—
How to Use the Formula
Identify two distinct points on the line and label their coordinates consistently as (,) and (,). Subtract the y-coordinates in the same order as the x-coordinates, then divide the change in y by the change in x. The resulting value is the slope of the line.
—
When Is This Formula Used?
The slope formula is used to measure the steepness and direction of a straight line or the constant rate of change between two variables in a linear relationship.
Common uses:
– Finding the slope of a line from two points
– Measuring a constant rate of change
– Analyzing linear relationships in algebra, geometry, science, and other quantitative fields
—
Important Notes
– A positive slope rises from left to right, a negative slope falls from left to right, and a zero slope represents a horizontal line.
– The x-coordinates must be different: . A vertical line has an undefined slope because the denominator would be zero.
– If x and y represent different types of quantities, slope has units of y per unit of x. If they use the same unit, the slope is dimensionless.
– A common point of confusion is reversing the subtraction order for only one pair of coordinates. The order must be consistent in both the numerator and denominator.
—
Alternate Forms
Alternate form:
m = \frac{\Delta y}{\Delta x}Alternate form:
\Delta y = m\Delta x
—
Related Formulas