Inequality Calculator
Type an inequality and this inequality calculator isolates the variable step by step, flips the sign when you divide by a negative number, and gives the solution set in interval notation. It handles linear, quadratic, rational and absolute value inequalities.
Worked example
Step-by-step solution
Step 1 / 4
Subtract 5 from both sides
Subtracting does not change the direction of the inequality.
Step 2 / 4
Divide by −3 and flip the sign
Dividing by a negative number reverses the inequality.
Step 3 / 4
Write the solution set
The endpoint −2 is included because the sign is ≤, so it takes a square bracket.
Step 4 / 4
Check a value on each side
x = −3 makes the original inequality true; x = 0 makes it false.
Answer
x ≤ −2, or (−∞, −2] in interval notation
How to use the Inequality Calculator
- Type the inequality with <, >, <= or >=, for example 5 − 3x ≥ 11 (use ^ for powers and |x| for absolute value).
- Press Solve it. The calculator applies the same operation to both sides, one step at a time.
- Watch for the step where the sign flips: it happens whenever both sides are multiplied or divided by a negative number.
- Read the answer as an inequality and in interval notation, and check the boundary points the steps list.
How to solve inequalities
Solving an inequality works like solving an equation, with one extra rule: when you multiply or divide both sides by a negative number, the inequality sign reverses. For example, −3x ≥ 6 becomes x ≤ −2 after dividing by −3. Adding or subtracting never changes the direction.
The answer is a set of numbers rather than a single value. Interval notation writes it compactly: a parenthesis means the endpoint is excluded (strict < or >) and a square bracket means it is included (≤ or ≥). On a number line, an open dot marks an excluded endpoint and a closed dot an included one.
Quadratic and rational inequalities are solved with critical points. Move everything to one side, find where the expression equals zero or is undefined, and test the sign on each interval between those points. Values that make a denominator zero are never part of the solution.
Inequality calculator example: a quadratic inequality
Factor the quadratic to find its critical points: (x − 2)(x − 3) = 0 when x = 2 or x = 3. These two points split the number line into three intervals: x < 2, 2 < x < 3 and x > 3. Test one value from each interval in the factored form.
At x = 0 the product is (−2)(−3) = 6, positive. At x = 2.5 it is (0.5)(−0.5) = −0.25, negative. At x = 4 it is (2)(1) = 2, positive. The inequality asks for values greater than or equal to zero, so the solution is x ≤ 2 or x ≥ 3, written (−∞, 2] ∪ [3, ∞). Both endpoints are included because of the ≥ sign.
Absolute value inequalities
|A| ≤ 5 means A is at most 5 units from zero, so it becomes the compound inequality −5 ≤ 2x − 1 ≤ 5. Add 1 to all three parts to get −4 ≤ 2x ≤ 6, then divide by 2: −2 ≤ x ≤ 3. The solution is the closed interval [−2, 3].
A greater-than inequality splits into two pieces instead. |2x − 1| > 5 means 2x − 1 < −5 or 2x − 1 > 5, so x < −2 or x > 3, written (−∞, −2) ∪ (3, ∞). The rule to remember: less than gives “and” (one interval), greater than gives “or” (two rays).
Rational inequalities and excluded values
Do not multiply both sides by x − 3: its sign depends on x, so you would not know whether to flip the inequality. Instead find the critical points. The numerator is zero at x = −1 and the denominator is zero at x = 3, where the expression is undefined.
Test each interval. At x = −2 the fraction is (−1)/(−5) = 0.2, positive. At x = 0 it is 1/(−3), negative. At x = 4 it is 5/1, positive. The solution is x < −1 or x > 3, written (−∞, −1) ∪ (3, ∞). Both endpoints are open: −1 makes the fraction zero, which is not greater than zero, and 3 is excluded because division by zero is undefined.
Frequently asked questions
When do I flip the inequality sign?
Flip it whenever you multiply or divide both sides by a negative number. Do not flip it when you add or subtract, or when you multiply or divide by a positive number.
What is the difference between ( and [ in interval notation?
A parenthesis means the endpoint is not included, which matches < and >. A square bracket means it is included, which matches ≤ and ≥. Infinity always takes a parenthesis, as in (−∞, −2].
Can I solve compound inequalities like −3 < 2x + 1 ≤ 7?
Yes. Apply each operation to all three parts at once: subtracting 1 and dividing by 2 gives −2 < x ≤ 3, which is (−2, 3] in interval notation.
What if every number or no number is a solution?
Some inequalities are always true, such as x² + 1 > 0, so the solution is all real numbers, (−∞, ∞). Others are never true, such as x² < −1, so there is no real solution. The steps explain which case applies.
How do I show the solution on a number line?
Mark each endpoint with an open dot if it is excluded or a closed dot if it is included, then shade the part of the line that satisfies the inequality. For an answer like x ≤ 2 or x ≥ 3, shade two separate rays.
Related calculators
Have a different kind of math problem? Try the free math solver. Use the subject menu for physics and chemistry.