Slope — Rise Over Run: Finding the Slope of a Line

Slope is rise over run: the change in y divided by the change in x. Drag two points and watch the rise, the run and the slope update.

Mathematics Calculus beginner 5 min
Step 1 of 6

Rise Over Run on a Line

Slope is rise over run: the rise (how far up y goes) divided by the run (how far across x goes), so slope = rise / run = Δy / Δx. Keep that order: run over rise flips the fraction and gives a different number. Slope measures steepness, how much y changes for each 1-unit step in x. Drag the yellow or the green point on the grid and watch the red rise and the blue run of the triangle stretch, while the Slope (m) card below the canvas divides one by the other.

Worked Example: From (1, 2) to (4, 8)

Press 'Steep (2)' to draw y = 2x, a line through the points (1, 2) and (4, 8). The rise is Δy = 8 − 2 = 6 and the run is Δx = 4 − 1 = 3, so slope = 6 / 3 = 2. Move the 'Slope (m)' slider to 2 and you get the same steepness: y climbs 2 units for every 1 unit you step right.

Positive, Negative, Zero, Undefined

Move the 'Slope (m)' slider below 0 and the line tips downward from left to right: y falls as x grows. Press 'Flat (0)' and the line goes level, with no rise at all. Drag both points onto the same vertical grid line and the run becomes 0, so the slope is undefined.

The Intercept Shifts, It Never Tilts

Slide the 'Intercept (b)' slider and the whole line moves up or down without changing its tilt: rise and run stay the same, so the slope does too. In y = mx + b, the number b is where the line crosses the y-axis, while m alone sets the steepness. Watch the equation box update as you slide.

Slope on a Curve

Press 'Curve' to switch to the parabola y = x². A yellow secant line joins two points a gap h apart and sweeps along the curve. Its slope keeps changing: negative on the left, zero at the bottom, positive and growing on the right. Compare the Secant slope card with f′(x) = 2x, the exact slope at each point.

Toward the Derivative

Move the 'Secant gap (h)' slider below 0.5, toward 0.1. As the two points squeeze together, the secant slope closes in on the exact value 2x — at x = 1 it reads 2 + h, so h = 0.1 gives 2.1. That limit, the slope at a single point, is the derivative: the next concept.

How It Works — Step by Step

Step 1 of 6
  1. 1

    Rise Over Run on a Line

    Slope is rise over run: the rise (how far up y goes) divided by the run (how far across x goes), so slope = rise / run = Δy / Δx. Keep that order: run over rise flips the fraction and gives a different number. Slope measures steepness, how much y changes for each 1-unit step in x. Drag the yellow or the green point on the grid and watch the red rise and the blue run of the triangle stretch, while the Slope (m) card below the canvas divides one by the other.

  2. 2

    Worked Example: From (1, 2) to (4, 8)

    Press 'Steep (2)' to draw y = 2x, a line through the points (1, 2) and (4, 8). The rise is Δy = 8 − 2 = 6 and the run is Δx = 4 − 1 = 3, so slope = 6 / 3 = 2. Move the 'Slope (m)' slider to 2 and you get the same steepness: y climbs 2 units for every 1 unit you step right.

  3. 3

    Positive, Negative, Zero, Undefined

    Move the 'Slope (m)' slider below 0 and the line tips downward from left to right: y falls as x grows. Press 'Flat (0)' and the line goes level, with no rise at all. Drag both points onto the same vertical grid line and the run becomes 0, so the slope is undefined.

  4. 4

    The Intercept Shifts, It Never Tilts

    Slide the 'Intercept (b)' slider and the whole line moves up or down without changing its tilt: rise and run stay the same, so the slope does too. In y = mx + b, the number b is where the line crosses the y-axis, while m alone sets the steepness. Watch the equation box update as you slide.

  5. 5

    Slope on a Curve

    Press 'Curve' to switch to the parabola y = x². A yellow secant line joins two points a gap h apart and sweeps along the curve. Its slope keeps changing: negative on the left, zero at the bottom, positive and growing on the right. Compare the Secant slope card with f′(x) = 2x, the exact slope at each point.

  6. 6

    Toward the Derivative

    Move the 'Secant gap (h)' slider below 0.5, toward 0.1. As the two points squeeze together, the secant slope closes in on the exact value 2x — at x = 1 it reads 2 + h, so h = 0.1 gives 2.1. That limit, the slope at a single point, is the derivative: the next concept.

Key Takeaways

Rise Over Run

slope = (y₂ − y₁) / (x₂ − x₁). Two points on a line give you everything you need.

Sign Tells Direction

Positive slope → going up. Negative → going down. Zero → flat. Infinite → vertical line.

Intercept Is Separate

In y = mx + b, m sets the tilt and b slides the line up or down. Changing b never changes the slope.

Variable on a Curve

A curve has a different slope at every point. The derivative is the tool that computes it.

Added
Updated
  • — The title and summary now say slope is rise over run; step 1 opens with the formula in words.
  • — Six steps that name the sliders, a worked example from (1, 2) to (4, 8) with slope 2, and a new quiz question