Inequality Calculator

See every value that satisfies your conditions. Combine linear, quadratic and affine absolute-value inequalities, inspect open and closed boundaries, and test exact membership.

Inequality explorer

See exactly where your conditions hold.

Enter a chained comparison as separate conditions with ALL. Expressions use one real variable x.

Condition 1

Condition 2

Try an example
Paste conditions from a spreadsheet

Use the header left,relation,right and one to six rows. Relations are <, <=, > or >=. Replace conditions validates the complete import before changing the plan.

Supported notation and limits

Use x, +, -, *, /, parentheses and powers 0, 1 or 2. Examples: (x-1)^2, (2/3)*x, abs(2x-3). Use abs(...) rather than vertical bars. The relation belongs in its separate control.

Absolute-value arguments must simplify to an affine expression, such as 2x−3. Up to six non-nested absolute values are allowed per condition. Products such as abs(x)*abs(x-1) are accepted when every intermediate piece stays at degree two or below. A denominator must simplify to the same nonzero constant on every piece.

Each side allows 1,200 characters, 400 tokens and 16 parenthesis levels. Literals allow 24 significant digits, magnitude zero or 1e−100 through 1e100 and explicit exponents −100 through 100. Exact polynomial coefficient components allow 256 decimal digits, with bounded intermediate work. Unsupported expressions are reported without an approximate substitute.

Write (2/3)*x, not ambiguous 2/3x. Unary -x^2 means -(x^2). Formal polynomial power zero is 1, including a zero base; this convention does not resolve an indeterminate numerical limit.

This tool solves one-variable solution sets. It does not solve general rational, higher-degree, transcendental or two-variable inequalities.

Combined solution

(0, 4]

Intersection: every condition holds at the same value of x. Brackets include an endpoint; parentheses exclude it.

Compare the solution sets

Each row uses the same exact boundary ordering.

Filled circles include a value; hollow circles exclude it. Arrows continue the solution beyond the visible line. Use the exact point selector and sign ledger to inspect individual values.

Positions use a shared numeric scale. Distinct endpoints or intervals below display resolution remain separate in the exact ledger and ordered view.

1 solution part
Condition 1: [-1, 4]. Positions use a shared numeric scale. Distinct endpoints or intervals below display resolution remain separate in the exact ledger and ordered view.
1 solution part
Condition 2: (0, infinity). Positions use a shared numeric scale. Distinct endpoints or intervals below display resolution remain separate in the exact ledger and ordered view.
Combined solution1 solution part
Combined solution: (0, 4]. Positions use a shared numeric scale. Distinct endpoints or intervals below display resolution remain separate in the exact ledger and ordered view.04-13/2

Numeric window: -3/2 to 9/2. This window does not limit the solution.

0

This is an exact root of a relevant condition piece.

1 exact solution parts. Complete export available.

Inspect a value

Evaluate the original expressions exactly, including at an irrational boundary.

Enter a constant expression, such as 4 or 1/3.

This value belongs to the combined solution.

x = 4
Original left and right expressions at the inspected value
ConditionLeftRelationRightLeft − rightTrue?
15≤50Yes
24>04Yes

Follow the signs

Inspect each condition and the exact expression used on each absolute-value piece.

This condition’s complete solution

[-1, 4]

Piece domain: (−∞, 3/2). Branch-boundary truth is evaluated separately in the sign ledger.

Left expression

-(2)*x + 3

Right expression

5

Left − right

-(2)*x - 2

Absolute-value branches on this open piece

Each argument keeps the indicated sign throughout this domain. At a zero argument, either branch gives zero; boundary membership is checked separately.

  • Absolute value 1

    abs((2)*x - 3)

    Nonpositive argument: negate it

    -((2)*x - 3)
  1. 1

    Subtract the right side from the left: -(2)*x - 2. Compare this expression with zero.

  2. 2

    On this open domain, replace each affine absolute value with its indicated positive or negative branch. Boundary points are checked separately.

  3. 3

    Isolate x using the exact linear coefficient and constant.

  4. 4

    Dividing by the negative coefficient reverses the inequality direction.

  5. 5

    Use the exact sign and the selected strict or inclusive relation. Only roots in this piece's applicable domain belong to this walkthrough.

Solution contributed by this piece

[-1, 3/2)

Exact sign and interval ledger

All roots and absolute-value branch boundaries are ordered exactly; rounded labels do not decide membership.

Throughout the open interval

(−∞, -1)

  • Condition 1: left − right is positive; the condition is false.
  • Condition 2: left − right is negative; the condition is false.

Combined result: excluded.

View every sign region
Exact truth of each condition on every open region and boundary
RegionCondition 1Condition 2Combined

(−∞, -1)

+ · False− · FalseExcluded

{-1}

0 · True− · FalseExcluded

(-1, 0)

− · True− · FalseExcluded

{0}

− · True0 · FalseExcluded

(0, 3/2)

− · True+ · TrueIncluded

{3/2}

− · True+ · TrueIncluded

(3/2, 4)

− · True+ · TrueIncluded

{4}

0 · True+ · TrueIncluded

(4, ∞)

+ · False+ · TrueExcluded
View exact roots and branch boundaries
Every exact finite boundary and its origin
PointExact valueOriginInspect
1-1

Condition 1: piece root

20

Condition 2: piece root

33/2

Condition 1: absolute-value branch boundary

44

Condition 1: piece root

Selectable CSV text
Method, assumptions and sources

Each absolute-value expression is split at its exact affine zeros. On every open piece, the left-minus-right expression is constant, linear or quadratic. Its exact roots and signs determine the included intervals. Branch points are evaluated separately. ALL intersects the individual solution sets; ANY takes their union.

Rational coefficients and quadratic-algebraic endpoints stay exact during ordering, set operations and boundary inspection. Scientific decimal values are approximate and are not used to decide whether a boundary is included. An isolated point differs from a very narrow interval, even when a numeric drawing cannot separate its endpoints.

One real variable x; every supported expression is defined for all real x.

ALL intersects condition sets; ANY unions them. Infinity is never an included endpoint.

Endpoint ordering, signs and membership use exact rational and quadratic algebraic arithmetic; displayed surd decimals are approximate.

Absolute values are non-nested with affine arguments; every expanded intermediate has degree at most two.

The formal polynomial convention assigns power zero the value one, including a zero base.

Number-line spacing is a view only and never changes exact solution membership.

Method references: OpenStax: Linear and Absolute-Value Inequalities, Compound Inequalities, and Quadratic Inequalities.

How to use this calculator

  1. Enter one to six conditions using the Left expression, Relation and Right expression controls. Use x and supported operators; write abs(2x - 3), not vertical bars. To import a spreadsheet list, enter Conditions (CSV) with the header left,relation,right, then choose Replace conditions. The entire import must be valid before existing rows are replaced.
  2. Choose Combine conditions: ALL requires every condition; ANY requires at least one. A chained inequality such as 0 < x <= 4 is two separate conditions combined with ALL.
  3. Read the exact combined solution and compare the individual condition rows on the number line. Open and closed markers distinguish excluded and included boundaries; unbounded arrows continue beyond the displayed window.
  4. Inspect a condition's pieces, roots and signs. Use the exact endpoint ledger when distinct boundaries are too close to distinguish at the plotted scale; ordered spacing is explicitly not proportional.
  5. Enable inspection and enter a constant value of x, or select an exact boundary. Exact boundary selects an endpoint from the current results, using its exact identity rather than a rounded decimal. Compare each condition's truth with combined membership.
  6. Open the complete mathematical ledger and request a CSV download or select the same CSV text. Correct or disable an invalid optional inspection before exporting the full calculation.

The Formula

The mathematical logic powering this calculation is:

Each condition compares a left expression L(x) with a right expression R(x). Subtracting gives F(x) = L(x) − R(x); solve F(x) < 0, F(x) ≤ 0, F(x) > 0 or F(x) ≥ 0. ALL takes the intersection of the condition sets; ANY takes their union. A chained comparison is entered as separate conditions with ALL. Mixed nested AND/OR expressions are not parsed.
Linear conditions require reversing the relation when dividing by a negative coefficient. Quadratic conditions are partitioned at their exact real roots and tested on the intervening regions. A repeated root may be an isolated included point without a sign change. Constant conditions produce either all real numbers or the empty set.
For abs(ax + b), the argument's zero divides the line into pieces. On each piece the absolute value becomes the appropriate signed affine expression. Piece results and exact boundary truth are joined before the conditions are combined. Products or powers involving absolute values are accepted only when every intermediate piece remains within degree two. Nested absolute values and non-affine absolute-value arguments are unsupported.
Finite endpoints are exact reduced fractions or exact quadratic algebraic values. Open boundaries exclude equality; closed boundaries include it. Infinity is never included. Union/intersection and membership use exact endpoint comparisons, not rounded coordinates or an epsilon. Numerical graph spacing and approximate radical values are separate presentations; a closely spaced interval remains distinct even when it occupies less than a pixel. Ordered-boundary view does not imply proportional spacing.
Use the one variable x, decimal/scientific constants, fractions, parentheses, +, −, *, /, powers 0, 1 or 2, and lowercase abs(...). Implicit multiplication such as 2x is supported. Use explicit grouping for fractional coefficients, such as (2/3)*x. Vertical absolute-value bars, variable denominators, other variables, unsupported functions and higher-degree intermediates are rejected. A denominator must normalize in every branch to the same nonzero constant. The formal zeroth-power convention returns 1, including 0^0.
There are one to six conditions and at most six non-nested absolute-value occurrences across both sides of each condition. Each side permits 1,200 characters, 400 tokens and 16 parenthesis levels. Literals allow 24 significant digits, explicit exponents from −100 through 100, and zero or magnitude 1e−100 through 1e100. Intermediate polynomial degree is at most two; reduced coefficient components are limited to 256 decimal digits. Temporary integers and rational operation counts are bounded. A work limit returns an explicit unsupported calculation, not an approximate solution.
Optional inspection either evaluates a constant expression or selects an exact boundary identity. An invalid enabled inspection leaves the solution set available but prevents complete CSV export until corrected or disabled. A removed selected boundary is unavailable rather than silently replaced. Disabled inspection drafts are retained without evaluation. The exact sets and ledger are authoritative; this is not a general symbolic algebra, two-variable graphing or rational-function domain solver.

Worked Example

If you input:

  • Conditions (CSV): left,relation,right abs(2x-3),<=,5 x,>,0
  • Combine conditions: ALL conditions
  • Inspect a test value: Yes
  • Inspection mode: Entered value
  • Inspection value of x: 4
  • Exact boundary:

Result:

The first condition, abs(2x − 3) ≤ 5, gives [−1, 4]. The second condition, x > 0, gives (0, infinity). ALL combines them as (0, 4]: zero is excluded and four is included. At x = 4, the first compares 5 ≤ 5 and the second compares 4 > 0, so both are true and the combined condition is satisfied. Changing only ALL to ANY gives [−1, infinity).

Frequently Asked Questions

Which inequalities can this calculator solve?

It handles one real variable x, linear and quadratic polynomial pieces, and non-nested abs(affine expression) terms. Use one to six separate conditions with <, <=, > or >=, then combine all of them with ALL or ANY. Exact fractions and supported decimal/scientific constants are accepted. General rational functions, higher-degree intermediates, nested absolute values, other functions and two-variable regions are outside this workspace.

What is the difference between ALL and ANY?

ALL is intersection: a value must satisfy every condition. ANY is union: satisfying at least one is enough. For abs(2x − 3) ≤ 5 and x > 0, ALL gives (0, 4] while ANY gives [−1, infinity). To enter a chained comparison, split it into separate rows and choose ALL. The tool does not infer precedence for a mixture of AND and OR.

Why are some boundaries open and others closed?

An open boundary excludes that exact value, while a closed boundary includes it. Strict comparisons often exclude roots, but combined conditions may include a boundary through another condition. The solver evaluates exact endpoint truth before merging sets. Infinity is an unbounded direction, not a real value, so it is never included. A repeated quadratic root can also appear as a single included point.

How do absolute values and quadratic pieces work together?

An affine absolute-value argument changes sign at its exact zero. Each resulting piece uses the appropriate signed expression, and each piece must remain at most quadratic throughout normalization. The solver finds real roots and signs on those domains and checks boundary membership separately. Unsupported nested or non-affine absolute values return an error instead of being approximated.

Are radical boundaries and very close endpoints exact?

Accepted coefficients are rational and quadratic irrational roots retain an exact algebraic identity. Ordering, equality, set combination and inspection do not use rounded display values. The graph is a finite presentation: distinct endpoints may coincide on screen or form an interval narrower than one pixel. Use exact endpoint selection and the ledger; ordered-boundary view deliberately sacrifices proportional spacing to keep the order inspectable.

Why can a valid solution remain when inspection needs correction?

Inspection is optional and separate from solving the conditions. A malformed constant expression or a boundary ID no longer present in the current result does not invalidate the solution set. It does block complete CSV until corrected or disabled. Selecting an exact irrational boundary tests that algebraic value, not the rounded decimal shown beside it.

What do the input and arithmetic limits mean?

The workspace bounds expression length, literal precision, nesting, degree and exact-arithmetic work so requests finish predictably. Each side allows 1,200 characters, 400 tokens and 16 parenthesis levels; each condition allows six absolute-value occurrences. Powers are 0, 1 or 2, with formal zeroth powers equal to 1 including 0^0. Unsupported syntax or an arithmetic limit is reported explicitly and must not be interpreted as an empty solution or a numerical approximation.

Similar Calculators