Calculate Slope and Intercepts of a Line

The slope of a line measures how steep the line is. [1] You could also say it is the rise over the run; that is, how much the line rises vertically compared with how much it runs horizontally. Being able to find the slope of a line, or using the slope to find points on the line, is an important skill used in economics, [2] geoscience, [3] accounting/finance and other fields.

Steps

  • Become familiar with the basic image:

Using a Graph to Find the Slope

  1. Pick two points on the line. Draw dots on the graph to represent these points, and note their coordinates.
    • Remember when graphing points to list the x-coordinate first, then the y-coordinate.
    • For example, you might choose the points (-3, -2) and (5, 4).
  2. Determine the rise between the two points. To do this, you must compare the difference in y of the two points. Begin with the first point, the point that is the farthest left on the graph, and count up until you reach the y-coordinate of the second point.
    • The rise can be positive or negative; that is, you can count up or down to find it.[4] If the line is moving up and to the right, the rise is positive. If the line is moving down and to the right, the rise is negative. [1]
    • For example, if the y-coordinate of the first point is (-2), and the y-coordinate of the second point is (4), you will count up 6 points, so your rise is 6.
  3. Determine the run between the two points. To do this, you must compare the difference in x of the two points. Begin with the first point, the point that is farthest left on the graph, and count over until you reach the x-coordinate of the second point.
    • To run is always positive; that is, you can only count from left to right, never right to left. [4]
    • For example, if the x-coordinate of the first point is (-3), and the x-coordinate of the second point is (5), you will count over 8, so your run is 8.
  4. Make a ratio using the rise over the run to determine the slope. The slope is usually in fraction form, but it can also be a whole number.
    • For example, if the rise is 6 and the run is 8, then your slope is <math> \frac{6}{8}</math>, which can be simplified to <math> \frac{3}{4}</math>.

Using Two Given Points to Find the Slope

  1. Set up the formula <math>m = \frac{y_{2}-y_{1}}{x_{2}-x_{1}}</math>. In the formula, m = the slope, <math>(x_{1}, y_{1})</math> = the coordinates of the first point, <math>(x_{2}, y_{2})</math> = the coordinates of the second point.
    • Remember that the slope is equal to <math>\frac{rise}{run}</math>. You are using this formula to find the change in y (rise) over the change in x (run). [5]
  2. Plug the x- and y-coordinates into the formula. Make sure you place the coordinates of the first point (<math>(x_{1}, y_{1})</math>) and the second point (<math>(x_{2}, y_{2})</math>) in the correct positions in the formula, or else you will not calculate the correct slope.
    • For example, given the points (-3, -2) and (5, 4), your formula will look like this: <math>m = \frac{4-(-2)}{5-(-3)}</math>.
  3. Complete the calculation and simplify, if possible. This will give you the slope as a fraction or whole number.
    • For example, if your slope is <math>m = \frac{4-(-2)}{5-(-3)}</math>you should calculate <Math>4 - (-2) = 6</math> in the numerator (Remember when subtracting a negative number, you add.) and <math>5-(-3) = 8</math> in the denominator. You can simplify <math>\frac{6}{8}</math> to <math> \frac{3}{4}</math>, so <math>m = \frac{3}{4}</math>.

Finding the y-intercept, Given the Slope and One Point

  1. Set up the formula <math>y = mx+b</math>. In the formula, y = the y-coordinate of any point on the line, m = slope, x = the x-coordinate of any point on the line, and b = the y-intercept.
    • <math>y = mx + b</math> is the equation of a line. [6]
    • The y-intercept is the point at which the line crosses the y-axis.
  2. Plug in the slope and the coordinates of one point in the line. Remember, the slope is equal to the rise over the run. If you need help finding the slope, see the instructions above.
    • For example, if the slope is <math> \frac{3}{4}</math>, and on point on the line is (5,4), then the formula will look like this: <math>4 = \frac{3}{4}(5) + b</math>.
  3. Complete the equation, solving for b. First multiply the slope and the x-coordinate. Subtract this number from both sides to solve for b.
    • In the example problem the equation becomes <math>4 = 3\frac{3}{4} + b</math>. Subtracting <math>3\frac{3}{4}</math> from both sides, you end up with <math>\frac{1}{4} = b</math>. So the y-intercept is <math>\frac{1}{4}</math>.
  4. Check your work. On a coordinate graph, plot your known point, then draw a line using the slope. To find the y-intercept, look for the point where the line crosses the y-axis.
    • For example, if the slope is <math> \frac{3}{4}</math>, and one point is (5,4), draw a point at (5,4), then draw other points along the line by counting to the left 3 and down 4. When you draw a line through the points, you should see the line cross the y-axis just above the (0,0) coordinate.

Finding the x-intercept, Given the Slope and Y-intercept

  1. Set up the formula <math>y = mx+b</math>. In the formula, y = the y-coordinate of any point on the line, m = slope, x = the x-coordinate of any point on the line, and b = the y-intercept.
    • <math>y = mx + b</math> is the equation of a line. [6]
    • The x-intercept is the point at which the line crosses the x-axis.
  2. Plug the slope and y-intercept into the formula. Remember, the slope is equal to the rise over the run. If you need help finding the slope, see the instructions above.
    • For example, if the slope is <math> \frac{3}{4}</math>, and the y-intercept is <math>\frac{1}{4}</math>, the formula will look like this: <math>y = \frac{3}{4}x + \frac{1}{4}</math>.
  3. Set y to 0. [7] You are looking for the x-intercept, the point at which the line crosses the x-axis. At this point, the y-coordinate will equal zero. So if we set y to 0, and solve for the corresponding x-coordinate, we will find the point (x, 0), which will be the x-intercept.
    • In the example problem, the equation becomes <math>0 = \frac{3}{4}x + \frac{1}{4}</math>.
  4. Complete the equation, solving for x. First subtract the y-intercept from both sides. Then divide both sides by the slope.
    • In the example problem the equation becomes <math>\frac{-1}{4} = \frac{3}{4}x</math>. Dividing both sides by <math> \frac{3}{4}</math>, you end up with <math>\frac{-4}{12} = x</math>. This simplifies to <math>\frac{-1}{3} = x</math>. So the point at which the line crosses the x-axis is <math>(\frac{-1}{3}, 0)</math>. So the x-intercept is <math>\frac{-1}{3}</math>.
  5. Check your work. On a coordinate graph, plot your y-intercept, then draw a line using the slope. To find the x-intercept, look for the point where the line crosses the x-axis.
    • For example, if the slope is <math> \frac{3}{4}</math>, and the y-intercept is <math>(0,\frac{1}{4})</math>, draw a point at <math>(0,\frac{1}{4})</math>, then draw other points along the line by counting to the left 3 and down 4, and to the right 3 and up 4. When you draw a line through the points, you should see the line cross the x-axis just left of the (0,0) coordinate.
  6. Final Image:

Related Articles

Sources and Citations

  • The workbook used to write this article was "y = ax + b.xlsx"