Skip to content
Glacius
FoundationsConcept reference

Straight-line slope

The slope between two points with different horizontal coordinates is their vertical-coordinate difference divided by their horizontal-coordinate difference.

On this page 7 sections
  1. Overview
  2. From A=(1,1) to B=(3,4), x increases by 2 while y increases by 3
  3. For A=(1,1) and B=(3,4), reversing both subtractions gives (1-4)/(1-3)=1.5 again
  4. Check your understanding
  5. Key takeaway
  6. Sources & further reading
  7. Concept connections

01From A=(1,1) to B=(3,4), x increases by 2 while y increases by 3#

From A=(1,1)A=(1,1) to B=(3,4)B=(3,4), x increases by 2 while y increases by 3. Slope asks how much vertical change corresponds to one horizontal unit.

Points A=(1,1) and B=(3,4) form a rise of 3 over a run of 2. Labeled ticks mark units on each axis.Points A=(1,1) and B=(3,4) form a rise of 3 over a run of 2. Labeled ticks mark units on each axis.
Figure 1Points A=(1,1) and B=(3,4) form a rise of 3 over a run of 2. Labeled ticks mark units on each axis.
Link to this figure ↗Download SVGDownload PNG

For A=(1,1) and B=(3,4), divide the changes.

m=4131=32m=\frac{4-1}{3-1}=\frac{3}{2}

The slope is 3/2=1.53/2=1.5. For different x coordinates, use m=(y2y1)/(x2x1)m=(y_2-y_1)/(x_2-x_1). Keep the point order the same in both subtractions.

Check your reasoning

Find the slope from (1,2)(1,2) to (3,8)(3,8).

Show answer and explanation
3

The vertical change is 82=68-2=6 and horizontal change is 31=23-1=2. Their ratio is 3.

02For A=(1,1) and B=(3,4), reversing both subtractions gives (1-4)/(1-3)=1.5 again#

For A=(1,1)A=(1,1) and B=(3,4)B=(3,4), reversing both subtractions gives (14)/(13)=1.5(1-4)/(1-3)=1.5 again. A horizontal line has slope 0. A vertical line has zero horizontal change, so its slope is undefined.

Check your reasoning

Find the slope through (2,1)(2,1) and (2,5)(2,5).

  1. A00
  2. B44
  3. CUndefined
Show answer and explanation
Undefined

Horizontal change is 22=02-2=0, so slope is undefined.

03Check your understanding#

Check your reasoning

A straight-line tank graph goes from 4 liters at minute 1 to 10 liters at minute 4. What is its slope in liters per minute?

Show answer and explanation
2

The volume changes by 6 liters over 3 minutes: 6/3=26/3=2.

Key takeaway

Subtract in the same point order, then divide vertical change by horizontal change.

  • Compute the slope between two distinct points

Sources & further reading

  1. [1]

Reference this concept

Link to this page, a section, or an individual figure.

Glacius. “Straight-line slope.” Math behind ML. /learn/f-slope