Skip to content
Calculator Tools
Algebra Calculators

Linear Equation Calculator

Solve any linear equation in one variable, such as 3x + 5 = 2(x − 4), step by step with the solution checked.

Enter values

Results update as you type.

Result

x

-13

Step-by-stepShow
  1. Move everything to one side: x + 13 = 0
  2. 1x = -13
  3. x = -13 ÷ 1 = -13

About the Linear Equation Calculator

Solve any linear equation in one variable, such as 3x + 5 = 2(x − 4), step by step with the solution checked.

Also known as: solve for x, linear equation solver, one step equation, two step equation, solve equation for x.

How to use this calculator

  1. Enter equation.
  2. The result updates instantly as you type — press Calculate (or Enter) at any time.
  3. Open “Step-by-step” to see how the answer was worked out.
  4. Use Copy result or Share to save the answer or send a link with your inputs.

Formula

ax + b = 0 ⇒ x = −b / a

Worked example

Using the values pre-filled in the calculator above:

  • Equation: 3x + 5 = 2(x - 4)

the calculator returns:

  • x: -13

Working

  1. Move everything to one side: x + 13 = 0
  2. 1x = -13
  3. x = -13 ÷ 1 = -13

Frequently asked questions

How do I type the equation?

Use x as the variable, * or implied multiplication (2x, 3(x+1)), / for division and ^ for powers. Example: 0.5x - 3 = (x + 7)/4.