Understand Slope of a Line
When you graph linear equations, you may notice that some lines tilt up as they go from left to right and some tilt down. Some lines are steep and some are flatter. What determines whether a line tilts up or down, or how steep or flat it is?
In mathematics, the “tilt” of a line is called the slope of the line. The slope of a line is the ratio of the vertical change to the horizontal change between any two points on the line.
Use to find the slope of a line from its graph
To find the slope of a line from its graph, we locate two points on the line whose coordinates are integers. Starting with the point on the left, we sketch a right triangle, going from the first point to the second, so we can count the rise and the run.
Find the slope of a line from its graph.
- Locate two points on the line whose coordinates are integers.
- Starting with the point on the left, sketch a right triangle, going from the first point to the second point.
- Count the rise and the run on the legs of the triangle.
- Take the ratio of rise to run to find the slope, .
Example. Find the slope of the line shown.
We locate two points with integer coordinates, and . Starting at the point on the left, , we sketch a right triangle to . The rise is and the run is , so:
The slope of the line is . This means that increases units as increases units.
It does not matter which of the two points you start from, or which point you call “first” — the slope of the line is always the same.
Find the slope of the line through the points (0, -1) and (3, 3). What is the slope?
Starting at the left point, count the rise (vertical change) and the run (horizontal change) to the right point, then form rise/run.Find the slope of the line through the points (0, 5) and (3, 3). What is the slope?
The line drops from left to right, so the rise is negative. Count the rise and run, then form rise/run.Find the slope of horizontal and vertical lines
Horizontal and vertical lines have equations with just one variable — for a horizontal line and for a vertical line. What is their slope?
For a horizontal line, any two points on it have the same -coordinate, so the rise between them is always . Since , every horizontal line has slope .
For a vertical line, any two points on it have the same -coordinate, so the run between them is always . Since division by is undefined, the slope of every vertical line is undefined.
Example. Find the slope of each line: (a) (b) .
(a) is a vertical line. Its slope is undefined.
(b) is a horizontal line. It has slope .
What is the slope of the line ?
is a vertical line — every point on it has the same x-coordinate, so the run is always 0.What is the slope of the line ?
is a horizontal line — every point on it has the same y-coordinate, so the rise is always 0.Use the slope formula to find the slope of a line between two points
Sometimes we need to find the slope of a line between two points without a graph to count the rise and run. To do this algebraically, we use subscript notation: (" sub , sub ") names the first point and (" sub , sub ") names the second.
The rise between two points is the difference in their -coordinates, , and the run is the difference in their -coordinates, . Substituting these into gives the slope formula.
Slope formula. The slope of the line between two points and is
The slope is: of the second point minus of the first point, over of the second point minus of the first point.
Example. Use the slope formula to find the slope of the line through the points and .
We call point #1 and point #2, so and . Substituting into the slope formula:
It does not matter which point you call point #1 and which you call point #2 — the slope will be the same either way.
Example. Use the slope formula to find the slope of the line through the points and .
Use the slope formula to find the slope of the line through the points (8, 5) and (6, 3). What is the slope?
Let and , then compute .Use the slope formula to find the slope of the line through the points (-3, 4) and (2, -1). What is the slope?
Let and , then compute .Graph a line given a point and the slope
We have graphed lines by plotting points, by using intercepts, and by recognizing horizontal and vertical lines. Another method, the point-slope method, graphs a line from one known point and the slope: we plot the point, then use the definition of slope to find and mark a second point.
Graph a line given a point and the slope.
- Plot the given point.
- Use the slope formula to identify the rise and the run.
- Starting at the given point, count out the rise and run to mark the second point.
- Connect the two points with a line.
Example. Graph the line passing through the point whose slope is .
We plot . The slope gives rise and run . Starting at , we count up and right to mark the second point, , then connect the two points with a line.
Graph the line passing through the point with slope . Starting at and counting the rise and run, what is the second point as an ordered pair ?
From (2, -2), count up 4 (the rise) and right 3 (the run).Solve slope applications
Slope has many applications in the real world — the pitch of a roof, the grade of a highway, and the drop of a pipe are all slopes.
Example. The pitch of a building’s roof is the slope of the roof. A roof rises feet over a run of feet. What is the slope of the roof?
The roof rises foot for every feet of horizontal run.
A roof rises 14 feet over a run of 24 feet. What is the slope of the roof, as a fully simplified fraction?
Slope is rise over run: , then simplify the fraction.Example. Sewage pipes must slope down inch per foot in order to drain properly. What is the required slope?
Since foot is inches, and the pipe drops (a negative rise) of inch:
The pipe drops inch for every inches of horizontal run.
Find the slope of a pipe that slopes down inch per foot (12 inches).
The rise is inch and the run is 12 inches (1 foot); slope is rise over run.Key terms
slope of a line — the ratio of the rise (vertical change) to the run (horizontal change) between two points on the line, . slope formula — the algebraic formula for computing slope from two named points, and . point-slope method — graphing a line by plotting one known point, then using the slope to count out and mark a second point.
This section is adapted from Elementary Algebra 2e, Section 4.4: Understand Slope of a Line by Lynn Marecek, MaryAnne Anthony-Smith, and Andrea Honeycutt Mathis, © OpenStax, licensed under CC BY-NC-SA 4.0. Access the original for free at openstax.org. Changes: recreated the geoboard and coordinate-plane figures as accessible inline graphics and condensed the geoboard-modeling activity into a single worked introduction of rise and run; omitted the Be Prepared quiz, Media links, and Section Exercises; and converted the practice problems (“Try Its”) into interactive exercises with instant feedback.