Guide

How to solve linear equations

By Viktor Lassen4 min readUpdated 3 September 2026

Solving an equation means getting x to stand alone. The trick is always the same: find what is in the way of x, do the opposite of it on both sides, and keep the scales balanced.

Solving an equation means finding the unknown value, most often called xx. The trick is always the same: find what is in the way of xx, do the opposite of it, and do it on both sides of the equals sign. The usual hurdle is remembering that "both sides" is not optional.

When do I use this?

Whenever a letter stands for a number you don't know, and an equals sign tells you how it relates to numbers you do know. If you're not sure what an equation actually is, read that entry first; it explains why an equation behaves like a scale in balance. The equals sign says that what stands on both sides is exactly the same, and everything below follows from that.

The procedure: keep the scales balanced

Since we're interested in finding xx, we want the equation to have the form

x=somethingx = \text{something}

We get there by taking a bit off each side of the equals sign, one step at a time:

  1. Look at what stands next to xx and is in the way. Is a number added? Is xx multiplied by a number?
  2. Do the opposite of it. The opposite of +10+10 is โˆ’10-10. The opposite of multiplying by 2 is dividing by 2.
  3. Do that opposite on both sides of the equals sign, so the scales stay level.
  4. Repeat until xx stands alone on one side, and then we know what xx is.

The whole idea of solving equations is to find the opposite of what you want to get rid of, so you can get the unknown value on its own.

Worked examples

Example 1: a number is added

x+10=30x + 10 = 30

Here we'd like the +10+10 gone, because then xx is on its own. We can do that by taking 10 away, since 10โˆ’10=010 - 10 = 0, and then the +10+10 is removed. We do it on both sides:

Taking 10 away on both sides, so the plus 10 disappears and x stands alone

x+10โˆ’10=30โˆ’10x + 10 - 10 = 30 - 10

x=20x = 20

So xx equals 20. We can check this is right, because we know that 20+10=3020 + 10 = 30. What we did was the opposite of +10+10, which is โˆ’10-10.

Example 2: x is multiplied by a number

The same goes if xx is multiplied by a number: then we can divide, because dividing is the opposite of multiplying. Take

2x=102x = 10

In this example xx is multiplied by 2, so if we divide by 2 on both sides we get

2x2=102\frac{2x}{2} = \frac{10}{2}

1x=51x = 5

1x1x is just the same as xx, after all, so

x=5x = 5

Example 3: two steps

Often both things are in the way at once:

42=2x+1242 = 2x + 12

We can see that +12+12 stands in the way, so we'd like it removed. We do that by taking 12 away on both sides. So we do the opposite of +12+12 (which is โˆ’12-12), and it disappears:

42โˆ’12=2x+12โˆ’1242 - 12 = 2x + 12 - 12

30=2x30 = 2x

Now we can see that xx is multiplied by 2, because there is always a hidden multiplication sign between a number and a letter. We'd like that gone too, so xx comes to stand alone. So we do the opposite of "times 2", which is "divide by 2". We divide by 2 on both sides:

302=2x2\frac{30}{2} = \frac{2x}{2}

15=x15 = x

So we've arrived at xx being equal to 15. It doesn't matter that xx ended up on the right: 15=x15 = x says exactly the same as x=15x = 15.

When we solve equations, we always do the same thing on both sides, because we want to get the equation down to "x=?x = ?". Some equations have xx on both the right-hand and the left-hand side of the equals sign. Then we first gather all the numbers on one side and all the xx's on the other; that gets its own guide, equations with the unknown on both sides.

Common mistakes

  • "I took 10 away on the left, so the left is done." Whatever we do has to be done on both sides, otherwise the scale tips. x+10=30x + 10 = 30 becomes x+10โˆ’10=30โˆ’10x + 10 - 10 = 30 - 10, not x=30x = 30.
  • "2x=102x = 10, so I take 2 away and get x=8x = 8." No. xx is multiplied by 2, and the opposite of multiplying is dividing. 2xรท2=10รท22x \div 2 = 10 \div 2 gives x=5x = 5.
  • "2x2\tfrac{2x}{2} is 1x1x, and that is not the same as xx." It is. 1x1x is just xx; the 1 in front doesn't change anything.
  • "15=x15 = x is wrong because xx should be on the left." It's the same statement either way round. The equals sign says both sides are the same, in whichever order you write them.

Frequently asked questions

Read next

Want to get good at maths?

Mathara explains every topic step by step with videos, exercises and personal feedback.

๐Ÿ‘‰ Get started for free