Linear Equation Calculator

Solve one linear equation and see every step of the working.

Use one letter, brackets and one =, <, >, ≤ or ≥ sign.

Try

Result

You entered6x−2=5x6x - 2 = 5x

x=2\displaystyle x = 2

Exact

2\displaystyle 2

Decimal

2\displaystyle 2
Show the work
  1. Distributive property

    Multiply the number outside each bracket by every term inside it, so the brackets disappear and like terms can be collected.

    Using k(p+q)=kp+kqk(p + q) = kp + kq

    6x−2=5x6x - 2 = 5x
  2. Collect the variable terms on one side

    Move every xx term to the left by subtracting 5x5x from both sides. The xx terms on the left then add up to xx.

    x−2=0x - 2 = 0
  3. Collect the numbers on the other side

    Move the plain number to the right by adding 22 to both sides, so the left side keeps only the variable term.

    x=2x = 2
  4. Check the solution

    Substitute x=2x = 2 into both sides of the original equation. The left side is 1010 and the right side is 1010; they match, so the solution is correct.

    10=1010 = 10
  5. Result

    So the solution is x=2x = 2.

Worked examples