What Is a Slope Calculator?
A slope calculator finds the steepness, or gradient, of a line that passes through two points. Slope — usually written as m — tells you how much a line rises or falls as it moves horizontally, and it is one of the most fundamental concepts in algebra and geometry. Enter the coordinates of two points and the calculator returns the slope, the equation of the line, the angle of incline, and the distance between the points.
How to Use the Slope Calculator
- Enter Point 1 — its x and y coordinates (x₁, y₁).
- Enter Point 2 — its x and y coordinates (x₂, y₂).
- Calculate — see the slope, line equation, angle, and distance.
The Slope Formula
Slope is the change in y divided by the change in x, often remembered as "rise over run":
m = (y₂ − y₁) ÷ (x₂ − x₁)
For points (2, 3) and (6, 11): m = (11 − 3) ÷ (6 − 2) = 8 ÷ 4 = 2. The line rises 2 units for every 1 unit it moves right.
What Different Slopes Mean
| Slope | Meaning |
|---|---|
| Positive | Line rises from left to right |
| Negative | Line falls from left to right |
| Zero | Horizontal line (no rise) |
| Undefined | Vertical line (no run; division by zero) |
From Slope to the Line Equation
Once you know the slope and a point, you can write the line in slope-intercept form, y = mx + b, where b is the y-intercept. Using the point-slope form y − y₁ = m(x − x₁) and solving for y gives the full equation. The calculator does this automatically so you get a ready-to-use equation.
Where Slope Is Used
- Math and physics: rates of change, velocity, and linear relationships.
- Construction: roof pitch, ramp grade, and drainage slopes.
- Geography: terrain gradient and road inclines, often expressed as a percentage.
- Economics: the slope of supply and demand curves.
Frequently Asked Questions
How do you find the slope between two points?
Subtract the y-coordinates and divide by the difference of the x-coordinates: m = (y₂ − y₁) ÷ (x₂ − x₁). This is the rise over the run.
What does a negative slope mean?
A negative slope means the line goes downward from left to right — as x increases, y decreases.
What is the slope of a horizontal line?
A horizontal line has a slope of zero, because there is no vertical change (rise) as you move along it.
Why is the slope of a vertical line undefined?
A vertical line has no horizontal change (run), so the slope formula would divide by zero, which is undefined.
Is this slope calculator free?
Yes — it is completely free, requires no signup, and also gives the line equation and angle.