Free for your classroom: you may copy, adapt and share worksheets, exercises, texts and graphics with your class without asking (terms (in German)).

Ad-free in class: How it works (in German)

Slope

Slope measures how steep a line is: rise over run. Learn the slope formula, how to read slope from a graph, the four kinds of slope, slope-intercept and point-slope form, and the slopes of parallel and perpendicular lines, with worked examples.

Also available in: Deutsch · Português · Español

The slope of a line tells you how steep it is: how much the line goes up or down for each step to the right. It is the rise over run, the vertical change divided by the horizontal change between two points on the line. The slope formula for the points (x₁, y₁) and (x₂, y₂) is m = (y₂ − y₁) / (x₂ − x₁). For the points (2, 3) and (6, 11), the slope is (11 − 3)/(6 − 2) = 8/4 = 2: the line rises 2 units for every 1 unit to the right.

Below you learn to find the slope from two points and from a graph, recognize positive, negative, zero and undefined slope, read and use the slope-intercept form y = mx + b and the point-slope form, write the equation of a line, and find parallel and perpendicular lines. Practice problems with answers are at the end.

What is slope? Rise over run

Pick any two points on a line. Going from the first to the second, the run is how far you move horizontally and the rise is how far you move vertically. Their ratio is the slope, usually called m. On a straight line it does not matter which two points you pick: the ratio is always the same.

1 2 3 4 5 6 1 2 3 4 5 run = 4 rise = 3 (1, 1) (5, 4) slope = rise ÷ run = 3/4
From (1, 1) to (5, 4) the line runs 4 units to the right and rises 3 units, so its slope is 3/4 = 0.75.

Finding slope from a graph

  1. Pick two points on the line where it crosses the grid lines exactly at intersections.
  2. Count the run from the left point to the right point.
  3. Count the rise: up is positive, down is negative.
  4. Divide rise by run and simplify.

In the graph above, any other pair of points gives the same answer. From (1, 1) to (3, 2.5) the run is 2 and the rise is 1.5, and 1.5 ÷ 2 = 3/4 again.

Anzeige

The slope formula

m=y2−y1x2−x1

The formula is rise over run written with coordinates. Subtract in the same order on top and bottom: if you start with point 2 on top, start with point 2 on the bottom too.

Positive, negative, zero and undefined slope

positive negative zero undefined
Reading from left to right: a positive slope goes uphill, a negative slope downhill, a zero slope is flat and a vertical line has no defined slope.
  • Positive slope (m > 0): the line rises from left to right. The larger m, the steeper: slope 5 is steeper than slope 1/2.
  • Negative slope (m < 0): the line falls from left to right. Slope −4 is steeper than slope −1, because steepness depends on the absolute value.
  • Zero slope (m = 0): a horizontal line, y = constant, such as y = 5. The rise is always 0.
  • Undefined slope: a vertical line, x = constant, such as x = 2. The run is 0, and division by 0 is not defined. Do not confuse this with zero slope.

Slope-intercept form: y = mx + b

Every non-vertical line can be written as y = mx + b. The number in front of x is the slope m, and b is the y-intercept, the y-value where the line crosses the y-axis (the point (0, b)). This makes graphing quick:

  1. Plot the y-intercept (0, b).
  2. From there, use the slope as rise over run to find a second point. For m = 3, go up 3 and right 1; for m = −2/3, go down 2 and right 3.
  3. Draw the line through both points.

For a line in standard form Ax + By = C, the slope is always −A/B. In (b), that is −2/3.

Anzeige

Point-slope form and the equation of a line

If you know the slope m and one point (x₁, y₁) on the line, write it in point-slope form:

y−y1=m(x−x1)

To find the equation of a line through two points, first calculate the slope with the slope formula, then use point-slope form with either point, and finally simplify to y = mx + b.

Slopes of parallel and perpendicular lines

  • Parallel lines never meet, so they have the same slope and different y-intercepts. y = 2x + 1 and y = 2x − 3 are parallel.
  • Perpendicular lines meet at a right angle. Their slopes are negative reciprocals: flip the fraction and change the sign. The product of the two slopes is −1. A line with slope 2 is perpendicular to a line with slope −1/2.

A horizontal and a vertical line are also perpendicular, but the product rule does not apply because the vertical line has no slope.

Slope as a rate of change

In real situations, slope is a rate of change: how much the output changes for each unit of input, with units like dollars per mile or degrees per hour. In y = mx + b, the slope is the rate and the y-intercept is the starting value. For a direct proportion (b = 0), the slope is the constant of proportionality.

The angle connects to slope through trigonometry: slope = tan θ, where θ is the angle the line makes with the positive x-axis. A slope of 1 is a 45° angle.

Anzeige

Common mistakes

  • Run over rise: slope is vertical change over horizontal change, y on top.
  • Mixed order in the formula: (11 − 3)/(2 − 6) gives −2 instead of 2. Subtract in the same order top and bottom.
  • Confusing zero and undefined slope: horizontal lines have slope 0; vertical lines have undefined slope.
  • Reading m before solving for y: in 2x + 3y = 12 the slope is −2/3, not 2.
  • Perpendicular slope with only one change: perpendicular to slope 3/4 is −4/3, not 4/3 and not −3/4.
  • Sign slips with negative coordinates: 3 − (−1) = 4, not 2.

Practice problems

Anzeige

Frequently asked questions

How do you find the slope of a line?

Take two points and divide the change in y by the change in x: m = (y₂ − y₁)/(x₂ − x₁). On a graph, count rise over run. In y = mx + b, the slope is the number in front of x.

What is the slope formula?

m = (y₂ − y₁)/(x₂ − x₁). For (2, 3) and (6, 11): (11 − 3)/(6 − 2) = 2.

What does y = mx + b mean?

It is the slope-intercept form of a line. m is the slope (rise over run) and b is the y-intercept, where the line crosses the y-axis. In y = 3x − 2, the slope is 3 and the line crosses the y-axis at −2.

What is the difference between zero slope and undefined slope?

Zero slope belongs to a horizontal line (no rise), such as y = 5. Undefined slope belongs to a vertical line (no run), such as x = 2, because you cannot divide by zero.

How do you find a perpendicular slope?

Take the negative reciprocal: flip the fraction and change the sign. Perpendicular to 2/3 is −3/2; perpendicular to −5 is 1/5. The two slopes multiply to −1.

Keep learning

Anzeige

Spotted a mistake or have a request? Send us a short message and we will take care of it.

Spotted a mistake or have a request?

Your message about the page “Slope”. We send the page address along automatically.

Please do not include any other personal data. More in our privacy policy (in German).