Solve for X Calculator: Step-by-Step Equation Solver With a Check

To solve for x, get x alone on one side by doing the same thing to both sides. This free solve for x calculator with steps does that for typed equations, photos and worded problems, then checks the answer by putting x back in. Below are the methods for linear, fraction, quadratic, radical, log and geometry problems, each with an example you can check by hand.

Solve for X Calculator

Type any equation with one unknown. The balance scale, the exact steps and a graph of both sides show where the solution comes from.

What Does Solve for x Mean?

Built and tested by the Mathvelo team · Last updated: October 2026 · Every worked example here was recomputed with exact arithmetic before publishing.

An equation is a balanced scale, and solving for x means finding the value that keeps it level. Read 2x − 4 = 10 aloud: twice a number, minus four, is ten. Add 4 to both sides, divide by 2, and x = 7. Check: 2(7) − 4 = 10. Every step applies the same inverse operation to both sides, which is why the equation stays true.

How to Use the Solve for X Calculator With Steps

  1. Enter the equation. Type it, speak it, draw it or upload a photo, then fix any misread symbol.
  2. Press Solve. Each step names the inverse operation it used. Worded problems go to the AI tutor.
  3. Check and ask. The last line puts x back into your equation. Ask a follow-up for another method.

How to Solve for x: Pick the Type First

The first move depends on what the equation looks like, so name the type before you start.

What you seeTypeFirst move
3x + 5 = 11LinearUndo + and −, then divide
(x + 2)/3 = (x − 1)/2FractionsMultiply by the common denominator
x² − 5x + 6 = 0QuadraticFactor or use the formula
3/x = 12/20ProportionCross-multiply
log₂ x = 5LogRewrite as 2⁵ = 32
2ˣ = 20ExponentTake a log of both sides
√(x + 7) = x + 1RadicalIsolate, square, then check
|x − 3| = 5Absolute valueSplit into two cases

Solve for x With Fractions and Brackets

Fractions: (x + 2)/3 = (x − 1)/2Try it in the calculator ↑

Multiply both sides by the common denominator 6

  1. 2(x + 2) = 3(x − 1).
  2. 2x + 4 = 3x − 3.
  3. Subtract 2x and add 3: x = 7.
  4. Check: 9/3 = 3 and 6/2 = 3.

Answer: x = 7

Brackets: 3(x + 2) = x + 14Try it in the calculator ↑

Expand first

  1. 3x + 6 = x + 14.
  2. 2x = 8.
  3. x = 4.

Answer: x = 4

Each line is the previous one with the same operation applied to both sides.

Solve for x in a Quadratic Equation

Try factoring first: x² − 5x + 6 = 0 becomes (x − 2)(x − 3) = 0, so x = 2 or x = 3. When it will not factor, use the quadratic formula. For 2x² + 3x − 2 = 0 the discriminant is 3² − 4(2)(−2) = 25, so x = (−3 ± 5) ÷ 4, giving x = 1/2 or x = −2. A positive discriminant means two real roots, zero means one and a negative value means none. The curve crossing the x-axis at the same points confirms it.

Our quadratic equation calculator and factoring calculator go deeper on each method.

Solve for x With Logs, Exponents and Radicals

To undo a log, rewrite it as a power: log₂ x = 5 means x = 2⁵ = 32. To undo an exponent, take a log: 2ˣ = 20 gives x = log 20 ÷ log 2 ≈ 4.32. To undo a square root, square both sides, but then check every answer, because squaring can create a false one.

Radical: √(x + 7) = x + 1Try it in the calculator ↑

Square both sides

  1. x + 7 = x² + 2x + 1, so x² + x − 6 = 0.
  2. (x + 3)(x − 2) = 0, so x = −3 or x = 2.
  3. Check x = −3: √4 = 2, but x + 1 = −2, so it fails.
  4. Check x = 2: √9 = 3 and 2 + 1 = 3, so it works.

Answer: x = 2 only (−3 is an extraneous solution)

The graph crosses once. x = −3 appeared only because squaring removes signs.

Solve for x in a Diagram: Triangles, Parallel Lines and Parallelograms

Geometry problems become equations once you pick the right rule. Angles in a triangle add to 180°, so 2x + 10, 3x − 5 and 55 give 5x + 60 = 180 and x = 24. Opposite angles of a parallelogram are equal, so 3x + 15 = 5x − 25 gives x = 20. In a right triangle with legs 6 and x and hypotenuse 10, Pythagoras gives 36 + x² = 100, so x = 8.

Angle sums, opposite angles and Pythagoras turn a diagram into an equation in x.

Solve for x in a Formula, a Proportion or a System

Solving a formula for x works exactly like a number equation. From y = mx + b, subtract b and divide by m to get x = (y − b) ÷ m. For a proportion, cross-multiply: 3/x = 12/20 gives 12x = 60, so x = 5. For a system such as x + y = 10 and x − y = 2, add the equations to get 2x = 12, so x = 6 and y = 4. An absolute value like |x − 3| = 5 is a distance question, so x = −2 or x = 8.

Both roots of 2x² + 3x − 2 = 0 appear where the parabola meets the x-axis.

Solve for x Word Problems

Worded problems need one extra step: define x. “Three consecutive integers add to 72” becomes x + (x + 1) + (x + 2) = 72, so 3x + 3 = 72 and x = 23, giving 23, 24 and 25. “A jacket costs $60 after 20% off” becomes 0.80x = 60, so x = 75. Say in words what x stands for before you write the equation, and check the answer against the story, not only against the algebra.

Common Mistakes When Solving for x

  1. Changing only one side. Subtracting 6 from the left but not the right breaks the balance.
  2. Dropping a bracket sign. In 3(x − 2), the 3 multiplies both terms: 3x − 6, not 3x − 2.
  3. Dividing by a variable. Dividing x² = 5x by x loses the root x = 0. Move everything to one side and factor instead: x(x − 5) = 0.
  4. Skipping the check. Fractions with x in the denominator, roots and logs can all give answers that do not satisfy the original equation.

Our Take: What Is Overrated, Underrated and Plain Wrong

Overrated: memorising separate recipes for each equation type. Inverse operations cover most of them.

Underrated: substituting the answer back in. It is the cheapest check there is.

Plain wrong: dividing both sides by an expression that could be zero. You can lose a valid solution that way.

Solve for x Practice Problems With Answers

Try each by hand first.

  1. 3x + 5 = 11
    Answerx = 2
  2. 5(x − 2) = 3x + 4
    Answerx = 7
  3. 3/x = 12/20
    Answerx = 5
  4. x² − 5x + 6 = 0
    Answerx = 2 or x = 3
  5. |x − 3| = 5
    Answerx = −2 or x = 8

Written by the Mathvelo team, who do not claim a teaching credential. Every method is shown so you can check it. See About, Contact, Privacy and Terms, or report a mistake.

Why Students Get Stuck on Solving for x, and What a Good Calculator Should Do

Searching for help with solving for x usually starts late at night with one problem that will not work out. Each step is easy, and the order of steps is where it goes wrong. A good calculator fixes that by showing each step, checking its own answer and explaining the idea in plain words. This section covers what students struggle with, what they want, and how this page responds.

In short: students need to isolate x one inverse operation at a time, not just see a final number, and a calculator earns trust only when its steps can be checked.

Understand the frustrations and desires

What they feel, and what they want

Each frustration points to a wish: a clearer step, a built-in check, an explanation in plain words.

  • Wants every inverse step named
  • Wants the answer checked in the original
  • Wants fractions and brackets handled

Build the page around their intent

Each intent has a place on this page

The page follows intent, not features, so each need has a clear starting point.

  • I need an answer now: type the problem into the calculator at the top of this page.Solve 3x + 7 = 22
  • I need to understand: the sections below explain the idea in plain words and list the common mistakes.
  • I need to check my work: every step is shown, so the first line that differs from yours is the one to study.
  • I need practice: open the solver, tap + and choose Create Practice Test.
  • I need it explained aloud: in the solver, tap + and choose Create Video.

Solve for X: Questions People Ask

Is this solve for x calculator free?

Yes. It is free, needs no sign-up and also reads equations from a photo.

How do I solve for x step by step?

Name the type, undo operations in reverse order using the same step on both sides, then substitute x back to check.

How do I solve for x with fractions?

Multiply every term by the common denominator to clear the fractions, then solve the resulting equation.

Why do I get an extra answer with square roots?

Squaring both sides can create a false root. Always substitute each answer back, as with √(x + 7) = x + 1, where x = −3 fails.

How do I solve for x in a triangle?

Pick the rule that applies. Angles add to 180°, and right triangles obey a² + b² = c². Write that as an equation in x and solve it.

Can it solve for x from a photo?

Yes. Upload a clear photo, check the equation it reads, then press Solve.

How do I solve for x in an equation?

Do the same operation to both sides until x is alone: undo addition and subtraction first, then multiplication and division. Check by putting the answer back into the equation.

How do I solve for x with fractions?

Multiply every term by the common denominator to clear the fractions, then solve the resulting equation as usual.

What if an equation has no solution or every x works?

If x disappears and you get a false statement like 3 = 5, there is no solution. A true statement like 4 = 4 means every x works.

↑