Skip to content
LoveToCalc

Definition — what does that mean?

Linear equation

An equation where x appears only to the first power. Undo what was done to x, in reverse order, on both sides.

In Swedish: Linjär ekvation

Linear equation

The relation

ax+b=c

An equation with the unknown to the first power only: ax + b = c. Subtract b from both sides, then divide both sides by a.

Solve for
Solved for x

x=c−ba

Show how the formula is rearranged
  1. ax+b=c
  2. Subtract b from both sides.

    ax=c−b

  3. Divide both sides by a.

    x=c−ba

x=4

x equals (17 minus 5) divided by 3, equals 12 divided by 3, equals 4

Working3 steps

Practice questions

You are given

  • a=2
  • b=12
  • c=30

The method

x was first multiplied by a and then b was added. Undo it in the opposite order, doing the same to both sides so the equation stays true:

  1. Subtract b from both sides: ax = c − b.
  2. Divide both sides by a: x = (c − b) / a.

Solve 3x + 5 = 17. Subtract 5: 3x = 12. Divide by 3: x = 4. Check: 3 · 4 + 5 = 17. ✓

In a graph, the line y = 3x + 5 meets the horizontal line y = 17 at x = 4. Solving the equation is finding where the straight line reaches a given height.

The sign of b

Solve 5x − 4 = 21. The constant is −4, so subtracting it means adding 4: 5x = 25, so x = 5.

A common wrong line is 5x = 21 − 4 = 17, giving x = 17/5. It is a plausible number and it is wrong: check it and 5 · 17/5 − 4 = 13, not 21. Moving a term across the equals sign changes its sign, and the reliable way to see it is to say “add 4 to both sides” out loud.

A negative answer

Solve 4x + 9 = 1. Subtract 9: 4x = −8. Divide by 4: x = −2. Check: 4 · (−2) + 9 = 1. ✓

A negative x is not a sign something went wrong. It only means the line meets y = 1 to the left of the y-axis.

When the equation cannot be solved

If a = 0 the equation is b = c, which does not contain x. It is then true for every x if b = c and for no x otherwise, so there is no single answer to find.

Where to go next

Common mistakes

Common questions

Is x = (c − b)/a the same as x = c/a − b/a? Yes. Dividing the numerator term by term gives the second form. What is not the same is c/a − b, where b has not been divided.

Why is it called linear? Because x appears only to the first power. Plotting y = ax + b gives a straight line, and the solution is where that line reaches the value c.

What if there are fractions or brackets? Remove them first: multiply both sides by the common denominator, or expand the brackets. What is left is an equation of this form.

Looking for another letter? The formula solved for each one
Solved for each letter
Solve forRearrangedWith the numbersComes to
ac−bx17−543
xc−ba17−534
bc−ax17−3·45
cax+b3·4+517

Last reviewed October 15, 2026 ·How pages are reviewed

Ready-made worksheets with this formula

Sheets that ask this formula, with their answer keys. Open one to see the questions or print it.

Middle school

  • Linear equations

    Ten equations of the form ax + b = c and six with x on both sides. The answers are whole numbers, some of them negative. Writing space under each question, and the first one worked in the key.

AlgebraAll formulas

Put this formula on your site

Copy the code into your page where the formula card should appear. It loads from lovetocalc.com, so it stays current on its own — all we ask is that the credit line comes with it.