Home›Math›Math Solver Guide

Linear Equations Solved Step by Step

The two-move method, the balance rule behind it, and the substitution check that catches every slip — worked on six examples with every number verified.

14 min readUpdated October 2026Math Solver

A linear equation looks small, and it is small: two moves solve it, and one check confirms it. Yet it is also the place where more marks are lost to sign errors and skipped checks than anywhere else in elementary algebra. This guide treats the linear equation as a skill to be done exactly, not quickly. It states the form ax + b = c, derives the two-move method from the balance rule, works six examples with their substitution checks, names the five mistakes that produce confident wrong answers, and states the special cases where the answer is words rather than a number. Every example is recomputed, every check is shown, and the method matches the steps the Math Solver prints for the same numbers.

Key takeaways
  • A linear equation is ax + b = c with a not zero; the unknown appears only to the first power.
  • Solve by balancing: clear the added number first, then divide by the coefficient — both sides, every time.
  • Check every answer by substitution into the original equation, with both sides evaluated separately.
  • When a = 0, the answer is words, not a number: infinitely many solutions, or no solution.

What a linear equation actually is

A linear equation in one unknown is an equation of the form ax + b = c, where a, b, and c are numbers and a is not zero. The word linear comes from the straight line such an equation draws when it is graphed, but you do not need a graph to solve one. You need only the definition and one rule. The definition tells you what counts: the unknown appears exactly once, to the first power, with a number in front of it and a number added to it. The moment a squared term appears, the equation is quadratic, not linear, and a different method applies. The moment a second unknown appears, you have a system, not a single equation. Keeping those boundaries sharp is half the skill, because most wrong attempts at linear equations are really attempts at the wrong type of equation.

Consider the examples that run through this guide. The equation 3x + 5 = 20 is linear with a = 3, b = 5, and c = 20. The equation 7x − 9 = 19 is linear with a = 7, b = −9, and c = 19, and the negative sign on b is part of the number, not decoration. The equation −4x + 10 = 2 is linear with a = −4, and the negative coefficient changes the arithmetic but not the method. The equation 5x = 2x + 21 is linear once it is rearranged, because both x terms are first-power terms and they combine into a single term. The equation 2(x + 3) = 16 is linear once the bracket is expanded. None of these needs anything beyond the four operations, and none of them needs a formula to memorise. They need a method applied carefully, and a check at the end.

The one rule behind every step: balance

An equation is a scale. The equals sign says the two sides weigh the same, and every legal step is an operation applied to both sides at once, so the scale stays balanced. Add 5 to both sides and the balance holds. Subtract 5 from both sides and the balance holds. Multiply both sides by 3 and the balance holds. Divide both sides by 3 and the balance holds, provided you are not dividing by zero. That is the whole justification for the familiar classroom shortcut of moving a term across and changing its sign. Subtracting 5 from both sides of 3x + 5 = 20 leaves 3x = 15 on the left and 20 − 5 = 15 on the right, and writing the result as though the 5 had jumped across and changed its sign is just a shorter way of describing the same subtraction. The shortcut is safe only when you remember what it abbreviates. The moment you move a term without performing the operation it stands for, the scale breaks and the answer is wrong in a way that looks tidy.

The balance rule also explains why some tempting steps are illegal. Dividing both sides by x is legal only when x is not zero, and since x is exactly what you are trying to find, you cannot assume it. From 3x = 2x, the correct move is to subtract 2x from both sides, giving x = 0, which is a genuine solution. Dividing both sides by x instead would give 3 = 2, which is false, and the solution x = 0 would be lost entirely. Similarly, squaring both sides of an equation is not a balancing move in the same sense, because it can introduce values that satisfy the squared equation but not the original. For linear equations you never need it, and the discipline of staying inside the four operations, applied to both sides, keeps every step reversible and every solution genuine.

The method: isolate x in two moves

Every linear equation in the form ax + b = c is solved by the same two moves, in the same order. First, remove the added or subtracted number b by doing the opposite operation to both sides: if b is added, subtract it; if b is subtracted, add it. This leaves ax alone on one side, equal to a single number. Second, remove the coefficient a by dividing both sides by a. This leaves x alone, equal to a single number, and that number is the solution. The order matters in one direction only: clearing the added number first keeps the arithmetic small, because you divide once, at the end, by a number you can see. Dividing first also works, but it spreads fractions through the working, and fractions are where sign and arithmetic errors breed. For an equation that is not yet in the form ax + b = c, there is a zeroth step: rearrange it into that form first, by expanding brackets and collecting x terms on one side and numbers on the other.

Take 3x + 5 = 20 as the running example. Step one: subtract 5 from both sides, giving 3x = 15. Step two: divide both sides by 3, giving x = 5. That is the entire method, and the solver prints exactly these two steps for these numbers, followed by the check. Take 7x − 9 = 19. Step one: add 9 to both sides, giving 7x = 28, because subtracting a negative is adding. Step two: divide both sides by 7, giving x = 4. Take −4x + 10 = 2. Step one: subtract 10 from both sides, giving −4x = −8. Step two: divide both sides by −4, giving x = 2, because a negative divided by a negative is a positive. Each example uses the same two moves, and the only variation is in the signs, which is why sign discipline, not new ideas, is what separates a correct solution from a wrong one.

Worked examples, each checked

The table below collects the worked examples of this guide, with the key intermediate step and the substitution check for each. Read it as a set of solved problems, but also as a warning: the check column is not optional decoration. In every row, the check is what turns a candidate answer into a confirmed answer, and the habit of checking is worth more than any single trick in this article. A solver prints the check for you, but on paper the check is your own responsibility, and it takes less than a minute per problem.

EquationKey stepSolutionCheck
3x + 5 = 203x = 15x = 53 × 5 + 5 = 20 ✓
7x − 9 = 197x = 28x = 47 × 4 − 9 = 19 ✓
−4x + 10 = 2−4x = −8x = 2−4 × 2 + 10 = 2 ✓
5x = 2x + 213x = 21x = 75 × 7 = 35, 2 × 7 + 21 = 35 ✓
2(x + 3) = 16x + 3 = 8x = 52 × (5 + 3) = 16 ✓
x ÷ 3 + 4 = 9x ÷ 3 = 5x = 1515 ÷ 3 + 4 = 9 ✓

Every check substitutes the answer into the original equation, not into a rearranged version of it.

Two of these examples deserve a closer look, because each one hides a step that beginners skip. In 5x = 2x + 21, the equation is not yet in the form ax + b = c, since x appears on both sides. The zeroth step is to subtract 2x from both sides, giving 3x = 21, and only then does the two-move method apply, giving x = 7. The check must then be done against the original, both sides separately: the left side is 5 × 7 = 35 and the right side is 2 × 7 + 21 = 35, and they agree. In 2(x + 3) = 16, there are two correct routes. Expanding gives 2x + 6 = 16, then 2x = 10, then x = 5. Dividing both sides by 2 first gives x + 3 = 8, then x = 5 directly. Both are balancing moves, and both give the same answer, which is itself a useful cross-check: when two routes agree, confidence is high, and when they disagree, at least one route has an error worth finding before moving on.

A third example shows how the method extends to equations that look messier than they are. Consider x ÷ 2 + x ÷ 3 = 5, where the unknown is split across two terms. Multiplying every term by 6, the common denominator, clears both divisions at once: 3x + 2x = 30, so 5x = 30 and x = 6. The check is 6 ÷ 2 + 6 ÷ 3 = 3 + 2 = 5, which matches. Note what this example does not do: it does not introduce fraction-slash input, because the Math Solver accepts decimal coefficients only. On the solver you would enter the cleared or decimal form, and the point of the example here is the method — clearing denominators by multiplying through — which is a paper technique that keeps the solver’s decimal limitation from becoming a mathematical limitation.

Checking by substitution: the habit that catches everything

Substitution is the single most reliable checking tool in elementary algebra, and it is embarrassingly simple: put the answer back into the original equation and see whether both sides agree. For 3x + 5 = 20 with the candidate x = 5, the left side becomes 3 × 5 + 5 = 20 and the right side is 20, so the answer is confirmed. For a wrong candidate, the check fails loudly. If a sign error had produced x = −5 instead, the check would give 3 × (−5) + 5 = −10, which is not 20, and the error would be caught in seconds rather than carried into the next problem. The check works because it tests the answer against the problem as stated, not against your working, so it catches errors anywhere in the working, including errors you have already stopped seeing.

There are two disciplines that make substitution effective rather than decorative. First, substitute into the original equation, never into a rearranged version. A rearranged version may already contain the error, and checking against it will confirm a wrong answer. Second, compute both sides separately and compare, rather than simplifying one side toward the other. Writing the left side as a number and the right side as a number, then asking whether the two numbers are equal, leaves no room for wishful simplification. The solver follows both disciplines: its check line shows the original equation with the answer substituted and both sides evaluated. Copy that format on paper, and a large fraction of linear-equation errors will announce themselves before they cost marks.

Special cases: no solution, and infinitely many

The method assumes a is not zero, and the cases where a is zero deserve their own paragraph, because they are the only linear equations whose answers are not numbers. When a = 0, the x term vanishes entirely. The equation 0x + 5 = 5 simplifies to 5 = 5, which is true no matter what x is, so every value of x is a solution, and the correct answer is infinitely many solutions. The equation 0x + 5 = 7 simplifies to 5 = 7, which is false no matter what x is, so no value of x is a solution, and the correct answer is no solution. These are not trick questions and they are not failures of the method. They are the method reporting, honestly, that the equation has stopped being a question about x at all. The solver reports both cases in words for the same reason: a number would mislead, and words are the accurate answer.

How does a = 0 arise in practice? Usually by collecting terms. The equation 3x + 5 = 3x + 9 looks like a normal linear equation until the x terms are collected: subtracting 3x from both sides leaves 5 = 9, which is false, so there is no solution. The equation 4x + 2 = 4x + 2 collects to 2 = 2, which is true, so there are infinitely many solutions. In both cases the x terms cancel, and the remaining number statement decides the outcome. A student who divides by the coefficient without noticing that the coefficient has become zero will either divide by zero or invent a solution, so the rule is simple: after collecting terms, look at the coefficient before you divide. If it is zero, stop dividing and read the number statement instead.

Common mistakes, and how each one is caught

Linear-equation mistakes fall into a small number of patterns, and naming them makes them easier to avoid. The unsigned move is the most common: carrying a term across the equals sign without changing its sign, turning 3x + 5 = 20 into 3x = 25 instead of 3x = 15. The one-sided operation is nearly as common: dividing the left side by 3 but forgetting to divide the right side, turning 3x = 15 into x = 15 instead of x = 5. The sign error in subtraction is subtler: from −4x + 10 = 2, subtracting 10 must give −4x = −8, not −4x = 8, and the sign of the result is decided by the arithmetic, not by habit. The dropped bracket error turns 2(x + 3) = 16 into 2x + 3 = 16, forgetting to multiply the 3. The division-by-x error, discussed above, loses the solution x = 0. Every one of these is caught by substitution, which is why the check is not an optional extra but the safety net for the whole method.

MistakeWrong stepWhat the check shows
Unsigned move3x + 5 = 20 becomes 3x = 25x = 25 ÷ 3 fails: 3 × 25 ÷ 3 + 5 is not 20
One-sided division3x = 15 becomes x = 153 × 15 + 5 = 50, not 20
Sign error on subtraction−4x + 10 = 2 becomes −4x = 8x = −2 fails: −4 × (−2) + 10 = 18, not 2
Dropped bracket multiplier2(x + 3) = 16 becomes 2x + 3 = 16x = 6.5 fails: 2 × 9.5 = 19, not 16
Dividing by x3x = 2x divided by x gives 3 = 2The genuine solution x = 0 is lost entirely

If a check fails, rework from the original equation rather than patching the last line.

What the solver handles, and what it does not

The Math Solver’s linear panel handles exactly the equations described here: one unknown, first power, decimal coefficients entered as a, b, and c in ax + b = c. It prints the two balancing steps and the substitution check, and it reports the a = 0 cases in words. It does not read word problems, so translating a story into an equation remains your job, and the methods here begin once the equation exists. It does not accept fraction-slash input, so a coefficient written as 1 ÷ 2 must be entered as 0.5. It does not solve for two unknowns, and it does not handle a squared term; those are the system and quadratic panels, with their own methods. Knowing these borders keeps expectations honest: inside them, the two-move method plus a substitution check solves every linear equation, and outside them, a different article in this series applies.

A final piece of advice ties the whole guide together. Solve slowly enough to write each step on its own line, with the operation stated, and check every answer by substitution before moving on. Speed in linear equations comes from the method becoming automatic, not from skipping lines, and the students who skip lines are the ones who lose marks to sign errors they could have caught in seconds. The method is short, the check is shorter, and together they are sufficient. That is the whole subject, and it is enough.

Try it on the Math Solver

Enter your own coefficients and compare the solver steps with the method in this guide, one line at a time.

Open the Math Solver

Frequently asked questions

What is a linear equation?

A linear equation in one unknown has the form ax + b = c, where a, b, and c are numbers and a is not zero. The unknown x appears only to the first power: there is no x squared term, no x in a denominator, and no square root of x. Its graph is a straight line, and it has exactly one solution when a is not zero.

How do you solve 3x + 5 = 20 step by step?

Subtract 5 from both sides to get 3x = 15, then divide both sides by 3 to get x = 5. Check by substitution: 3 times 5 plus 5 equals 20, which matches the right side, so x = 5 is correct.

Why do you change the sign when you move a term to the other side?

You are not really moving a term; you are doing the same operation to both sides. Subtracting 5 from both sides of 3x + 5 = 20 leaves 3x = 15, and the 5 appears as minus 5 on the right side. The sign change is what subtraction looks like when it is written on the other side, not a separate rule.

What happens when the coefficient of x is zero?

When a is zero, the x term vanishes and the equation stops being about x. The equation 0x + 5 = 5 is true for every value of x, so there are infinitely many solutions, while 0x + 5 = 7 is false for every value of x, so there is no solution. Both are complete, correct answers.

What is the most common mistake when solving linear equations?

The most common mistake is an unsigned move: carrying a term across the equals sign without changing its sign, or dividing only one side. Every step must be applied to both sides, and the final answer should always be checked by putting it back into the original equation.

Can the Math Solver handle a linear equation with a fraction in it?

The solver takes decimal coefficients only, so an equation written with a fraction slash, such as x over 2, must be entered in decimal form or first cleared by multiplying through. The method in this guide works for any numbers, but the solver boxes accept decimals, not fraction-slash input.

Related guides

Similar Posts