Skip to main content

Inequality Calculator

Try an example:

This inequality calculator solves linear, compound, quadratic, rational and absolute value inequalities. You get the steps, a number line and the answer in interval notation. It is free, and it is one part of our math solver.

How to Use the Inequality Calculator

Enter Your Inequality

Use <, >, <= and >=. For example, type -3x+1>=10. A double inequality such as -1<2x+3<=7 works too.

Read the Steps

If a step reverses the sign, it says why. For quadratics, the steps show the critical points and the test points.

Read the Number Line

The shaded part is the answer. A filled circle means the end number is included. An empty one means it is not.

Inequality Symbols and Interval Notation

SymbolMeaningExampleIntervalCircle
<<less thanx<3x<3(−∞,3)(-\infty,3)Open
>>greater thanx>3x>3(3,∞)(3,\infty)Open
≤\leless than or equal tox≤3x\le 3(−∞,3](-\infty,3]Closed
≥\gegreater than or equal tox≥3x\ge 3[3,∞)[3,\infty)Closed

A round bracket leaves the end out. A square bracket includes it. Infinity always gets a round bracket, because it is not a number you can reach. The symbol ∪\cup, called union, joins two separate pieces.

Inequality calculator number lines: an open circle at 3 shaded left and a closed circle at 3 shaded right

How to Solve Inequalities Step by Step

Linear Inequalities

Treat it like an equation: undo adding, then multiplying. The one extra rule is about negative numbers, and it has its own section below.

Compound Inequalities

In −1<2x+3≤7-1<2x+3\le 7, do each step to all three parts. Subtract 3: −4<2x≤4-4<2x\le 4. Divide by 2: −2<x≤2-2<x\le 2. A compound "and" means both parts hold. A compound "or" means at least one does.

Quadratic Inequalities

Move everything to one side, factor, and find where it equals zero. These critical points cut the number line into parts. Test one number from each part, and keep the parts that work.

Absolute Value Inequalities

Absolute value is distance. ∣x−2∣<5\lvert x-2\rvert<5 means xx is less than 5 away from 2, so −5<x−2<5-5<x-2<5. With >> the distance is larger, so the answer splits into two outside pieces.

Rational Inequalities

Find where the top and the bottom are zero, then test each part. The bottom's zero is never included, because you can't divide by zero.

Which one should you choose? If the letter is only to the first power, use linear steps. If there is a square or a fraction, use critical points. If there are bars, rewrite as distance first.

Why Does the Inequality Sign Flip?

Multiplying or dividing by a negative number reverses the order of numbers. For example, 2 is less than 5, but negative 2 is greater than negative 5. To keep the statement true, you must reverse the sign. Adding and subtracting do not change the order, so the sign stays.

Worked Examples

Example 1: Dividing by a Negative

Solve −3x+1≥10-3x+1\ge 10.

  1. Subtract 1 from both sides: −3x≥9-3x\ge 9.
  2. Divide by −3-3 and flip the sign: x≤−3x\le -3.

In interval notation: (−∞,−3](-\infty,-3].

Example 2: A Quadratic Inequality

Solve x2−4>0x^2-4>0.

  1. Factor: (x−2)(x+2)>0(x-2)(x+2)>0. The critical points are −2-2 and 2.
  2. Test −3-3: 9−4=59-4=5, which is positive, so this part works.
  3. Test 0: 0−4=−40-4=-4, which is negative, so it fails.
  4. Test 3: 9−4=59-4=5, so this part works.

The answer is x<−2x<-2 or x>2x>2, which is (−∞,−2)∪(2,∞)(-\infty,-2)\cup(2,\infty).

Example 3: An Absolute Value

Solve ∣x−2∣<5\lvert x-2\rvert<5.

  1. Rewrite as distance: −5<x−2<5-5<x-2<5.
  2. Add 2 to all three parts: −3<x<7-3<x<7.

In interval notation: (−3,7)(-3,7).

Common Mistakes to Check

Forgetting to Flip the Sign

Test a number. In Example 1, x=0x=0 gives 1≥101\ge 10, which is false. So any answer that includes 0 must be wrong.

Confusing Open and Closed Circles

"Or equal to" means closed and a square bracket. Plain << or >> means open and a round bracket.

Practice Problems

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

Related Calculators

Learn More

FAQ

What Is Interval Notation?

A short way to write a range with brackets. −2<x≤2-2<x\le 2 becomes (−2,2](-2,2]. The round side leaves out the end, and the square side includes it.

What Do Open and Closed Circles Mean?

An open circle means that number is not part of the answer. A closed, filled circle means it is.

Can an Inequality Have No Solution?

Yes. x2+1<0x^2+1<0 has none, since a square plus 1 is never negative. Others are true for all real numbers, such as x2+2x+3>0x^2+2x+3>0.

Can It Solve Two Inequalities at Once?

This inequality solver takes a double inequality, such as -1<2x+3<=7. It does not draw shaded regions for inequalities with both xx and yy.

When Is the Answer a Single Number?

When only one point makes it true. For example, x2≤0x^2\le 0 works only at x=0x=0.

How Is an Inequality Different From an Equation?

An equation usually has a few exact answers. An inequality usually has a whole range. To find the boundary points of a hard one, solve the matching equation with the equation solver or the quadratic formula calculator.


Next step: solve one by hand, test a number from your answer, then use the inequality calculator. Reading its number line is a good way to learn how an inequalities calculator thinks.