Step-by-Step Math Tutorials · 9 min read

How to solve compound inequalities, with examples

To decide how to solve compound inequalities, first determine whether both conditions or either condition must hold. Solve the parts and reverse the inequality whenever you multiply or divide both sides by a negative.

Two number lines: −3 < x ≤ 4 shaded between an open dot at −3 and a closed dot at 4 for an "and" inequality, and x < 2 or x > 5 shaded outward from open dots for an "or" inequality.

And versus or: what a compound inequality asks

An "and" inequality asks for numbers that pass both tests at once, so its solution is the overlap of two ranges. A chain such as −3<2x+1≤7-3 < 2x + 1 \leq 7 is an "and" inequality written compactly: it means −3<2x+1-3 < 2x + 1 and 2x+1≤72x + 1 \leq 7 together.

An "or" inequality accepts any number that passes at least one test. Its solution joins two ranges, and on a number line it usually looks like two rays pointing away from each other.

  • "And" means an intersection: one interval such as (−2,3](-2, 3], or no solution at all when the ranges miss each other.
  • "Or" means a union: often two pieces such as (−∞,2)∪(5,∞)(-\infty, 2) \cup (5, \infty), or every real number when the ranges cover the whole line.

How to solve compound inequalities written as a chain

A chain has three parts: a left end, a middle that contains x, and a right end. Rather than splitting it, work on all three parts at once — whatever you add, subtract, multiply or divide in the middle, you do to both ends as well.

  1. Undo any addition or subtraction in the middle by doing the opposite to all three parts.
  2. Divide (or multiply) all three parts by the number in front of x.
  3. If that number is negative, reverse both inequality signs.
  4. Rewrite the chain from the smaller number to the larger one, then convert it to interval notation.

Example 1 · A chain with a negative coefficient

−5≤3−2x<9-5 \le 3 - 2x < 9
Solve it live

Subtracting 3 from all three parts gives −8 ≤ −2x < 6. Dividing by −2 reverses both signs, giving 4 ≥ x > −3, which reads −3 < x ≤ 4 from left to right.

  1. Work on all three parts at once
    −5≤−2x+3<9-5 \le -2x + 3 < 9
    Whatever is done to the middle is done to both ends, so x stays between them.
  2. Subtract 3 from all three parts
    −8≤−2x<6-8 \le -2x < 6
    Adding or subtracting the same number keeps every inequality sign as it is.
  3. Divide all three parts by -2
    −3<x≤4-3 < x \le 4
    Dividing by a negative number reverses both signs; the chain is then written from the smaller number up.
  4. Write the answer
    −3<x≤4(−3,4]-3 < x \le 4\qquad (-3, 4]
    The same set in interval notation: a square bracket includes its end, a round one does not.
−3<x≤4-3 < x \le 4
✓ Verified

Each sign travels with its number: the ≤ that stood next to −5 ends up next to 4, so 4 is included and −3 is not.

Fractions inside a chain

A fraction in the middle is cleared the same way, by multiplying all three parts by its denominator. Because the denominator is positive, neither sign changes.

Clearing the fraction first keeps the numbers whole for the rest of the problem. It is the same move that removes denominators from an equation, explained in how to solve equations with fractions.

Example 2 · Clearing a fraction from the middle

1<x+12<41 < \frac{x + 1}{2} < 4
Solve it live

Multiplying all three parts by 2 gives 2 < x + 1 < 8, and subtracting 1 from all three leaves 1 < x < 7.

  1. Work on all three parts at once
    1<12x+12<41 < \frac{1}{2}x + \frac{1}{2} < 4
    Whatever is done to the middle is done to both ends, so x stays between them.
  2. Multiply all three parts by 2
    2<x+1<82 < x + 1 < 8
    Multiplying by a positive number clears the fraction and keeps both signs.
  3. Subtract 1 from all three parts
    1<x<71 < x < 7
    Adding or subtracting the same number keeps every inequality sign as it is.
  4. Write the answer
    1<x<7(1,7)1 < x < 7\qquad (1, 7)
    The same set in interval notation: a square bracket includes its end, a round one does not.
1<x<71 < x < 7
✓ Verified

Solving "or" inequalities one part at a time

When two inequalities are joined by "or", solve each one on its own and then combine them. The answer keeps every x that satisfies at least one part, so you join the two solution sets instead of overlapping them.

Absolute-value inequalities are compound inequalities in disguise. ∣2x−1∣<5|2x - 1| < 5 says the distance from 2x−12x - 1 to 0 is less than 5, which is the chain −5<2x−1<5-5 < 2x - 1 < 5. The "greater than" version, ∣u∣>5|u| > 5, becomes the "or" inequality u<−5u < -5 or u>5u > 5.

Example 3 · Two rays pointing apart

2x−1<3 or x+4>92x - 1 < 3 \ \text{or}\ x + 4 > 9
Solve it live

The first part gives x < 2 and the second gives x > 5. A number such as 3.5 fails both tests, which is why the gap between 2 and 5 is left out.

  1. Solve the first inequality
    2x<4 ⇒ x<22x < 4\ \Rightarrow\ x < 2
    Collect x on one side; dividing by a negative number reverses the sign.
  2. Solve the second inequality
    x>5x > 5
    The same moves give x > 5.
  3. Keep the values that satisfy either
    x<2  or x>5\displaystyle x < 2 \allowbreak \text{ \ \text{or}\ } x > 5
    "Or" means at least one must hold, so the answer joins the two ranges.
  4. Write the answer
    x<2 or x>5(−∞,2)∪(5,∞)\displaystyle x < 2\ \allowbreak \text{or}\ x > 5\qquad (-\infty, 2) \cup (5, \infty)
    The same set in interval notation: a square bracket includes its end, a round one does not.
x<2 or x>5\displaystyle x < 2 \ \allowbreak \text{or}\ x > 5
✓ Verified

Example 4 · An absolute value becomes a chain

∣2x−1∣<5|2x - 1| < 5
Solve it live

Rewrite |2x − 1| < 5 as −5 < 2x − 1 < 5. The boundaries come from 2x − 1 = −5 and 2x − 1 = 5, which give x = −2 and x = 3.

  1. Split into two inequalities
    −5<2x−1<5-5 < 2x - 1 < 5
    |A| < 5 means A is between -5 and 5.
  2. Boundary: Add 1 to both sides
    2x=−42x = -4
    Isolate the variable term by moving the constant across.
  3. Divide both sides by 2
    x=−2x = -2
    Dividing by the coefficient of x leaves it alone on the left.
  4. Boundary: Add 1 to both sides
    2x=62x = 6
    Isolate the variable term by moving the constant across.
  5. Divide both sides by 2
    x=3x = 3
    Dividing by the coefficient of x leaves it alone on the left.
  6. Write the answer
    −2<x<3-2 < x < 3
    Check x = 0.5: |0| < 5 is true, and numbers outside -2 to 3 fail.
−2<x<3-2 < x < 3
✓ Verified

When the answer is no solution or every number

Two special answers catch students out. An "and" inequality whose ranges never meet has no solution: no number is both above 3 and below 1, so the solution set is empty, written ∅\varnothing.

An "or" inequality can go the other way. With "x < 4 or x > 1", numbers below 4 pass the first test and numbers from 4 upward pass the second, so every real number qualifies and the solution is (−∞,∞)(-\infty, \infty).

Example 5 · Two ranges that never overlap

x>3 and x<1x > 3 \text{ }\allowbreak \text{and } x < 1
Solve it live

Each part is already solved. Because "and" needs both conditions at once and the two ranges do not meet, the answer is the empty set.

  1. Solve the first inequality
    x>3x > 3
    Collect x on one side; dividing by a negative number reverses the sign.
  2. Solve the second inequality
    x<1x < 1
    The same moves give x < 1.
  3. Keep the values that satisfy both
    x>3 and x<1\displaystyle x > 3 \allowbreak \text{ and } x < 1
    "And" means both must hold, and the two ranges do not overlap.
  4. Write the answer
    No solution\qquad \varnothing
    No number satisfies every condition.
No solution
✓ Verified

Example 6 · Two ranges that cover the whole line

x<4 or x>1x < 4 \ \text{or}\ x > 1
Solve it live

Every number is either below 4 or above 1, and most numbers are both, so nothing is left out.

  1. Solve the first inequality
    x<4x < 4
    Collect x on one side; dividing by a negative number reverses the sign.
  2. Solve the second inequality
    x>1x > 1
    The same moves give x > 1.
  3. Keep the values that satisfy either
    x<4  or x>1\displaystyle x < 4 \allowbreak \text{ \ \text{or}\ } x > 1
    "Or" means at least one must hold, so the answer joins the two ranges.
  4. Write the answer
    All real numbers\qquad (-\infty, \infty)
    The same set in interval notation: a square bracket includes its end, a round one does not.
All real numbers
✓ Verified

Writing and checking the answer

Interval notation uses a square bracket when an endpoint is included (≤ or ≥) and a round bracket when it is not (< or >, and always next to infinity). The union symbol ∪ joins the two pieces of an "or" answer. On a number line, an included endpoint is a closed dot and an excluded one is an open dot.

To check an answer, substitute each boundary and one number from every region into the original inequality. If a point you shaded fails, or a point you left out passes, something went wrong — most often a sign that should have been reversed. The solver runs this same test before it shows the ✓ Verified badge.

  • Reversing only one sign. Dividing a chain by a negative number reverses both signs, not just the nearer one.
  • Treating "or" like "and". Overlapping the two ranges of an "or" problem throws away valid answers.
  • Forgetting to combine the halves. Solving the two halves of −3<2x+1≤7-3 < 2x + 1 \leq 7 separately is fine, but the answer is their overlap, −2<x≤3-2 < x \leq 3.
  • Squeezing an "or" answer into one chain. "x < 2 or x > 5" cannot be written as 5<x<25 < x < 2, because no number fits that chain. Keep the two pieces separate.

The inequality calculator solves chains and "and"/"or" pairs with every step shown, and the AI math solver on the home page takes them typed exactly as written. Knowing how to solve compound inequalities also helps when a function is only defined on part of the number line — the domain of x2−4x\sqrt{x^2 - 4x} is "x ≤ 0 or x ≥ 4", worked out in how to find the domain of a function.

FAQ

Questions about this guide

What is a compound inequality?

Two inequalities combined into one statement, either as a chain such as −3 < 2x + 1 ≤ 7 or joined by "and" or "or". An "and" answer is the overlap of the two ranges; an "or" answer is everything in either range.

When do you flip the sign in a compound inequality?

Only when you multiply or divide by a negative number. In a chain you then reverse both signs, and rewrite the chain from the smaller number to the larger one.

Can a compound inequality have no solution?

Yes. An "and" inequality has no solution when its two ranges do not overlap, as in x > 3 and x < 1.

How do I write a compound inequality in interval notation?

An "and" answer becomes one interval, such as (−3, 4]. An "or" answer becomes two intervals joined by ∪, such as (−∞, 2) ∪ (5, ∞).

Put the method to work

Try the technique from this guide on a problem of your own — with every step shown and checked.