How-to guides · 3 min read

How to Solve Inequalities Step by Step (With Examples)

How to Solve Inequalities Step by Step (With Examples) — illustration
In short: Solve an inequality like an equation, with one extra rule: when you multiply or divide both sides by a negative number, reverse the inequality sign. So 3x + 5 > 20 gives x > 5, but −2x + 7 ≤ 1 gives x ≥ 3.

What an inequality is

An equation says two things are equal. An inequality says one is larger or smaller. The four symbols are < (less than), > (greater than), ≤ (less than or equal to) and ≥ (greater than or equal to). Where an equation usually has one solution, an inequality usually has infinitely many: x > 5 is true for 5.1, 6, 100 and every other number above 5.

SymbolMeaningExampleInterval notation
x > 5greater thanx = 6 works, x = 5 does not(5, ∞)
x ≥ 5greater than or equal tox = 5 works[5, ∞)
x < 5less thanx = 4 works(−∞, 5)
x ≤ 5less than or equal tox = 5 works(−∞, 5]

Round brackets mean the endpoint is not included; square brackets mean it is.

The method is the same as for equations

You can add or subtract the same number on both sides, and multiply or divide both sides by the same positive number, without changing the direction. That is the same toolkit as solving linear equations. Solve 3x + 5 > 20.

  • Subtract 5 from both sides: 3x > 15
  • Divide both sides by 3 (positive, so the sign stays): x > 5
123456789
x > 5: an open circle at 5 (5 is not included) and the line continuing to the right.

Check with a test value from the shaded part: x = 6 gives 3(6) + 5 = 23, which is greater than 20 ✓. A value outside it, x = 4, gives 17, which is not greater than 20, so it correctly fails.

The rule that is different: negatives flip the sign

Multiplying or dividing by a negative reverses the order of numbers. For example 2 < 5, but −2 > −5. So if you multiply or divide both sides of an inequality by a negative number, you must reverse the sign. Solve −2x + 7 ≤ 1.

  • Subtract 7: −2x ≤ −6
  • Divide by −2 and flip the sign: x ≥ 3
−101234567
x ≥ 3: a closed circle at 3 (3 is included) and the line continuing to the right.

Check: x = 3 gives −2(3) + 7 = 1, which is ≤ 1 ✓ (equal, and equality is allowed). x = 5 gives -3, also ≤ 1 ✓. x = 0 gives 7, which is not ≤ 1, so it is correctly excluded. If you forget to flip, you would wrongly get x ≤ 3, the opposite set.

Variables on both sides

Collect the x terms on one side first. Solve 5x − 3 < 2x + 9.

StepWorking
Subtract 2x from both sides3x − 3 < 9
Add 3 to both sides3x < 12
Divide by 3 (positive, no flip)x < 4
Check x = 35(3) − 3 = 12 and 2(3) + 9 = 15; 12 < 15 ✓

A tip to avoid flipping at all: move the x terms so the coefficient of x ends up positive. Here, subtracting 5x instead would give −3 < −3x + 9, which then needs a flip.

Compound inequalities

A compound inequality has two parts, such as −3 < 2x + 1 ≤ 9. Do the same operation to all three parts at once.

  • Subtract 1 from all parts: −4 < 2x ≤ 8
  • Divide all parts by 2: −2 < x ≤ 4

The solution is every x greater than −2 and at most 4, written (−2, 4] in interval notation. Test x = 0: 2(0) + 1 = 1, and −3 < 1 ≤ 9 ✓.

Absolute value inequalities

The expression |x − 3| < 5 means x is less than 5 units from 3, so −5 < x − 3 < 5 and then −2 < x < 8. For |x − 3| > 5, x is more than 5 units away, which gives two separate pieces: x < −2 or x > 8.

InequalityRewrite asSolution
|x − 3| < 5−5 < x − 3 < 5−2 < x < 8
|x − 3| ≤ 5−5 ≤ x − 3 ≤ 5−2 ≤ x ≤ 8
|x − 3| > 5x − 3 < −5 or x − 3 > 5x < −2 or x > 8

A word problem

A phone plan costs 25 a month plus 0.10 per text. How many texts keep the bill at or below 40? The inequality is 25 + 0.10x ≤ 40.

  • Subtract 25: 0.10x ≤ 15
  • Divide by 0.10: x ≤ 150

You can send at most 150 texts, and 40.00 is the bill at exactly 150. Because texts cannot be negative, the practical range is 0 ≤ x ≤ 150. The words "at most" and "no more than" mean ≤, "at least" means ≥, and "fewer than" means <.

Common mistakes

  • Forgetting to flip when dividing or multiplying by a negative.
  • Flipping when you should not, for example after dividing by a positive.
  • Wrong circle on the number line. Open for < and >, closed for ≤ and ≥.
  • Not checking. Substitute a value from your solution set and one from outside it.

For other typical errors, see common algebra mistakes. To check the boundary value, solve the matching equation with the linear equation solver.

Frequently asked questions

When do I flip the inequality sign?

Whenever you multiply or divide both sides by a negative number.

What is the difference between < and ≤ on a number line?

An open circle for < and > (the endpoint is excluded), a closed circle for ≤ and ≥ (the endpoint is included).

How do I check an inequality answer?

Pick a number inside your solution set and one outside, substitute both into the original inequality, and confirm the first works and the second does not.

Can an inequality have no solution?

Yes. For example x + 1 < x has no solution, and x + 1 > x is true for every real number.

Written and reviewed by Mateuss M.

Mateuss M. writes and reviews mathematical content for CalcSolver, focusing on online calculators, formulas, equations, and practical math tools. He reviews calculator functionality, calculation methods, formulas, examples, and explanations to help ensure that each tool is clear, useful, and easy to understand.

Keep reading