Home › Calculators › Inequality Calculator

Inequality Calculator

Type any inequality in x and get the exact solution in interval and set-builder notation, a number line graph and every step: critical points, a sign chart and which endpoints are included.

Last updated:

Examples:

Type <, >, <= or >= (or ≤ ≥). Powers with ^, absolute value with |…| or abs(…), roots with sqrt(…). Chains like −3 < 2x + 1 ≤ 7 work too.

Interval notation
Set-builder notation
Inequality form

Number line

Step-by-step solution

    Sign chart

    Advertisement
    Advertisement

    How to use the Inequality Calculator

    1. Type your inequality in x, for example x^2 - 5x + 6 < 0, |2x - 3| <= 5 or (x + 1)/(x - 2) >= 0. Or tap an example.
    2. Use the symbol buttons to insert ≤, ≥, absolute value bars, powers and square roots.
    3. Press Solve (or Enter). The answer appears in interval notation, set-builder notation and inequality form.
    4. Check the number line: shaded parts are solutions, filled dots are included endpoints and open dots are excluded.
    5. Read the steps and sign chart to see how the critical points and test values lead to the answer, then copy the notation you need.

    The critical point method

    Almost every inequality can be solved with the same four moves, and they are exactly what the step-by-step panel shows:

    1. Get zero on one side. Rewrite the inequality as g(x) < 0, g(x) ≤ 0, g(x) > 0 or g(x) ≥ 0. For rational inequalities, combine everything into a single fraction. Do not multiply both sides by an expression containing x, because you do not know whether it is positive or negative.
    2. Find the critical points: the x values where g(x) = 0 and the x values where g(x) is undefined (a denominator is zero).
    3. Test each interval. The critical points cut the number line into intervals where g keeps one sign. One test value per interval tells you the sign of the whole interval.
    4. Decide the endpoints. Zeros are included for ≤ and ≥ and excluded for < and >. Points where g is undefined are always excluded.

    Quick reference

    InequalityRuleExampleSolution
    ax + b > cIsolate x; flip the sign if you divide by a negative a−2x + 1 > 7x < −3, (−∞, −3)
    (x − r₁)(x − r₂) < 0, r₁ < r₂Upward parabola is negative between its rootsx² − 5x + 6 < 0(2, 3)
    (x − r₁)(x − r₂) > 0Positive outside the rootsx² − 4 > 0(−∞, −2) ∪ (2, ∞)
    (x − r)² ≤ 0A square is never negative; only equality works(x − 1)² ≤ 0{1}
    |A| < c (c > 0)−c < A < c|2x − 3| ≤ 5[−1, 4]
    |A| > c (c ≥ 0)A < −c or A > c|x| > 2(−∞, −2) ∪ (2, ∞)
    P(x)/Q(x) ≥ 0Critical points from P = 0 and Q = 0; Q = 0 always excluded(x + 1)/(x − 2) ≥ 0(−∞, −1] ∪ (2, ∞)
    a < f(x) < bSolve both parts and intersect−3 < 2x + 1 ≤ 7(−2, 3]

    Common mistakes to avoid

    • Cross-multiplying a rational inequality. Turning (x + 1)/(x − 2) ≥ 0 into x + 1 ≥ 0 silently assumes x − 2 > 0 and loses half of the answer.
    • Taking a square root of both sides. x² > 9 is not just x > 3; the negative side x < −3 also works. Factor or use |x| > 3 instead.
    • Forgetting double roots. At a repeated root such as (x − 1)² the sign does not change, so neighbouring intervals have the same sign. The sign chart makes this visible.
    • Mixing up brackets. Infinity always gets a round bracket, because ∞ is not a number that can be included.

    Frequently asked questions

    How do you solve a quadratic inequality?

    Move everything to one side so it reads ax² + bx + c < 0 (or >, ≤, ≥). Find the roots of ax² + bx + c = 0, which split the number line into intervals. Test one value in each interval: the intervals where the sign matches the inequality are the solution. For example x² − 5x + 6 < 0 factors as (x − 2)(x − 3) < 0, which is negative only between the roots, so the answer is (2, 3).

    When do you flip the inequality sign?

    Flip it whenever you multiply or divide both sides by a negative number. For example −2x > 6 becomes x < −3. Adding or subtracting any number, or multiplying by a positive number, never changes the direction.

    How do you solve absolute value inequalities?

    For c ≥ 0, |A| < c means −c < A < c (a single interval), while |A| > c means A < −c or A > c (two separate pieces). With ≤ and ≥ the endpoints are included. If c is negative, |A| < c has no solution and |A| > c is true for every x.

    Why is a point excluded in a rational inequality even with ≥?

    A rational expression is undefined where its denominator equals zero, so that x value can never be part of the solution. In (x + 1)/(x − 2) ≥ 0 the zero of the numerator, x = −1, is included, but x = 2 is excluded, giving (−∞, −1] ∪ (2, ∞).

    What is the difference between interval and set-builder notation?

    Interval notation lists the pieces of the solution with brackets: [ ] for included endpoints and ( ) for excluded ones, joined by ∪. Set-builder notation describes the rule instead, for example {x | x ≤ −1 or x > 2}. Both describe the same set.

    Can it solve inequalities with sin, cos, ln or square roots?

    Yes. Expressions with roots, logarithms, exponentials and trig functions are solved numerically by locating the zeros and break points and testing each interval. Trig inequalities repeat forever, so their solution is shown for −4π ≤ x ≤ 4π, and non-exact endpoints are marked with ≈.

    Are all the tools on FreeToolCabin tested for quality and accuracy?

    Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

    Related tools

    Quadratic Equation SolverSolve ax² + bx + c = 0 with exact roots, steps, vertex and a parabola graph.Number Line GeneratorDraw number lines with any range, fractions or decimals, points, jumps and inequalities.Graphing CalculatorPlot multiple functions with zoom, pan, intersections and a value table.Domain and Range CalculatorFind the domain and range of a function in interval notation, with steps and a graph.Exponent CalculatorRaise any number to a power, including negative and fractional exponents.Logarithm CalculatorCalculate log in any base, ln, log10, log2 and antilog with change-of-base steps.Matrix CalculatorAdd, multiply, invert and row-reduce matrices up to 5×5 with exact fractions and steps.Prime Number CheckerCheck if a number is prime, factor it with a factor tree and list primes in a range.GCF and LCM CalculatorFind the GCF and LCM of two or more numbers with Euclid steps and prime factorization.Cubic Yard CalculatorConvert length, width and depth in any unit to cubic yards, cubic feet, m³ and material weight.Factorial CalculatorExact n! up to 5000! with digit count, trailing zeros and double factorial.Prime Factorization CalculatorFind prime factors in exponent form with a factor tree, divisor count and divisors list.Modulo CalculatorCalculate a mod n and the quotient, with floored, truncated and Euclidean rules.Exponential Growth CalculatorExponential growth and decay: final amount, rate or time, discrete or continuous.Linear Regression CalculatorLeast-squares line of best fit: slope, intercept, r, r², predictions and a scatter plot.System of Equations SolverSolve 2×2, 3×3 and 4×4 linear systems with exact fractions and step-by-step working.Cubic Equation SolverSolve ax³ + bx² + cx + d = 0 for real and complex roots with steps and a graph.Summation CalculatorEvaluate sigma notation: sum any expression in n from a to b with partial sums and a chart.Arithmetic Sequence CalculatorFind the n-th term, sum and full list of an arithmetic sequence, or d from two terms.Geometric Sequence CalculatorFind the n-th term, sum and infinite sum of a geometric sequence, or r from two terms.Fibonacci CalculatorExact n-th Fibonacci number (BigInt), sequence lists, Fibonacci check and golden ratio.Factors CalculatorAll factors and factor pairs of a number, prime factors, divisor count and perfect check.Depth of Field CalculatorNear and far focus limits, depth of field and hyperfocal distance for any camera or lens.Crop Factor CalculatorCrop factor, full-frame equivalent focal length and aperture, and field of view for any sensor.Completing the Square CalculatorRewrite ax² + bx + c in vertex form a(x − h)² + k step by step and solve it.Derivative CalculatorSymbolic derivative of any f(x) up to 5th order, with steps, slope at a point and a graph.Exposure Value CalculatorEV from aperture, shutter and ISO, or solve any missing setting with sunny 16 presets.Factoring Trinomials CalculatorFactor trinomials and polynomials: GCF, ac method, difference of squares, cubes, with steps.Integral CalculatorDefinite integral of f(x) from a to b with adaptive Simpson, area graph and antiderivative.Least Common Denominator CalculatorFind the LCD of two or more fractions and rewrite them as equivalent fractions, with steps.Limiting Reactant CalculatorFind the limiting reactant, theoretical yield and leftover excess from an equation.Parabola CalculatorVertex, focus, directrix, axis, intercepts and graph of a parabola from its equation.Polynomial Root FinderFind all real and complex roots of a polynomial up to degree 10, with the factored form.Prime Number List GeneratorList all primes in a range or the first N primes with a fast sieve; copy or download the list.Quadratic Regression CalculatorFit y = ax² + bx + c (or up to degree 6) to x, y data with R², predictions and a graph.Scatter Plot MakerPaste X,Y pairs for a scatter plot with trendline, equation, r and R². Download PNG.Synthetic Division CalculatorDivide polynomials by x − c (synthetic table) or any polynomial (long division) with steps.3D Graphing CalculatorPlot z = f(x, y) surfaces and 3D parametric curves; rotate, zoom, add contours, save PNG.Line Intersection CalculatorFind where two lines cross from equations, points or slopes, with parallel checks and a graph.Linear Programming SolverSolve max/min linear programs with the simplex method: tableau steps and a 2-variable graph.Modular Exponentiation CalculatorCompute a^b mod m for huge numbers with square-and-multiply steps (BigInt).Modular Inverse CalculatorFind a⁻¹ mod m with the extended Euclidean algorithm, step by step, for huge numbers too.Nth Term CalculatorFind the nth term formula of a sequence: arithmetic, geometric, quadratic or cubic.Partial Fraction Decomposition CalculatorSplit a rational function into partial fractions with the setup, equations and solution.Perpendicular Line CalculatorEquation of the perpendicular and parallel line through a point, with distance and a graph.Polar Graphing CalculatorGraph polar equations r = f(θ): roses, cardioids, spirals, with a θ range slider and PNG export.Polynomial CalculatorAdd, subtract, multiply, divide and evaluate polynomials; see roots, degree and a graph.Polynomial Long Division CalculatorDivide polynomials with the full long division layout, quotient, remainder and steps.Scale Factor CalculatorScale factor between similar figures, plus scaled lengths, areas (k²) and volumes (k³).Set CalculatorUnion, intersection, difference and complement of up to 4 sets, with a Venn diagram and counts.Table of Values CalculatorMake an x/y table for any function with a start, end and step, then plot it or copy CSV.Algebra CalculatorSimplify, expand and factor algebraic expressions with exact answers and step-by-step working.Determinant CalculatorDeterminant of a 2×2 to 8×8 matrix with exact fractions and cofactor or row-reduction steps.Differential Equation SolverSolve first- and second-order ODEs step by step, with initial conditions, an RK4 check and a graph.Eigenvalue and Eigenvector CalculatorEigenvalues (real or complex), eigenvectors and the characteristic polynomial of a square matrix.Equation SolverSolve any equation for x: exact roots, complex roots, numeric answers, steps and a graph.Inverse Function CalculatorFind the inverse f⁻¹(x) of a function with steps, domain restrictions and a graph.Laplace Transform CalculatorLaplace transform of f(t) with the table rule used for each term and the region of convergence.Limit CalculatorEvaluate limits at a point or at infinity, one-sided or two-sided, with steps, table and graph.Linear Interpolation CalculatorInterpolate or extrapolate y for any x from two points or a data table, with steps and a plot.Matrix Inverse CalculatorFind the inverse of a 2×2 to 8×8 matrix in exact fractions with Gauss–Jordan or adjugate steps.Partial Derivative CalculatorPartial derivatives ∂/∂x, ∂/∂y, second and mixed orders with steps, gradient and Hessian.RREF CalculatorRow reduce any matrix to RREF with exact fractions, every row operation, pivots and rank.Stem and Leaf Plot MakerMake stem-and-leaf plots (standard, split stems or back-to-back) with a key; copy or save PNG.Taylor Series CalculatorTaylor and Maclaurin polynomials of any f(x) to order n, with exact coefficients and a graph.Antilog CalculatorInverse logarithm (antilog) in base 10, e, 2 or any base, with steps and scientific notation.Asymptote CalculatorFind vertical, horizontal and slant asymptotes and holes of a function, with graph and reasoning.Cramer's Rule CalculatorSolve 2x2 and 3x3 linear systems by Cramer's rule with every determinant shown step by step.
    See all 74 Algebra & Calculus Calculators →