How to Find the Slope-Intercept Form of a Line

Why do so many algebra problems ask you to write an equation “in slope-intercept form”? Because y = mx + b is the fastest way to read a line’s steepness and starting point at a glance. This guide walks through four common starting points, two coordinates, a graph, point-slope form, and standard form, and turns each one into slope-intercept form step by step.

Quick Answer

  • Slope-intercept form is y = mx + b, where m is the slope and b is the y-intercept.
  • From two points, find m with rise over run, then solve for b using either point.
  • From a graph, read the y-intercept directly, then count rise over run to a second point.
  • From point-slope form y – y1 = m(x – x1), distribute and isolate y.
  • From standard form Ax + By = C, solve the equation for y.

What Is Slope-Intercept Form?

Slope-intercept form writes a straight line as y = mx + b. The letter m is the slope, how steep the line is. The letter b is the y-intercept, the point where the line crosses the vertical axis. Once an equation is in this form, you can read both facts about the line without doing any more math.

Every method below ends at the same y = mx + b target. The only thing that changes is what information you start with. You can check your final answer, or explore the two-point method interactively, with the Slope Calculator.

How to Find Slope-Intercept Form From Two Points

Start with two points on the line, for example (2, 3) and (5, 9). Find the slope first, then use it with one point to solve for b.

  1. Find the slope: m = (y2 – y1) / (x2 – x1) = (9 – 3) / (5 – 2) = 6 / 3 = 2.
  2. Pick one point, say (2, 3), and plug it into y = mx + b: 3 = 2(2) + b.
  3. Solve for b: 3 = 4 + b, so b = -1.
  4. Write the final equation: y = 2x – 1.

Check the answer by plugging in the second point. At x = 5, y = 2(5) – 1 = 9, which matches the original point, so the equation is correct.

Slope-intercept form from two points A coordinate grid shows a line rising through the points (2, 3) and (5, 9). The rise of 6 and run of 3 between the points are marked, giving a slope of 2 and a y-intercept of negative 1. Points (2, 3) and (5, 9): slope 2, y-intercept -1 0 (2, 3) (5, 9) run = 3 rise = 6 y = 2x – 1
Rise over run gives the slope, then one point solves for the intercept.

How to Find Slope-Intercept Form From a Graph

Reading a graph is often faster than the two-point method, because the y-intercept is usually visible without any calculation.

  • Find where the line crosses the vertical axis. That value is b.
  • From that crossing point, count how many units the line rises or falls, and how many units it moves across, to reach a second clear point.
  • Divide the rise by the run to get m.
  • Write y = mx + b using the slope you found and the intercept you read.

For example, if a line crosses the y-axis at 4 and then falls 2 units for every 1 unit it moves right, the slope is -2 and the equation is y = -2x + 4. A falling line always has a negative slope.

How to Convert Point-Slope Form to Slope-Intercept Form

Point-slope form is y – y1 = m(x – x1), built from one point and a known slope. Converting it to slope-intercept form only takes two algebra steps.

  1. Start with y – 4 = 3(x – 2).
  2. Distribute the 3 on the right side: y – 4 = 3x – 6.
  3. Add 4 to both sides to isolate y: y = 3x – 2.

The equation is now in slope-intercept form, with a slope of 3 and a y-intercept of -2. The most common mistake here is forgetting to distribute the slope across both terms inside the parentheses, so double-check that step before moving on.

How to Convert Standard Form to Slope-Intercept Form

Standard form writes a line as Ax + By = C. To reach slope-intercept form, solve the equation for y.

Converting 2x + 4y = 8 to slope-intercept form
Step Equation
Start in standard form 2x + 4y = 8
Subtract 2x from both sides 4y = 8 – 2x
Divide every term by 4 y = 2 – 0.5x
Reorder to match y = mx + b y = -0.5x + 2

The slope is -0.5 and the y-intercept is 2. Dividing every term, including the constant, by the coefficient of y is the step people skip most often, so it is worth checking twice.

Four paths to slope-intercept form Four labeled boxes, two points, a graph, point-slope form, and standard form, each have an arrow pointing to a single shared box labeled y equals m x plus b. Two points A graph Point-slope form Standard form y = mx + b
Every path leads to the same slope-intercept target.

Checking Your Slope-Intercept Equation

Once you have y = mx + b, check it by substituting a point you already know is on the line. If both sides match, the equation is correct. You can also enter two points directly into the Slope Calculator to confirm the slope, intercept, and full equation in one step.

Confirm your slope and intercept instantly.

Enter your two points into the Slope Calculator to see the slope, y-intercept, and line equation calculated automatically.

FAQs About Finding Slope-Intercept Form

What Is the Formula for Slope-Intercept Form?

Slope-intercept form is y = mx + b. The variable m stands for the slope, and b stands for the y-intercept, the point where the line crosses the vertical axis.

How Do You Find Slope-Intercept Form From Two Points?

Find the slope using m = (y2 – y1) / (x2 – x1), then substitute the slope and one point into y = mx + b and solve for b. Write the final equation using the m and b you found.

How Do You Convert Point-Slope Form to Slope-Intercept Form?

Distribute the slope across the parentheses in y – y1 = m(x – x1), then add y1 to both sides to isolate y. The result is already in the form y = mx + b.

How Do You Convert Standard Form to Slope-Intercept Form?

Starting from Ax + By = C, move the x term to the other side, then divide every term by B. Reorder the result so it reads y = mx + b.

What Does a Negative Slope Mean in Slope-Intercept Form?

A negative slope means the line falls from left to right. The larger the negative number, the steeper the downward angle of the line.

Can the Y-Intercept Be Zero?

Yes. A y-intercept of zero means the line passes through the origin, the point (0, 0). The equation simplifies to y = mx with no constant term.

How Do You Find Slope-Intercept Form From a Vertical or Horizontal Line?

A horizontal line has a slope of 0, so its equation is simply y = b. A vertical line has an undefined slope and cannot be written in slope-intercept form at all, since it fails the definition of a function.

Sources

References Used in This Article

This article is general math education. Reviewed for accuracy by Prof. Dr. Khalil Mudassar, PhD. Last updated September 24, 2026.


Author

shakeel-Muzaffar
Founder & Editor-in-Chief at  ~ Web ~  More Posts

Shakeel Muzaffar is the Founder and Editor-in-Chief of MultiCalculators.com, bringing over 15 years of experience in digital publishing, product strategy, and online tool development. He leads the platform's editorial vision, ensuring every calculator meets strict standards for accuracy, usability, and real-world value. Shakeel personally oversees content quality, formula verification workflows, and the platform's commitment to publishing tools that are genuinely useful for students, professionals, and everyday users worldwide.

Leave a Comment