Slope Calculator
Use this free Slope Calculator to calculate your Slope and line instantly and accurately.
Two points
Result
What is a Slope Calculator?
A slope calculator computes the gradient between two points on a coordinate plane. It finds the slope, line equation, distance, and helps determine if a line rises, falls, or is horizontal or vertical.
How to calculate slope manually (the formula)
The slope formula is m = (y2 − y1) / (x2 − x1). Subtract the y-coordinates (rise), then divide by the difference in x-coordinates (run). The result is the slope.
Example calculation
Find the slope between (1, 2) and (4, 8). Rise = 8 − 2 = 6. Run = 4 − 1 = 3. Slope m = 6/3 = 2. The line equation is y = 2x + 0.
Common mistakes
- Reversing the subtraction order — Always use (y2 − y1) / (x2 − x1). Inconsistent order gives the wrong sign.
- Dividing by zero — If x1 = x2, the line is vertical and the slope is undefined (not zero).
- Confusing rise and run — Rise is vertical change (y), run is horizontal change (x). Dividing run by rise gives the reciprocal.
Frequently asked questions
What is slope?
Slope measures the steepness of a line. It is the ratio of vertical change (rise) to horizontal change (run) between two points.
How do you calculate slope between two points?
Use the formula m = (y\u2082 - y\u2081) / (x\u2082 - x\u2081). Subtract the y-coordinates and divide by the difference in x-coordinates.
What does a positive vs negative slope mean?
A positive slope rises from left to right. A negative slope falls from left to right. Zero slope is horizontal; undefined slope is vertical.
What is the slope-intercept form?
The slope-intercept form is y = mx + b, where m is the slope and b is the y-intercept (where the line crosses the y-axis).
What does an undefined slope mean?
An undefined slope means the line is vertical. The x-coordinates of both points are the same, so the denominator in the slope formula is zero.
How is slope used in real life?
Slope is used in road grades, roof pitches, stairs, ramps for accessibility, and calculating the gradient of land or hills.