Free, with every step shown

Equation Solver with Steps

Type an equation and get x with every step and a check. 2x + 5 = 17 gives x = 6 (subtract 5, divide by 2). x² − 5x + 6 = 0 gives x = 2 or x = 3, and x + y = 10, x − y = 2 gives x = 6, y = 4.

It solves linear equations, quadratics and two-equation systems exactly, with fractions kept as fractions. Need the reasoning in words? Press “Explain the steps with AI”.

Type your equation

Use x (and y for a system). Write powers as x^2. Separate two equations with a comma. Answers update as you type.

Linear equation

x = 6

  1. Start: 2x + 5 = 17
  2. Expand and combine like terms: 2x + 5 = 17
  3. Subtract 5 from both sides: 2x = 12
  4. Divide both sides by 2: x = 12 ÷ 2 = 6
  5. Check: put x = 6 back in. Left side = 17, right side = 17. They match.
Explain the steps with AI

Worked examples

Example 1: Solve 5x − 3 = 2x + 9

Variables on both sides.

  1. Subtract 2x from both sides: 3x − 3 = 9
  2. Add 3 to both sides: 3x = 12
  3. Divide both sides by 3: x = 4

x = 4. Check: 5(4) − 3 = 17 and 2(4) + 9 = 17.

Example 2: Solve 2x² + 3x − 2 = 0

A quadratic with a = 2, b = 3, c = −2.

  1. Discriminant: b² − 4ac = 3² − 4·2·(−2) = 25
  2. √25 = 5, so x = (−3 ± 5) ÷ 4
  3. x = 2 ÷ 4 = 1/2 or x = −8 ÷ 4 = −2

x = 1/2 or x = −2. Check: 2(1/4) + 3/2 − 2 = 0 and 2(4) − 6 − 2 = 0.

Example 3: Solve x/4 + 3 = 7

An equation with a fraction.

  1. Subtract 3 from both sides: x/4 = 4
  2. Multiply both sides by 4: x = 16

x = 16. Check: 16/4 + 3 = 4 + 3 = 7.

How to solve any equation

  1. Simplify each side. Expand brackets and combine like terms, so 3(x − 2) becomes 3x − 6.
  2. Collect the unknown on one side. Add or subtract the same term on both sides until all x terms are together.
  3. Undo what is left. Undo addition with subtraction and multiplication with division, always on both sides.
  4. Squared terms? Move everything to one side (= 0) and factor or use the quadratic formula.
  5. Check. Put the answer back into the original equation; both sides must match.

Stuck on a step, or have a word problem?

Press Explain the steps with AI under any answer and the MathAI GPT math solver opens with your numbers already filled in, then explains the method line by line and answers follow-up questions. You can also type or photograph the whole question. On your phone, use MathAI GPT for iPhone or MathAI GPT for Android.

Equation solver FAQ

How do I solve an equation for x?

Do the same operation to both sides until x is alone. For 2x + 5 = 17, subtract 5 from both sides to get 2x = 12, then divide both sides by 2 to get x = 6. Check by putting 6 back in: 2(6) + 5 = 17.

What kinds of equations can this equation solver do?

Linear equations in one variable (including brackets, fractions like x/4 and decimals), quadratic equations such as x² − 5x + 6 = 0, and systems of two linear equations in x and y such as x + y = 10, x − y = 2. Cubics and higher powers link to the cubic solver or the AI solver.

How do I solve an equation with variables on both sides?

Move every x term to one side and every number to the other. For 5x − 3 = 2x + 9, subtract 2x from both sides (3x − 3 = 9), add 3 (3x = 12) and divide by 3, so x = 4.

How do I solve a quadratic equation?

Write it as ax² + bx + c = 0 and use x = (−b ± √(b² − 4ac)) ÷ 2a. For 2x² + 3x − 2 = 0, the discriminant is 9 + 16 = 25, so x = (−3 ± 5) ÷ 4, which gives x = 1/2 or x = −2.

How do I solve two equations with two unknowns?

Use elimination: add or subtract the equations so one letter cancels. For x + y = 10 and x − y = 2, adding gives 2x = 12, so x = 6, and then y = 10 − 6 = 4.

Are the answers exact?

Yes. Every number is kept as an exact fraction, so 0.5x + 1.2 = 3.7 gives exactly x = 5 and a fractional answer is shown as a fraction with its decimal. Each solution ends with a check that substitutes the answer back into the equation.

Related calculators