What is Slope Calculator?
Slope measures the steepness and direction of a straight line on a Cartesian coordinate plane, defined as vertical change (rise) divided by horizontal change (run).
How to Use This Calculator
- Enter coordinate pair for Point 1 (xâ‚, yâ‚).
- Enter coordinate pair for Point 2 (xâ‚‚, yâ‚‚).
- Review line slope, slope-intercept formula (y = mx + b), and distance.
The Mathematical Formula & Variables
Slope m = (y2 - y1) / (x2 - x1); Intercept b = y1 - m*x1
Variables Definition
| Symbol / Variable | Name | Description |
|---|---|---|
m |
Gradient / Slope | Rate of vertical change per unit horizontal change. |
Step-by-Step Worked Example
Scenario: Points (2, 2) and (6, 8).
- Rise = y2 - y1 = 8 - 2 = 6.
- Run = x2 - x1 = 6 - 2 = 4.
- Slope m = 6 / 4 = 1.50.
- Intercept b = 2 - (1.5 * 2) = -1.0.
Result: m = 1.5 | y = 1.5x - 1
Frequently Asked Questions
What is the slope of a vertical line?
A vertical line has an undefined slope because xâ‚‚ - xâ‚ = 0, causing division by zero. A horizontal line has a slope of exactly 0.