Rise Over Run Calculator - Find Line Slope

Calculate slope from two coordinate points or directly from vertical rise and horizontal run.

Rise over run slope calculator
Choose a method, enter the known values, and calculate the line's slope and angle.

About rise over run and slope

Rise over run is the standard geometric description of a line's slope. Rise measures vertical change and run measures horizontal change. Dividing rise by run produces the slope, usually represented by m. A positive slope rises as the line moves from left to right, a negative slope falls, and a zero slope describes a horizontal line. When two coordinate points are known, the calculator first subtracts the first y-coordinate from the second to find rise. It then subtracts the first x-coordinate from the second to find run. In compact form, slope equals (y2 minus y1) divided by (x2 minus x1). Reversing the order of both subtractions gives the same answer because both signs change together. Mixing the subtraction order, however, incorrectly reverses the slope's sign. The direct rise-and-run mode is convenient when changes are already known. A road that gains 3 meters over 60 horizontal meters has a slope of 0.05. This can also be expressed as 5 percent grade after multiplying by 100. The inclination angle is the arctangent of the slope. Slope, percent grade, and angle describe the same tilt in different forms, but they are not numerically interchangeable. A vertical line has zero horizontal run, so its slope is undefined rather than infinite in ordinary algebra. The calculator reports an input error for zero run. A horizontal line has zero rise and a valid slope of zero. Decimal and negative coordinates are supported, making the tool suitable for coordinate geometry, linear models, accessibility ramps, roofs, drainage, roads, and graph interpretation. Slope has no units when rise and run use the same measurement unit because those units cancel. If vertical and horizontal changes use different units, convert one before calculating or clearly preserve the resulting ratio. Also remember that slope describes a straight line between the selected points. On curved terrain or nonlinear graphs, two points give an average slope across the interval rather than the instantaneous slope at every location. Use the result to build the slope-intercept equation y equals mx plus b by substituting either known point to solve for b. For practical design, compare the calculated grade with applicable engineering guidance, accessibility standards, and local codes. This calculator provides precise arithmetic, but safe construction still depends on accurate measurements and appropriate professional judgment.

Rise over run examples

InputResultInterpretation
Points (1, 2) and (5, 10)Slope = 2The line rises 8 units over a run of 4 units.
Rise = -3, run = 6Slope = -0.5The line falls one unit for every two units to the right.
Rise = 0, run = 12Slope = 0No vertical change means the line is horizontal.

How to calculate rise over run

  1. Choose whether you know two coordinate points or the rise and run directly.
  2. Enter each coordinate or change value in its labeled field.
  3. Check that the two x-coordinates differ, or that the direct run is not zero.
  4. Select Calculate slope and review the ratio, decimal slope, and inclination angle.

Rise over run calculator FAQ

What is the rise over run formula?

Slope equals vertical change divided by horizontal change. From two points, that is (y2 minus y1) divided by (x2 minus x1).

What does a negative slope mean?

A negative slope means the line descends from left to right. Its y-value decreases as its x-value increases.

Why is a vertical line's slope undefined?

A vertical line has a run of zero, which would require division by zero. Division by zero has no defined real-number result.

How do I convert slope to percent grade?

Multiply the decimal slope by 100. For example, a slope of 0.08 is an 8 percent grade.

Is slope the same as an angle?

No, slope is a ratio while angle is measured in degrees or radians. The angle is found by taking the arctangent of the slope.