How to find slope

The slope of a line is the ratio of its vertical change to its horizontal change, rise over run, written m. With two points on the line you need four things:

A silver drawing compass resting on white paper with dark lines
Straight lines drawn on paper, the rise and run a slope calculation measures.Photo: julianestanczyk / Pixabay
  1. 1

    Two points

    (x₁, y₁) and (x₂, y₂), anywhere on the line.

  2. 2

    The rise

    y₂ − y₁, the change in y.

  3. 3

    The run

    x₂ − x₁, the change in x.

  4. 4

    The ratio

    m = rise ÷ run. Simplify the fraction.

Do your homework in Evernote. The AI Assistant explains any problem you photograph, step by step.

Keep your formulas in Evernote

How to find the slope from two points in 5 steps

  1. 1

    Label the points

    Call one point (x₁, y₁) and the other (x₂, y₂). It does not matter which is first, as long as you keep the order the same in both subtractions.

  2. 2

    Find the rise

    Subtract the y-values: y₂ − y₁.

  3. 3

    Find the run

    Subtract the x-values in the same order: x₂ − x₁.

  4. 4

    Divide and simplify

    m = (y₂ − y₁) ÷ (x₂ − x₁). Reduce the fraction. A positive slope rises from left to right; a negative one falls.

  5. 5

    Check with the graph or the equation

    From one point, move up by the rise and right by the run: you should land on the other point. In y = mx + b, the slope is the number in front of x.

Slope example

Two points on a line, then its equation

Find the slope of the line through (2, 3) and (6, 11).

  1. 1Label(x₁, y₁) = (2, 3), (x₂, y₂) = (6, 11)
  2. 2Risey₂ − y₁ = 11 − 3 = 8
  3. 3Runx₂ − x₁ = 6 − 2 = 4
  4. 4Slopem = 8 ÷ 4 = 2
  5. 5Checky = 2x + b; 3 = 2(2) + b, so b = −1. At x = 6, y = 2(6) − 1 = 11 ✓

m = 2, and the line is y = 2x − 1

Swapping the points gives the same answer: (3 − 11) ÷ (2 − 6) = −8 ÷ −4 = 2.

The four kinds of slope

The sign of the slope tells you which way the line goes, before you draw it.

SlopeThe lineExample
PositiveRises from left to righty = 2x − 1, m = 2
NegativeFalls from left to righty = −3x + 4, m = −3
ZeroHorizontal: y = a numbery = 5, m = 0
UndefinedVertical: x = a number, the run is 0x = −2, no slope

OpenStax Elementary Algebra 2e, section 4.4 "Understand Slope of a Line", and Intermediate Algebra 2e, section 3.2.

Trusted by Millions Worldwide

4.4

2,100+ reviews on G2

4.4

8,200+ reviews on Capterra

4.4

73,000+ reviews on App Store

248M

Registered users

Slope questions

What is the slope formula?

m = (y₂ − y₁) ÷ (x₂ − x₁): the change in y divided by the change in x between two points on the line.

How do I find slope from a graph?

Pick two points where the line crosses grid corners. Count the rise (up is positive, down negative) and the run (right is positive), then divide rise by run.

How do I find slope from an equation?

Solve for y to get y = mx + b. The slope is m, the number in front of x. In 2x + 3y = 6, y = −(2/3)x + 2, so m = −2/3.

What is the slope of a horizontal line?

Zero. The y-value never changes, so the rise is 0.

What is the slope of a vertical line?

Undefined. The x-value never changes, so the run is 0, and you cannot divide by 0.

What does slope mean in a word problem?

A rate of change. If a graph shows cost against hours and the slope is 15, the cost goes up $15 for every hour.

What is the slope of parallel and perpendicular lines?

Parallel lines have the same slope. Perpendicular lines have slopes that are negative reciprocals, like 2 and −1/2, as long as neither line is vertical.

How to keep your algebra formulas with Evernote

Keep a Math notebook with your algebra formula sheet and a note for each problem you photograph.

  1. 1

    Build a formula sheet.

    Ask the AI Assistant to add the slope formula to your algebra formula sheet, with one worked example. It writes the formula in a formula block, so it reads like the textbook.

  2. 2

    Explain a problem.

    Add a photo of your algebra problem, such as the line through (2, 3) and (6, 11), and ask the Assistant to explain it step by step. It reads the photo and adds the steps under it.

  3. 3

    Practice before the test.

    Ask the Assistant for a repeating practice task, such as 10 slope problems every Tuesday and Thursday until the test. You get a reminder each time.

  • You can also search for a word in your photographed worksheets and find the page.
  • You can also draw a graph by hand in a sketch block.
  • You can also ask the AI Assistant to write practice problems from your notes, with answers.

Keep every formula and worked example in one place

Build a formula sheet, photograph a problem for a step-by-step explanation, and practice on a schedule before the test.

Start for free