Skip to content
LoveToCalc

Definition — what does that mean?

Equation with x on both sides

Move every x-term to one side and every number to the other. What is left is an equation you already know how to solve.

In Swedish: Ekvation med x i båda led

Equation with x on both sides

The relation

ax+b=cx+d

A linear equation with the unknown on both sides: ax + b = cx + d. Gather the x-terms on one side and the numbers on the other, then divide by a − c.

Solve for
Solved for x

x=d−ba−c

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

    ax−cx+b=d

  3. Subtract b from both sides.

    ax−cx=d−b

  4. Take x out of both terms as a common factor.

    (a−c)x=d−b

  5. Divide both sides by a−c.

    x=d−ba−c

x=3

x equals (11 minus 2) divided by (5 minus 2), equals 9 divided by 3, equals 3

Working3 steps

Practice questions

You are given

  • a=1
  • b=3
  • c=4
  • d=-24

The method

  1. Subtract cx from both sides, so the x-terms are on the left: ax − cx + b = d.
  2. Subtract b from both sides: ax − cx = d − b.
  3. Take x out as a factor: (a − c) · x = d − b.
  4. Divide by a − c: x = (d − b) / (a − c).

Solve 5x + 2 = 2x + 11. Subtract 2x: 3x + 2 = 11. Subtract 2: 3x = 9. Divide by 3: x = 3. Check: left 5 · 3 + 2 = 17, right 2 · 3 + 11 = 17. ✓

The two sides are two straight lines, y = 5x + 2 and y = 2x + 11, and the solution is the x where they cross.

A second example, with a negative

Solve 3x + 8 = 6x − 4. Subtract 3x: 8 = 3x − 4. Add 4: 12 = 3x. So x = 4. Check: left 3 · 4 + 8 = 20, right 6 · 4 − 4 = 20. ✓

Moving the x-terms to the right here keeps the coefficient positive. Moving them to the left gives −3x + 8 = −4 and then x = 4 as well, but with a negative coefficient to divide by, which is where signs slip.

When there is no single solution

If a = c the x-terms cancel, and what remains is b = d.

Equation After cancelling Result
2x + 3 = 2x + 5 3 = 5 no solution
2x + 3 = 2x + 3 3 = 3 every x is a solution

In the graph the first pair are parallel lines that never meet, and the second pair are the same line. See parallel lines.

Where to go next

Common mistakes

Common questions

Does it matter which side the x-terms go to? No. The answer is the same. Choosing the side where the coefficient stays positive only makes a sign mistake less likely.

How do I know the answer is right? Put it into both sides of the original equation. If both sides give the same number, x is a solution.

Looking for another letter? The formula solved for each one
Solved for each letter
Solve forRearrangedWith the numbersComes to
acx+d−bx2·3+11−235
xd−ba−c11−25−23
bcx+d−ax2·3+11−5·32
cax+b−dx5·3+2−1132
dax+b−cx5·3+2−2·311

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.