m = 2
Slope Calculator
Use this free slope calculator to enter two coordinate points and find rise, run, slope, y-intercept, and a line equation with steps.
- Rise
- 8
- Run
- 4
- Line
- y = 2x
Steps
- Find rise: 10 - 2 = 8.
- Find run: 5 - 1 = 4.
- Divide rise by run: 8 / 4 = 2.
- The line can be written as y = 2x.
How to use the slope calculator
- Enter the first point as x1 and y1.
- Enter the second point as x2 and y2.
- Press Calculate slope to see rise, run, slope, and the line equation.
- Use examples, recent answers, or copy the result while checking coordinate problems.
Common uses
Find slope from two coordinate points.
Check rise over run for graphing and algebra homework.
Identify vertical lines with undefined slope.
Write a simple line equation from calculated slope and intercept.
Examples
m = -1
Undefined slope
Frequently asked questions
Quick answers about formulas, units, valid measurements, examples, copying, and private in-browser history.
What formula does the Slope Calculator use?
It uses slope = (y2 - y1) / (x2 - x1), often described as rise over run.
What is an undefined slope?
A vertical line has a run of zero because both points have the same x-value. Division by zero is undefined, so the slope is undefined.
Can the two points be the same?
No. The two points must be different, or there is no single line direction to calculate.
Does this calculator show the line equation?
Yes. For non-vertical lines it shows y = mx + b. For vertical lines it shows x = constant.
Should I use the Distance Calculator instead?
Use Slope Calculator for line steepness and equations. Use Distance Calculator for the straight-line length between two points.
Is my slope history private?
Yes. Recent slope answers stay only in the current browser tab while you use the page. They are not sent to a server.