Science, Tech, Math › Math Slope Formula to Find Rise over Run Share Flipboard Email Print Adam Gault / Getty Images Math Resources Math Tutorials Geometry Arithmetic Pre Algebra & Algebra Statistics Exponential Decay Functions Worksheets By Grade View More By Deb Russell Math Expert Deb Russell is a school principal and teacher with over 25 years of experience teaching mathematics at all levels. our editorial process Deb Russell Updated September 26, 2019 The slope formula is sometimes called "rise over run." The simple way to think of the formula is: M=rise/run M stands for slope. Your goal is to find the change in the height of the line over the horizontal distance of the line. First, look at a graph of a line and find two points, 1 and 2. You can use any two points on a line. The slope will be the same between any two points on a straight line.Note the X and Y value for each of the points.Designate the X and Y value for points 1 and 2. Use subscripts to identify them in the slope formula. Slope of a Straight Line The formula for the slope of the straight line going through the points (X1, Y1) and (X2, Y2) is given by: M = (Y2 – Y1) / (X2 – X1) The answer, M, is the slope of the line. It can be a positive or negative value. The subscripts are only used to identify the two points. They are not values or exponents. If you find this confusing, give the points names, such as Bert and Ernie. Point 1 is now Bert and Point 2 is now ErnieLook at the graph and note their X and Y values: (XBert, YBert) and (XErnie, YErnie)The slope formula is now: M = (YErnie – YBert) / (XErnie – XBert) Slope Formula Tips and Tricks The slope formula can give a positive or negative number as a result. In the case of vertical and horizontal lines, it can also give no answer or the number zero. Keep these facts in mind: If the slope is a positive value, the line is rising. The technical term is increasing.If the slope is a negative value, the line is descending. The technical term is decreasing.You can check your math by eyeballing the graph. If you get a negative slope but the line is clearly rising, you made an error. If the line is clearly going down and you got a positive slope, you made an error. You may have mixed up X and Y and points 1 and 2.Vertical lines have no slope. In the equation, you are dividing by zero, which does not produce a number. If a quiz asks the slope of a vertical line, don't say zero. Say it has no slope.Horizontal lines have a zero slope. Zero is a number. In the equation, you are dividing zero by a number and the result is zero. If a quiz asks for the slope of a horizontal line, say zero.Parallel lines have equal slopes. If you find the slope of one line, you don't have to use the formula for the other line. They will be the same. This can save you some time and effort.Perpendicular lines have negative reciprocal slopes. If two lines cross at a right angle, you can find the slope of one and then change the value for the other to negative or positive.