HOW TO SOLVE A LINEAR EQUATION

Algebra guide

How to Solve a Linear Equation

A five-step method that solves any linear equation, worked through one-step, two-step, both-sides, fraction and decimal examples, plus the special cases and word problems.

Updated

9 min read

Quick answer

To solve a linear equation, do the same thing to both sides until the variable is alone. Undo addition and subtraction first, then multiplication and division. For 3x + 7 = 22, subtract 7 from both sides to get 3x = 15, then divide both sides by 3 to get x = 5. Check by substituting back: 3(5) + 7 = 22.

What Is a Linear Equation?

A linear equation is an equation where the variable appears only to the first power: no x2, no square roots of x, no x in a denominator. It can always be rearranged into the form ax + b = c. Equations like 3x + 7 = 22 and 5x − 4 = 2x + 11 are linear; x2 = 9 is not.

It is called linear because its graph is a straight line. To “solve” it means to find the value of the variable that makes both sides equal. Most linear equations have exactly one solution, but a few have none or infinitely many, as you will see below.

The Golden Rule: Keep It Balanced

Think of an equation as a balance scale. The equals sign is the middle, and both sides weigh the same. Whatever you do to one side, you must do to the other, or the scale tips. That single rule is the whole method.

To get the variable alone, you undo each operation with its opposite, called the inverse operation:

If the equation hasUndo it withExample
+ a numberSubtract it from both sidesx + 9 = 15 → x = 6
− a numberAdd it to both sidesx − 8 = 13 → x = 21
× a numberDivide both sides by it4x = 28 → x = 7
÷ a numberMultiply both sides by itx ÷ 3 = 6 → x = 18

Notice that solving runs the order of operations backward. When you build 3x + 7, you multiply first and add last, so to undo it you subtract first and divide last.

How to Solve Any Linear Equation in 5 Steps

  1. Clear fractions or decimals by multiplying every term by the same number.
  2. Simplify each side: remove brackets with the distributive property and combine like terms.
  3. Gather the variable terms on one side by adding or subtracting a variable term.
  4. Gather the numbers on the other side by adding or subtracting a constant.
  5. Divide by the coefficient of the variable, then check by substituting into the original equation.

Not every equation needs every step. Skip the ones that do not apply, but never skip the check: it catches sign slips in seconds.

One-Step and Two-Step Equations

One-step equations need a single inverse operation: x + 9 = 15 gives x = 6, and 4x = 28 gives x = 7.

Two-step equations need two. Solve 3x + 7 = 22:

  1. Subtract 7 from both sides: 3x = 15.
  2. Divide both sides by 3: x = 5.
  3. Check: 3(5) + 7 = 15 + 7 = 22. ✓

With a negative coefficient: solve 5 − 2x = 13. Subtract 5: −2x = 8. Divide by −2: x = −4. Check: 5 − 2(−4) = 5 + 8 = 13. ✓ Dividing by a negative flips the sign of the answer, so keep the minus sign with the coefficient.

With division: solve x ÷ 4 − 3 = 2. Add 3: x ÷ 4 = 5. Multiply by 4: x = 20.

Variables on Both Sides

When x appears on both sides, move all the x terms to one side first. Choosing the side with the bigger x coefficient keeps the numbers positive.

Solve 5x − 4 = 2x + 11. Subtract 2x from both sides: 3x − 4 = 11. Add 4: 3x = 15. Divide by 3: x = 5. Check: left side 5(5) − 4 = 21, right side 2(5) + 11 = 21. ✓

Equations With Brackets

Remove brackets first with the distributive property: multiply the number outside by every term inside.

Solve 3(2x − 4) = 18. Distribute: 6x − 12 = 18. Add 12: 6x = 30. Divide by 6: x = 5.

Solve 10x − 2 = 7(x + 1). Distribute: 10x − 2 = 7x + 7. Subtract 7x: 3x − 2 = 7. Add 2: 3x = 9. Divide: x = 3.

Equations With Fractions and Decimals

Fractions are easiest to handle by getting rid of them at the start. Multiply every term on both sides by the lowest common denominator (LCD).

Solve x/2 + x/3 = 10. The LCD of 2 and 3 is 6, so multiply every term by 6: 3x + 2x = 60. Combine: 5x = 60. Divide: x = 12. Check: 12/2 + 12/3 = 6 + 4 = 10. ✓ Finding the LCD is the LCM skill from the GCF and LCM guide, and the fraction calculator shows it for any pair of denominators.

Decimals work the same way. Solve 0.5x + 1.2 = 3.7. Multiply every term by 10: 5x + 12 = 37. Subtract 12: 5x = 25. Divide: x = 5. Multiply by 10 for one decimal place, 100 for two.

No Solution and Infinitely Many Solutions

Sometimes the variable cancels out completely. What is left tells you which case you have.

  • No solution: 2x + 3 = 2x + 7. Subtract 2x: 3 = 7, which is false. No value of x can make it true, so there is no solution. On a graph, the two sides are parallel lines that never meet.
  • Infinitely many solutions: 2(x + 3) = 2x + 6. Distribute: 2x + 6 = 2x + 6. Subtract 2x: 6 = 6, which is always true. Every value of x works. The two sides are the same line.
What you end up withMeaning
x = a numberOne solution
A false statement, like 3 = 7No solution
A true statement, like 6 = 6Infinitely many solutions

Solving a Formula for One Variable

The same balancing works on formulas with letters, called literal equations. You isolate one letter instead of finding a number.

  • Perimeter: solve P = 2l + 2w for w. Subtract 2l: P − 2l = 2w. Divide by 2: w = (P − 2l) ÷ 2. With P = 40 and l = 12, w = 8, the same answer the area and perimeter guide gets.
  • Temperature: solve F = 1.8C + 32 for C. Subtract 32, then divide by 1.8: C = (F − 32) ÷ 1.8. So 98.6°F is (98.6 − 32) ÷ 1.8 = 37°C.
  • Line: solve y = mx + b for x: x = (y − b) ÷ m. The slope calculator finds m and b from any two points.

Linear Equation Word Problems

Word problems are linear equations in disguise. Name the unknown with a letter, translate the words into symbols, then solve as normal.

WordsSymbols
is, equals, gives, results in=
more than, increased by, plus+
less than, decreased by, minus−
times, of, per (with a rate)×
a number, an unknown amountx

Phone plan: a plan costs $20 a month plus $0.10 per minute, and this month’s bill is $35. How many minutes were used? Let m be the minutes: 20 + 0.10m = 35. Subtract 20: 0.10m = 15. Divide by 0.10: m = 150 minutes.

Consecutive numbers: two consecutive whole numbers add up to 51. Call them x and x + 1: x + (x + 1) = 51, so 2x + 1 = 51, 2x = 50 and x = 25. The numbers are 25 and 26.

When a problem has two unknowns and two facts, you get two equations. For x + y = 10 and x − y = 4, adding the equations cancels y: 2x = 14, so x = 7 and y = 3. The remainder theorem guide uses exactly this trick to find two unknown coefficients.

Common Mistakes

MistakeWhat goes wrongDo this instead
Doing something to one side only3x + 7 = 22 becomes 3x = 22Subtract 7 from both sides: 3x = 15
Distributing to the first term only3(2x − 4) written as 6x − 4Multiply every term: 6x − 12
Clearing only some fractionsx/2 + x/3 = 10 becomes 3x + 2x = 10Multiply every term, including 10: 3x + 2x = 60
Losing the negative sign−2x = 8 answered as x = 4Divide by −2: x = −4
Skipping the checkA sign slip goes unnoticedSubstitute into the original equation every time

Practice Problems With Answers

Solve each equation, then check by substituting your answer back.

  1. x − 8 = 13. Answer: x = 21.
  2. 7x = −42. Answer: x = −6.
  3. 2x + 5 = 17. Answer: x = 6.
  4. 4x − 3 = x + 12. Answer: x = 5.
  5. 2(x + 4) = 3x − 1. Answer: x = 9.
  6. x/5 + 2 = 6. Answer: x = 20.
  7. 0.3x − 0.5 = 1.3. Answer: x = 6.
  8. 6x − 2(x − 3) = 26. Answer: x = 5. Watch the sign: −2 × −3 = +6.

Frequently Asked Questions

What are the steps to solve a linear equation?

Clear fractions or decimals, simplify each side, move the variable terms to one side and the numbers to the other, divide by the coefficient, and check your answer in the original equation.

How do you solve an equation with variables on both sides?

Add or subtract a variable term so that x appears on only one side, then solve as a two-step equation. For 5x − 4 = 2x + 11, subtracting 2x gives 3x − 4 = 11, so x = 5.

How do you solve a linear equation with fractions?

Multiply every term on both sides by the lowest common denominator to clear the fractions. For x/2 + x/3 = 10, multiplying by 6 gives 3x + 2x = 60, so x = 12.

How do you know if an equation has no solution?

If the variable cancels and you are left with a false statement, such as 3 = 7, there is no solution. If you are left with a true statement, such as 6 = 6, every number is a solution.

What makes an equation linear?

The variable appears only to the first power, with no squares, square roots or variables in a denominator. It can be written as ax + b = c, and its graph is a straight line.

Why should I check my answer?

Substituting the answer into the original equation proves it is right, and it catches the most common errors, like a lost negative sign or a term you forgot to multiply. It takes only a few seconds.

Key Takeaways

  • Whatever you do to one side, do to the other: that keeps the equation balanced.
  • Undo operations in reverse: add or subtract first, then multiply or divide.
  • Clear fractions with the LCD and remove brackets before moving terms.
  • A false statement means no solution; a true one means infinitely many.
  • Always check the answer in the original equation.

For the identities and exponent rules you will meet next in algebra, keep the basic algebra formulas cheat sheet handy.

Further reading: Paul’s Online Math Notes: Linear Equations and Curtin University: Linear Equations.

About the author

Leave a Comment