Math Tools

Equation Solver: Solve Linear Equations Step by Step

Type an equation like 3x + 5 = 2(x + 7) and the solver finds the unknown, showing the simplified form. It handles brackets, fractions written with /, decimals and negative numbers, and can also solve two equations in x and y at the same time.

01

Your inputs

Start with the example, or enter your own values.

Processed in your browser. Your inputs stay on this device.

02

Your result

A little clarity, coming right up.

Make room for the answer.

Enter your values and run the tool. Your result will appear here.

How to use Equation Solver

Choose one equation or two, type the equation with an equals sign, such as 3x + 5 = 20, and press Calculate. For two equations, use x and y in both.

Read more: How to Use Equation Solver: Steps and a Worked Example

The formula

Both sides are expanded into a·x + b, everything is moved to one side, and x = −b ÷ a. Two equations are solved with Cramer’s rule: x = (c₁b₂ − c₂b₁) ÷ (a₁b₂ − a₂b₁), y = (a₁c₂ − a₂c₁) ÷ (a₁b₂ − a₂b₁).

Examples

  • 3x + 5 = 2(x + 7)
    x = 9
    Simplified: x − 9 = 0
    So x = 9 ÷ 1
  • x/2 + 3 = 7
    x = 8
    Simplified: 0.5x − 4 = 0
    So x = 4 ÷ 0.5
  • 2x + 3y = 12 and x − y = 1
    x = 3
    y = 2
    Standard form: 2x + 3y = 12 and x − y = 1
    Determinant: -5

Limitations and assumptions

Linear equations only: no powers, roots or unknowns multiplied together. Use * for multiplication if you like; 2x and 2(x + 1) also work. For x², use the quadratic formula calculator.

Frequently asked questions

How do I solve a linear equation?

Collect the unknown on one side and the numbers on the other, then divide. In 3x + 5 = 2x + 14, take 2x from both sides to get x + 5 = 14, then take 5 away: x = 9.

How do I solve two equations at once?

Eliminate one unknown. From x − y = 1, x = y + 1. Put that into 2x + 3y = 12: 2(y + 1) + 3y = 12, so 5y = 10 and y = 2, then x = 3. The solver does this with Cramer’s rule.

Can it solve x²?

No, it solves linear equations only. For equations with x², use the quadratic formula calculator.