This slope calculator lets you calculate the slope of a line if you know any two istinct points on the line or the the line's equation.

The calculator will tell you not only the slope, but also how to calculate it.

Choose your calculator☝️

Enter the coordinates $\hspace{0.2em} (x_1, y_1) \hspace{0.2em}$

$\hspace{0.2em} P_1 = ( \hspace{0.2em}$
,
$\hspace{0.2em} ) \hspace{0.2em}$

Enter the coordinates $\hspace{0.2em} (x_2, y_2) \hspace{0.2em}$

$\hspace{0.2em} P_2 = ( \hspace{0.2em}$
,
$\hspace{0.2em} ) \hspace{0.2em}$

This slope calculator lets you calculate the slope of a line if you know any two istinct points on the line or the the line's equation.

The calculator will tell you not only the slope, but also how to calculate it.

Each input can be a real number in any format — integers, decimals, fractions, or even mixed numbers. Here are a few examples.

- Whole numbers or decimals → $\hspace{0.2em} 2 \hspace{0.2em}$, $\hspace{0.2em} -4.25 \hspace{0.2em}$, $\hspace{0.2em} 0 \hspace{0.2em}$, $\hspace{0.2em} 0.33 \hspace{0.2em}$
- Fractions → $\hspace{0.2em} 2/3 \hspace{0.2em}$, $\hspace{0.2em} -1/5 \hspace{0.2em}$
- Mixed numbers → $\hspace{0.2em} 5 \hspace{0.5em} 1/4 \hspace{0.2em}$

IMPORTANT — When providing inputs for the linear equation, the coefficients of $\hspace{0.2em} x \hspace{0.2em}$ and $\hspace{0.2em} y \hspace{0.2em}$ cannot both be $\hspace{0.2em} 0 \hspace{0.2em}$ at the same time. That would eliminate both variables from the equation and hence it will no longer be a linear equation.

If you would like to see an example of the calculator's working, just click the "example" button.

As mentioned earlier, the calculator won't just tell you the answer but also the steps you can follow to do the calculation yourself. The "show/hide solution" button would be available to you after the calculator has processed your input.

We would love to see you share our calculators with your family, friends, or anyone else who might find it useful.

By checking the "include calculation" checkbox, you can share your calculation as well.

Here's a quick overview of the slope of a line.

For those interested, we have a more comprehensive tutorial on the slope of a line and its calculation.

In analytical geometry, we often need to find the slope between two points or two parallel lines or from a point to a line.

The slope of a line is a measure of its steepness and direction. It is the ratio of the rise (change in $\hspace{0.2em} y$–coordinate) to the run (change in $\hspace{0.2em} x$–coordinate) as we move from one point to another on the line.

How we find the slope depends on what information we have about the line. Let's look at a couple of important cases.

If a line passes through points $\hspace{0.2em} (x_1, \hspace{0.2em} y_0) \hspace{0.2em}$ and $\hspace{0.2em} (x_2, \hspace{0.2em} y_2) \hspace{0.2em}$, its slope $\hspace{0.2em} m \hspace{0.2em}$ is given by the formula —

$m \hspace{0.2em} = \hspace{0.2em} \frac{y_2 - y_1}{x_2 - x_1}$

If the equation of a line is of the form $\hspace{0.2em} y = {\color{Red} m} x + b \hspace{0.2em}$ (slope–interecept form), it's slope would be $\hspace{0.2em} {\color{Red} m} \hspace{0.2em}$.

If the equation of the line is in some other form, we first convert it into the slope– intercept form, them extract the slope from it.

We use cookies to provide and improve our services. By using the site you agree to our use of cookies. Learn more