Inequality Solver

Solve algebraic inequalities.

FreeNo accountOn your device

Runs in your browser. How to verify

Loading tool…

About this tool

Type an inequality and get the solution as intervals. x² − 4 ≤ 0 is true for x ∈ [-2, 2].

How to use

1
Step 1
Type the inequality using <, >, <= or >=, for example x^2 - 4 <= 0.
2
Step 2
Keep the variable as x unless you set another.
3
Step 3
Press Calculate and read the intervals.

How it works

Move everything to one side and find where the expression equals zero. Those roots split the number line into regions, and the tool tests a point in each region to see which satisfy the inequality. For x² − 4 ≤ 0 the roots are −2 and 2; between them x² − 4 is negative, and since ≤ includes equality the endpoints are closed, giving [-2, 2]. Dividing by a negative number flips the sign: −2x > 6 gives x < −3.

f(x) < 0 or f(x) > 0 → find the roots of f, test each region      round bracket = excluded, square bracket = included

Worked example

A quadratic inequality

Input
x^2 - 4 <= 0
Output
x ∈ [-2, 2]
Walkthrough
x² − 4 = (x − 2)(x + 2) has roots −2 and 2. Testing x = 0 gives −4, which is ≤ 0, so the middle region is included; testing x = 3 gives 5, which is not. The endpoints satisfy equality, so they are closed.

Limitations

  • The input needs one of <, >, <= or >= (≤ and ≥ also work). A plain equation such as x = 3 returns the message "Enter an inequality like 2x+3 < 7".
  • Answers are real intervals joined with ∪. A square touching zero, such as (x − 1)² ≤ 0, is returned as a single point, {x = 1}.
  • When every real number works, it says All real numbers (for example 2x + 1 ≤ 2x + 3); when none does, it says No solution (for example x² + 1 < 0).
  • Roots that are not whole numbers are shown as decimals, so interval ends may be rounded.

Questions

What is the solution of 2x + 3 < 7?
x ∈ (−∞, 2), which means x < 2.
What is the solution of x^2 - 4 <= 0?
x ∈ [-2, 2].
What is the solution of x^2 - 4 > 0?
x ∈ (−∞, -2) ∪ (2, ∞): x below −2 or above 2.
What is the solution of x^2 - 5x + 6 < 0?
x ∈ (2, 3).
What is the solution of 3x - 2 >= 10?
x ∈ [4, ∞).
What is the solution of -2x > 6?
x ∈ (−∞, -3). Dividing by −2 flips the sign.

Features

  • Interval notation
  • Linear, quadratic and higher
  • Runs in your browser

Guides

Related resources

Guides and videos from around the web—opens on YouTube or the publisher’s site.

  • Variables on both sides — example

    Khan Academy

    Worked example to check against solver output.

    Watch on YouTube
  • Rectangle area as product of dimensions

    Khan Academy

    Foundational area thinking across math tools.

    Watch on YouTube