Slope Calculator
Enter two points to get the slope, the angle, the grade, the intercepts and the equation of the line through them.
Use the tool
Loading the tool…
About Slope Calculator
Work out the slope of a line through two points. Enter x1, y1, x2 and y2.
Worked example
Enter the points (1, 2) and (3, 6). The tool shows the slope as 2.
Limits
If the two x values are the same, the line is vertical and the slope is undefined. The tool reports this case.
How to use Slope Calculator
- Enter x1 and y1 for the first point.
- Enter x2 and y2 for the second point.
- Read the slope and the equation.
- Copy the slope if you need it.
Good to know
- Slope is rise over run: (y2 - y1) divided by (x2 - x1).
- A vertical line has no slope (undefined). A horizontal line has slope 0.
- Standard form is written with whole numbers and no common factor, for example 2x - y = 0.
- Decimals are rounded to 8 places and the angle to 6 places; fractions are exact.
Frequently asked questions
How do I find the slope between two points?
Subtract the y values, subtract the x values in the same order, and divide the first by the second.
What does a negative slope mean?
The line goes down from left to right.
What is the grade of a slope?
It is the slope times 100, as a percent. A slope of 0.05 is a 5 percent grade.