Skip to main content
guidealgebralinear equations

How to Solve Linear Equations: Complete Step-by-Step Guide

·15 min read·Solvify Team

Linear equations are the foundation of algebra, and learning how to solve linear equations is one of the most practical skills you can build in mathematics. A linear equation with one variable contains an unknown — typically x — with an exponent of 1, and your goal is to find the exact value that makes the equation true. This guide covers every category you will encounter from middle school through high school: one-step equations, two-step equations, multi-step equations requiring distribution and like-term collection, equations with variables on both sides, equations involving fractions and decimals, and real-world word problems. Every method includes fully worked examples, a verification step, and an explanation of the reasoning behind each move — not just what to do, but why it works.

What Is a Linear Equation?

A linear equation is any equation where the variable appears with an exponent of exactly 1 — no squares, no square roots, no variables in denominators. The name comes from the graph: a linear equation in two variables always traces a perfectly straight line on the coordinate plane. In one-variable form, the general structure is ax + b = c, where a, b, and c are constants and a ≠ 0. Common examples include 3x + 7 = 22, x/4 − 2 = 5, and 2(x − 3) = 4x + 1. These contrast with non-linear equations such as x² + 5x = 6 (quadratic, due to x²), √x = 9 (square root), and 1/x = 3 (variable in denominator). Identifying the equation type before you start solving matters because each type requires a specific approach. For a linear equation in one variable, every strategy reduces to the same single goal: isolate x on one side of the equals sign with a coefficient of 1.

A linear equation takes the form ax + b = c, where a ≠ 0 and the variable has an exponent of 1. Every solving strategy has one goal: isolate the variable.

Core Principles: Why the Solving Steps Work

Understanding why solving linear equations works — not just the steps — helps you handle any equation, even ones you have not seen before. Every technique rests on two ideas: the balance principle and inverse operations. The balance principle states that an equation is like a perfectly balanced scale: both sides are equal, and as long as you perform the same operation on both sides simultaneously, the balance holds. Inverse operations are pairs that undo each other: addition undoes subtraction, multiplication undoes division. Solving a linear equation means applying the appropriate inverse operations to both sides in reverse order until x stands alone with a coefficient of 1.

1. Inverse operations

Every operation has an inverse that cancels it out. If a number is added to x, subtract it. If x is multiplied by a number, divide by it. In 5x = 35, x is multiplied by 5 — divide both sides by 5 to get x = 7. In x + 12 = 20, 12 is added to x — subtract 12 from both sides to get x = 8. Recognizing which operation to undo is the first decision in solving any linear equation.

2. The balance principle

Whatever operation you perform on one side of the equation, you must perform the same operation on the other side. Adding 4 to the left side requires adding 4 to the right side. Dividing the left side by 3 requires dividing the right side by 3. This rule is non-negotiable — violating it changes the equation and produces a wrong answer. Write both operations on the same line (for example, 'subtract 4 from both sides') to make the rule visible as you work.

3. Reverse order of operations

Operations were applied to x in a specific order when the equation was built. To undo them, reverse that order. In 3x + 7 = 22, x was first multiplied by 3, then 7 was added. Reverse: undo the addition (subtract 7) first, then undo the multiplication (divide by 3). This is the opposite of PEMDAS — you undo addition and subtraction before multiplication and division when isolating a variable.

4. Combining like terms

Terms with the same variable (or no variable) can be combined before isolating x. In 4x − x + 5 = 17, the terms 4x and −x combine to give 3x + 5 = 17. Constants combine separately: 8 + 3 − 5 = 6. Always simplify each side fully before moving anything across the equals sign — working on simplified equations is faster and produces fewer arithmetic errors.

5. Check every answer

After solving, substitute your answer back into the original equation. If both sides equal the same number, the solution is correct. This check takes roughly ten seconds and catches the most common errors before they cost marks. For example, if you find x = 5 for the equation 3x + 7 = 22, check: 3(5) + 7 = 15 + 7 = 22 ✓. The check is not optional — it is the fastest quality-control tool you have.

Every step in solving a linear equation must be applied to both sides equally. This is the balance principle — the rule that keeps the equation true from start to finish.

How to Solve Linear Equations: One-Step and Two-Step Types

One-step and two-step linear equations form the core of how to solve linear equations at the most fundamental level. They appear on every algebra test and build the foundation for more complex multi-step problems. Mastering these types means you can handle the first half of most algebra homework confidently. Work each example below before reading the solution, then compare your steps.

1. One-step: x + 9 = 25

The operation applied to x is +9. Undo it by subtracting 9 from both sides. Left: x + 9 − 9 = x. Right: 25 − 9 = 16. Solution: x = 16. Check: 16 + 9 = 25 ✓ The key habit here is writing 'subtract 9 from both sides' explicitly rather than doing it mentally. At this level, most errors come from mental arithmetic shortcuts, not from misunderstanding the procedure.

2. One-step: −7x = 56

The operation applied to x is multiplication by −7. Undo it by dividing both sides by −7. Left: −7x ÷ (−7) = x. Right: 56 ÷ (−7) = −8. Solution: x = −8. Check: −7 × (−8) = 56 ✓ Critical note: dividing a positive number by a negative number gives a negative result. This sign rule is the most common source of errors in one-step multiplication equations.

3. Two-step: 4x − 5 = 23

The operations applied to x are: first multiplied by 4, then 5 subtracted. Undo in reverse order. Step 1: Add 5 to both sides → 4x − 5 + 5 = 23 + 5 → 4x = 28. Step 2: Divide both sides by 4 → x = 7. Check: 4(7) − 5 = 28 − 5 = 23 ✓ The order matters: undo subtraction before undoing multiplication. Doing it in the wrong order creates unnecessary fraction arithmetic.

4. Two-step: (x/5) + 3 = 11

Operations on x: divided by 5, then 3 added. Undo in reverse. Step 1: Subtract 3 from both sides → x/5 + 3 − 3 = 11 − 3 → x/5 = 8. Step 2: Multiply both sides by 5 → x = 40. Check: 40/5 + 3 = 8 + 3 = 11 ✓ When x sits in the numerator of a fraction (x/5), treat division as the operation and multiply both sides by the denominator to clear it.

5. Two-step: 9 − 3x = 21

Here x has a negative coefficient after the constant 9. Be careful with signs. Step 1: Subtract 9 from both sides → 9 − 3x − 9 = 21 − 9 → −3x = 12. Step 2: Divide both sides by −3 → x = −4. Check: 9 − 3(−4) = 9 + 12 = 21 ✓ A frequent mistake: treating 9 − 3x and then forgetting the negative sign on the coefficient during division. Writing −3x = 12 explicitly before dividing prevents this error.

6. Two-step: (2/3)x − 4 = 10

The fractional coefficient (2/3) makes this look harder than it is. Step 1: Add 4 to both sides → (2/3)x = 14. Step 2: Multiply both sides by the reciprocal 3/2 → x = 14 × (3/2) = 21. Check: (2/3)(21) − 4 = 14 − 4 = 10 ✓ To undo multiplication by a fraction, multiply by its reciprocal. Multiplying by 3/2 is equivalent to dividing by 2/3 — either method gives the same result.

Two-step order: undo addition or subtraction before undoing multiplication or division. Always work in reverse order of the operations built into the equation.

Solving Multi-Step Linear Equations

Multi-step linear equations combine several techniques: distributing across parentheses, collecting like terms on each side, and using multiple inverse operations to isolate x. These equations appear throughout Algebra I and II exams and standardized tests. The key is a fixed sequence: distribute first, then collect like terms on each side, then isolate x. Skipping steps or rushing the distribution phase is where most multi-step errors originate.

1. Example 1: 2(3x + 4) − 5 = 19

Step 1: Distribute the 2 → 6x + 8 − 5 = 19. Step 2: Combine like terms on the left → 6x + 3 = 19. Step 3: Subtract 3 from both sides → 6x = 16. Step 4: Divide by 6 → x = 8/3. Check: 2(3 × 8/3 + 4) − 5 = 2(8 + 4) − 5 = 2(12) − 5 = 24 − 5 = 19 ✓ Leave fractional answers as fractions unless the problem specifies decimal rounding.

2. Example 2: −3(x − 5) + 4x = 8

Step 1: Distribute −3. Key sign: −3 × (−5) = +15. −3x + 15 + 4x = 8. Step 2: Combine x-terms → x + 15 = 8. Step 3: Subtract 15 from both sides → x = −7. Check: −3(−7 − 5) + 4(−7) = −3(−12) − 28 = 36 − 28 = 8 ✓ Distributing a negative multiplier is the step where errors cluster. Verify each product's sign before moving on.

3. Example 3: 5(2x − 3) = 3(x + 4) + 2

Step 1: Distribute on both sides → 10x − 15 = 3x + 12 + 2 → 10x − 15 = 3x + 14. Step 2: Subtract 3x from both sides → 7x − 15 = 14. Step 3: Add 15 to both sides → 7x = 29. Step 4: Divide by 7 → x = 29/7. Check: 5(2 × 29/7 − 3) = 5(58/7 − 21/7) = 5(37/7) = 185/7; 3(29/7 + 4) + 2 = 3(57/7) + 14/7 = 171/7 + 14/7 = 185/7 ✓

4. Example 4: 4[2(x + 1) − 3] = 28

Nested grouping symbols require working from innermost to outermost. Step 1: Distribute the inner 2 → 4[2x + 2 − 3] = 28 → 4[2x − 1] = 28. Step 2: Distribute the outer 4 → 8x − 4 = 28. Step 3: Add 4 to both sides → 8x = 32. Step 4: Divide by 8 → x = 4. Check: 4[2(4 + 1) − 3] = 4[10 − 3] = 4[7] = 28 ✓

Multi-step order: (1) Distribute across all parentheses. (2) Combine like terms on each side. (3) Move variable terms to one side. (4) Isolate x with inverse operations.

Solving Linear Equations with Variables on Both Sides

When x appears on both sides of the equals sign, collect all variable terms on one side and all constants on the other. The most reliable habit is to move the smaller x-term — this keeps the coefficient on x positive and reduces sign errors in subsequent steps. After collecting, solve the resulting two-step equation normally. Example 1: 7x + 3 = 4x + 18 Step 1: Subtract 4x from both sides → 3x + 3 = 18. Step 2: Subtract 3 from both sides → 3x = 15. Step 3: Divide by 3 → x = 5. Check: 7(5) + 3 = 38; 4(5) + 18 = 38 ✓ Example 2: 2(x + 4) = 3(x − 1) + 5 Step 1: Distribute both sides → 2x + 8 = 3x − 3 + 5 → 2x + 8 = 3x + 2. Step 2: Subtract 2x from both sides → 8 = x + 2. Step 3: Subtract 2 → x = 6. Check: 2(6 + 4) = 20; 3(6 − 1) + 5 = 15 + 5 = 20 ✓ Example 3 — No solution: 5x + 6 = 5x − 3 Subtract 5x from both sides → 6 = −3. This is false for every value of x. The equation has no solution. Geometrically, these are two parallel lines that never intersect. Example 4 — Infinite solutions: 3(2x + 4) = 6(x + 2) Distribute both sides → 6x + 12 = 6x + 12. Subtract 6x → 12 = 12. Always true — every real number is a solution. The two expressions are identical and represent the same line.

When variable terms cancel and leave a false statement (like 6 = −2), there is no solution. When they leave a true statement (like 8 = 8), every real number is a solution.

Solving Linear Equations with Fractions and Decimals

Fractions and decimals in linear equations are among the top sources of calculation errors in algebra. The fix for fractions is the LCD method: multiply every term in the equation by the least common denominator to clear all fractions in one move. For decimals, multiply by a power of 10 to convert the equation to integers. Both strategies eliminate problematic notation and leave a clean integer equation to solve.

1. Fractions: x/3 + x/4 = 7

The denominators are 3 and 4. LCD = 12. Multiply every term by 12: 12 × (x/3) + 12 × (x/4) = 12 × 7 4x + 3x = 84 7x = 84 x = 12. Check: 12/3 + 12/4 = 4 + 3 = 7 ✓ Multiplying by the LCD clears all fractions simultaneously. The rest of the problem becomes a straightforward integer equation.

2. Fractions: (2x − 1)/3 − (x + 2)/5 = 1

LCD of 3 and 5 is 15. Multiply every term by 15: 15 × (2x − 1)/3 − 15 × (x + 2)/5 = 15 × 1 5(2x − 1) − 3(x + 2) = 15 10x − 5 − 3x − 6 = 15 7x − 11 = 15 7x = 26 x = 26/7. Check: (2 × 26/7 − 1)/3 − (26/7 + 2)/5 = (45/7)/3 − (40/7)/5 = 15/7 − 8/7 = 7/7 = 1 ✓

3. Decimals: 0.4x + 1.5 = 3.7

Multiply every term by 10 to eliminate the one-decimal-place values: 10(0.4x) + 10(1.5) = 10(3.7) 4x + 15 = 37 4x = 22 x = 5.5. Check: 0.4(5.5) + 1.5 = 2.2 + 1.5 = 3.7 ✓ If the equation has two decimal places (like 0.25), multiply by 100 instead of 10. The goal is always to reach integer coefficients before solving.

4. Mixed fractions and decimals: (3/4)x − 0.5 = 2.5

Convert 0.5 and 2.5 to fractions first: 0.5 = 1/2, 2.5 = 5/2. Equation becomes (3/4)x − 1/2 = 5/2. LCD of 4 and 2 is 4. Multiply every term by 4: 4 × (3/4)x − 4 × (1/2) = 4 × (5/2) 3x − 2 = 10 3x = 12 x = 4. Check: (3/4)(4) − 0.5 = 3 − 0.5 = 2.5 ✓ When an equation mixes fractions and decimals, convert decimals to fractions first, then find the LCD and clear everything in one multiplication.

To clear fractions from a linear equation, multiply every term by the LCD. All fractions disappear in one step and you are left with an integer equation.

Common Mistakes When Solving Linear Equations

These errors appear repeatedly in student work when learning how to solve linear equations across every level of algebra. Recognizing them in advance is far more effective than discovering them in marked assignments.

1. Distributing only to the first term inside parentheses

In 4(x − 6), many students write 4x − 6 instead of 4x − 24. The multiplier must reach every term inside. For negative multipliers the error compounds: −2(x − 3) = −2x + 6, not −2x − 6. The negative distributes to both x and −3: −2 × (−3) = +6. Always multiply the factor outside the parentheses by every single term inside, checking the sign of each product.

2. Moving a term without changing its sign

Terms do not simply move across the equals sign — you apply an inverse operation to both sides. To move 5 from the right side of 3x = 12 + 5, add 5 to both sides: 3x + 5 = 17? No — that example shows a different equation. The correct procedure is always: identify the operation, apply its inverse to both sides. Writing the operation explicitly prevents the common error of teleporting terms and forgetting sign changes.

3. Dividing by a negative number and losing the sign

In −4x = 20, dividing both sides by −4 gives x = −5. A common error is to write x = 5. Dividing a positive by a negative produces a negative result: 20 ÷ (−4) = −5. Verify: −4 × (−5) = 20 ✓. If you prefer, multiply both sides by −1 first to flip the equation to 4x = −20, then divide by 4: x = −5. Same answer, without dividing by a negative.

4. Combining unlike terms

Like terms must have identical variable parts to be combined. 3x and 5x combine to 8x. But 3x and 5 cannot combine — one is a variable term, the other is a constant. Similarly, 4x and 4x² cannot combine — different exponents make them unlike. A very common mistake on multi-step problems is writing 3x + 5 = 8x. Always check that terms share the same variable part before adding or subtracting them.

5. Not applying every operation to both sides

In 2x + 6 = 14, subtracting 6 from only the left gives the wrong equation 2x = 14. The correct result is 2x = 8. The operation (subtracting 6) must be applied to both sides. On complex multi-step problems, it helps to write '−6' below both sides before simplifying, making the requirement visual. This habit eliminates one of the most common errors in multi-step equation solving.

6. Skipping the check step

After solving 3(x + 2) = 4x − 1, substituting your answer back into the original takes about ten seconds. If you found x = 7, check: left = 3(7 + 2) = 3(9) = 27; right = 4(7) − 1 = 27 ✓. If the sides do not match, there is an arithmetic error in one of your steps — and catching it before submission takes far less time than finding it in marked work.

Linear Equation Word Problems: Strategy and Worked Examples

Word problems test whether you can translate a real-world description into a solvable linear equation. The translation step is often harder than the solving step. Follow this five-stage strategy every time: (1) identify the unknown, (2) assign it a variable, (3) translate each condition into mathematical notation, (4) write one equation, (5) solve and verify in context.

1. Number problem: sum and difference

Two numbers differ by 8 and their sum is 42. Find both. Let n = the smaller number. Then the larger = n + 8. Equation: n + (n + 8) = 42 2n + 8 = 42 2n = 34 n = 17; larger = 25. Check: 17 + 25 = 42 ✓; 25 − 17 = 8 ✓ Defining one unknown and expressing the second in terms of it (n + 8) is the key technique that produces a single equation in one unknown.

2. Geometry: rectangle perimeter

A rectangle's length is 5 cm more than twice its width. Its perimeter is 82 cm. Find both dimensions. Let w = width (cm). Then length = 2w + 5. Perimeter: 2(length + width) = 82 2(2w + 5 + w) = 82 2(3w + 5) = 82 6w + 10 = 82 6w = 72 w = 12 cm; length = 2(12) + 5 = 29 cm. Check: 2(29 + 12) = 2(41) = 82 ✓

3. Earnings problem

Alex earns $14 per hour. He already has $63 saved and wants to save exactly $259 total. How many more hours must he work? Let h = additional hours. 63 + 14h = 259 14h = 196 h = 14 hours. Check: 63 + 14(14) = 63 + 196 = 259 ✓ The structure — starting amount + rate × quantity = target — is the template for dozens of common rate-and-accumulation word problems in algebra.

4. Age problem

Sofia is 5 times as old as her daughter now. In 6 years, she will be 3 times her daughter's age. Find their current ages. Let d = daughter's current age. Sofia's current age = 5d. In 6 years: Sofia = 5d + 6; daughter = d + 6. Equation: 5d + 6 = 3(d + 6) 5d + 6 = 3d + 18 2d = 12 d = 6; Sofia = 30. Check: Now — 30 = 5 × 6 ✓. In 6 years — Sofia = 36, daughter = 12, 36 = 3 × 12 ✓.

5. Coin mixture problem

A jar holds 35 coins — only dimes and quarters — worth $6.35 total. How many of each coin? Let d = number of dimes. Then quarters = 35 − d. Value equation: 0.10d + 0.25(35 − d) = 6.35 0.10d + 8.75 − 0.25d = 6.35 −0.15d = −2.40 d = 16 dimes; quarters = 35 − 16 = 19. Check: 16(0.10) + 19(0.25) = 1.60 + 4.75 = 6.35 ✓

Word problem strategy: name one unknown x, express all others in terms of x, write one equation from the problem's conditions, solve, then verify the answer makes sense in the original context.

FAQ: How to Solve Linear Equations

These are the questions students most commonly ask when learning how to solve linear equations for the first time.

1. What is the first step in solving any linear equation?

The first step depends on the equation's structure. If there are parentheses, distribute first. If there are fractions, multiply through by the LCD. If neither applies, identify which inverse operation undoes the outermost operation applied to x and apply it to both sides. Starting with simplification — distributing and combining like terms — before moving values across the equals sign is the most reliable general approach.

2. Does the order of steps matter?

Yes. Distributing before combining like terms prevents errors. Combining like terms before moving variable terms to one side produces a cleaner equation. The standard order — (1) distribute, (2) combine like terms on each side, (3) move variable terms to one side, (4) move constants to the other, (5) divide by the coefficient — exists for good reason. Deviating from it often creates avoidable fraction arithmetic mid-problem.

3. Can a linear equation have more than one solution?

A linear equation in one variable normally has exactly one solution. Two exceptions exist: if all variable terms cancel and leave a true statement (like 0 = 0 or 5 = 5), every real number is a solution. If they cancel and leave a false statement (like 3 = 7), no value of x works — the answer is 'no solution.' Both cases are worth recognizing instantly since they require different written answers from a numerical value.

4. How do I check if my answer is correct?

Substitute your solution into the original equation — not a simplified version, the original. Evaluate both sides completely. If they produce the same number, the answer is correct. For example, if you solved 3(2x − 4) = 2(x + 5) and found x = 11, check: left = 3(22 − 4) = 54; right = 2(16) = 32. Those are not equal, so x = 11 is wrong — go back and find the error before proceeding.

5. How do I handle equations with negative coefficients?

A negative coefficient on x (like −3x = 18) requires dividing both sides by a negative number. The sign of the result flips: 18 ÷ (−3) = −6, so x = −6. Verify: −3 × (−6) = 18 ✓. An alternative: multiply both sides by −1 first to flip the sign, getting 3x = −18, then divide by 3: x = −6. Both routes give the same answer — use whichever feels more natural.

6. What is the difference between a linear equation and a linear inequality?

A linear equation uses an equals sign (=) and has at most one solution. A linear inequality uses <, >, ≤, or ≥ and has a range of solutions (for example, x > 4 or x ≤ −2). The solving steps are nearly identical, with one critical difference: multiplying or dividing both sides of an inequality by a negative number flips the direction of the inequality symbol. For example, −2x > 10 becomes x < −5 after dividing by −2. This flip does not apply to equations.

Tags:
guidealgebralinear equations

Get Homework Help Now

Join millions of students using our AI math solver for homework help. Get instant solutions to math problems, step-by-step explanations, and 24/7 homework assistance.

Available for iOS and Android devices