Skip to content
GM Calculator

Written and reviewed byMuhammad ShahidHow we verify calculations

30 Linear Equation Examples With Step-by-Step Solutions

Thirty worked linear equations grouped by type, from one-step problems to no-solution cases. Every step and every check is written out. Paste any of them into the equation solver and it runs the same steps live.

Try the Equation Solver โ†’30 worked examplesLast updated: October 2026

How to practice with these examples

  1. Cover the steps, try the problem on paper, then uncover and compare.
  2. Substitute your answer back into the original equation to confirm it.
  3. Type the problem into the equation solver when you want to see the machine run the same steps.

The groups below follow the order most textbooks use: one-step equations first, then two-step, parentheses, variables on both sides, decimals and fractions, and finally the special cases with no solution or infinitely many solutions.

One-step equations

One inverse operation solves these. Addition undoes subtraction, multiplication undoes division, and a negative coefficient flips the sign of the answer.

x + 7 = 12

1. Subtract 7 from both sides

x = 5

Check: 5 + 7 = 12

x - 4 = 9

1. Add 4 to both sides

x = 13

Check: 13 - 4 = 9

5x = 45

1. Divide both sides by 5

x = 9

Check: 5(9) = 45

x/3 = 6

1. Multiply both sides by 3

x = 18

Check: 18/3 = 6

-3x = 21

1. Divide both sides by -3. The negative sign carries into the answer.

x = -7

Check: -3(-7) = 21

Two-step equations

Undo the addition or subtraction first, then the multiplication. The order matters: clearing the constant first keeps the coefficient step clean.

2x + 3 = 11

1. Subtract 3 from both sides: 2x = 8

2. Divide both sides by 2

x = 4

Check: 2(4) + 3 = 11

3x - 5 = 16

1. Add 5 to both sides: 3x = 21

2. Divide both sides by 3

x = 7

Check: 3(7) - 5 = 16

22t + 10 = 98

1. Subtract 10 from both sides: 22t = 88

2. Divide both sides by 22. The variable is t, not x.

t = 4

Check: 22(4) + 10 = 98

4x + 7 = -5

1. Subtract 7 from both sides: 4x = -12

2. Divide both sides by 4

x = -3

Check: 4(-3) + 7 = -5

10 - 3x = 1

1. Subtract 10 from both sides: -3x = -9

2. Divide both sides by -3. Both signs flip.

x = 3

Check: 10 - 3(3) = 1

Equations with parentheses

Distribute before you move anything. The number in front multiplies every term inside, including the constant.

2(x + 3) = 14

1. Distribute: 2x + 6 = 14

2. Subtract 6 from both sides: 2x = 8

3. Divide both sides by 2

x = 4

Check: 2(4 + 3) = 14

7(2z - 6) = -112

1. Distribute: 14z - 42 = -112

2. Add 42 to both sides: 14z = -70

3. Divide both sides by 14

z = -5

Check: 7(2(-5) - 6) = 7(-16) = -112

26 - 14d = 2(5 + d)

1. Distribute on the right: 26 - 14d = 10 + 2d

2. Add 14d to both sides, then subtract 10: 16 = 16d

3. Divide both sides by 16

d = 1

Check: 26 - 14(1) = 12 and 2(5 + 1) = 12

3(x - 2) = 2x + 1

1. Distribute: 3x - 6 = 2x + 1

2. Subtract 2x from both sides: x - 6 = 1

3. Add 6 to both sides

x = 7

Check: 3(7 - 2) = 15 and 2(7) + 1 = 15

5(x + 2) - x = 20

1. Distribute: 5x + 10 - x = 20

2. Combine like terms: 4x + 10 = 20

3. Subtract 10, then divide by 4

x = 2.5

Check: 5(2.5 + 2) - 2.5 = 22.5 - 2.5 = 20

Variables on both sides

Gather every variable term on one side and every number on the other. Subtract the smaller variable term when you can, so the coefficient stays positive. The full method is in the variables on both sides guide.

5x = 3x + 8

1. Subtract 3x from both sides: 2x = 8

2. Divide both sides by 2

x = 4

Check: 5(4) = 20 and 3(4) + 8 = 20

0.5x - 4 = 8 - x

1. Add x to both sides: 1.5x - 4 = 8

2. Add 4 to both sides: 1.5x = 12

3. Divide both sides by 1.5

x = 8

Check: 0.5(8) - 4 = 0 and 8 - 8 = 0

4x + 7 = 2x + 15

1. Subtract 2x from both sides: 2x + 7 = 15

2. Subtract 7 from both sides: 2x = 8

3. Divide both sides by 2

x = 4

Check: 4(4) + 7 = 23 and 2(4) + 15 = 23

6x - 3 = 2x + 9

1. Subtract 2x from both sides: 4x - 3 = 9

2. Add 3 to both sides: 4x = 12

3. Divide both sides by 4

x = 3

Check: 6(3) - 3 = 15 and 2(3) + 9 = 15

3x + 5 = x - 1

1. Subtract x from both sides: 2x + 5 = -1

2. Subtract 5 from both sides: 2x = -6

3. Divide both sides by 2

x = -3

Check: 3(-3) + 5 = -4 and -3 - 1 = -4

Decimals and fractions

Decimals work exactly like whole numbers. For fractions, either clear the denominators by multiplying through, or combine the fraction terms directly.

x - 3.3 = 13.2

1. Add 3.3 to both sides. Line the decimal points up.

x = 16.5

Check: 16.5 - 3.3 = 13.2

x + 1/2 = 3

1. Subtract 1/2 from both sides: x = 3 - 0.5

x = 2.5

Check: 2.5 + 0.5 = 3

1.5x + 2 = 8

1. Subtract 2 from both sides: 1.5x = 6

2. Divide both sides by 1.5

x = 4

Check: 1.5(4) + 2 = 8

x/2 + x/4 = 3

1. Multiply every term by 4 to clear the fractions: 2x + x = 12

2. Combine like terms: 3x = 12

3. Divide both sides by 3

x = 4

Check: 4/2 + 4/4 = 2 + 1 = 3

2x + 0.25 = 5.25

1. Subtract 0.25 from both sides: 2x = 5

2. Divide both sides by 2

x = 2.5

Check: 2(2.5) + 0.25 = 5.25

No solution and infinitely many solutions

When the variable cancels, look at what remains. A false statement means no solution. A true statement means every value works.

2x + 1 = 2x + 5

1. Subtract 2x from both sides: 1 = 5

No solution

1 = 5 is false for every value of x, so nothing satisfies the equation.

4x + 6 = 4x + 6

1. Subtract 4x from both sides: 6 = 6

Infinitely many solutions

6 = 6 is always true, so every value of x works.

3x - 2 = 3x + 4

1. Subtract 3x from both sides: -2 = 4

No solution

-2 = 4 is false for every value of x.

5(x - 1) = 5x - 5

1. Distribute: 5x - 5 = 5x - 5

2. Subtract 5x from both sides: -5 = -5

Infinitely many solutions

Both sides are the same expression, so the equation is an identity.

7x + 2 = 7x - 3

1. Subtract 7x from both sides: 2 = -3

No solution

2 = -3 is false for every value of x.

Related guides

Solving equations with variables on both sides

The full method plus 7 more worked problems in that one pattern, including 3x + 2 = x/2 + 7.

Literal equations: solving for a variable in a formula

Formulas like 1/5 gc = r and t/(4dยฒ - 4) = r, solved for whichever letter you need.

Combine like terms calculator

The first step of every equation above is simplifying each side. This tool shows that step on its own.

Frequently Asked Questions About Linear Equation Examples

How do you solve a linear equation step by step?

Simplify both sides first, including distributing parentheses and combining like terms. Then move every variable term to one side with addition or subtraction, move every number to the other side, and divide by the coefficient. Finish by substituting the answer back into the original equation.

How do I check whether an example answer is correct?

Put the answer back into the original equation and simplify both sides. For x = 4 in 2x + 3 = 11: 2(4) + 3 = 11, which is true. Every example on this page carries its own check line. The equation solver runs the same substitution automatically and prints a verification under each answer.

What does it mean when an equation has no solution?

If the variable terms cancel and leave a false statement, like 1 = 5 in 2x + 1 = 2x + 5, no value of x makes the equation true. If the leftover statement is true, like 6 = 6 in 4x + 6 = 4x + 6, every value works, so there are infinitely many solutions. Both outcomes appear in the last group of examples.

Can the equation solver do all 30 of these?

Yes. It takes any single variable, expands parentheses, reads decimals and fractions, and handles variables on both sides. It also reports the no solution and infinitely many solutions cases on their own. Type an example exactly as written here and the solver runs the same steps live.

What is the difference between one-step and two-step equations?

A one-step equation needs a single inverse operation: x + 7 = 12 needs only subtraction. A two-step equation undoes an operation pair, usually the constant first and then the multiplication: in 2x + 3 = 11, subtract 3, then divide by 2. Most homework sets move from one-step to two-step to parentheses and beyond.

Muhammad Shahid

Reviewed by Muhammad Shahid

Writer & Calculator Reviewer

Writes and reviews calculator content across marketing, finance, health, and math at GM Calculator.

โœ“ Content Reviewerโœ“ Calculator Accuracy Specialist

Last reviewed: November 4, 2026