How to use the linear equation solver with steps

  1. Enter both sides with one equals sign, such as 3(x − 2) = x + 8.
  2. Use x for the variable. Multiplication can be written as 2x, 2*x or 2(x + 1); write fractional coefficients as x/3 or (2/3)*x.
  3. Select Solve equation. Follow the simplification and balancing steps, then check that substituting the answer gives equal values on both sides.

Formulas and method

Collect variable terms and constants
ax + b = cx + d → (a − c)x = d − b

Expand parentheses first, combine like terms and perform the same operation on both sides.

Find a unique solution
x = (d − b) / (a − c), when a ≠ c

Divide both sides by the remaining coefficient of x. The result may be an exact fraction.

Recognize special cases
0x = 0: every real x; 0x = nonzero: no solution

When the variable terms cancel, check whether the remaining statement is true or false.

Worked examples

Solve with x on both sides

3(x − 2) = x + 8
3x − 6 = x + 8
2x = 14
x = 7; check: 3(7 − 2) = 7 + 8 = 15

Expand the left side, subtract x from both sides, add 6 to both sides, then divide by 2.

Solve an equation with fractional coefficients

x/2 + 1/3 = 5/6
x/2 = 5/6 − 1/3 = 1/2
x = 1; check: 1/2 + 1/3 = 5/6

Keep the fractions exact while subtracting 1/3, then multiply both sides by 2. Enter (2/3)*x if the entire coefficient 2/3 multiplies x.

Identify an equation with no solution

2(x + 1) = 2x + 3
2x + 2 = 2x + 3
0 = 1

The final statement is false for every x, so there is no solution. Replacing the 3 with 2 would give 0 = 0 and infinitely many solutions.

Supported inputs and precision

Supports linear equations in x only, up to 240 characters. Powers such as x^2, multiple variables, inequalities, functions and x in a denominator are not supported. Use explicit parentheses to group fractional coefficients. Exact answers are retained; decimal displays are rounded to 12 significant digits.

Calculations run in your browser. No account or download is needed. The example answer and this guide are readable without JavaScript; enable JavaScript to calculate your own values.

Frequently asked questions

Can this solve quadratic equations or systems of equations?

No. This tool handles one linear equation in x. Expressions such as x^2, products of variable terms, and equations with x and y need a different method.

What does infinitely many solutions mean?

Both sides are equal for every real value of x. For example, 2(x + 1) = 2x + 2 simplifies to the same expression on both sides, leaving 0 = 0.

Why is x not allowed in a denominator?

A denominator containing x can be zero for some values and changes the equation’s domain. This solver deliberately rejects those equations instead of losing their restrictions during simplification.

How do I check the answer?

Substitute the reported value of x into both sides of the original equation. The calculator includes this check for a unique solution. For 2x + 3 = 11 and x = 4, both sides equal 11.