Slope Calculator

Enter two points on a line to find its slope and angle.

The x-coordinate of the first point.

The y-coordinate of the first point.

The x-coordinate of the second point.

The y-coordinate of the second point.

Try

Result

You enteredm=8−23−1m = \frac{8-2}{3-1}

3\displaystyle 3

Slope

3\displaystyle 3

y-intercept

−1\displaystyle -1

x-intercept

13\displaystyle \frac{1}{3}

Slope-intercept form

y=3x−1\displaystyle y = 3x - 1

Point-slope form

y−2=3(x−1)\displaystyle y - 2 = 3\left(x - 1\right)

Standard form

3x−y=1\displaystyle 3x - y = 1

Angle with the x-axis

71.565051∘\displaystyle 71.565051^\circ
Show the work
  1. Slope formula (rise over run)

    The slope mm measures how steeply the line climbs: the change in yy (the rise) divided by the change in xx (the run). Here (x1,y1)=(1,2)(x_1, y_1) = (1, 2) and (x2,y2)=(3,8)(x_2, y_2) = (3, 8).

    m=y2−y1x2−x1=8−23−1\begin{aligned} m &= \frac{y_2 - y_1}{x_2 - x_1} \\ &= \frac{8 - 2}{3 - 1} \end{aligned}
  2. Work out the rise and the run

    The rise is y2−y1=6y_2 - y_1 = 6 and the run is x2−x1=2x_2 - x_1 = 2. Divide them and reduce the fraction. A positive slope means the line rises from left to right.

    m=62=3\begin{aligned} m &= \frac{6}{2} \\ &= 3 \end{aligned}
  3. Result

    So the slope is m=3m = 3.

Worked examples