Home » Math Theory » Algebra » Rate of Change & Slope of a Line

Rate of Change & Slope of a Line

Quick answer

The slope of a line is its rate of change: how much y changes for each 1 unit change in x. Slope m = rise ÷ run = (y2 − y1) ÷ (x2 − x1). For the points (0, −4) and (2, 2): m = (2 − (−4)) ÷ (2 − 0) = 6 ÷ 2 = 3, so y goes up 3 for every 1 step right. For a straight line, the rate of change and the slope are the same thing. In y = mx + b, the rate of change is m, the number multiplying x.

Reviewed by the Helping with Math Team · Updated 14 October 2026

What is a straight line?

A straight line keeps the same direction everywhere: if you pick any two points on it, the whole segment between them lies on the line.

Every straight line has an equation of the form ax + by + c = 0, where a, b and c are constants. A point (x, y) is on the line exactly when its coordinates make the equation true. If P(x1, y1) and Q(x2, y2) are on the line, then ax1 + by1 + c = 0 and ax2 + by2 + c = 0.

The equation of a straight line has two numbers to find (for example the slope and one intercept), so you need two facts, such as two points, to pin down a line.

What are intercepts?

Now that you know the Cartesian coordinate plane, here is what intercepts are. The intercepts of a graph are the points where it crosses the axes.

  • The x-intercept is where the graph crosses the x-axis. There y = 0, so it has the form (x, 0).
  • The y-intercept is where the graph crosses the y-axis. There x = 0, so it has the form (0, y).

Example: a line crosses the x-axis at −4 and the y-axis at 6. Its intercepts are (−4, 0) and (0, 6).

Line crossing the x-axis at (−4, 0) and the y-axis at (0, 6)−6−4−2024−202468xy(−4, 0)(0, 6)
The x-intercept is (−4, 0) and the y-intercept is (0, 6).

Slope of a line

The slope of a line, written m, measures how steep it is. In trigonometry terms, if the line makes an angle θ with the positive x-axis (measured counterclockwise), then m = tan θ. The angle θ is always between 0° and 180°.

  • A horizontal line (θ = 0°) has slope tan 0° = 0.
  • A vertical line, perpendicular to the x-axis and parallel to the y-axis, has θ = 90°. tan 90° does not exist, so its slope is undefined.
  • A line at 45° has slope 1, and a line at 135° has slope −1.

Positive, zero or negative? If m is positive, θ is between 0° and 90°, an acute angle, and the line rises from left to right. If m = 0, the line is horizontal. If m is negative, θ is between 90° and 180°, an obtuse angle, and the line falls from left to right.

Slope from two points

For two points P(x1, y1) and Q(x2, y2) on a line, draw a right triangle under the segment PQ. Its horizontal side is x2 − x1 and its vertical side is y2 − y1, so

m = (y2 − y1) ÷ (x2 − x1) = difference in y ÷ difference in x.

Right triangle under segment PQ showing x₂ − x₁ across and y₂ − y₁ up024680246xyP(x₁, y₁)Q(x₂, y₂)x₂ − x₁y₂ − y₁
The slope is the vertical side divided by the horizontal side: (y₂ − y₁) ÷ (x₂ − x₁).

Example: find the slope of the line through (3, 2) and (−1, 5).

Solution: x1 = 3, y1 = 2, x2 = −1, y2 = 5. m = (5 − 2) ÷ (−1 − 3) = 3 ÷ (−4) = −3/4. The slope is negative, so the line falls from left to right.

Point-slope form

The point-slope form writes a line using its slope and one point on it. Many lines share a slope, but only one of them passes through a given point.

The line through (x1, y1) with slope m is y − y1 = m(x − x1).

Why: if (x, y) is any other point on the line, the slope between it and (x1, y1) is (y − y1) ÷ (x − x1) = m. Multiply both sides by (x − x1) to get the formula.

Using rise and run to find the slope

Slope is rise ÷ run. The rise is how far up (or down) you go between two points, and the run is how far across.

On a graph, rise = y2 − y1 and run = x2 − x1, which gives the same formula: m = (y2 − y1) ÷ (x2 − x1).

Example: find the slope of the line through (2, 5) and (−2, −3).

Solution: m = (5 − (−3)) ÷ (2 − (−2)) = 8 ÷ 4 = 2. Try it in the explorer below.

Line through (−2, −3) and (2, 5) with rise 8 and run 4−3−2−10123−4−20246xy(2, 5)(−2, −3)run = 4rise = 8
Rise 8, run 4, so the slope is 8 ÷ 4 = 2.

It does not matter which point you call the first, as long as you subtract in the same order on top and bottom. In y = mx, m is the slope: its size shows steepness and its sign shows direction.

-2-325
Slope explorer

rise = 5 − (−3) = 8, run = 2 − (−2) = 4. Slope m = 8 ÷ 4 = 2. The line rises from left to right. Equation: y = 2x + 1.

Try it: move the two points. The orange triangle shows the rise and the run, and the slope is rise ÷ run.

Upward, positive slope

y = 3x: when x = 0, 1, 2, 3, 4, y = 0, 3, 6, 9, 12. The slope is 3: y goes up 3 for each step of 1 in x.

y = x ÷ 2: when x = 0, 2, 4, 6, 8, y = 0, 1, 2, 3, 4. The slope is 1/2.

Both lines rise from left to right. As x increases, y increases.

Lines y = 3x and y = x ÷ 2 rising from left to right02468024681012xyy = 3xy = x ÷ 2
Positive slopes: y = 3x (slope 3) is steeper than y = x ÷ 2 (slope 1/2).

Downward, negative slope

y = −x: when x = 0, 2, 4, 6, 8, y = 0, −2, −4, −6, −8. The slope is −1.

y = −2x: when x = −2, −1, 0, 1, 2, y = 4, 2, 0, −2, −4. The slope is −2.

Both lines fall from left to right. As x increases, y decreases.

Lines y = −x and y = −2x falling from left to right−202468−8−6−4−2024xyy = −xy = −2x
Negative slopes: y = −x (slope −1) and y = −2x (slope −2) fall from left to right.

Rate of change

The rate of change tells you how one quantity changes as another changes. On a straight line graph it is the slope: a slope of 2 means y goes up 2 for every 1 step in x.

Example 1

speed over time

The graph shows a car’s speed over time. The slope of each piece is the rate of change of speed, called acceleration.

  • A to B: starts at rest and speeds up to 50 mph in 10 seconds (slope 5 mph per second).
  • B to C: steady 50 mph for 15 seconds (slope 0).
  • C to D: slows from 50 to 20 mph in 5 seconds (slope −6).
  • D to E: speeds up from 20 to 30 mph over 15 seconds (slope about 0.67).
  • E to F: slows from 30 mph to a stop in 5 seconds (slope −6).
Speed time graph through points A to F010203040500102030405060time (seconds)speed (mph)ABCDEF
Each straight piece has its own slope: the rate of change of speed.

Example 2

a bank balance

Michelle’s account starts the year with $800, and $50 goes to charity each month. The slope of the graph is the rate of change of the balance: −50, meaning $50 per month leaves the account. After 16 months it is empty.

Bank balance falling from $800 to $0 over 16 months04812160300600900monthsbalance ($)slope −50
Balance falls by $50 a month: slope −50.

Comparing rates of change

The second graph shows the same account with a taller y-axis scale. It looks less steep, but both show a drop of $50 a month: the same rate of change. Only the scale is different, which is why people can make a change look bigger or smaller by choosing the scale.

Bank balance falling from $800 to $0 over 16 months04812160500100015002000monthsbalance ($)slope −50
Same account with a taller scale. It looks flatter, but the slope is still −50.

Solved Examples

Example 1

find the equation of the line with slope −2 through (7, −4).

Solution

m = −2, x1 = 7, y1 = −4. Using y − y1 = m(x − x1): y − (−4) = −2(x − 7), so y + 4 = −2x + 14, which gives y = −2x + 10, or 2x + y − 10 = 0. Check: 2(7) + (−4) − 10 = 0.

Example 2

find the equation of the line with slope 3 through (−1, 5).

Solution

y − 5 = 3(x − (−1)) = 3(x + 1) = 3x + 3, so y = 3x + 8, or 3x − y + 8 = 0. Check: 3(−1) − 5 + 8 = 0.

Key Facts and Summary

  1. Intercepts are where a graph crosses the axes: (x, 0) on the x-axis and (0, y) on the y-axis.
  2. Slope m = rise ÷ run = (y2 − y1) ÷ (x2 − x1), also m = tan θ.
  3. Positive slope rises to the right, negative slope falls, zero slope is horizontal and a vertical line has undefined slope.
  4. Point-slope form: y − y1 = m(x − x1).
  5. For a straight line, the rate of change is the slope. In y = mx + b it is m.

More practice: graphing lines in slope-intercept form, graphing proportional relationships and slope and points and lines worksheets.

Rate of change and slope FAQs

Is rate of change the same as slope?

For a straight line, yes. The slope tells you how much y changes for each 1 unit change in x, which is the rate of change.

What is change in y over change in x?

It is the slope formula: m = (y₂ − y₁) ÷ (x₂ − x₁), also called rise over run.

Where is the rate of change in y = mx + b?

It is m, the number multiplying x. b is the y-intercept.

What is the slope of a vertical line?

It is undefined, because the run is 0 and you cannot divide by 0.

What does a negative slope mean?

The line falls from left to right: as x increases, y decreases.

What is the slope through (0, −4) and (2, 2)?

m = (2 − (−4)) ÷ (2 − 0) = 6 ÷ 2 = 3.

Practice with worksheets

Link/Reference Us

We spend a lot of time researching and compiling the information on this site. If you find this useful in your research, please use the tool below to properly link to or reference Helping with Math as the source. We appreciate your support!

  • "Rate of Change & Slope of a Line". Helping with Math. Accessed on November 18, 2026. https://helpingwithmath.com/rate-of-change-slope-of-a-line/.

  • "Rate of Change & Slope of a Line". Helping with Math, https://helpingwithmath.com/rate-of-change-slope-of-a-line/. Accessed 18 November, 2026.

  • Rate of Change & Slope of a Line. Helping with Math. Retrieved from https://helpingwithmath.com/rate-of-change-slope-of-a-line/.