Slope Calculator
Last updated:
How to Use This Calculator
Step 1: Enter the x and y coordinates of Point 1 (x₁, y₁).
Step 2: Enter the x and y coordinates of Point 2 (x₂, y₂).
Step 3: Click Calculate to get the slope, y-intercept, equation, angle, distance, and midpoint.
What Is Slope?
Slope measures how steep a line is — specifically, how much the line rises for each unit it runs to the right. A slope of 2 means the line goes up 2 units for every 1 unit to the right. A slope of zero means the line is horizontal, and an undefined slope means the line is vertical.
Positive slopes go up from left to right; negative slopes go down. The larger the absolute value, the steeper the line.
Slope is a foundational concept in algebra, calculus (where it becomes the derivative), and physics (velocity is the slope of a position-time graph).
The Slope Formula
m = (y₂ − y₁) / (x₂ − x₁)
The numerator is the 'rise' (change in y); the denominator is the 'run' (change in x).
Line equation (slope-intercept form): y = mx + b, where b = y₁ − m·x₁
Example: Points (1, 2) and (4, 8)
Rise = 8 − 2 = 6
Run = 4 − 1 = 3
Slope m = 6 ÷ 3 = 2
b = 2 − 2·1 = 0 → y = 2x
Slope Interpretation
| Slope Value | Line Type | Direction |
|---|---|---|
| Positive (m > 0) | Rising | Goes up from left to right |
| Negative (m < 0) | Falling | Goes down from left to right |
| Zero (m = 0) | Horizontal | Flat line |
| Undefined | Vertical | x₁ = x₂ (division by zero) |
| |m| > 1 | Steep | Fast rise or fall |
| |m| < 1 | Gradual | Slow rise or fall |
Examples
Example 1: Points (1, 2) and (4, 8) → slope 2, equation y = 2x.
Example 2: Points (0, 5) and (2, 1) → slope −2, equation y = −2x + 5 (line falling).
Example 3: Points (3, 4) and (3, 9) → undefined slope (vertical line x = 3).
Tips
Order matters consistently — subtract Point 1 from Point 2 in both numerator and denominator.
Vertical line = undefined slope — the calculator flags this.
Parallel lines have the same slope.
Perpendicular lines have slopes that multiply to −1.
Frequently Asked Questions
What does a negative slope mean physically?
Why is the slope of a vertical line undefined instead of infinity?
How do I find the equation of a line given the slope and one point?
What is the relationship between slope and the angle of a line?
How is slope used in real-world applications?
Can two points ever give the same slope in different directions?
Related Calculators
Quadratic Formula Calculator
Free quadratic formula calculator. Solve any quadratic equation w...
Pythagorean Theorem Calculator
Free Pythagorean theorem calculator. Find any side of a right tri...
Circle Calculator
Free circle calculator. Find radius, diameter, circumference, and...
Random Number Generator
Free random number generator. Generate one or multiple random int...