Inequality Calculator
Solve linear inequalities like 3x + 5 < 2x − 7 (flipping the sign when you divide by a negative), quadratic inequalities like x² − 5x + 6 ≥ 0 and ranges like −3 < 2x + 1 ≤ 7, with the answer in interval notation, set-builder form and as a number line, and every step shown.
Result…
How it's calculated
Linear: ax + b < cx + d → (a − c)x < d − b, then divide by (a − c); dividing (or multiplying) by a negative number flips < to > Quadratic: move everything to one side, ax² + bx + c ≥ 0; find the roots x = (−b ± √(b² − 4ac)) ÷ 2a; with a > 0 the expression is positive outside the roots and negative between them (the other way round when a < 0) Range a < f(x) ≤ b: solve both parts and keep the overlap
An inequality is solved like an equation, with one extra rule: multiplying or dividing both sides by a negative number reverses the sign, because it mirrors the number line (2 < 3 but −2 > −3). For a quadratic, the solution depends on where the parabola sits relative to zero: its roots split the line into regions, and the sign of a tells you which regions are above zero, which the working confirms with a test point in each region. The expression is read with the same parser as the site's other algebra tools (implicit products like 3x and (x − 1)(x + 2) work) and checked at several values of the variable to make sure it is linear or quadratic. Whole-number coefficients give exact boundaries, as fractions or square roots; decimals are rounded to 10 significant figures.
Your numbers, step by step
About the Inequality calculator
This inequality calculator solves linear inequalities such as 5 − 2x ≥ x + 11, quadratic inequalities such as x² − x − 12 < 0, and ranges such as −3 < 2x + 1 ≤ 7. It gives the answer three ways: interval notation, set-builder form and a description of the number line, with open or filled circles. The working follows the method taught in class. Terms are collected on each side, and the sign flips when you divide by a negative number. For a quadratic, the roots come from the discriminant and each region is checked with a test point. Whole-number coefficients give exact boundaries, as fractions or square roots. Students use it to check homework, and teachers use it to build answer keys. To solve an equation with an = sign instead, use the equation solver, and for the roots alone see the quadratic equation calculator.
How to use it
- Type the inequality in “Inequality”, using <, >, <= for ≤ and >= for ≥, one letter for the variable and ^ for powers.
- For a range, put two signs pointing the same way, like -3 < 2x + 1 <= 7.
- Read the solution in interval notation, then the set-builder form, the number line and the boundary points.
- Follow the steps to see where the sign flips or how the roots split the number line.
Worked example
Solve 5 − 2x ≥ x + 11. Collect the x terms on the left and the numbers on the right: (−2 − 1)x ≥ 11 − 5, so −3x ≥ 6. Dividing by −3 flips the sign: x ≤ −2. In interval notation that is (−∞, −2]; on a number line, a filled circle at −2 shaded to the left. For x² − x − 12 < 0, the roots are x = −3 and x = 4, the parabola opens upward, so it is below zero between them: (−3, 4).
Updated
Questions people ask
How do I solve a linear inequality step by step?
Treat it like an equation: collect the variable terms on one side and the numbers on the other, then divide by the coefficient of the variable. The only extra rule is to reverse the sign if that coefficient is negative.
Why does the inequality sign flip when dividing by a negative number?
Multiplying or dividing by a negative mirrors the number line, so the order of numbers reverses. 2 < 3 is true, but −2 < −3 is false; the true statement is −2 > −3.
How do I solve a quadratic inequality?
Move everything to one side so it reads ax² + bx + c compared with 0, find the roots, and use them to split the number line. With a > 0 the expression is positive outside the roots and negative between them; a test point in each region confirms it.
What is the difference between interval notation and set-builder notation?
Interval notation lists the solution as ranges, like (−∞, −2] ∪ [3, ∞), with square brackets for included endpoints. Set-builder notation describes it as a rule, like {x | x ≤ −2 or x ≥ 3}.
When do I use an open circle or a filled circle on a number line?
Use an open circle for < or >, where the endpoint is not part of the solution, and a filled circle for ≤ or ≥, where it is. The calculator's number-line description says which one each endpoint gets.
What kinds of inequalities can this solver not handle?
It solves inequalities that are linear or quadratic in one variable. Cubic terms, the variable in a denominator, under a square root, inside absolute value or inside a function such as sin are refused with a message rather than given a wrong answer.