Linear equation solver

Linear Equation Calculator

Enter a one-variable linear equation and solve for x with clear algebra steps and a substitution check.

Try an example

What is a linear equation?

A linear equation contains x only to the first power. Common forms include 2x + 5 = 15, equations with parentheses, and equations where x appears on both sides.

A linear equation can have one solution, no solution, or infinitely many solutions. The calculator identifies those cases instead of forcing every input into a numeric answer.

How the calculator isolates x

The solver parses each side as ax + b, moves variable terms and constants while preserving equality, and divides by the remaining coefficient when needed.

After solving, the result is substituted into the original equation so the left and right sides can be compared directly.

Try an example

Type or paste an equation, solve it, inspect the transformations, and use verification and the graph instead of relying on the final value alone.

2x + 5 = 15
5x - 3 = 2x + 12
3(x + 2) = 18
0.5x + 1 = 3

Worked examples

Follow the same steps the calculator uses for three equations in this category.

2x + 5 = 15

x = 5

  1. Subtract 5 from both sides

    2x+5=152x=10

  2. Divide both sides by 2

    2x=10x=5

Verified

5x - 3 = 2x + 12

x = 5

  1. Subtract 2x from both sides

    5x-3=2x+123x-3=12

  2. Add 3 to both sides

    3x-3=123x=15

  3. Divide both sides by 3

    3x=15x=5

Verified

3(x + 2) = 18

x = 4

  1. Subtract 6 from both sides

    3x+6=183x=12

  2. Divide both sides by 3

    3x=12x=4

Verified

Common mistakes

  • Enter a complete equation with an equals sign.
  • Powers above x² are not supported yet.
  • Substitute each answer into the original equation and compare both sides.

Frequently asked questions

What does this calculator support?
Solve forms such as 2x + 5 = 15 and -2x + 4 = 10.
How does it verify an answer?
Substitute each answer into the original equation and compare both sides.
Which equations are outside the supported range?
Cubic and higher-degree polynomials, logarithmic, exponential, trigonometric, nested-radical, and multiple-absolute-value equations remain outside the supported solver scope.

Verification

Substitute each answer into the original equation and compare both sides.

Current solver scope

Cubic and higher-degree polynomials, logarithmic, exponential, trigonometric, nested-radical, and multiple-absolute-value equations remain outside the supported solver scope.