Math Explained

Home › Algebra

How to Solve Linear Equations Step by Step

Learn how to solve linear equations by keeping both sides balanced, undoing operations in the right order, and checking your answer.

2026-10-19 · 5 min read

A linear equation is an equation in which the variable appears only to the first power, with no squares, square roots, or variables inside other functions. Examples include 2x + 3 = 11 and 5 - x = 2x + 8. Solving one means finding the single value of the variable that makes the statement true. This guide explains the reasoning behind each step so you can apply the same method to any linear equation you meet.

The balance idea

An equation says that two expressions have the same value. A useful picture is a balance scale: the left pan and the right pan hold equal weight. If you add a weight to one pan, you must add the same weight to the other pan, or the scale tips. Every legal step in solving an equation keeps the scale level.

This is why you may add, subtract, multiply, or divide both sides by the same nonzero number. The equality survives because you changed both pans in the same way. Dividing by zero is the one forbidden move, because no number multiplied by zero gives a nonzero result, so the operation has no meaning.

Why order matters

When a variable is wrapped in several operations, you undo them in reverse order. In 2x + 3 = 11, the variable is first multiplied by 2 and then increased by 3. To isolate it, you undo the addition first and the multiplication second. This mirrors getting dressed in reverse when you undress: the last layer added is the first one removed.

A worked example

Consider 2x + 3 = 11.

Step one: subtract 3 from both sides. This gives 2x = 8.

Step two: divide both sides by 2. This gives x = 4.

Step three: check the answer by substituting 4 back into the original equation. The left side becomes 2(4) + 3 = 8 + 3 = 11, which matches the right side. A correct answer always passes this test, so the check takes only seconds and catches most arithmetic slips.

Equations with the variable on both sides

Sometimes the variable appears on both sides, as in 5 - x = 2x + 8. The goal is to gather all variable terms on one side and all constants on the other. You can add x to both sides to get 5 = 3x + 8, then subtract 8 from both sides to get -3 = 3x, and finally divide by 3 to get x = -1.

Choosing which side keeps the variable is a matter of taste. Keeping the coefficient positive can reduce sign errors, but either choice gives the same answer if you carry the work through carefully.

Parentheses and distribution

Many equations contain brackets, such as 3(x - 2) = 2x + 1. Before isolating the variable, remove the brackets using the distributive property, which says that a(b + c) = ab + ac. Here, 3(x - 2) becomes 3x - 6, so the equation is 3x - 6 = 2x + 1. From this point, the balance method works as before: subtract 2x from both sides to get x - 6 = 1, then add 6 to get x = 7.

Expanding first is almost always cleaner than dividing first, because division by a binomial can introduce fractions that are harder to track.

Fractions and decimals

Fractions can make equations look harder than they are. Multiply every term by the least common denominator to clear them. For example, x/2 + x/3 = 5 has denominator 6. Multiplying each term by 6 gives 3x + 2x = 30, so 5x = 30 and x = 6.

Decimals can be handled the same way. Multiply by a power of ten to turn them into whole numbers. The equation 0.25x + 1.5 = 4 becomes 25x + 150 = 400 after multiplying by 100, leading to x = 10.

Common mistakes and a comparison table

Most errors come from a small set of habits. Dropping a negative sign when moving a term across the equals sign is the most frequent. Dividing only one term when a whole side needs dividing is another. Forgetting to distribute a negative sign over a bracket causes many wrong answers too.

The table below shows how the number of solution steps grows with the structure of the equation. The counts describe the typical path for a single variable.

Equation type Example Typical steps Solutions
One-step x + 7 = 12 1 1
Two-step 2x + 3 = 11 2 1
Variable on both sides 5 - x = 2x + 8 3 1
With brackets 3(x - 2) = 2x + 1 3 1
Identity 2x + 4 = 2(x + 2) 2 Infinitely many
Contradiction x + 1 = x + 3 2 None

The last two rows show that a linear equation does not always have exactly one solution. If the variable cancels completely and the remaining statement is true, every value works. If the remaining statement is false, no value works.

Why this skill matters

Linear equations appear everywhere in science, economics, and everyday planning. Converting a temperature between Celsius and Fahrenheit, calculating how long a loan takes to repay at a fixed rate, or finding the break-even point of a business all reduce to a linear equation. The same balancing reasoning also prepares you for systems of equations, inequalities, and the more advanced methods used in calculus.

Solving formulas for a chosen variable

The same method solves literal equations, which are formulas containing several letters. Suppose Newton's second law F = ma must be rearranged to find the acceleration a. The variable a is multiplied by m, so the inverse operation is division. Dividing both sides by m gives a = F / m, which is the form needed when the force and mass are known.

Kinematics offers a slightly longer case. The equation v = u + at relates final velocity v, initial velocity u, acceleration a, and time t. To solve for t, first subtract u from both sides to get v - u = at. Then divide both sides by a, which gives t = (v - u) / a. The steps are the same as for numerical equations, except that the answer is an expression instead of a number.

Treat every other letter as a constant during this process. The rule is simple, but it prevents many errors because students often try to combine unlike symbols. Solving for a letter means undoing the operations that surround that letter, in reverse order, exactly as before.

Key takeaways

Keep both sides balanced by performing the same operation on each side. Undo operations in reverse order, removing additions and subtractions before multiplications and divisions. Expand brackets and clear fractions before isolating the variable, because this reduces the chance of error.

Always check the answer by substitution. A correct solution satisfies the original equation, and this single habit catches most mistakes.

Recognize the special cases. An equation can have one solution, no solution, or infinitely many, and the cancellation of the variable tells you which one applies.

More in Algebra

Algebra

How the Quadratic Formula Works and Why It Always Solves

Understand where the quadratic formula comes from, how the discriminant predicts the type of roots, and how to apply it to any quadratic equation.

5 min read