How can I find the slope of a line from its equation?
Quick answer
Put the equation in the form y = mx + b. The coefficient of x, m, is the slope; the constant b is the y-intercept, not the slope. If the equation is not already in that form, use algebra to isolate y, then compare coefficients. For example, 2x + y = 5 becomes y = −2x + 5, so its slope is −2 and its y-intercept is 5. [S1]
The question, the details, the next step.
A practical checklist
Copy the equation with every sign and fraction intact.
Isolate y if the equation is not already in slope-intercept form.
Identify the complete coefficient of x, including its sign, as the slope.
Keep the constant separate as the y-intercept; use x = 0 as a check if needed.
A few more useful answers
Is the y-intercept also the slope?
No. In y = mx + b, m is the slope and b is the y-intercept. The intercept is the y-value when x = 0. [S1]
What if there is no visible number before x?
Treat a lone x as 1x, so its coefficient—and slope in y = x + b—is 1. If a minus sign appears, −x means −1x, so the slope is −1.
Can I read the slope directly from an equation like Ax + By = C?
Not by treating A as the slope. Rearrange the equation to isolate y, then use the coefficient of x in the resulting y = mx + b form. [S1]
Sources
References used for this guide.
- [S1] OpenStax College Algebra: Finding the Slope and y-Intercept from an Equation openstax.org · Checked
