Skip to content
SolverCalc
Basic Algebra

How to Solve Linear Equations (With Examples)

Updated · By the SolverCalc team

Quick answer

Undo operations in reverse order, keep the equation balanced, then check by substituting.

A linear equation has a variable raised only to the first power, such as 3x + 7 = 22. Solving it means finding the value of x that makes both sides equal. The key idea is balance: whatever you do to one side, you must do to the other.

Example 1: a two-step equation

  1. Start with 3x + 7 = 22.
  2. Subtract 7 from both sides: 3x = 15.
  3. Divide both sides by 3: x = 5.
  4. Check: 3 × 5 + 7 = 15 + 7 = 22. ✓

Example 2: variables on both sides

  1. Start with 5x − 4 = 2x + 11.
  2. Subtract 2x from both sides: 3x − 4 = 11.
  3. Add 4 to both sides: 3x = 15.
  4. Divide by 3: x = 5.
  5. Check: left side 5 × 5 − 4 = 21; right side 2 × 5 + 11 = 21. ✓

Example 3: parentheses

  1. Start with 4(x − 2) = 3x + 5.
  2. Distribute the 4: 4x − 8 = 3x + 5.
  3. Subtract 3x from both sides: x − 8 = 5.
  4. Add 8 to both sides: x = 13.
  5. Check: 4(13 − 2) = 4 × 11 = 44 and 3 × 13 + 5 = 44. ✓

Example 4: decimals and a different letter

  1. Start with 1.38 = 1.4c + 0.4. The variable is c, but the method is the same.
  2. Subtract 0.4 from both sides: 0.98 = 1.4c.
  3. Divide both sides by 1.4: c = 0.98 ÷ 1.4 = 0.7.
  4. Check: 1.4 × 0.7 + 0.4 = 0.98 + 0.4 = 1.38. ✓

If decimals feel awkward, multiply every term by 100 first: 138 = 140c + 40. The answer does not change.

Example 5: combine like terms first

  1. Start with 71h − 32h − 27 = 51.
  2. Combine the h terms: 71h − 32h = 39h, so 39h − 27 = 51.
  3. Add 27 to both sides: 39h = 78.
  4. Divide by 39: h = 2.
  5. Check: 71 × 2 − 32 × 2 − 27 = 142 − 64 − 27 = 51. ✓

When there is no solution or every number works

Sometimes the variable cancels out. In x + 1 = x + 2, subtracting x leaves 1 = 2, which is false, so the equation has no solution. In 2(x + 1) = 2x + 2, expanding gives 2x + 2 = 2x + 2, which is always true, so every value of x is a solution.

A general strategy

  • Clear parentheses using the distributive property.
  • Combine like terms on each side.
  • Move all variable terms to one side and constants to the other.
  • Divide by the coefficient of the variable.
  • Substitute your answer into the original equation to check it.

Checking is the step most students skip, yet it catches nearly every sign error. Use the calculator to evaluate both sides with your value of x—if they match, you are done.

Practice problems

EquationAnswer
6x − 9 = 27x = 6
2(x + 4) = 3x − 1x = 9
x/5 + 2 = 7x = 25
19 + 6w = 67w = 8
49s − 24s = 50s = 2

Type any of these into the solve for x calculator to see every step and check your own work.

Frequently asked questions

What is a linear equation?

An equation in which the variable is only raised to the first power, such as 3x + 7 = 22. Its graph is a straight line, which is where the name comes from.

What are the steps to solve a linear equation?

Clear parentheses, combine like terms, move the variable terms to one side and the numbers to the other, divide by the coefficient, and check by substituting your answer.

Can a linear equation have no solution?

Yes. If the variable cancels and a false statement such as 1 = 2 remains, there is no solution. If a true statement such as 2 = 2 remains, every number is a solution.