What is slope?
Slope is a number that describes how steep a line is and which way it leans. It compares the vertical change between two points, the rise, to the horizontal change, the run.
A slope of 2 means the line climbs 2 units for every 1 unit it moves right. A slope of −1/2 means it falls 1 unit for every 2 units right. A slope of 0 means the line is flat.
Slope appears in road grades (a 6% grade rises 6 meters per 100 meters), ramp design, speed on a distance-time graph and prices on a cost chart. You can compute it with the slope calculator.
How do you find slope from two points?
Subtract the y-values and the x-values in the same order, then divide.
Example: (2, 3) and (6, 11).
m = (11 − 3) / (6 − 2) = 8 / 4 = 2.
Example: (−1, 4) and (5, −2).
m = (−2 − 4) / (5 − (−1)) = −6 / 6 = −1.
The order does not matter as long as you are consistent. Using (6, 11) first gives (3 − 11) / (2 − 6) = −8 / −4 = 2, the same answer. Mixing the order, such as (11 − 3) / (2 − 6), gives the wrong sign.
What do the signs of slope mean?
- Positive slope: the line rises from left to right.
- Negative slope: the line falls from left to right.
- Zero slope: a horizontal line, y = constant.
- Undefined slope: a vertical line, x = constant, because the run is 0.
A larger absolute value means a steeper line. A slope of 5 is steeper than a slope of 2, and −5 is as steep as 5 but falls instead of rises.
Slope also links to angle. The angle a line makes with the horizontal has a tangent equal to the slope, so a slope of 1 corresponds to a 45° angle. The distance between the two points can be found with the Pythagorean theorem: rise and run are the legs of a right triangle.
What is slope-intercept form?
The most common way to write a line is:
Here m is the slope and b is the y-intercept, the point where the line crosses the y-axis (at x = 0).
For y = 3x − 2, the slope is 3 and the line crosses the y-axis at (0, −2). To graph it, plot (0, −2), then move up 3 and right 1 to get another point (1, 1), and draw the line.
If the equation is not solved for y, rearrange it. For 4x + 2y = 10, subtract 4x to get 2y = −4x + 10, then divide by 2 to get y = −2x + 5. The slope is −2 and the intercept is 5.
What is point-slope form?
If you know the slope and one point (x₁, y₁), the line is:
Example. A line with slope 3 passes through (2, 5). Then y − 5 = 3(x − 2). Expanding gives y = 3x − 6 + 5 = 3x − 1.
This form is the easiest to write down directly from given information. You can convert it to slope-intercept form by distributing and solving for y.
How do you write the equation through two points?
First compute the slope, then use point-slope form with either point.
Example: (1, 3) and (4, 12).
- m = (12 − 3) / (4 − 1) = 9 / 3 = 3.
- Using (1, 3): y − 3 = 3(x − 1).
- Simplify: y = 3x − 3 + 3 = 3x.
The line is y = 3x. Check with the other point: 3 × 4 = 12 ✓.
What is standard form?
Standard form is:
where A, B and C are integers and A is usually positive. It is useful for finding intercepts and for systems of equations.
To convert y = −2x + 5 to standard form, add 2x to both sides to get 2x + y = 5. For a fractional slope, such as y = (3/4)x − 2, multiply through by 4: 4y = 3x − 8, so −3x + 4y = −8, or 3x − 4y = 8.
To find intercepts from standard form, set x = 0 to find the y-intercept and set y = 0 to find the x-intercept. For 3x − 4y = 12: the y-intercept is −3 and the x-intercept is 4.
What about parallel and perpendicular lines?
- Parallel lines have the same slope: y = 2x + 1 and y = 2x − 7 never meet.
- Perpendicular lines have slopes that are negative reciprocals: their product is −1. A line with slope 2 is perpendicular to a line with slope −1/2. A line with slope −3/4 is perpendicular to one with slope 4/3.
Example. Find the line through (4, 1) that is perpendicular to y = 2x + 3. The given slope is 2, so the perpendicular slope is −1/2. Point-slope: y − 1 = −(1/2)(x − 4), which simplifies to y = −x/2 + 3.
Horizontal and vertical lines are also perpendicular, even though one slope is zero and the other is undefined.
How do you find the midpoint and where lines meet?
The midpoint of two points is the average of the coordinates: ((x₁ + x₂)/2, (y₁ + y₂)/2). The midpoint of (2, 3) and (8, 7) is (5, 5).
To find where two lines intersect, set their equations equal. For y = 2x + 1 and y = −x + 7: 2x + 1 = −x + 7, so 3x = 6, x = 2, and y = 5. They meet at (2, 5).
How does slope connect to calculus?
For a straight line, the slope is the same everywhere. For a curve, the slope changes from point to point, and the derivative gives the slope of the tangent line at each point. The derivative is the idea of slope extended to curves. If you are heading toward calculus, read what is a derivative and try the derivative calculator on a simple function like x².
What mistakes should you avoid?
- Reversing subtraction in only one of the numerator or denominator. Keep the points in the same order in both.
- Using run over rise. Slope is rise divided by run.
- Forgetting the sign of b when you read an equation, as in y = 2x − 3, where b = −3.
- Confusing slope with intercept.
- Dividing by zero for vertical lines. Say the slope is undefined.
- Treating the reciprocal as the perpendicular slope. It must be the negative reciprocal.
To practice, choose pairs of points, compute the slope and write the line in all three forms. Check each answer with the slope calculator, and verify the equation by plugging both points back in.
How is slope used in real situations?
Slope turns a graph into a rate. On a distance-time graph, the slope is speed: a line that rises 150 km over 2 hours has a slope of 75 km/h. On a cost graph, the slope is the price per unit, and the y-intercept is a fixed fee. If a taxi charges a $4 base fare plus $2.50 per kilometer, the cost is y = 2.5x + 4.
In construction, slope appears as a ratio. A wheelchair ramp is often limited to a 1:12 slope, meaning 1 unit of rise for every 12 units of run, which is a slope of about 0.083 or an 8.3% grade. A roof pitch of 6:12 has a slope of 0.5. When you read any graph, ask what the slope means in the units of the axes. That question usually gives the interpretation straight away.