Linear Equation Solver

Solve linear equations of the form ax + b = c. Parentheses, fractions of x and terms on both sides are supported. This tool does not solve quadratic or higher-degree equations.

Read the step-by-step guide

Use x as the variable and include an = sign.

How this calculator works

The Linear Equation Solver finds the value of x in a linear equation — one where x appears only to the first power. It handles terms on both sides of the equals sign, parentheses that need distributing, and division of x by a constant (for example x/4 + 2 = 7). It does not solve quadratic or higher-degree equations.

The method is the one taught in school: do the same operation to both sides to isolate x. First, any parentheses are distributed and like terms on each side are combined. Then constant terms are moved to one side and x terms to the other by adding or subtracting. Finally, both sides are divided by the coefficient of x to leave x by itself.

Two special cases are detected automatically. If the x terms cancel out and the remaining constants are equal (for example 2x + 1 = 2x + 1), every value of x works and the tool reports "infinitely many solutions". If the x terms cancel but the constants differ (2x + 1 = 2x + 3), no value of x can satisfy the equation and it reports "no solution".

For a unique solution, the tool verifies the answer by substituting it back into the original equation so you can confirm the working is correct. The steps panel lists every operation applied to both sides in order.

Worked example

3x + 7 = 28: subtract 7 → 3x = 21, divide by 3 → x = 7.

Common uses

  • Solving for an unknown in one step or multi-step equations
  • Checking algebra homework
  • Rearranging simple formulas

Common mistakes

  • Entering x² terms — use the Quadratic Equation Solver instead
  • Forgetting to apply an operation to both sides
  • Omitting the "=" sign

Frequently asked questions

What forms are supported?

Any linear equation in one variable x, including parentheses and division by a constant, e.g. 2(x + 3) = 14 or x/4 + 2 = 7.

What is "no solution"?

When the x terms cancel and the constants are unequal (e.g. 2x + 1 = 2x + 3), there is no value of x that works.

What is "infinitely many"?

When both sides are identical after simplifying, every value of x is a solution.