ThisCalculator

Sports and fitness

Rise Over Run: Calculate Slope Step by Step

Updated · Standard formula, shown below

Rise over run (slope) 2.00
Vertical change (rise)
6.00
Result
Horizontal change (run)
3.00
Result
First x-coordinate
1
You entered

Rise Over Run: Calculate Slope Step by Step

Rise over run calculates the slope between two points by dividing the vertical change by the horizontal change. Enter the two points’ coordinates, and the calculator returns the slope, showing how much y changes for each one-unit change in x.

Formula

The rise-over-run formula is:

Slope = rise ÷ run = (y₂ − y₁) ÷ (x₂ − x₁)

  • (x₁, y₁) is the first point: x₁ is its horizontal coordinate and y₁ its vertical coordinate.
  • (x₂, y₂) is the second point, with corresponding horizontal and vertical coordinates.
  • Rise is the change in y, calculated as y₂ − y₁.
  • Run is the change in x, calculated as x₂ − x₁.
  • Slope is the resulting ratio. It has no unit when both coordinates use the same unit; otherwise its units are y-units per x-unit.

Keep the point order consistent: subtract the first point’s coordinates from the second point’s coordinates in both numerator and denominator. Swapping the points changes both signs, so the slope stays the same.

Worked Example

Use the calculator’s default points, (1, 2) and (4, 8):

  1. Calculate rise: y₂ − y₁ = 8 − 2 = 6.
  2. Calculate run: x₂ − x₁ = 4 − 1 = 3.
  3. Divide rise by run: 6 ÷ 3 = 2.

The slope is 2, meaning y increases by 2 units for every 1-unit increase in x. The vertical change is 6 units and the horizontal change is 3 units.

What Rise Over Run Tells You

Slope describes a line’s direction and steepness. A positive slope means the line rises from left to right; a negative slope means it falls. A slope of zero describes a horizontal line. A larger absolute value means a steeper line, while a value closer to zero means a flatter line.

For example, if a line has slope −3, y decreases by 3 units when x increases by 1 unit. If the slope is 0.5, y increases by half a unit per one-unit increase in x. The sign describes direction, while the absolute value describes steepness.

The meaning of the units depends on the quantities represented by the axes. If x is measured in seconds and y in meters, a slope of 2 means 2 meters per second. If both axes show the same kind of measurement, the units cancel, and the slope is a dimensionless ratio.

How to Calculate Slope From a Graph

Choose two points that lie on the same straight line, read their coordinates, and use the formula. Points where the line crosses grid intersections are often easiest to read accurately. The points do not need to be the line’s endpoints, and they do not have to be a particular distance apart.

  1. Label the points (x₁, y₁) and (x₂, y₂).
  2. Find the vertical change, y₂ − y₁.
  3. Find the horizontal change, x₂ − x₁.
  4. Divide the vertical change by the horizontal change and simplify if appropriate.

For a line rising 4 grid units while moving 2 units to the right, slope = 4/2 = 2. A line descending 4 units while moving 2 units to the right has slope = −4/2 = −2. Count the vertical and horizontal changes separately; a diagonal segment’s length is not the run.

Common Mistakes and Special Cases

The most frequent error is reversing the subtraction in only one part of the formula. For points (2, 5) and (6, 13), rise is 13 − 5 = 8 and run is 6 − 2 = 4, giving slope 2. If you calculate rise as 5 − 13 but keep run as 6 − 2, you incorrectly get −2. Reversing both differences gives the correct slope again.

  • Vertical line: If x₂ = x₁, run is zero. Division by zero is undefined, so a vertical line has no defined slope—not a slope of zero.
  • Horizontal line: If y₂ = y₁, rise is zero. Its slope is zero as long as the run is not zero.
  • Same point: If both coordinates match, rise and run are both zero. The formula does not determine a unique line or slope from one point alone.
  • Unequal axis scales: On a graph, count coordinate units, not merely printed grid squares. One square may represent different amounts on the x- and y-axes.
  • Rounding: Keep full precision through the division, then round the final result to suit the question. A rounded slope may not reproduce the original points exactly.

Rise Over Run and Other Slope Forms

Rise over run is the geometric way to describe the slope of a line. In the equation y = mx + b, the letter m represents that same slope, while b is the y-intercept—the value of y where the line crosses the y-axis. The slope formula finds m from two points without needing to graph the whole line.

For a straight line, any two distinct points on it produce the same slope. For a curve, the slope between two points is the slope of the straight secant line joining them; it describes average change over that interval. The slope at a single point on a curve is a different idea, called the derivative, and generally requires calculus or an approximation using nearby points.

Frequently Asked Questions

How do you calculate rise over run?
Subtract the first point’s y-coordinate from the second point’s y-coordinate, then divide by the difference between their x-coordinates: (y₂ − y₁)/(x₂ − x₁).

Is rise over run the same as slope?
Yes. Rise over run is the standard way to calculate the slope of a line from two points or from its graph.

Can slope be negative?
Yes. A negative slope means y decreases as x increases. It commonly occurs on a line that falls from left to right.

What is the slope of a vertical line?
It is undefined because the horizontal change, or run, is zero, and division by zero is not defined.

Does the order of the two points matter?
No, provided you keep the subtraction order consistent. Reversing the points changes the signs of both rise and run, leaving their ratio unchanged.

What does a slope of 2 mean?
It means y changes by 2 units for every 1-unit increase in x. Whether that represents, for example, meters per second depends on the quantities and units on the axes.

Related

Formula used
in x1 | First x-coordinate | - | 1
in y1 | First y-coordinate | - | 2
in x2 | Second x-coordinate | - | 4
in y2 | Second y-coordinate | - | 8
out slope | Rise over run (slope) | - | (y2 - y1) / (x2 - x1) | 2
out rise | Vertical change (rise) | - | y2 - y1 | 2
out run | Horizontal change (run) | - | x2 - x1 | 2

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.