Skip to content
SolverCalc

Solve for x Calculator

Type an equation with one unknown and get the answer with every step shown, followed by a check that substitutes the answer back in. It solves linear and quadratic equations for x or any other letter.

Updated · By the SolverCalc team

Type an equation with one variable and press Solve, or tap an example.

How to use the solve for x calculator

  1. Type your equation with a single equals sign, for example 5x − 4 = 2x + 11.
  2. Use one letter for the unknown. It can be x, y, c, h or any letter except e.
  3. Press Solve. The answer appears first, followed by each step and a check.

Worked examples

Each example below was solved with this calculator. Tap a similar example above to see its steps.

EquationSolutionType
3x + 7 = 22x = 5Two-step equation
5x − 4 = 2x + 11x = 5Variables on both sides
4(x − 2) = 3x + 5x = 13Parentheses
1.38 = 1.4c + 0.4c = 0.7Decimals, variable c
71h − 32h − 27 = 51h = 2Combining like terms
27 = 1 + z/3z = 78Fraction coefficient
3x = 5x = 5/3 ≈ 1.666666667Fractional answer
x^2 − 5x + 6 = 0x = 2 or x = 3Quadratic, two roots
x(x + 1) = 12x = −4 or x = 3Quadratic after expanding

How the solver works

Every linear or quadratic equation can be rearranged so that one side is zero. The solver subtracts the right side from the left, expands and combines like terms, and reads off the standard form ax² + bx + c = 0.

  • Linear (a = 0): it undoes the constant, then divides by the coefficient of the variable, the same inverse operations you would use by hand.
  • Quadratic (a ≠ 0): it works out the discriminant b² − 4ac and applies the quadratic formula. A negative discriminant means there is no real solution.

The final step plugs each answer back into both sides of your original equation. If the two sides match, the answer is right. Do the same check whenever you solve an equation on paper.

Tips for typing equations

  • Write multiplication as 3x, 3*x or 3×x. Write x squared as x^2 or x².
  • Use / or ÷ for division: x/4 + 3 = 9.
  • Decimals are fine: −3.3 + c/2.5 = −2.54 gives c = 1.9.
  • Fractional answers are shown as a fraction and a decimal, for example 5/3 ≈ 1.666666667.

Learn the method

The calculator is great for checking your work. To learn the method behind each step, read these guides:

Frequently asked questions

Can this calculator solve for any letter, not just x?

Yes. Use any single letter except e, which is reserved for Euler’s number. For example, 1.38 = 1.4c + 0.4 gives c = 0.7 and 19 + 6w = 67 gives w = 8.

Which equations can the solver handle?

Linear equations (such as 2(x + 4) = 3x − 1) and quadratic equations (such as x² − 5x + 6 = 0) in one variable. Equations with the variable inside a square root, an exponent or a denominator, and systems with two variables, are not supported yet.

Does it show the steps?

Yes. It moves every term to one side, combines like terms, isolates the variable (or uses the quadratic formula) and finishes by substituting the answer back into both sides of your original equation.

How do I type multiplication, powers and fractions?

Write 3x or 3*x for multiplication, x^2 for x squared, and x/5 for x divided by 5. Parentheses work as usual, so 4(x − 2) is fine.

What does “no solution” or “every value is a solution” mean?

If the variable cancels out and a false statement remains, like 1 = 2, no number works. If a true statement remains, like 2 = 2, the two sides are identical and every number works.

Is my equation sent to a server?

No. The solver runs entirely in your browser, and nothing you type is stored or sent anywhere.