Skip to main content
Daily Math Minute

How to Solve Linear Equations

A step-by-step method for solving linear equations in one variable, including equations with parentheses, fractions, and variables on both sides, plus how to spot equations with no solution or infinitely many.

Algebra IBeginnerDaily Math Minute6 min read

What you'll learn

  • What makes an equation linear, and what it means to solve one
  • How to use inverse operations to isolate the variable
  • A reliable four-step method for multi-step linear equations
  • How to clear fractions from an equation
  • How to recognize equations with no solution or infinitely many solutions

Introduction

Solving a linear equation means finding the value of the variable that makes both sides equal. For example, the solution to 3x+7=223x + 7 = 22 is x=5x = 5, because 3(5)+73(5) + 7 really is 22. This article shows a method that works for every linear equation in one variable, no matter how many steps it takes.

Why this matters

Linear equations model any situation with a constant rate: a phone plan with a monthly fee plus a per-gigabyte charge, a taxi fare, or the temperature conversion F=95C+32F = \tfrac{9}{5}C + 32. Solving them is also the core skill behind nearly everything else in algebra. Systems of equations, inequalities, and rearranging formulas all build on it.

The concept

What a linear equation is

Definition — Linear equation in one variable

A linear equation in one variable is an equation that can be written in the form ax+b=cax + b = c, where aa, bb, and cc are numbers and a≠0a \neq 0. The variable appears only to the first power. It is never squared, under a square root, or in a denominator.

2x−9=152x - 9 = 15 and 4(x+1)=3x−24(x + 1) = 3x - 2 are linear. x2=9x^2 = 9 is not, because xx is squared.

Keeping the equation balanced

An equation is like a balanced scale. You can do anything you like to one side as long as you do exactly the same thing to the other side. The properties of equality make this precise: you can add, subtract, multiply, or divide both sides by the same number (except dividing by zero), and the equation stays true.

To get the variable alone, you use inverse operations, which are operations that undo each other. Subtraction undoes addition, and division undoes multiplication.

Example — Undoing operations in reverse order

Problem: Solve 3x+7=223x + 7 = 22.

The expression 3x+73x + 7 was built by multiplying xx by 3 and then adding 7. To undo it, reverse the order: subtract 7 first, then divide by 3.

3x+7=223x=15subtract 7 from both sidesx=5divide both sides by 3\begin{aligned} 3x + 7 &= 22 \\ 3x &= 15 && \text{subtract 7 from both sides} \\ x &= 5 && \text{divide both sides by 3} \end{aligned}

Check: 3(5)+7=15+7=223(5) + 7 = 15 + 7 = 22. ✓

The four-step method

For longer equations, follow these steps in order:

  1. Simplify each side. Distribute to remove parentheses and combine like terms on each side separately.
  2. Collect the variable terms on one side. Add or subtract variable terms so they all end up on the same side.
  3. Collect the constant terms on the other side. Add or subtract numbers so they all end up on the other side.
  4. Divide by the coefficient of the variable. Then check your answer in the original equation.

Worked examples

Example — Worked example 1: parentheses and variables on both sides

Problem: Solve 5(x−2)=3x+85(x - 2) = 3x + 8.

Step 1 (simplify): Distribute the 5 to both terms in the parentheses:

5x−10=3x+85x - 10 = 3x + 8

Step 2 (variables to one side): Subtract 3x3x from both sides:

2x−10=82x - 10 = 8

Step 3 (constants to the other side): Add 10 to both sides:

2x=182x = 18

Step 4 (divide): x=9x = 9.

Check: The left side is 5(9−2)=5(7)=355(9 - 2) = 5(7) = 35. The right side is 3(9)+8=27+8=353(9) + 8 = 27 + 8 = 35. ✓

Answer: x=9x = 9

Example — Worked example 2: negative coefficients

Problem: Solve 7−2x=4x+197 - 2x = 4x + 19.

Step 1: Each side is already simplified.

Step 2: Add 2x2x to both sides so the variable terms are together on the right with a positive coefficient:

7=6x+197 = 6x + 19

Step 3: Subtract 19 from both sides:

−12=6x-12 = 6x

Step 4: Divide by 6: x=−2x = -2.

Check: The left side is 7−2(−2)=7+4=117 - 2(-2) = 7 + 4 = 11. The right side is 4(−2)+19=−8+19=114(-2) + 19 = -8 + 19 = 11. ✓

Answer: x=−2x = -2

Example — Worked example 3: clearing fractions

Problem: Solve x4+23=56\frac{x}{4} + \frac{2}{3} = \frac{5}{6}.

Fractions make every step messier, so start by getting rid of them. The least common denominator of 4, 3, and 6 is 12. Multiply every term on both sides by 12:

12⋅x4+12⋅23=12⋅5612 \cdot \frac{x}{4} + 12 \cdot \frac{2}{3} = 12 \cdot \frac{5}{6}3x+8=103x + 8 = 10

Now it's a two-step equation. Subtract 8 to get 3x=23x = 2, then divide by 3:

x=23x = \frac{2}{3}

Check: 23÷4=16\tfrac{2}{3} \div 4 = \tfrac{1}{6}, and 16+23=16+46=56\tfrac{1}{6} + \tfrac{2}{3} = \tfrac{1}{6} + \tfrac{4}{6} = \tfrac{5}{6}. ✓

Answer: x=23x = \tfrac{2}{3}. Answers don't have to be whole numbers.

When there isn't exactly one solution

Most linear equations have exactly one solution, but two special cases are worth recognizing. In both, the variable disappears completely while you're solving.

Example — No solution

Problem: Solve 2(x+3)=2x+52(x + 3) = 2x + 5.

Distribute to get 2x+6=2x+52x + 6 = 2x + 5. Subtracting 2x2x from both sides leaves 6=56 = 5, which is false.

No value of xx can make a false statement true, so the equation has no solution.

Example — Infinitely many solutions

Problem: Solve 3(x−1)=3x−33(x - 1) = 3x - 3.

Distribute to get 3x−3=3x−33x - 3 = 3x - 3. Both sides are identical. Subtracting 3x3x leaves −3=−3-3 = -3, which is always true.

Every value of xx works, so the equation has infinitely many solutions. An equation like this is called an identity.

Common mistakes

Warning — Distributing to only the first term

5(x−2)5(x - 2) is 5x−105x - 10, not 5x−25x - 2. The number outside the parentheses multiplies every term inside.

Warning — Clearing fractions from only some terms

When you multiply an equation by 12 to clear fractions, every term on both sides gets multiplied, including terms that weren't fractions. Turning x4+1=2\frac{x}{4} + 1 = 2 into 3x+1=23x + 1 = 2 is wrong. The correct result is 3x+12=243x + 12 = 24.

Warning — Sign errors when moving terms

"Moving a term to the other side" is shorthand for adding or subtracting it on both sides, and its sign flips in the process. In x−6=10x - 6 = 10, you add 6 to both sides to get x=16x = 16, not x=4x = 4. If you're unsure, write out the operation on both sides instead of using the shortcut.

Practice questions

  1. Solve 4x−9=234x - 9 = 23.

    Show answer

    x=8x = 8. Add 9 to both sides to get 4x=324x = 32, then divide by 4. Check: 4(8)−9=32−9=234(8) - 9 = 32 - 9 = 23.

  2. Solve 2(3x+1)=4x−62(3x + 1) = 4x - 6.

    Show answer

    x=−4x = -4. Distribute to get 6x+2=4x−66x + 2 = 4x - 6. Subtract 4x4x to get 2x+2=−62x + 2 = -6. Subtract 2 to get 2x=−82x = -8, so x=−4x = -4. Check: 2(−12+1)=−222(-12 + 1) = -22 and 4(−4)−6=−224(-4) - 6 = -22.

  3. Solve x+13=x−22\frac{x + 1}{3} = \frac{x - 2}{2}.

    Show answer

    x=8x = 8. Multiply both sides by 6 to get 2(x+1)=3(x−2)2(x + 1) = 3(x - 2), which is 2x+2=3x−62x + 2 = 3x - 6. Subtract 2x2x and add 6 to get 8=x8 = x. Check: 93=3\tfrac{9}{3} = 3 and 62=3\tfrac{6}{2} = 3.

  4. How many solutions does 4(x−1)+2=4x−24(x - 1) + 2 = 4x - 2 have?

    Show answer

    Infinitely many. The left side simplifies to 4x−4+2=4x−24x - 4 + 2 = 4x - 2, which is identical to the right side. Every value of xx makes it true.

Summary

  • A linear equation has its variable only to the first power. Solving it means finding the value that makes both sides equal.
  • Whatever you do to one side, do to the other. Use inverse operations to undo what was done to the variable, in reverse order.
  • For multi-step equations: simplify each side, collect variable terms, collect constants, then divide.
  • Clear fractions by multiplying every term by the least common denominator.
  • If the variable cancels out, a false statement means no solution and a true statement means infinitely many.

For more practice, work through the multi-step equations lesson in the Algebra I curriculum.