Skip to content
  • Open the math solver
  • Ask the AI tutor
  • Find an AP course
  • Create a quiz
  • Open the calculator
  • Graphing Calculator
  • Browse all calculators
  • Read math guides
↑ ↓Enter to open · Esc to close
Solve a problem
EasySlope and LinesAlgebra

Find the slope of the line through (1,2)(1, 2) and (3,8)(3, 8).

Rise over run between the two points.

Try it first: work the problem on paper, then open the solution below and compare each step.
Show the step-by-step solution

Final answer

m=3,y=3x−1m = 3,\quad y = 3x - 1

How we read your problem

Find the slope (rate of change) of the line through two points.

Step-by-step solution

  1. Label the points

    (x1,y1)=(1,2),(x2,y2)=(3,8)(x_1, y_1) = (1, 2),\quad (x_2, y_2) = (3, 8)
  2. Find the change in y (rise)

    y2−y1=8−2=6y_2 - y_1 = 8 - 2 = 6
  3. Find the change in x (run)

    x2−x1=3−1=2x_2 - x_1 = 3 - 1 = 2
  4. Divide rise by run

    m=62=3m = \frac{6}{2} = 3
  5. Find the y-intercept using the first point

    b=y1−mx1=2−3⋅1=−1b = y_1 - m x_1 = 2 - 3 \cdot 1 = -1
  6. Write the equation of the line

    y=3x−1y = 3x - 1

Formulas used

  • Slope

    m=y2−y1x2−x1m = \frac{y_2 - y_1}{x_2 - x_1}
  • Slope-intercept form

    y=mx+by = mx + b

The slope is 3: for every 1 unit increase in x, y changes by 3. The line rises from left to right.

Verification

  • Second point: 3·(3) + -1 = 8 (expected 8)

About slope and lines

Slope, slope-intercept and point-slope form, parallel and perpendicular lines.

Slope

Rise over run between two points on a line.

m=y2−y1x2−x1m = \frac{y_2 - y_1}{x_2 - x_1}
Perpendicular slopes

Non-vertical perpendicular lines have slopes whose product is -1.

m1m2=−1m_1 m_2 = -1

Check your own work