Skip to content

How to solve linear equations, step by step

To solve a linear equation, undo what has been done to the variable one step at a time, doing the same thing to both sides so the equation stays balanced. Simplify each side, gather the variable terms on one side and the numbers on the other, then divide by the coefficient. Finish by substituting your answer into the original equation to check it.

What it means to solve an equation

An equation says two expressions are equal. Solving it means finding the value of the variable that makes that statement true. For 3x + 7 = 22, the answer x = 5 works because 3 times 5, plus 7, is 22.

The picture to keep in mind is a balance scale. Whatever you do to one side, you must do to the other, or it tips. Adding, subtracting, multiplying, or dividing both sides by the same number (never dividing by zero) keeps the balance, and each move gives a simpler equation with the same solution.

A linear equation is one where the variable appears only to the first power: no x squared, and no x in a denominator. Most linear equations have exactly one solution; the two exceptions are covered below.

The general method

The same few moves solve almost every linear equation you will meet in middle school and Algebra I. Not every equation needs every step, but the order below avoids most trouble:

Worked example: a two-step equation

Start with an equation that needs two moves. Undo the addition first, then the multiplication, which is the reverse of the order of operations.

Problem3x+7=22

  1. 3x+7−7=22−7

    Subtract 7 from both sides to undo the plus 7.

  2. 3x=15

    Simplify both sides.

  3. 3x3=153

    Divide both sides by 3 to undo the multiplication.

  4. x=5

    Simplify.

  5. 3(5)+7=22

    Check: 15 plus 7 is 22, so the solution is correct.

Answerx=5

Worked example: parentheses and variables on both sides

When the variable appears on both sides, gather it on one side first. Subtracting the smaller variable term keeps the coefficient positive, which avoids sign errors.

Problem5(x−2)=2x+11

  1. 5x−10=2x+11

    Distribute the 5 to both terms inside the parentheses.

  2. 3x−10=11

    Subtract 2x from both sides.

  3. 3x=21

    Add 10 to both sides.

  4. x=7

    Divide both sides by 3.

  5. 5(7−2)=25,2(7)+11=25

    Check: both sides equal 25, so x = 7 is the solution.

Answerx=7

Worked example: an equation with fractions

Fractions are where most mistakes happen, so clear them first by multiplying every term on both sides by the least common denominator.

Problem2x3−1=x2+3

  1. 6(2x3−1)=6(x2+3)

    The denominators are 3 and 2, so multiply both sides by 6.

  2. 4x−6=3x+18

    Distribute the 6 to every term: 6 times 2x/3 is 4x, and 6 times x/2 is 3x.

  3. x−6=18

    Subtract 3x from both sides.

  4. x=24

    Add 6 to both sides.

  5. 2(24)3−1=15,242+3=15

    Check: both sides equal 15.

Answerx=24

When there is no solution, or every number works

Sometimes the variable disappears. 2(x + 3) = 2x + 6 simplifies to 2x + 6 = 2x + 6, which is true for every value of x, so the equation has infinitely many solutions. 2(x + 3) = 2x + 5 becomes 6 = 5 after subtracting 2x from both sides, which is never true, so there is no solution.

Neither result is a mistake. They are answers, and recognizing them is part of the grade 8 standards in California.

How equation solving builds in California

Under the California Common Core State Standards for Mathematics, solving equations grows steadily from grade 6 through Algebra I:

Common mistakes and how to avoid them

Most errors in equation solving are small slips that a quick check would catch. These come up most often:

Practicing so it sticks

Say each step out loud before you write it: what is being done to x, and how do you undo it? Writing the full step, such as subtracting 7 from both sides, instead of moving numbers across the equals sign, slows you down just enough to keep signs straight while you are learning.

Questions

What is the first step in solving a linear equation?

Simplify each side: clear parentheses by distributing and combine like terms. Then gather the variable terms on one side and the numbers on the other.

Why do you do the same thing to both sides of an equation?

An equation states that two amounts are equal. Changing both sides in the same way keeps them equal, so the new equation has the same solution as the original.

How do I know if my answer is right?

Substitute it into the original equation, not a later step. If both sides come out equal, the answer is correct.

What does it mean when the variable cancels out?

If you are left with a true statement such as 6 = 6, every number is a solution. If you are left with a false statement such as 6 = 5, there is no solution.

Is it okay to move a term to the other side and change its sign?

It gives the right result because it is shorthand for adding or subtracting the same amount on both sides. Writing the full step helps avoid sign errors while you are learning.