How to Find the Slope-Intercept Form of a Line

Why do so many algebra problems ask you to write a line “in slope-intercept form”? Because y = mx + b shows a line’s steepness and starting point at a single glance. This guide covers the four starting points you will meet most: two coordinates, a graph, point-slope form, and standard form. Each one gets a worked example you can check in under a minute.

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 b where the line crosses the y-axis, then count rise over run.
  • From point-slope form y – y1 = m(x – x1), distribute m and move the constant to isolate y.
  • From standard form Ax + By = C, solve for y; the slope is -A/B and the intercept is C/B.

What Is Slope-Intercept Form?

Slope-intercept form is the line equation y = mx + b, where m is the slope and b is the y-intercept. Once a line is in this form, you can read both numbers without any extra math.

The slope m tells you how much y changes each time x grows by 1. The intercept b is the y-value where the line crosses the vertical axis, at x = 0. In y = 3x + 5, the slope is 3 and the line crosses the y-axis at (0, 5).

Slope itself is rise over run between two points, and our guide to slope and distance between two points explains that formula in depth. Here you only need the result.

Only straight lines fit this form. An equation with an x-squared term curves into a parabola, and our walkthrough on how to solve a quadratic equation handles that case. Every method below ends at the same y = mx + b target; only the starting information changes.

Four Paths to Slope-Intercept Form Four boxes list the starting formats and their first step: two points, find m then b; graph, read b then count rise over run; point-slope, distribute m then add y1; standard form, isolate y and divide by B. Lines from all four boxes meet at one box labeled y equals m x plus b. Four starting points, one target Two points: find m, then solve for b Graph: read b, then count rise over run Point-slope: distribute m, then add y1 Standard form: isolate y, divide by B y = mx + b
Every starting format leads to the same slope-intercept target.

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

Find the slope from the two points, then substitute that slope and one point into y = mx + b to solve for b. Take the points (2, 3) and (5, 9).

  1. Find the slope: m = (9 – 3) / (5 – 2) = 6 / 3 = 2.
  2. Plug the point (2, 3) 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 with the second point. At x = 5, y = 2(5) – 1 = 9, which matches, so the equation is correct.

Negative coordinates need extra care. For (-1, 4) and (3, -2), the run is 3 – (-1) = 4, not 2. The slope is -6 / 4 = -1.5, and 4 = -1.5(-1) + b gives b = 2.5, so y = -1.5x + 2.5.

To confirm the slope and intercept for any pair of points, the Slope Calculator returns m, b, and the full equation in one step.

Slope-Intercept Form From Two Points A to-scale grid shows the line y equals 2x minus 1 passing through (2, 3) and (5, 9). A dashed run of 3 and rise of 6 give a slope of 2, and the line crosses the y-axis at (0, -1). A side panel lists the three solving steps. Points (2, 3) and (5, 9): slope 2, y-intercept -1 x y 5 5 run = 3 rise = 6 (2, 3) (5, 9) b = -1 Step 1: find the slope m = (9 – 3) / (5 – 2) = 6 / 3 = 2 Step 2: plug in (2, 3) 3 = 2(2) + b, so b = -1 Step 3: write the line y = 2x – 1 Check: 2(5) – 1 = 9
Drawn to scale: rise 6 over run 3 gives a slope of 2, and the line crosses the y-axis at -1.

How Do You Find Slope-Intercept Form From a Graph?

Read b where the line crosses the y-axis, then count the rise and run to a second grid point to get m. Reading a graph is often faster than the two-point method, because the intercept needs no calculation.

  • Find where the line crosses the vertical axis. That value is b.
  • From that crossing, count units up or down, then units right, to reach a second clear point.
  • Divide the rise by the run to get m.
  • Write y = mx + b with the slope you counted and the intercept you read.

Suppose a line crosses the y-axis at 4, 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.

Fractional slopes work the same way. A line that crosses at 1 and rises 2 units over 3 has m = 2/3, so y = (2/3)x + 1. The point (3, 3) confirms it, because (2/3)(3) + 1 = 3.

Count only between lattice points, where the line crosses grid corners exactly. Points between gridlines add guesswork that shows up as a wrong slope.

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

Distribute the slope across the parentheses, then move the constant to the right side so y stands alone. Point-slope form, y – y1 = m(x – x1), is built from one point and a known slope.

  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 slope is 3 and the y-intercept is -2. The most common mistake is multiplying only the x by the slope and leaving the second term alone.

Signs inside the form trip up many students. In y + 1 = (-2/3)(x – 6), the point is (6, -1), because y – (-1) equals y + 1.

Distributing gives y + 1 = (-2/3)x + 4, since -2/3 times -6 is positive 4. Subtract 1 from both sides to reach y = (-2/3)x + 3.

Check it at x = 6: -2/3 times 6 is -4, and -4 + 3 = -1. That matches the original point exactly.

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

Solve Ax + By = C for y: subtract Ax from both sides, then divide every term by B. Here is 2x + 4y = 8 worked through.

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 pattern gives a shortcut: the slope is -A/B and the intercept is C/B. For 2x + 4y = 8, that is -2/4 = -0.5 and 8/4 = 2, matching the table.

A negative B is where most errors hide. For 3x – 2y = 12, subtracting 3x gives -2y = -3x + 12.

Dividing every term by -2 flips both signs, so y = 1.5x – 6. At x = 4, y = 0, and 3(4) – 2(0) = 12 confirms it.

Standard Form Shortcut The equation 3x minus 2y equals 12 has A equal to 3, B equal to negative 2, and C equal to 12. The slope is negative A over B, which is 1.5, and the intercept is C over B, which is negative 6, giving y equals 1.5x minus 6. Shortcut: m = -A/B and b = C/B 3x – 2y = 12 A = 3 B = -2, C = 12 m = -A/B = -3 / -2 = 1.5 b = C/B = 12 / -2 = -6 y = 1.5x – 6 Dividing by a negative B flips the sign of every term.
Read A, B, and C from standard form, and the slope and intercept follow in two divisions.

How Do You Check Your Equation and Avoid Common Mistakes?

Substitute a point you know lies on the line; when both sides match, the equation is correct. A second check sets x = 0 and confirms that y equals b.

Most wrong answers come from five repeat errors:

  • Subtracting coordinates in a different order on the top and bottom of the slope fraction, which flips the sign.
  • Treating a minus sign in point-slope form as part of the point, so (2, 4) becomes (-2, -4).
  • Multiplying only the x term by the slope during distribution.
  • Dividing the x and y terms by B but leaving C unchanged.
  • Forcing a vertical line such as x = 3 into this form, when its slope is undefined.

The finished form also pays off beyond one problem. Lines with the same m are parallel, so y = 2x + 7 never meets y = 2x – 1.

Keep fractions exact: Carry a slope like -2/3 as a fraction until the last step. Rounding it to -0.67 early shifts b and makes your check point miss by a small amount.
Confirm your slope and intercept instantly.

Enter any 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.

What Is the Difference Between Slope-Intercept and Point-Slope Form?

Slope-intercept form uses the slope and the y-intercept. Point-slope form, y – y1 = m(x – x1), uses the slope and any one point on the line. Both describe the same line, and distributing converts one into the other.

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 Standard Form to Slope-Intercept Form?

Starting from Ax + By = C, subtract Ax from both sides, then divide every term by B. The slope becomes -A/B and the y-intercept becomes C/B. For 2x + 4y = 8, that gives y = -0.5x + 2.

Why Does My Equation Fail When I Check a Point?

A sign error is the usual cause. It often comes from subtracting a negative coordinate or dividing by a negative B. Recheck the slope first, then redo the step where you solved for b.

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, such as y = 4x.

How Do You Write a Horizontal or Vertical Line in Slope-Intercept Form?

A horizontal line has a slope of 0, so its equation is simply y = b, such as y = 5. A vertical line such as x = 3 has an undefined slope, so it has no slope-intercept form at all.

Sources

References Used in This Article

This article is general math education on writing straight-line equations. Curves such as parabolas need different methods. Reviewed for accuracy by Prof. Dr. Khalil Mudassar, PhD. Last updated September 26, 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.