Slope Calculator: How to Calculate Rise Over Run (With Examples)

Use a Slope Calculator to compute slope quickly from either rise and run or two points. Slope tells you how steep a line is, and the calculator converts results into common formats like percent slope.

Below, you’ll find the exact formulas, what each variable means, and practical examples for construction, maps, and math homework.

What “Slope” Means (Rise Over Run)

In most school and real-world problems, slope describes how much a line moves vertically compared to how far it moves horizontally. The standard form is:

Slope (m) = Rise / Run

  • Rise: vertical change (up or down)
  • Run: horizontal change (left or right)

If the line goes up as you move right, the slope is positive. If it goes down, the slope is negative. If it’s flat, the slope is 0.

Core Formulas You’ll Use

1) Slope from Rise and Run

When you know the vertical change and horizontal change, compute:

m = rise / run

  • Units cancel out, so slope is usually a dimensionless ratio.
  • If run = 0, the slope is undefined (a vertical line).

2) Slope from Two Points

When you know two points on a line, use:

m = (y2 − y1) / (x2 − x1)

  • (x1, y1) and (x2, y2) are the two points.
  • If x2 = x1, the denominator is 0, so the slope is undefined.

3) Convert Slope to Percent Grade

Many real-world applications use percent slope (also called percent grade):

Percent slope = (rise / run) × 100 = m × 100

  • A slope of 0.05 becomes 5%.
  • Percent grade is helpful for roads, ramps, and drainage.

4) Convert to Angle (Optional)

If you want the angle a line makes with the horizontal, use the arctangent:

θ = arctan(m)

  • Most calculators output degrees.
  • For a negative slope, the angle will be negative (or you can interpret it as a downward tilt).

How to Use the Slope Calculator

The calculator supports two common input styles. Pick the method that matches your data, enter values, and it will compute slope plus related forms.

  1. Rise/Run mode: Enter rise and run.
  2. Two points mode: Enter (x1, y1) and (x2, y2).

It also converts the slope into percent slope and, when possible, an angle in degrees.

Practical Examples (Real Use-Cases)

Example 1: Building a Ramp (Rise/Run)

Suppose you need a ramp that rises 0.75 m over a horizontal run of 15 m. The slope is:

m = 0.75 / 15 = 0.05

Percent slope is 0.05 × 100 = 5%. That’s a common way to describe ramp steepness in specs.

Example 2: Finding Slope Between Two Survey Points

Imagine two points on a terrain profile: (x1, y1) = (200, 18) and (x2, y2) = (260, 24). Then:

m = (24 − 18) / (260 − 200) = 6 / 60 = 0.10

Percent slope is 10%. A steeper slope can indicate faster drainage or greater construction effort.

Common Mistakes to Avoid

  • Swapping rise and run: slope must be rise divided by run.
  • Using run = 0: vertical lines have undefined slope.
  • Mixing units in rise and run: keep them consistent (e.g., both in meters).
  • Sign confusion: if the line goes down left-to-right, slope is negative.

If you’re working with real measurements, double-check that your coordinate system matches your sign convention (up positive, down negative, etc.).

Frequently Asked Questions

What is a slope calculator used for?

A Slope Calculator computes the slope of a line using rise/run or two points. It returns the slope value and often related forms like percent slope. This helps you quantify steepness for math problems, ramps, roads, and drainage planning without manual arithmetic errors.

How do you calculate slope from two points?

Use m = (y2 − y1) / (x2 − x1). Subtract the y-values to get rise, subtract the x-values to get run, then divide. If x2 equals x1, the run is zero, so the slope is undefined.

What does a negative slope mean?

A negative slope means the line moves downward as you move to the right. In rise/run terms, the rise is negative while the run is positive. Negative slopes are common in downhill paths, cooling curves, and lines that decrease over time.

How do you convert slope to percent grade?

Percent slope (percent grade) equals slope times 100. If your slope is m = 0.08, then percent grade is 0.08 × 100 = 8%. This conversion is useful because many construction and road guidelines use percent rather than decimals.

Can slope be undefined?

Yes. Slope is undefined when the run is zero. That happens with vertical lines (same x-value for both points). A Slope Calculator will flag this case because dividing by zero is not possible.

Quick Reference Table

GivenComputeFormula
Rise and runSlopem = rise / run
Two pointsSlopem = (y2 − y1) / (x2 − x1)
SlopePercent slopepercent = m × 100
SlopeAngle (degrees)θ = arctan(m)

Bottom line: slope is rise divided by run. If run is zero, slope is undefined. Use percent slope when you need a construction-friendly steepness number.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top