How Do You Solve for x, Step by Step?

Author: codeplu.com
Last Updated: 29 Jul 2026
Est. Duration: 12 min
Skill Level: Beginner

Root Concept

To isolate x, undo the operations around it in reverse order — remove what was added last, then undo the multiplication, then check by substituting back.

CodePLU Goal

Upgrading Human Mental Models

Learn how to think in Workflows

Concept Playground
Code Logo Only

Concept Development By codeplu.com

Undoing the operations around x in reverse order, then verifying the answer

What Does Solving an Equation Actually Involve?

Solving for x has one goal and one method. The goal is to get x sitting alone on one side of the equals sign, because at that moment the equation is telling you what x is. The method is to undo whatever has been done to x — and to undo it in reverse order.

That reverse order is the part people skip, and it is the part that matters. In 2x + 3 = 11, two things have happened to x: it was multiplied by 2, and then 3 was added. Unwrapping a parcel does not start with the item inside; it starts with the last layer of paper that went on. Same here. The 3 was added last, so it comes off first.

Everything you remove has to come off both sides, for the reason established already: the equation is a claim of balance, and only identical changes keep it true. Then there is a final step that most people treat as optional and should not — substituting the answer back in. It costs a few seconds and it catches nearly every mistake. In the playground below you will connect the four stages of solving one equation, ending with that check.

How Does the Method Work?

1

Why undo in reverse order?

Look at what happened to x in 2x + 3. First it was multiplied by 2, then 3 was added. To get back to x you reverse that sequence: remove the 3, then undo the multiplication. Try it the other way and you can see why it fails. Divide 2x + 3 = 11 by 2 and you get x + 1.5 = 5.5, which is perfectly legal and simply not simpler — you have swapped whole numbers for decimals and still have two operations to undo. The order-of-operations idea from earlier is what generates the rule: because multiplication happens before addition when building the expression, addition must be undone before multiplication when taking it apart. Building goes one way, unbuilding goes the other, and that is true of far more than algebra.

2

What are inverse operations?

Every operation has an opposite that cancels it. Addition and subtraction undo each other; multiplication and division undo each other. So to remove an added 3 you subtract 3, and to undo a multiplication by 2 you divide by 2. That is the entire toolkit for equations at this level. Two details save trouble. First, apply the inverse to both sides every time — the balance rule has not gone away. Second, notice that the inverse depends on what was done to x, not on what looks awkward. In x - 5 = 2 the inverse is adding 5, even though adding feels like the wrong direction when you are trying to make something simpler. Read what was done, then do the opposite.

3

How do you handle x on both sides?

Equations like 5x = 2x + 9 look like a different problem and are not. The goal has not changed: get x alone. So gather the x terms on one side first by subtracting 2x from both sides, leaving 3x = 9, and then divide by 3 to get x = 3. The only new idea is that letters can be collected in the same way numbers can, because 5x minus 2x is 3x. Choose the side that avoids negatives where you can — subtracting the smaller x term keeps things tidier. And the check works exactly as before: 5 times 3 is 15, and 2 times 3 plus 9 is also 15, so both sides agree and the answer holds.

4

Why is checking not optional?

Substituting your answer back into the original equation is the only step that can tell you whether you are right, and it is the step people skip when short of time. Put x = 4 into 2x + 3: two fours are 8, plus 3 is 11, which matches the right-hand side exactly. If it had come out as 12, you would know immediately that something went wrong and could look for it. Note the word original — check against the equation you started with, not a line you rewrote, or you will simply confirm your own mistake. This habit is worth more than speed. In exams it converts near-misses into marks, and in real work it is the difference between a wrong number that gets noticed and one that does not.

Real World Example

A real question that turns into 2x + 3 = 11 without anyone mentioning algebra.

How Many Guests Can the Budget Cover?

Most equations start life as an ordinary question, and solving is just the tidy way of answering it:

1

The question as anyone would ask it

You are booking a hall. It costs 300 to hire, plus 25 for each guest's meal. The budget is 800. How many guests can come? Nobody thinks of this as algebra, but it has exactly one answer and there is no way to reach it by guessing efficiently.

2

Writing it down

Let g be the number of guests. The total cost is 300 + 25g, and the budget says that must equal 800: 300 + 25g = 800. Two things happened to g — multiplied by 25, then added to 300 — so they come off in reverse: the 300 first, then the 25.

3

Solving and checking

Subtract 300 from both sides: 25g = 500. Divide both sides by 25: g = 20. Now check against the original — 25 times 20 is 500, plus 300 is 800, which matches the budget exactly. Twenty guests. And notice the check is doing real work here, because an arithmetic slip would have committed you to booking the wrong number of meals.

Final Words

Solving is undoing in reverse order. Read what was done to x, then remove it in the opposite sequence — the thing added last comes off first — applying every inverse to both sides so the balance holds. Addition and subtraction undo each other, multiplication and division undo each other, and that is the whole toolkit at this level.

Then check, against the original equation, every time. That habit is what turns a method you can follow into one you can trust. With those four ideas — what a letter is, what an equation claims, why both sides must match, and how to unwrap x — you have the foundation the rest of algebra is built on.