Linear Equation Solver

Solve a one-variable equation in the form ax + b = c by isolating x with two inverse moves, then checking special zero-coefficient cases.

Read the equation before solving

In ax + b = c, a is the multiplier on x, b is the constant already attached to the left side, and c is the target value. Solving means undoing those operations in reverse order.

Isolate x in two moves

  1. Subtract b from both sides.
  2. Divide by a when a is not zero.
  3. Check whether a zero coefficient creates every-solution or no-solution behavior.

Loading tool...

General solution path

Subtract the constant before dividing by the x coefficient.

Original formax+b=c
Subtract bax=c-b
Solve for xx=c-ba,a0
Every solution caseIfa=0andb=c,every x is a solution
No solution caseIfa=0andbc,there is no solution

Check the result

Substitute the expression for x back into the original equation.

Substitution checkCheck:ac-ba+b=c

FAQ

Why do I subtract b before dividing by a?

Because b is added after ax; subtracting it first restores the isolated product ax.

What happens when a is zero?

Then x has no multiplier in the equation. If b = c, every value of x works. If b != c, no value of x works.

  1. Calculator teaser image

    A keyboard-friendly scratch calculator for quick totals, percentages, ratios, per-unit costs, and order-of-operations checks while you work in the browser.

    Calculator