How to Calculate Slope of a Line
Learn how to calculate the slope of a line using two points, understand positive and negative slopes, and work with slope-intercept and point-slope forms. Includes real-world examples.
What Is Slope?
Slope measures the steepness and direction of a line, defined as the ratio of vertical change (rise) to horizontal change (run). It is written as m = rise/run = (y₂ − y₁) / (x₂ − x₁). A slope of 2 means the line rises 2 units for every 1 unit it moves to the right.
Calculating Slope from Two Points
To find the slope between two points (x₁, y₁) and (x₂, y₂), substitute into the slope formula m = (y₂ − y₁) / (x₂ − x₁). For points (1, 3) and (4, 9): m = (9 − 3) / (4 − 1) = 6 / 3 = 2. The order of the points does not matter, as long as you subtract consistently in both numerator and denominator.
Interpreting Positive, Negative, Zero, and Undefined Slopes
A positive slope means the line rises from left to right. A negative slope means it falls. A slope of zero means the line is horizontal (no vertical change). An undefined slope means the line is vertical (no horizontal change, so division by zero). These four cases correspond to the four orientations any line can have on a coordinate plane.
Slope-Intercept Form
The equation y = mx + b is the slope-intercept form, where m is the slope and b is the y-intercept (the point where the line crosses the y-axis). For y = 3x − 5, the slope is 3 and the y-intercept is −5. This form makes it easy to graph a line or identify its key features instantly.
Point-Slope Form
When you know the slope and one point (x₁, y₁), use point-slope form: y − y₁ = m(x − x₁). For slope m = 4 and point (2, 7): y − 7 = 4(x − 2), which simplifies to y = 4x − 1. This form is particularly useful when you do not know the y-intercept directly.
Parallel and Perpendicular Lines
Parallel lines have identical slopes (m₁ = m₂) but different y-intercepts. Perpendicular lines have slopes that are negative reciprocals of each other: m₁ × m₂ = −1. For example, a line with slope 3/4 is perpendicular to a line with slope −4/3. These relationships are essential in coordinate geometry and engineering.
Real-World Applications of Slope
Slope describes rates of change in many real-world contexts. In economics, it represents the marginal cost or revenue (change in cost per unit produced). In physics, the slope of a distance-time graph gives speed. In civil engineering, road grade (gradient) is expressed as a percentage of the slope, describing how steep a road is.
Try These Calculators
Put what you learned into practice with these free calculators.
Related Guides
How to Use the Pythagorean Theorem
Learn how to apply the Pythagorean theorem to find the sides of a right triangle. Covers the formula, common Pythagorean triples, and real-world applications in construction, navigation, and geometry.
How to Calculate Ratios and Proportions
Learn how to set up and solve ratios and proportions with clear examples. Understand the difference between ratios and proportions and apply them in real-world situations like recipes, maps, and scaling.
How to Solve Quadratic Equations - Complete Guide
Learn how to solve quadratic equations using factoring, the quadratic formula, and completing the square. Step-by-step methods with worked examples.