The answer is y − y₁ = m(x − x₁), point-slope form, which you rearrange into y = mx + b; plug your slope in for m, plug the point's coordinates into (x₁, y₁), then solve for b by substituting your numbers: b = y₁ − m·x₁. The boundary condition is simple. You need the slope and one point that actually lies on the line — and when the slope is undefined (a vertical line), the formula doesn't apply at all; you write x = a, where a is the x-coordinate of the point.

What follows is the practical version. Four worked problems, the rearrangement done in a different order than most textbooks show it, and a warning about the sign error that survives roughly every other check. If you only remember one thing, make it this: the intercept is a leftover, not a guess. Compute it and move on.

What "Given Slope and Point" Actually Gives You to Work With

Two pieces of information pin down exactly one line, and that's the whole reason this problem type exists. The slope fixes the steepness; the single point fixes the location. Infinite lines share any one slope, and infinite lines pass through any one point — only the pair locks a unique line.

The formula you're feeding them into looks like this:

Point-slope form: y − y₁ = m(x − x₁) Slope-intercept form: y = mx + b The bridge: b = y₁ − m·x₁

Note what the bridge does. It computes b directly from the two things you were handed, before you write a single line of the final equation. Many students skip this and instead push the algebra through the full point-slope equation, which works but creates more chances to drop a sign.

A distinction worth stating early: slope-intercept form has a different name depending on where you learned it. In the United States, algebra textbooks overwhelmingly call y = mx + b "slope-intercept form." Some international curricula and older texts call the same equation "the equation of a straight line" or use y = a + bx, with the intercept first. The math is identical; the letter swapped is the intercept. If a problem sheet uses y = c + dx, translate: c is the intercept, d is the slope.

One more edge case before the worked examples. A horizontal line has slope exactly 0. Then the equation collapses to y = y₁, because b = y₁ − 0·x₁ = y₁. That's not a special case you need a separate formula for — the standard method handles it correctly if you don't panic at m = 0. Vertical lines are the ones that genuinely break the pattern, and I'll come back to those.

Worked Example One: A Positive Slope With a Clean Integer Intercept

Take slope m = 3 and point (2, 7). This is the friendly case — whole numbers, positive slope, an intercept that comes out clean. Work it in the order below and you won't second-guess yourself.

1: Write the point-slope equation with the point's coordinates substituted: y − 7 = 3(x − 2). 2: Compute the intercept directly: b = 7 − 3·2 = 7 − 6 = 1. 3: Write the slope-intercept form: y = 3x + 1. 4: Verify by plugging the original point back in: 7 = 3·2 + 1 = 7. Correct.

The verification step takes ten seconds and catches almost every arithmetic slip. Make it a habit. If step 4 fails, the error is in step 2 or a sign in step 1, never in the final assembly.

There's a useful reading of this example that textbooks rarely spell out. The intercept b = 1 tells you the line crosses the vertical axis one unit above the origin, and the slope of 3 tells you that for every single step right, the line climbs three. So from (0, 1) you can walk to (1, 4), (2, 7) — and there's your original point sitting on the line exactly where it should. This is the "rise over run" idea restated, but seeing your given point emerge as one of the plotted steps is a stronger confidence check than plugging numbers.

A quick note on precision: if you're graphing this by hand, plot the y-intercept first at (0, 1), then move up 3 and right 1 to mark a second point. Connect with a ruler. The given point (2, 7) should land on the line — if it doesn't, your ruler slipped.

Worked Example Two: A Negative Slope Where the Intercept Comes Out Fractional

Negative slopes are where the sign errors live, and fractional intercepts are where people convince themselves they've made a mistake when they haven't. Take m = −2 and point (5, 3).

1: Substitute into point-slope: y − 3 = −2(x − 5). 2: Compute b = 3 − (−2)·5 = 3 + 10 = 13. 3: Slope-intercept form: y = −2x + 13. 4: Verify: −2·5 + 13 = −10 + 13 = 3. Correct.

Watch step 2 closely. The subtraction of a negative product is where the error hides. −2 times 5 is −10; then 3 minus −10 is 3 plus 10, which is 13. Students who compute b = 3 − 2·5 = −7 have dropped the sign on the slope, and the line they produce passes through (5, −7), not (5, 3).

Now the fractional case. Take m = 3/4 and point (2, 1). Then b = 1 − (3/4)·2 = 1 − 3/2 = −1/2. So the equation is y = (3/4)x − 1/2. That's correct, and it's ugly, and it's still the answer. Fractional intercepts are normal when the given point doesn't sit on a nice grid alignment with the slope. Don't round to a decimal unless the problem asks; keep fractions exact unless a decimal is specified.

This is also where the "leftover" framing earns its keep. b is not a value you should be able to eyeball. It's arithmetic. Trust the arithmetic.

Why the Sign on b Causes More Wrong Answers Than Any Other Step

The single most common error in this problem type isn't algebraic — it's a sign flip on the slope when computing b. A classroom-scale observation from algebra teaching materials (the "sign error" is routinely flagged as the most frequent mistake in linear-equation exercises) puts it plainly: the negative product is where the mistake lands, not the final assembly.

Here's the failure case in full. Given m = −3 and point (−4, 2). Correct: b = 2 − (−3)(−4) = 2 − 12 = −10, so y = −3x − 10. The wrong version: b = 2 − 3·(−4) = 2 + 12 = 14, giving y = −3x + 14. Both equations pass through no common point with the original data except by accident. Yet the wrong version will often survive a casual "does it look reasonable?" check, because −3 slope and +14 intercept produces a plausible-looking line.

The protection is the verification step: plug the given point into your candidate equation. If −3·(−4) − 10 = 12 − 10 = 2, you're right. The wrong candidate gives −3·(−4) + 14 = 12 + 14 = 26, which is nowhere near 2. One substitution catches it. Two constants are the only place sign errors can hide, so check both.

A second subtle trap: mixing up which coordinate goes where. The point (−4, 2) has x₁ = −4 and y₁ = 2. If you swap them, you'll get b = −4 − (−3)(2) = −4 + 6 = 2, and a completely wrong line. Read the ordered pair carefully every time.

Setting Up the Equation Without Rearranging Point-Slope at All

There's a faster route for students who freeze on rearrangement. Because slope-intercept form is y = mx + b, and you know m and one point, you can treat b as the single unknown and solve for it in one line — no point-slope form needed.

1: Write y = mx + b with the slope substituted: y = −2x + b (using the example from earlier). 2: Substitute the point's coordinates into the equation: 3 = −2·5 + b. 3: Solve for b: 3 = −10 + b, so b = 13. 4: Write the final equation: y = −2x + 13.

This is the same computation as b = y₁ − m·x₁, just performed as a one-variable equation. The advantage is that it's more intuitive — you're literally asking "what intercept makes this line pass through my point?" The disadvantage is that if you forget to subtract the product correctly, you're back in sign-error territory.

For students who prefer the formal route, point-slope into slope-intercept is the textbook order: start with y − y₁ = m(x − x₁), distribute m across the parentheses, then add y₁ to both sides. Both methods give the identical result. Pick whichever keeps your signs straight.

A practical note for tests and homework: if the problem says "write in slope-intercept form," write y = mx + b with numbers. Don't leave it as point-slope. Graders lose patience with forms that weren't requested.

What Changes When the Point Is the Intercept or the Origin

The method handles these cleanly, but they're worth walking through because they reveal how the formula behaves at the edges.

If the given point is the y-intercept itself — say point (0, 5) with slope m = 4 — then b = 5 − 4·0 = 5, so y = 4x + 5. The intercept is simply the y-coordinate, which is exactly what "y-intercept" means. The formula confirms what intuition already knows.

If the given point is the origin (0, 0) with slope m = −7, then b = 0 − (−7)·0 = 0, so the equation is y = −7x. A line through the origin always has b = 0. That's a useful sanity check for any problem where the point happens to be (0, 0).

If the given point is on the x-axis, like (6, 0) with slope m = 2, then b = 0 − 2·6 = −12, so y = 2x − 12. The x-intercept is at x = 6, which checks out: 0 = 2·6 − 12. This is the least intuitive of the three edge cases, because the intercept is negative while the given point is a positive x-value — and it's correct.

If the given point is on the vertical axis and the slope is undefined, the line is x = the x-coordinate. That's the case the formula cannot handle, and I'll treat it properly next.

The Vertical Line Case the Formula Can't Handle

An undefined slope means the line is vertical, and vertical lines fail both point-slope and slope-intercept forms. The reason is structural: vertical lines aren't functions of x, so writing them as y = mx + b is impossible — there's no single y for each x. The correct equation is x = a, where a is the x-coordinate of any point on the line.

Given slope "undefined" and point (3, 8), the line is x = 3. That's it. No b, no m. If a worksheet forces you to write slope-intercept form for this data, the honest answer is "not possible" — the line isn't a function.

There's a related trap in problems that give two points rather than a slope and a point. If the two points share the same x-coordinate, the slope is undefined. If they share the same y-coordinate, the slope is 0, and the line is horizontal. Both of those edge cases appear on standard algebra assessments precisely because they break the default procedure.

One more failure scenario worth flagging: a problem that asks for slope-intercept form when the slope is given as "vertical." Some automated homework systems accept x = a; others require you to flag the line as non-representable in slope-intercept form. Check the system's accepted answer format before submitting — the correct answer in a format the grader doesn't recognize scores as zero.

Three Independent Checks That Catch a Wrong Equation

Verification shouldn't be one step; it should be a quick routine. Three checks, in order, catch nearly everything.

Check What to Do What It Catches
Point substitution Plug the given point into y = mx + b; both sides must equal Sign errors on b, swapped coordinates
Slope confirmation Plug a second distinct point from the line (e.g., the y-intercept) into the equation Wrong m, arithmetic on slope
Intercept read-off Confirm b is where the line crosses the vertical axis by plotting it Fraction mistakes, mislabelled intercept

The first check is mandatory on every problem. The second and third are refinements — the second is best when a graphing calculator is allowed, the third when you're sketching by hand.

One caution on the second check: the y-intercept itself is a point you can test. From y = 3x + 1, the intercept point is (0, 1). Plug it in: 1 = 3·0 + 1. Tautology — it always works, because it's the definition of b. So use a different point, like (1, 4) from the first example. That tests something. A check that can't fail isn't a check.

The point-substitution check is the only one that matters for most people. Make it reflex.

Comparing Three Approaches When the Slope Is a Fraction or a Decimal

Fractional slopes slow people down, and different approaches handle them differently. Here's a side-by-side on the same problem: m = 2/5, point (10, 4).

Approach Steps b Result Best For Weakness
Direct formula b = y₁ − m·x₁ One substitution and one arithmetic step 4 − (2/5)·10 = 4 − 4 = 0 People comfortable with fractions Slower if fractions trip you up
Point-slope rearrangement Write y − 4 = (2/5)(x − 10), expand, isolate y 0 (same line, y = (2/5)x) Structured learners More lines to write, more sign exposure
Substitute into y = mx + b 4 = (2/5)(10) + b, solve 0 Everyone who wants one checkable step Same fraction arithmetic

Conveniently, this problem lands on an integer, which is a design feature of textbook problems: slopes and x-coordinates are often chosen so the product is tidy. Real-world data won't be so kind. If the slope is 0.375 and the point is (13, 8), then b = 8 − 0.375·13 = 8 − 4.875 = 3.125, so y = 0.375x + 3.125. Decimal coefficients are legitimate answers; round only if the problem specifies.

Which approach wins? For fractional slopes where the product is clean, all three are equivalent and the direct formula is fastest. For decimal slopes where precision matters, the direct formula in a calculator is safest — one operation, one result, one verification. For students who've been burned by sign errors, the substitute-into-y-mx-plus-b route is the most transparent.

Common Mistakes, and the One Habit That Prevents Each

A checklist, not a lecture. Here's what goes wrong, why, and what stops it.

Mistake What Goes Wrong Prevention
Sign flip when subtracting m·x₁ b takes the wrong sign when the product is negative Parenthesize the product before subtracting; check the sign on both terms
Swapping x₁ and y₁ Intercept corresponds to a different point entirely Read the ordered pair aloud: x first, then y
Forgetting to substitute the slope b computed with m = 1 instead of the given slope Write the slope on your paper before the point
Rounding fractions too early Accumulated error in the intercept Keep fractions exact until the final answer
Trying slope-intercept on a vertical line No valid equation exists Check whether the problem specifies undefined slope first

The single habit that prevents the first four: write b's computation as a formula, not as mental arithmetic. "b = y₁ − m·x₁" then substitute. The visual formula keeps the parentheses honest.

One reminder about what not to do: don't try to "correct" a negative intercept because it looks wrong. A line with a negative b is perfectly valid. Fractional and negative intercepts are features of the data, not errors.

The best practice set is four problems a day for a week, alternating signs and point quadrants. By the third day, the sign flip stops happening.

FAQ

Is slope-intercept form always y = mx + b?

Yes in the standard US convention, but some textbooks write y = a + bx or y = c + dx. The variable on the front is the intercept and the variable attached to x is the slope, regardless of letters used. If your course uses y = a + bx, translate b to slope and a to intercept. Don't let a letter swap throw you — the structure is identical.

What if the given slope is undefined?

Then the line is vertical and no slope-intercept form exists. Write x = a, where a is the x-coordinate of the given point. For example, undefined slope through (3, 8) gives x = 3. This line is not a function of x, so y = mx + b is structurally impossible — not just hard to compute.

Can I use this method if I'm given two points instead of a point and the slope?

Yes, with one extra step: compute the slope from the two points using m = (y₂ − y₁)/(x₂ − x₁), then proceed exactly as before. If the two points share an x-coordinate, the slope is undefined and you jump to the vertical-line case. Two points sharing a y-coordinate give slope 0, producing a horizontal line y = y₁.

Does it matter which point I pick when two are given?

No. Any point on the line produces the same b when paired with the correct slope. This is a useful consistency check — compute b from each point separately and confirm the results match. If they differ, the slope is wrong, not the points.

Why is my answer marked wrong when it looks identical to the book's?

Usually a formatting quirk: the system may require y = mx + b with m first, integer coefficients, no decimals, or a specific fraction format. Check whether the grader accepts decimals or requires simplified fractions. Also confirm you didn't leave the answer in point-slope form when the prompt demanded slope-intercept.

Can b ever be zero?

Yes, whenever the line passes through the origin. If the given point is (0, 0), b is always 0. If the given point is any point satisfying y₁ = m·x₁, b is also 0 — the line crosses the origin even though your given point isn't there.

What's the fastest way to check a wrong fractional answer?

Substitute the given point into your candidate equation and verify both sides equal. If they don't, recompute b with the product in parentheses before subtracting. Fraction errors almost always surface at step one of the computation, not the assembly.

Is this problem type on standardized tests?

Yes — linear equations in slope-intercept form appear on the SAT math section, ACT math, and most state algebra assessments. The format is usually "a line has slope m and passes through the point (...); write the equation." The method above is exactly what the test expects.