MathSolver AI

How to Solve Linear Equations

To solve a linear equation, simplify both sides, collect the variable on one side, and divide by its coefficient. Check by substituting the result.

What is a linear equation?

A linear equation in one variable can be written as ax + b = c with a ≠ 0. The graph of y = ax + b is a line, and solving ax + b = 0 finds where that line crosses the x-axis.

When to use this method

Use inverse operations whenever the unknown appears to the first power only. If you see x², start with quadratic methods instead.

Step-by-step method

  1. Distribute and combine like terms on each side.
  2. Move variable terms to one side and constants to the other.
  3. Divide by the coefficient of the variable.
  4. Substitute the answer into the original equation.

Example

2x + 5 = 17

  1. 2x = 17 − 5 = 12
  2. x = 12 / 2 = 6
  3. Check: 2(6)+5 = 17

Answer: x = 6

Interactive example

Solve a problem

No account required. Type, upload, or snap a photo.

Press Ctrl+Enter to solve

Example problems

Common mistakes

Only changing one side

Whatever you do to the left, do to the right.

Dividing a sum incorrectly

(2x + 4)/2 is x + 2, not x + 4.

Related formulas

Related calculators

Related guides

Frequently asked questions

What if the variable is on both sides?

Subtract one of the variable terms from both sides so x appears only once, then continue.