MathSolver AI

Linear Equation Solver

A linear equation in one variable can be written as ax + b = c and has at most one solution, x = (c − b) / a when a ≠ 0.

A linear equation has the variable to the first power only. The graph is a straight line; the solution is the x-intercept of that line after rearranging.

Solve a problem

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

Press Ctrl+Enter to solve

Example problems

How this solver works

  1. Move constants.
  2. Divide by the coefficient of x.
  3. Substitute to check.

Formula

Provided a is not zero.

Worked examples

2x + 5 = 17

  1. 2x = 12
  2. x = 6

Answer: x = 6

Common mistakes

Dividing before subtracting

Undo addition and subtraction first, then undo multiplication and division.

Related calculators

Related guides

Related formulas

More in this topic

Frequently asked questions

What if x appears on both sides?

Collect x terms on one side and constants on the other, then divide.

What is a linear equation?

An equation whose variable has exponent 1. There is no x², √x, or xy term in one unknown.

Try the solver again