← All articles
mathhow to solve linear equationsalgebraequationsAugust 13, 20269 min read

How to Solve Linear Equations Step by Step

By the BrainSnail editorial team. How these articles are written and checked, and how to tell us when one is wrong.

Solving linear equations becomes much easier when you treat the equals sign like a balance. Whatever operation you perform on one side, you perform on the other side too. The goal is to isolate the unknown while preserving an equation that stays true at every step.

Keeping the balance

A linear equation contains a variable, such as x, raised only to the first power. A simple example is x + 5 = 12. To isolate x, undo the addition of 5 by subtracting 5 from both sides. The equation becomes x = 7. The operation changes both sides, so the equality is preserved.

The same idea works when multiplication is involved. If 3x = 18, divide both sides by 3 to get x = 6. You are not moving a number across the equals sign by magic. You are applying the same inverse operation to both sides, which is a more reliable way to understand what is happening.

When solving linear equations, say the operation to yourself. If the variable has 4 added to it, subtract 4. If it is multiplied by 5, divide by 5. Thinking in inverse operations turns algebra into a sequence of small reversible steps.

Undo operations in a useful order

More complicated equations may need several steps. For 2x + 3 = 15, first subtract 3 from both sides to get 2x = 12. Then divide both sides by 2 to get x = 6. You are undoing the operations around x in reverse order.

If the variable appears on both sides, collect variable terms on one side first. For example, 5x + 2 = 3x + 10 can become 2x + 2 = 10 after subtracting 3x from both sides. Then subtract 2 and divide by 2. The same balance rule still controls every move.

Brackets may need to be expanded before the equation becomes easy to simplify. Combining like terms can also reduce clutter. The key to solving linear equations is not speed. It is making one valid change at a time and writing enough working to see why each step is allowed.

A reliable equation routine

Use this checklist when you solve a linear equation:

  • •Simplify brackets and combine like terms if needed.
  • •Move variable terms to one side using the same operation on both sides.
  • •Move constant terms away from the variable.
  • •Divide or multiply to leave the variable alone.
  • •Substitute your answer into the original equation to check it.

Fractions are another place where the balance idea helps. If x divided by 4 plus 2 equals 7, subtract 2 from both sides first to get x divided by 4 equals 5, then multiply both sides by 4 to get x equals 20. If the entire expression is inside a fraction, clearing denominators can make the equation easier to read, but every multiplication must apply consistently. This is part of solving linear equations without losing terms: slow down around fractions and brackets, because most errors come from incomplete operations rather than difficult algebra.

When there is no solution or every number works

Occasionally the variable disappears while you are solving, and that tells you something important. Try 2x + 3 = 2x + 5. Subtracting 2x from both sides leaves 3 = 5, which is false whatever x is. The equation has no solution. Now try 2(x + 1) = 2x + 2. Expanding the bracket gives 2x + 2 = 2x + 2, and subtracting 2x leaves 2 = 2, which is always true. This is called an identity: every value of x works. Neither result means you made a mistake, so read the final line carefully.

Linear equations are also a tool for word problems. Suppose a taxi charges a fixed fee of 3 pounds plus 2 pounds per kilometre, and your fare comes to 17 pounds. Let x be the number of kilometres. The situation becomes 3 + 2x = 17. Subtract 3 to get 2x = 14, then divide by 2 to find x = 7. The hardest part is usually translating the words, so define your variable clearly, write the equation in the same order as the story, and check the answer makes sense.

Seeing the solution on a graph

Linear equations get their name from graphs: an expression like 3x - 4 plotted as y = 3x - 4 gives a straight line. That gives you a second way to see what solving means. To solve 3x - 4 = 8, draw the line y = 3x - 4 and the horizontal line y = 8. They cross at exactly one point, where x is 4. Solving algebraically, by adding 4 and dividing by 3, finds the same x value without drawing anything.

The picture also explains the special cases. When the variable cancels to leave something false, the two sides are parallel lines with the same slope but different starting heights, so they never meet. When it cancels to leave something always true, the two sides are actually the same line, so they meet everywhere. A graph is rarely the most precise method, since reading values from a sketch introduces errors, but it is an excellent check that an answer is sensible and a good way to understand why algebra works.

Solving equations before algebra existed

People solved linear equations thousands of years before anyone wrote x. The Rhind Mathematical Papyrus, copied in Egypt around 1550 BCE, asks for a quantity which, added to a seventh of itself, makes 19. Its scribes used a method now called false position. Guess a convenient answer, such as 7, because a seventh of 7 is easy to find. Then 7 plus 1 gives 8, not 19. Because the equation is linear, scaling the guess scales the result, so multiply 7 by 19 divided by 8. That gives 16 and five eighths, which is the correct answer.

The word algebra comes from a book written in Baghdad in the early ninth century by the scholar Muhammad ibn Musa al-Khwarizmi. Its title includes al-jabr, meaning restoring, and al-muqabala, meaning balancing. Restoring meant removing a subtracted quantity by adding it to both sides, turning what we would write as 2x - 3 = 7 into 2x = 10, and balancing meant cancelling equal terms on both sides. Al-Khwarizmi worked entirely in words, without symbols, yet his steps are the same balance moves used here. Letters for unknowns came much later, in sixteenth and seventeenth century Europe.

Clearing fractions and rearranging formulas

Multiplying every term by a common denominator removes fractions in one move. Take (x + 1)/3 minus (x - 2)/4 equals 2. The least common multiple of 3 and 4 is 12, so multiply every term by 12. That gives 4(x + 1) minus 3(x - 2) equals 24. Here is the classic trap: the minus sign belongs to the whole bracket, so minus 3 times minus 2 is plus 6. You get 4x + 4 - 3x + 6 = 24, so x + 10 = 24 and x = 14. Check: 15/3 is 5, 12/4 is 3, and 5 minus 3 is 2.

The same balance moves let you rearrange a formula to make a different letter the subject. The physics formula v = u + at gives final speed from starting speed, acceleration and time. To find t instead, subtract u from both sides to get v - u = at, then divide by a, giving t = (v - u)/a. Temperature conversion is similar. Starting from F = 9C/5 + 32, subtract 32, multiply by 5 and divide by 9 to get C = 5(F - 32)/9. Testing with the boiling point of water, F = 212 gives C = 5 times 180 over 9, which is 100.

The takeaway

Solving linear equations comes down to preserving equality while you isolate the variable. Use inverse operations, do the same thing to both sides, simplify carefully, and check the final value in the original equation. Once the balance idea is clear, even longer linear equations become a sequence of manageable steps.

Practise this

Questions from Algebra

Reading about something is not the same as being able to recall it. These are real questions from the Algebra unit in our Math track, answers and explanations included. The unit has 120 in total across 21 steps.

  • Match the pairsLevel 3

    1. Match each system to its solution (x, y).

    Answer: x + y = 5, x - y = 1 = (3, 2); x + y = 7, x - y = 1 = (4, 3); x + y = 9, x - y = 3 = (6, 3)

    Solving each system by adding the equations gives the listed ordered pair.

  • Guess the numberLevel 3

    2. Solve for x: 5x - 3 = 22. What is x?

    Answer: 5

    Add 3 to get 5x = 25, then divide by 5 to find x = 5.

  • Build the sentenceLevel 3

    3. Build a true statement about quadratic equations.

    Answer: A quadratic equation can have two solutions

    A quadratic equation can have two solutions where its graph crosses the x-axis.