How to Write Linear Equations? (+FREE Worksheet!)

How to Write Linear Equations? (+FREE Worksheet!)
Algebra 1

Writing Linear Equations

Writing a linear equation means turning the facts you’re given, a slope and a point, or two points, into \(y = mx + b\). Find the slope, find the intercept, and you’re done. We’ll cover every starting point, with a solver, practice, and a worksheet maker a tap away.

Tutor-style math help

Write Linear Equations: what to notice and how to work it

Linear skill
Linear topics are about constant rate of change. The slope tells how fast y changes for each 1-unit change in x, and an intercept anchors the line on an axis.

What to notice first

Find the rate and one reliable point. With those two pieces, the line is determined.

Common student mistake

Do not mix up x-intercepts and y-intercepts. At an x-intercept, y = 0; at a y-intercept, x = 0.

Key formulas and cues

\(m=\frac{y_2-y_1}{x_2-x_1}\)
\(y=mx+b\)
\(y-y_1=m(x-x_1)\)
\(Ax+By=C\)
runrise yx

A reliable path

  1. Find slopeUse two points, a table, or the coefficient of x in slope-intercept form.
  2. Find an anchorUse a point or intercept so the line is in the right location.
  3. Check directionPositive slope rises left to right; negative slope falls left to right.

Worked examples

Find slope from two points

Example: \((1,4)\) and \((3,10)\)
  1. Change in y is 10 – 4 = 6.
  2. Change in x is 3 – 1 = 2.
  3. Divide rise by run.
Answer: \(m=3\)

Write slope-intercept form

Example: slope 3 and y-intercept -2
  1. Use y = mx + b.
  2. Put m = 3 and b = -2.
  3. Write the line.
Answer: \(y=3x-2\)
Try one before moving on
Try: Find the slope through \((2,1)\) and \((6,9)\).
Answer: \(m=\frac{9-1}{6-2}=2\).
Next step: do the matching worksheet or quiz while the method is still fresh, then come back and explain the first step in your own words.
Illustration of students learning Writing Linear Equations

Writing a linear equation is the skill of turning whatever you’re given, a slope and a point, or two points, into the equation \(y = mx + b\). It comes up constantly, because once you have the equation you can graph the line, predict values, and compare it to others. The recipe is always the same: find the slope, then find the intercept.

In short: find the slope \(m\), find the y-intercept \(b\) (read it or solve for it), then write \(y = mx + b\). For example, the line through \((0,1)\) and \((2,7)\) is \(y = 3x + 1\).

The big idea

Slope First, Intercept Second

Every non-vertical line is \(y = mx + b\). The slope \(m\) sets the tilt; the intercept \(b\) sets where it crosses the y-axis. Whatever the problem gives you, your job is to pin down those two numbers.

How to write the equation (3 steps):

  1. Find the slope (from two points: \(\tfrac{y_2-y_1}{x_2-x_1}\); or it’s given).
  2. Find \(b\): read it if you have the y-intercept, or plug a point into \(y = mx + b\) and solve.
  3. Write \(y = mx + b\).
Tutor tip: If one of your points has \(x = 0\), that point is the y-intercept, \(b\) is its y-value, no solving needed.
Worked on the grid

Through \((0,1)\) and \((2,7)\)

Slope \(=\tfrac{7-1}{2-0}=3\); the point \((0,1)\) gives \(b=1\). So \(y = 3x + 1\). The line below climbs 3 for every 1 across, crossing the y-axis at 1.

Write a line’s equation
y = 3x + 1(0, 1)

Worked Examples

Slope first, intercept second, each finished line is graphed through its given point.

Example A, Two points (intercept given)

Through \((0,1)\) and \((2,7)\).

  1. Slope: \(m = \dfrac{7 – 1}{2 – 0} = 3\).
  2. One point has \(x = 0\), so it’s the intercept: \(b = 1\).
  3. Write it: \(y = 3x + 1\).

Answer: \(y = 3x + 1\)

y = 3x + 1(0, 1)

Example B, Slope and a point

Slope 2 through \((3,1)\).

  1. Plug into \(y = mx + b\): \(1 = 2(3) + b\).
  2. Solve: \(1 = 6 + b\), so \(b = -5\).
  3. Write it: \(y = 2x – 5\).

Answer: \(y = 2x – 5\)

y = 2x − 5(3, 1)

Example C, Two points (solve for b)

Through \((1,1)\) and \((2,4)\).

  1. Slope: \(m = \dfrac{4 – 1}{2 – 1} = 3\).
  2. Use \((1,1)\): \(1 = 3(1) + b\), so \(b = -2\).
  3. Write it: \(y = 3x – 2\).

Answer: \(y = 3x – 2\)

y = 3x − 2(1, 1)

Example D, A horizontal result

Through \((2,3)\) and \((4,3)\).

  1. Slope: \(m = \dfrac{3 – 3}{4 – 2} = 0\).
  2. Zero slope means a flat line at the shared \(y\)-value.
  3. Write it: \(y = 3\).

Answer: \(y = 3\)

y = 3(2, 3)

Where You’ll Use It

Any steady real-world relationship becomes a linear equation: a gym’s flat fee plus a per-class rate, a tank draining at a constant speed, a phone plan’s monthly cost. Write the equation once and you can answer “what’s the cost at 30 classes?” or “when will the tank be empty?” without re-reading the data.

Slip-Ups That Cost Easy Points

  • Run over rise. Slope is the change in \(y\) over the change in \(x\), y on top.
  • Forgetting to solve for \(b\). If the y-intercept isn’t given, plug a point in and solve; don’t guess \(b = 0\).
  • Sign mistakes plugging in. \(1 = 2(3) + b\) gives \(b = -5\), not \(5\).
  • Order of subtraction. Keep the points in the same order top and bottom of the slope fraction.

Your Turn: Write the Equation

Write each in \(y = mx + b\). Reveal to check.

  1. Through \((0,2)\) and \((4,10)\)
  2. Through \((1,1)\) and \((2,4)\)
  3. Through \((0,-1)\) and \((5,9)\)
  4. Through \((2,3)\) and \((4,3)\)
Show answers
  1. \(\color{blue}{y = 2x + 2}\)
  2. \(\color{blue}{y = 3x – 2}\)
  3. \(\color{blue}{y = 2x – 1}\)
  4. \(\color{blue}{y = 3 \text{ (slope } 0)}\)
Keep practicing

Make Your Own Worksheet

Generate fresh write-the-equation problems with a full answer key, print or save as a PDF.

New problems every click, never the same sheet twice
Step-by-step answer key so you can self-check
✍

Frequently Asked Questions

How do you write linear equations in slope-intercept form?

Find the slope m and the y-intercept b, then substitute them into y = mx + b. If you know the slope and one point, plug them in to solve for b. With slope 4 through (2, 3): 3 = 4(2) + b, so b = −5 and the equation is y = 4x − 5. For a quick check, substituting x = 2 should give y = 3.

How do you write a linear equation given two points?

First find the slope with m = (y₂ − y₁)/(x₂ − x₁), then use either point to find b. For (1, 5) and (4, 11), the slope is (11 − 5)/(4 − 1) = 6/3 = 2. Substituting (1, 5) into y = 2x + b gives 5 = 2 + b, so b = 3. The equation is y = 2x + 3, and (4, 11) checks out: 2(4) + 3 = 11.

How do you write linear equations from a table?

Pick two rows and find the rate of change: the change in y divided by the change in x. Then find the y-value when x = 0, which is the y-intercept. If a table shows x = 0, 1, 2, 3 and y = 7, 10, 13, 16, y increases by 3 each time x increases by 1, so m = 3, and b = 7. The equation is y = 3x + 7.

How do you write linear equations from word problems?

Look for a rate, which becomes the slope, and a starting amount, which becomes the y-intercept. Phrases like per hour or each signal the rate; words like fee, initial or starts with signal the starting value. If a plumber charges a $60 visit fee plus $45 per hour, the cost is C = 45h + 60. For a 3-hour job, C = 45(3) + 60 = $195.

How do you write linear equations in standard form?

Standard form is Ax + By = C, where A, B and C are integers and A is usually positive. Start from any form, move the x and y terms to one side and clear fractions. For y = (2/3)x − 4, multiply every term by 3 to get 3y = 2x − 12, then subtract 2x from both sides: −2x + 3y = −12. Multiply by −1 to get 2x − 3y = 12.

How do you write linear equations in point-slope form?

Point-slope form is y − y₁ = m(x − x₁). Plug in the slope and the coordinates of one point, and you are done; there is no need to find the y-intercept first. For slope −2 through (3, 1), the equation is y − 1 = −2(x − 3). Distributing and adding 1 to both sides turns it into slope-intercept form: y = −2x + 7.

Related Topics

Continue Your Study

Ready for the next step? Pick up right where this lesson leaves off:

Related to This Article

What people say about "How to Write Linear Equations"?

No one replied yet.

Leave a Reply