Rise Over Run Calculator - Slope From Two Points

Use this rise over run calculator to compute slope, percentage grade, and angle from any two points. Enter x1, y1, x2, y2 and read the rise, run, and distance.

Updated: June 16, 2026 • Free Tool

Rise Over Run Calculator

x-coordinate of the first point

y-coordinate of the first point

x-coordinate of the second point

y-coordinate of the second point

Results

Slope (m = rise ÷ run)
0
Rise (Δy) 0
Run (Δx) 0
Percentage grade 0%
Angle of inclination 0°
Distance between points 0
Steepness label 0

What Is Rise Over Run Calculator?

A rise over run calculator turns the coordinates of two points on a line into the slope, percentage grade, and angle of that line. Enter x1, y1 and x2, y2 and the tool returns the rise (y2 minus y1), the run (x2 minus x1), the slope m equal to rise divided by run, the same slope expressed as a percentage grade, the inclination angle in degrees, and the straight-line distance between the two points.

  • Coordinate geometry homework: Check the slope of a line through two plotted points before you turn in a worksheet.
  • Stair, ramp, or road grade: Translate a measured rise and run into the same percentage grade and angle that building codes use.
  • Roof pitch or terrain cross-section: Convert two surveyed elevation points into slope, percentage, and angle for a sketch or a quote.
  • Quick data sanity check: Drop two (x, y) points from a chart and confirm the trend you see matches the calculated slope.

Rise and run is the everyday name for slope, and the two terms mean exactly the same thing on a straight line. Once you have a rise and a run, you can read the steepness as a ratio, a percentage, or an angle, which is why so many engineering and surveying workflows start by computing this ratio from two points.

If you already know your rise and run as plain numbers and only need the percentage, the dedicated slope percentage tool gives you a one-step answer; if you need to flip that percentage back into an angle or back into a ratio, the other calculators below cover those conversions.

If you already have a rise and a run as plain numbers, the Slope Percentage Calculator gives you a one-step percentage grade without retyping the coordinates.

How Rise Over Run Calculator Works

The calculator applies the standard two-point slope formula and then converts the same number into the other units you might need.

m = (y2 - y1) / (x2 - x1)
  • x1, y1: Coordinates of the first point on the line. The order does not matter as long as you keep both points consistent.
  • x2, y2: Coordinates of the second point on the line. Subtract the second point's y from the first point's y to get the rise.
  • m: Slope of the line, equal to the rise divided by the run. A positive m means the line rises from left to right; a negative m means it falls.
  • Percent grade: Slope scaled by 100, so a slope of 1 becomes 100 percent and a 45-degree line is exactly 100 percent.

The same computation also gives you the straight-line distance between the two points because rise and run form the legs of a right triangle whose hypotenuse is the distance. We compute that distance with the Pythagorean theorem, so the tool doubles as a quick line-segment check.

When the run is exactly zero the line is vertical, the formula would divide by zero, and the calculator instead reports an undefined slope with a 90-degree angle. When the rise is zero the line is horizontal, the slope is exactly zero, and the angle reads 0°.

According to Wolfram MathWorld, the slope of a line making an angle theta with the x-axis is the constant m = Delta y / Delta x = tan(theta), which is the identity behind the percentage and angle readouts below the slope.

Example: points (1, 2) and (4, 8)

x1 = 1, y1 = 2, x2 = 4, y2 = 8

Rise = 8 - 2 = 6. Run = 4 - 1 = 3. Slope = 6 / 3 = 2. Percentage grade = 2 × 100 = 200%. Angle = arctan(2) ≈ 63.43°.

Slope 2, percentage grade 200%, angle ≈ 63.43°.

A positive slope this large is well past 45 degrees, so the line is climbing steeply. In a stair or ramp context, 200% would be impossible; this ratio is the kind of number you would see on a steeply rising graph rather than a walkable surface.

According to Wolfram MathWorld, Slope, the slope of a line making an angle theta with the x-axis is the constant m = Delta y / Delta x = tan(theta), which is the identity behind the percentage and angle readouts below the slope.

According to Wikipedia, Slope, the slope of a line is m = (y2 - y1) / (x2 - x1), and the angle of inclination with the x-axis is related to the slope by m = tan(θ).

When you want to flip a slope back into an angle without going through the full slope workflow, the Arctan Calculator applies the inverse tangent to a single number.

Key Concepts Explained

Four ideas appear in every slope problem, whether you are working a textbook example or grading a real-world surface.

Rise

The vertical distance between the two points, computed as y2 minus y1. Rise is signed, so a negative rise means the second point sits below the first.

Run

The horizontal distance between the two points, computed as x2 minus x1. A negative run means the second point sits to the left of the first, which flips the sign of the resulting slope.

Slope as a ratio

Slope is a pure ratio with no units, so 6 divided by 3, 60 inches divided by 30 inches, and 1.5 meters divided by 0.75 meters all describe the same steepness.

Percentage grade vs. angle

Percentage grade multiplies the ratio by 100, so 1 becomes 100% and 0.5 becomes 50%; the angle in degrees is arctangent of the ratio, so 1 is exactly 45° and 0.5 is about 26.57°.

In road and ramp specifications, the percentage grade is usually the more useful number because codes and signage already speak in percent, while graphs and angle measurements tend to use degrees or a unitless ratio. Keeping all three views of the same slope side by side is what makes this tool quick to use across contexts.

If percentage grade is the form you need most often, the Percentage Calculator lets you skip the slope and convert a rise and run straight into percent.

How to Use This Calculator

Four steps cover every slope problem, from a textbook example to a survey point.

  1. 1 Enter the first point: Type the x and y coordinates of the first point into the Point 1 row.
  2. 2 Enter the second point: Type the x and y coordinates of the second point into the Point 2 row. The order matters for the sign of the result.
  3. 3 Read rise, run, and slope: The calculator updates the rise, run, and slope as soon as you finish typing either row.
  4. 4 Pick the unit that fits: Switch your attention to percentage grade, angle, or distance depending on whether you are reading a chart, a road sign, or a survey note.

If a stair rises 7 inches over a tread of 11 inches, type (0, 0) and (11, 7) to read a slope of about 0.636, a percentage grade of 63.64%, and an angle of about 32.5°; the same numbers also confirm the Pythagorean distance of about 13.04 inches between those two corner points.

For problems that focus on the segment between two points rather than the slope of the line through them, the 2D Distance Calculator returns the Pythagorean distance without the slope outputs.

Benefits of Using This Calculator

The calculator gives you every common reading of the same slope in one place, so you rarely have to convert anything by hand.

  • Multiple readings of one number: Slope, percentage grade, and angle are computed from the same inputs, so the values cannot drift out of agreement.
  • Real-time updates: Results recompute as you type, which makes it convenient to nudge a coordinate and see the steepness change immediately.
  • Edge case handling: Vertical, horizontal, and identical-point inputs are recognised and reported with the right labels instead of NaN.
  • Distance as a bonus: The Pythagorean distance between the two points shows up alongside the slope, which is useful for chord and segment problems.
  • Signed results: Negative rise or run produces a negative slope, so the tool reflects the actual direction of the line, not just its absolute steepness.

The value of having slope, percentage, and angle together is that you rarely have to choose a single unit up front. You can describe the same stair in inches of rise per inch of run, in percent for code compliance, and in degrees for a quick sketch, and the calculator will keep all three numbers consistent.

Once you have more than two points, a single two-point slope stops being representative and the Linear Regression Calculator fits a least-squares line through the full data set.

Factors That Affect Your Results

A few simple factors decide whether the answer feels steep, gentle, or undefined.

Sign of the run

If x2 is smaller than x1, the run is negative and the slope flips sign even when the visual direction of the line has not changed. Keep the points in a consistent left-to-right order when you care about the sign of the result.

Sign of the rise

A positive rise means the second point is above the first; a negative rise means the line falls. The percentage grade and angle both carry the same sign as the rise divided by the run.

Magnitude of the run

A very small run amplifies small rises into very large slopes. Two points one unit apart with a 5-unit rise give 500% grade, so always check whether the run is realistic before trusting the percentage.

Vertical and horizontal lines

Vertical lines have an undefined slope and a 90-degree angle, while horizontal lines have a slope and angle of exactly zero. The calculator labels both cases so you do not have to interpret a NaN.

  • When the two points are identical, the slope is mathematically undefined and the calculator reports the line as undefined, but the rise, run, and distance values will all be zero because there is no line to measure.
  • The percentage and angle outputs are formatted to two decimal places, so very small slopes below 0.005 will round to 0.00%; if you need more precision, read the unitless slope output, which is shown to four decimal places.

The numbers are only as good as the points you put in, so always confirm that the two coordinates really do belong to the same physical line or data series before interpreting the result. For data with many points, a least-squares fit is more honest than a single two-point slope, and our linear regression tool is the right next step in that case.

According to Wikipedia, Grade (slope), the percentage grade of a line is 100 multiplied by rise divided by run, so a 45-degree line, where the rise equals the run, corresponds to a 100 percent grade.

When the distance output is what you actually need, the Length of a Line Segment Calculator focuses the same two inputs on the hypotenuse of the rise over run triangle.

Rise over run calculator showing slope, percentage, and angle from two coordinate points
Rise over run calculator showing slope, percentage, and angle from two coordinate points

Frequently Asked Questions

Q: What is rise over run?

A: Rise over run is the everyday name for the slope of a straight line. It compares how much a line goes up or down (the rise) to how far it moves sideways (the run), so a line that rises 6 units over a run of 3 units has a rise over run of 2.

Q: How do you calculate rise over run?

A: Subtract the y-coordinates to get the rise (y2 minus y1), subtract the x-coordinates to get the run (x2 minus x1), and then divide the rise by the run. The result is the slope, and multiplying it by 100 turns it into a percentage grade.

Q: What is the rise over run formula?

A: The two-point formula is m = (y2 - y1) / (x2 - x1). When the run is zero, the line is vertical and the slope is undefined; when the rise is zero, the line is horizontal and the slope is zero.

Q: How do you read rise over run from two points?

A: Type the coordinates of the two points into the calculator above. It will display the rise, run, slope, percentage grade, angle, and distance, so you can read the slope without doing the subtraction by hand.

Q: What is the difference between rise over run and slope?

A: On a straight line, rise over run and slope mean the same thing. The name rise over run emphasises the geometry of the right triangle that the line forms, while slope is the standard algebraic term used in the equation y = mx + b.

Q: How do you convert rise over run to a percentage?

A: Multiply the slope by 100. A slope of 0.25 becomes 25 percent, a slope of 1 becomes 100 percent, and a slope of 2 becomes 200 percent. The percentage grade is the form you will see on road signs and ramp specifications.