Skip to content
  • Open the math solver
  • Ask the AI tutor
  • Find an AP course
  • Create a quiz
  • Open the calculator
  • Graphing Calculator
  • Browse all calculators
  • Read math guides
↑ ↓Enter to open · Esc to close
Solve a problem

Inequality Calculator

Enter an inequality and get its solution set in interval notation, with the critical points, a sign chart and the reasoning for every endpoint.

Use <, >, <=, >= (or ≤, ≥). Compound forms like -3 < 2x + 1 <= 7 and absolute values |x - 3| >= 2 work too.

Examples

About the Inequality Calculator

An equation asks where two expressions are equal; an inequality asks where one is larger or smaller than the other. The answer is usually not a single number but a range of numbers, such as all xx between 2 and 3. Writing that range correctly, with the right brackets and endpoints, is where most marks are lost.

This calculator solves linear inequalities like 3x−5≥73x - 5 \ge 7, polynomial inequalities like x2−5x+6<0x^2 - 5x + 6 < 0, rational inequalities like x+1x−2≤0\frac{x+1}{x-2} \le 0, compound inequalities like −3<2x+1≤9-3 < 2x + 1 \le 9, and absolute value inequalities like ∣x−4∣<3|x - 4| < 3. It always shows which points split the number line and tests each interval, so you see why the answer is what it is.

What is an inequality?

An inequality compares two expressions with one of the symbols <<, >>, ≤\le or ≥\ge. Its solution set is every value of the variable that makes the comparison true. For x+2>5x + 2 > 5 the solution set is every number greater than 3, written (3,∞)(3, \infty).

Interval notation uses round brackets for endpoints that are excluded and square brackets for endpoints that are included. Infinity always gets a round bracket because it is not a number that can be reached. Separate pieces are joined with the union symbol, as in (−∞,1)∪[4,∞)(-\infty, 1) \cup [4, \infty).

How to use the Inequality Calculator

  1. Type the inequality with <, >, <= or >=, for example x^2 - 5x + 6 < 0 or 2x + 3 >= 7.
  2. For compound inequalities, write both comparisons in one line, such as -3 < 2x + 1 <= 9.
  3. For absolute values use abs(), for example abs(x - 4) < 3.
  4. Press Solve. Check the critical points and the sign chart, then read the solution set in interval notation.

Formulas

Reversing the sign

a<b and k<0⇒ka>kba < b \text{ and } k < 0 \Rightarrow ka > kb

Multiplying or dividing by a negative number flips the inequality.

Absolute value, less than

∣u∣<c  ⟺  −c<u<c(c>0)|u| < c \iff -c < u < c \quad (c > 0)

Absolute value, greater than

∣u∣>c  ⟺  u<−c or u>c|u| > c \iff u < -c \ \text{or}\ u > c

Sign of a product

(x−r1)(x−r2)<0  ⟺  r1<x<r2(r1<r2)(x - r_1)(x - r_2) < 0 \iff r_1 < x < r_2 \quad (r_1 < r_2)

Worked example: x² − 5x + 6 < 0

In the example, x2−5x+6<0x^2 - 5x + 6 < 0 is factored as (x−2)(x−3)<0(x - 2)(x - 3) < 0. The critical points 2 and 3 split the number line into three intervals, and the engine tests one value in each.

Only the middle interval gives a negative product, and the endpoints are excluded because the inequality is strict, so the answer is the open interval (2,3)(2, 3).

The solution below is generated by the same engine that powers the calculator above.

Final answer

(2,3)(2, 3)

How we read your problem

Solve the inequality and give the answer in interval notation.

x2−5x+6<0{x}^{2}-5x+6 < 0

Step-by-step solution

  1. Move everything to one side and factor

    A sign chart needs the form f(x) compared with 0, written as a product/quotient of factors.

    (x−3)(x−2)<0(x - 3)(x - 2) < 0
  2. Find the critical points

    The sign can only change at 2 (zero), 3 (zero).

  3. Test one point in each interval (sign chart)

    (-∞, 2): test x = 1 → sign + → excluded; (2, 3): test x = 2.5 → sign − → included; (3, ∞): test x = 4 → sign + → excluded

  4. Decide the endpoints

    2: excluded; 3: excluded

  5. Write the solution set

    x∈(2,3)x \in (2, 3)

Formulas used

  • Reversing the sign

    a<b,  c<0⇒ac>bca < b,\; c < 0 \Rightarrow ac > bc
  • Absolute value

    ∣A∣<c  ⟺  −c<A<c,∣A∣>c  ⟺  A<−c or A>c|A| < c \iff -c < A < c,\qquad |A| > c \iff A < -c \text{ or } A > c

The inequality holds exactly for x in (2, 3). Points where the expression is undefined are never included, and endpoints are included only for ≤ or ≥ where the expression equals zero.

Verification

  • x = 1: does not satisfy the inequality.
  • x = 2.5: satisfies the inequality.
  • x = 4: does not satisfy the inequality.

Detailed explanation

Linear inequalities

Solve a linear inequality exactly like an equation, with one extra rule: whenever you multiply or divide both sides by a negative number, reverse the direction of the sign. From −2x>6-2x > 6 you get x<−3x < -3, because multiplying by −12-\tfrac12 reverses the order of numbers on the line.

The reason is that negation mirrors the number line. If 5>25 > 2, then −5<−2-5 < -2. Adding or subtracting the same number on both sides never changes the direction.

The sign chart method

For polynomial and rational inequalities, move everything to one side so the other side is zero. Then find the critical points: the zeros of the numerator and, for rational expressions, the zeros of the denominator. A polynomial can only change sign at a zero, so between consecutive critical points its sign is constant.

Pick any test value inside each interval and evaluate the sign. Keep the intervals where the sign matches the inequality. Finally decide each endpoint: zeros of the numerator are included for ≤\le or ≥\ge, but zeros of the denominator are always excluded because the expression is undefined there.

Repeated roots deserve attention. In (x−1)2(x+2)>0(x - 1)^2 (x + 2) > 0, the factor (x−1)2(x - 1)^2 never changes sign, so the expression keeps the same sign on both sides of x=1x = 1. A sign chart handles this automatically, while the shortcut of alternating signs does not.

Compound and absolute value inequalities

A compound inequality like −3<2x+1≤9-3 < 2x + 1 \le 9 is solved by doing the same operation to all three parts at once, giving −2<x≤4-2 < x \le 4. An absolute value inequality is turned into a compound one: ∣x−4∣<3|x - 4| < 3 means the distance from xx to 4 is less than 3, so 1<x<71 < x < 7.

Common mistakes

  • Forgetting to flip the sign after multiplying or dividing by a negative number.
  • Multiplying both sides by an expression like x−2x - 2 whose sign is unknown. Use a sign chart instead.
  • Including a value that makes a denominator zero in the solution set.
  • Using square brackets next to infinity.
  • Writing ∣x∣>3|x| > 3 as −3>x>3-3 > x > 3, which no number satisfies; it means x<−3x < -3 or x>3x > 3.

Tips

  • Get zero on one side before factoring.
  • Draw the number line with critical points every time; it prevents most endpoint errors.
  • Check one value from your answer and one value outside it in the original inequality.
  • Strict signs give round brackets; inclusive signs give square brackets at numerator zeros.

Frequently asked questions

Why does the inequality sign flip when dividing by a negative number?

Multiplying by a negative number reverses the order of numbers on the number line. Since 5 is greater than 2 but minus 5 is less than minus 2, the comparison must reverse to stay true.

What is interval notation?

A way to write a solution set using brackets. Round brackets exclude an endpoint, square brackets include it, and pieces are joined with a union symbol.

How do I solve a quadratic inequality?

Move everything to one side, factor or find the roots, mark them on a number line, test a value in each interval, and keep the intervals where the sign matches.

Why are some endpoints excluded in rational inequalities?

Values that make the denominator zero make the expression undefined, so they can never be part of the solution, even with less-than-or-equal or greater-than-or-equal.

Can an inequality have no solution?

Yes. For example x squared plus 1 is less than 0 has no real solution because x squared plus 1 is always positive. The calculator reports the empty set.

Can an inequality be true for all real numbers?

Yes. For instance x squared is greater than or equal to 0 holds for every real x, and the calculator answers with the whole real line.

Solve an inequality

Enter your inequality above to see the critical points, the sign chart and the solution in interval notation.

More math calculators