Skip to main content

How to Solve Inequalities

Written by Awn · Published · 9 min read

Quick Answer

Here is how to solve inequalities. Treat the sign like an equals sign and get the variable alone, doing the same thing to both sides. If you multiply or divide by a negative number, flip the sign. Then graph the answer on a number line and test one value to check it.

What Is an Inequality?

An inequality compares two sides that may not be equal. Instead of one number, the answer is usually a whole range.

SignRead asCircle on the graph
<<is less thanOpen
>>is greater thanOpen
≤\leis less than or equal toClosed
≥\geis greater than or equal toClosed

Inequality Rules

What you do to both sidesWhat happens to the sign
Add or subtract any numberStays
Multiply or divide by a positive numberStays
Multiply or divide by a negative numberFlips
Swap the two sidesFlips

Here is why a negative flips it: 2<52<5 is true, but multiplying by −1-1 gives −2-2 and −5-5, and −2>−5-2>-5.

How to Solve Inequalities Step by Step

  1. Simplify each side.
  2. Gather the variable on one side.
  3. Undo adding and subtracting.
  4. Undo multiplying and dividing. Flip the sign if that number is negative.
  5. Graph the answer.
  6. Test a value from your range in the original inequality.

How to solve inequalities steps for 5 minus 2x is greater than 11

You can check each line in the inequality calculator.

Which Method Should You Use?

TypeExampleMethod
Linear4x−7≤94x-7\le 9Undo step by step
Compound−3≤3x+6<12-3\le 3x+6<12Do each step to all three parts
Absolute value∣2x+1∣≥5\lvert 2x+1\rvert\ge 5Split into two
Quadraticx2−x−6<0x^2-x-6<0Factor, then test parts
Rationalx+3x−1<0\frac{x+3}{x-1}<0Zeros of top and bottom, then test

Solving Inequalities of Each Type

Linear

Solve 4x−7≤94x-7\le 9. Add 7: 4x≤164x\le 16. Divide by 4: x≤4x\le 4. The 4 is positive, so the sign stays.

Compound

Solve −3≤3x+6<12-3\le 3x+6<12. Subtract 6 from all three parts: −9≤3x<6-9\le 3x<6. Divide by 3: −3≤x<2-3\le x<2.

Absolute Value

Solve ∣2x+1∣≥5\lvert 2x+1\rvert\ge 5. The distance from zero is at least 5, so 2x+1≥52x+1\ge 5 or 2x+1≤−52x+1\le -5. That gives x≥2x\ge 2 or x≤−3x\le -3.

A handy rule: "less than" gives one piece in the middle, and "greater than" gives two pieces on the outside.

Quadratic

Solve x2−x−6<0x^2-x-6<0.

  1. Factor: (x−3)(x+2)<0(x-3)(x+2)<0. The boundary points are 3 and −2-2.
  2. Test 0, which is between them: −6<0-6<0 is true.
  3. Test 4 and −3-3, which are outside: both give 6, so they fail.

The answer is −2<x<3-2<x<3.

How to solve a quadratic inequality by testing the three parts of a number line

Graphing Inequalities on a Number Line

  1. Mark the boundary number.
  2. Draw an open circle for << or >>, and a closed one for ≤\le or ≥\ge.
  3. Shade to the left for "less than" and to the right for "greater than."

In interval notation, x≤4x\le 4 is (−∞,4](-\infty,4] and −3≤x<2-3\le x<2 is [−3,2)[-3,2).

Why Does the Sign Flip?

Start with something you know is true: 2<52<5. Multiply both sides by −1-1 and you get −2-2 and −5-5. On the number line, −2-2 is to the right of −5-5, so −2>−5-2>-5. Multiplying by a negative number reflects the line around zero and reverses the order.

Adding or subtracting only slides both numbers the same distance, so their order stays the same. Multiplying by a positive number stretches the line but does not turn it around.

If you want to avoid flipping, move the xx term to the side where it is positive. For 5−2x>115-2x>11, add 2x2x to both sides: 5>11+2x5>11+2x. Subtract 11: −6>2x-6>2x. Divide by 2: −3>x-3>x. That is the same as x<−3x<-3, with no flip.

One-Step and Two-Step Inequalities

Start with the simplest kind. They use the same moves as equations.

ProblemMoveAnswer
x+9<4x+9<4Subtract 9x<−5x<-5
x−2≥6x-2\ge 6Add 2x≥8x\ge 8
5x>305x>30Divide by 5x>6x>6
−3x≤12-3x\le 12Divide by −3-3 and flipx≥−4x\ge -4
x−2>5\frac{x}{-2}>5Multiply by −2-2 and flipx<−10x<-10

For two steps, undo the adding or subtracting first. In 4x−7<134x-7<13, add 7 to get 4x<204x<20, then divide by 4 to get x<5x<5.

A negative answer does not mean you flip. In 5x>−305x>-30, you divide by positive 5, so the sign stays: x>−6x>-6. Only the number you multiply or divide by matters.

Inequalities With Two Letters

An inequality such as y<2x+1y<2x+1 has a whole region of answers instead of a piece of a number line.

  1. Draw the line y=2x+1y=2x+1. Use a dashed line for << or >>, because points on it don't count. Use a solid line for ≤\le or ≥\ge.
  2. Pick a test point that is not on the line. The origin (0,0)(0,0) is easiest.
  3. Put it in: 0<10<1 is true, so the origin is on the correct side.
  4. Shade that side.

If the test fails, shade the other side. With two inequalities together, the answer is where the two shaded parts overlap.

It also helps to say the answer out loud. "All numbers less than 5" is easier to check than a symbol, because you can name one and try it. Pick a number that should work and one that should not.

Writing the Answer in Interval Notation

InequalityInterval
x>3x>3(3,∞)(3,\infty)
x≥3x\ge 3[3,∞)[3,\infty)
x<−2x<-2(−∞,−2)(-\infty,-2)
−2≤x<5-2\le x<5[−2,5)[-2,5)
x≤−5x\le -5 or x≥2x\ge 2(−∞,−5]∪[2,∞)(-\infty,-5]\cup[2,\infty)

Use a square bracket when the end number is included and a parenthesis when it is not. Infinity always gets a parenthesis, because it is not a number you can reach. The sign ∪\cup means "or" and joins two separate parts.

Worked Examples

Example 1: The Sign Flips

Solve 5−2x>115-2x>11.

  1. Subtract 5: −2x>6-2x>6.
  2. Divide by −2-2 and flip: x<−3x<-3.
  3. Test −4-4: 5+8=135+8=13, and 13>1113>11.

Example 2: A Fraction

Solve x+3x−1<0\dfrac{x+3}{x-1}<0.

  1. The top is zero at −3-3. The bottom is zero at 1.
  2. Test 0: 3−1=−3\frac{3}{-1}=-3, which is negative, so the middle works.
  3. Test −4-4 and 2: both are positive, so they fail.

The answer is −3<x<1-3<x<1.

Example 3: Variables on Both Sides

Solve 7x−4≤3x+127x-4\le 3x+12.

  1. Subtract 3x3x: 4x−4≤124x-4\le 12.
  2. Add 4: 4x≤164x\le 16.
  3. Divide by 4: x≤4x\le 4. There is no flip, because 4 is positive.

Example 4: An Absolute Value With Greater Than

Solve ∣2x−1∣>7\lvert 2x-1\rvert>7.

  1. Greater than means the inside is far from zero, on one side or the other. So 2x−1>72x-1>7 or 2x−1<−72x-1<-7.
  2. First: 2x>82x>8, so x>4x>4.
  3. Second: 2x<−62x<-6, so x<−3x<-3.

The answer is x<−3x<-3 or x>4x>4. Check 0: ∣−1∣=1\lvert -1\rvert=1, which is not greater than 7, so the middle is not included.

Example 5: A Word Problem

A gym charges 20 dollars to join and 15 dollars a month. You can spend at most 110 dollars. How many months can you pay for?

  1. "At most" means less than or equal to: 20+15m≤11020+15m\le 110.
  2. Subtract 20: 15m≤9015m\le 90.
  3. Divide by 15: m≤6m\le 6.

You can pay for up to 6 months.

WordsSign
At most, no more than≤\le
At least, no less than≥\ge
More than>>
Fewer than, less than<<

Example 6: A Fraction That Is Not Compared With Zero

Solve 2xx−3≥1\dfrac{2x}{x-3}\ge 1.

  1. Don't multiply by x−3x-3, because you don't know its sign. Move the 1 over instead: 2xx−3−1≥0\dfrac{2x}{x-3}-1\ge 0.
  2. Combine: 2x−(x−3)x−3=x+3x−3≥0\dfrac{2x-(x-3)}{x-3}=\dfrac{x+3}{x-3}\ge 0.
  3. The top is zero at −3-3. The bottom is zero at 3.
  4. Test −4-4: −1−7\frac{-1}{-7} is positive, so it works. Test 0: −1-1, so it fails. Test 4: 7, so it works.

The answer is x≤−3x\le -3 or x>3x>3. The 3 is left out, because it makes the bottom zero.

Example 7: No Solution, or Every Number

Solve 2(x+3)<2x+12(x+3)<2x+1. Distribute: 2x+6<2x+12x+6<2x+1. Subtract 2x2x: 6<16<1. That is false, so there is no solution.

Solve x2+4>0x^2+4>0. A square is never negative, so the left side is always at least 4. Every real number works.

Solve ∣x−5∣<−2\lvert x-5\rvert<-2. A distance can't be less than a negative number, so there is no solution.

Common Mistakes

Flipping When You Subtract

Only multiplying or dividing by a negative flips the sign. Subtracting 5 does not.

Multiplying by an Unknown

Don't multiply both sides by x−1x-1, because you don't know if it is positive or negative. Test the parts instead.

Using the Wrong Circle

An open circle means the number is left out, as in x<3x<3. A filled circle means it is included, as in x≤3x\le 3.

Splitting an Absolute Value the Wrong Way

"Less than" gives one connected part, such as 1≤x≤71\le x\le 7. "Greater than" gives two separate parts joined by "or".

Writing Two Parts as One Chain

The answer x<−3x<-3 or x>4x>4 can't be written as 4<x<−34<x<-3. That chain would say 4 is less than −3-3. Keep the two parts separate.

Including a Number That Makes the Bottom Zero

Even with ≤\le or ≥\ge, a number that makes the bottom of a fraction zero is never part of the answer.

Practice Problems

  1. Solve 3x+8>23x+8>2.
  2. Solve 7−4x≥−57-4x\ge -5.
  3. Solve ∣x−4∣≤3\lvert x-4\rvert\le 3.
  4. Solve x2+3x−10≥0x^2+3x-10\ge 0.
  5. Solve x−5x+2<0\dfrac{x-5}{x+2}<0.
Show the answers
  1. x>−2x>-2
  2. x≤3x\le 3
  3. 1≤x≤71\le x\le 7
  4. x≤−5x\le -5 or x≥2x\ge 2
  5. −2<x<5-2<x<5

Check Your Answer With the Inequality Solver

Test one number inside your answer and one outside. The inside one should work and the outside one should fail. The inequality solver also draws the number line. If the equation steps feel shaky, go back to how to solve equations. A textbook version is Linear and Absolute Value Inequalities in OpenStax.

FAQ

When Do You Flip the Inequality Sign?

When you multiply or divide both sides by a negative number, or when you swap the two sides.

How Do You Solve Inequalities With Variables on Both Sides?

Subtract one of the variable terms from both sides, just as in an equation. Then finish as usual.

What If x Is on the Right Side?

Read it from the other end. 4≥x4\ge x means the same as x≤4x\le 4.

How Are Compound Inequalities Joined?

"And" means both parts must be true, which gives the overlap. "Or" means at least one is true, which gives everything in either part.

How Do You Check an Inequality Answer?

Pick a number from your range and put it into the original. Then try one from outside the range.

What Are the 5 Inequality Symbols?

They are << (less than), >> (greater than), ≤\le (less than or equal to), ≥\ge (greater than or equal to) and ≠\neq (not equal to).

Can an Inequality Have Just One Answer?

Yes, though it is rare. x2≤0x^2\le 0 is true only when x=0x=0, because a square is never negative.


Next step: solve one inequality with a negative number in front of xx and test your answer. Once the flip is a habit, you know how to solve inequalities of every linear kind.

Try the Calculator

Related Pages