What is slope?
Slope tells how steep a straight line is. It compares vertical change to horizontal change, so learners can describe whether a line rises, falls, stays flat, or becomes vertical.
Interactive math tool
Use this interactive slope calculator to calculate slope from two points, rise and run, or different forms of a line equation. Move the points on the graph to see how slope controls the direction and steepness of a line.
Drag point A or B to see how rise, run, and slope change.
Slope tells how steep a straight line is. It compares vertical change to horizontal change, so learners can describe whether a line rises, falls, stays flat, or becomes vertical.
To calculate slope, divide rise by run. With two points, use m = (y2 - y1) / (x2 - x1).
Subtract the y-values to find the rise. Subtract the x-values in the same order to find the run. Then simplify the fraction.
Rise over run means vertical movement divided by horizontal movement. If the run is zero, the slope is undefined because division by zero is not allowed.
In y = mx + b, the coefficient of x is the slope. In standard form Ax + By = C, the slope is -A/B when B is not zero.
A positive slope rises from left to right. A negative slope falls from left to right. The sign tells the direction while the size tells the steepness.
A horizontal line has slope 0 because its rise is zero. A vertical line has undefined slope because its run is zero.
The number m controls the line's steepness and direction. The number b marks where the line crosses the y-axis.
Road gradients, wheelchair ramps, roofs, hills, staircases, temperature graphs, and distance-time graphs all use slope to describe change.
Suggested internal links: Interactive Tools, Science Learning, and Math Tools. Replace or expand these links during publishing if needed.
Divide rise by run. Rise is the change in y, and run is the change in x.
The slope formula is m = (y2 - y1) / (x2 - x1).
Find y2 - y1, find x2 - x1, then divide and simplify.
Use m = rise / run. For example, a rise of 6 and run of 3 gives m = 2.
The slope is the coefficient of x. In y = 3x - 4, the slope is 3.
For Ax + By = C, use m = -A/B as long as B is not zero.
A negative slope means the line falls from left to right.
The slope of a horizontal line is 0.
A vertical line has run 0. Since division by zero is undefined, its slope is undefined.