Quick answer
To find slope from two points, subtract the y-values, subtract the x-values in the same order, then divide: m = (y2 - y1) / (x2 - x1). In plain words, slope is rise divided by run.
For points (1, 2) and (5, 10), rise is 10 - 2 = 8 and run is 5 - 1 = 4. The slope is 8 / 4 = 2, so the line rises 2 units for every 1 unit it moves right.
Quick start
- Open the Access Free Tools Slope Calculator.
- Enter x1 and y1 for the first point.
- Enter x2 and y2 for the second point.
- Press Calculate slope.
- Read rise, run, slope, and the line equation before copying the result.
What the four inputs mean
A coordinate point is written as (x, y). The x-value shows the left-right position. The y-value shows the up-down position. The calculator needs two points because slope is a comparison between changes, not a property of one point by itself.
Point 1 is (x1, y1). Point 2 is (x2, y2). You can use whole numbers, negative numbers, or decimals. The main rule is to keep x-values in the x boxes and y-values in the y boxes.
Formula used
The calculator uses m = (y2 - y1) / (x2 - x1). The top part, y2 - y1, is rise. The bottom part, x2 - x1, is run.
The same formula also gives the line equation when the slope is defined. The calculator shows the equation in y = mx + b form when possible, which helps when you need to graph the line or compare it with a homework answer.
Example: positive slope
Suppose point 1 is (1, 2) and point 2 is (5, 10). Rise is 10 - 2 = 8. Run is 5 - 1 = 4. The slope is 8 / 4 = 2.
That means the line rises as it moves left to right. If you graphed it, every 1 unit to the right would match 2 units up.
Example: negative, zero, and undefined slope
From (-2, 7) to (4, 1), rise is 1 - 7 = -6 and run is 4 - (-2) = 6. The slope is -6 / 6 = -1, so the line falls from left to right.
From (0, 4) to (8, 4), rise is 0 and run is 8, so the slope is 0. That line is horizontal. From (3, 2) to (3, 8), run is 0, so the slope is undefined. That line is vertical.
Reading rise over run
Rise over run is useful because it turns a slope into a movement rule. A slope of 1/3 means rise 1 for every run 3. A slope of -1.5 means go down 1.5 for every 1 unit to the right.
If the calculator returns a decimal, you can still read it as a ratio. For example, 0.333333... is the decimal form of 1/3. Use the form that fits your class, graph, or project.
Point order and sign checks
Point order does not change the final slope if you keep each point together. From (1, 2) to (5, 10), rise/run is 8/4. From (5, 10) to (1, 2), rise/run is -8/-4. Both simplify to 2.
Wrong signs usually happen when someone subtracts y-values in one order and x-values in the other order. If the result looks flipped, check the formula line before changing the answer.
Slope, distance, and right triangles
Use slope when you need steepness, direction, or a line equation. Use theDistance Calculator when you need the straight-line length between the same two points.
Slope and distance often use the same coordinates, but they answer different questions. Slope asks, "how steep is the line?" Distance asks, "how long is the segment?"
If your problem gives right-triangle side lengths instead of coordinate points, thePythagorean Theorem Calculator orRight Triangle Calculator may be a better fit.
Examples from the slope calculator
m = 2
m = -1
Undefined slope
m = 0
m = 2
m = 1/3, or 0.333333...
m = -1.5
Common mistakes to check
- Do not swap x and y values. Point (2, 8) is not the same as point (8, 2).
- Do not mix subtraction order between the numerator and denominator.
- Do not call a vertical line slope 0. Zero slope is horizontal; vertical slope is undefined.
- Do not rely on the line equation if the points are identical. One repeated point does not define a unique line.
- Do not confuse slope with distance. A steep short segment and a steep long segment can have the same slope.
When not to rely on slope alone
Slope is a simple line measurement. It does not describe curves, real terrain, road safety, building-code limits, or survey-grade measurements by itself.
For schoolwork, use the calculator as a check and still show the formula steps your teacher expects. For design, construction, maps, or safety decisions, treat this as a planning check, not a professional measurement.
FAQs from the slope calculator
What is the fastest way to find slope from two points?
Enter the first point as x1 and y1, enter the second point as x2 and y2, and press Calculate slope. The calculator shows rise, run, slope, and the line equation.
What formula does the Slope Calculator use?
It uses m = (y2 - y1) / (x2 - x1). The numerator is rise, the denominator is run, and m is the slope.
What does rise over run mean?
Rise is the change in y. Run is the change in x. Rise over run is the same idea as vertical change divided by horizontal change.
Why is a vertical line undefined?
A vertical line has run = 0 because the x-values match. Dividing by zero is undefined, so the slope is not a number.
Does point order change the slope?
No, as long as you keep each point together. Reversing the points changes both rise and run signs, so the final ratio stays the same.
How do I know if slope is positive, negative, zero, or undefined?
Positive slope rises from left to right, negative slope falls, zero slope is horizontal, and undefined slope is vertical.
Is slope the same as distance?
No. Slope tells steepness and direction. Distance tells the straight-line length between the same two points.
Can I use negative or decimal coordinates?
Yes. Negative and decimal coordinates work normally. Just keep x-values in the x boxes and y-values in the y boxes.
Research and references
This guide uses standard coordinate-geometry ideas for comparing x-change and y-change. These references are useful if you want to compare the wording with a classroom source.
History, privacy, and copying
Recent slope answers stay visible only while you work in the current browser tab. They are not sent to a server.
Copy answer copies the current coordinates, rise, run, slope, and line equation so you can paste them into notes or homework. Check the point order, undefined-line message, and sign before using the copied result.
