What Is Slope?
The slope (or gradient) of a line measures how steep it is: how much it goes up or down for every step to the right. It's often described as "rise over run". A slope of 2 means the line rises 2 units for every 1 unit it moves right. A slope of −1/2 means it falls 1 unit for every 2 units right. Slope is written with the letter m in the equation of a line, y = mx + b.
The Slope Formula
For two points (x₁, y₁) and (x₂, y₂), the slope is:
m = (y₂ − y₁) ÷ (x₂ − x₁)
Example: for the points (1, 2) and (5, 8), the rise is 8 − 2 = 6 and the run is 5 − 1 = 4, so m = 6 ÷ 4 = 3/2 (1.5). It doesn't matter which point you call the first, as long as you subtract in the same order on the top and bottom.
Types of Slope
| Slope | Line | Example |
|---|---|---|
| Positive (m > 0) | Rises from left to right | y = 2x + 1 |
| Negative (m < 0) | Falls from left to right | y = −x + 4 |
| Zero (m = 0) | Horizontal | y = 3 |
| Undefined | Vertical (the run is 0) | x = 2 |
Equation of a Line: Three Forms
- Slope-intercept form: y = mx + b. Here m is the slope and b is the y-intercept, where the line crosses the y-axis. For our example, b = 2 − 1.5 × 1 = 0.5, so y = 1.5x + 0.5, or y = 3/2 x + 1/2.
- Point-slope form: y − y₁ = m(x − x₁). This is handy when you know one point and the slope: y − 2 = 3/2 (x − 1).
- Standard form: Ax + By = C, with whole-number A, B and C and A positive: 3x − 2y = −1.
All three describe exactly the same line. The calculator shows every form, using fractions where the numbers are exact.
Parallel and Perpendicular Lines
Parallel lines have the same slope. Perpendicular lines (at right angles) have slopes that are negative reciprocals: flip the fraction and change the sign. So a line perpendicular to one with slope 3/2 has slope −2/3, and the two slopes multiply to −1. Horizontal and vertical lines are always perpendicular to each other.
Slope in Real Life
Slope appears everywhere. Road signs show a road's steepness as a percentage grade: a 10% grade rises 10 metres for every 100 metres horizontally, a slope of 0.1. Wheelchair ramps are often limited to a slope of 1:12 (about 8.3%). Roof pitch, ski runs, staircases and the rate of change on any graph, such as speed on a distance-time graph, are all slopes. The calculator also gives the angle of inclination: arctan(m), the angle between the line and the x-axis.
Common Slope Mistakes
- Mixing the order: if you subtract y₂ − y₁ on top, you must subtract x₂ − x₁ on the bottom, not x₁ − x₂.
- Upside-down formula: slope is rise over run (change in y over change in x), not the other way round.
- Sign errors with negatives: subtracting a negative number means adding, so 3 − (−2) = 5.
- Zero vs undefined: a horizontal line has slope 0, and a vertical line's slope is undefined, not zero.
The working panel shows each subtraction, so you can compare it with your own steps and find exactly where a mistake happened.
Frequently Asked Questions
How do you find the slope from two points?
Subtract the y-values and divide by the difference of the x-values: m = (y₂ − y₁) ÷ (x₂ − x₁).
What does an undefined slope mean?
The line is vertical. The run is zero, and division by zero is undefined.
How do I find the y-intercept?
Use b = y₁ − m × x₁, with any point on the line.
What is the slope of a perpendicular line?
The negative reciprocal: for slope m, the perpendicular slope is −1/m.
Can I enter fractions?
Yes, in one-point mode you can type a slope like 3/4. Coordinates accept decimals and negatives.