Compound Inequality Calculator (Free, Step-by-Step)
AlgebraFreeNo sign-up
A compound inequality calculator solves two inequalities joined by AND or OR. For −1 < 2x + 3 ≤ 11, subtract 3 from all three parts to get −4 < 2x ≤ 8, then divide by 2: −2 < x ≤ 4. In interval notation that is (−2, 4], every number between −2 and 4, including 4 but not −2.
Just one inequality, like 3x − 5 > 7? Use the Inequality Calculator.
The solution of −1 < 2x + 3 ≤ 11 is −2 < x ≤ 4. In interval notation that is (−2, 4], and in set-builder notation {x | −2 < x ≤ 4}.
Show steps
- A three-part inequality is two inequalities joined by AND: −1 < 2x + 3 and 2x + 3 ≤ 11. Whatever you do to the middle, do to all three parts.
- Subtract 3 from all three parts: −1 − 3 < 2x ≤ 11 − 3, so −4 < 2x ≤ 8.
- Divide all three parts by 2: −2 < x ≤ 4.
- Write the answer three ways: −2 < x ≤ 4, interval (−2, 4], set-builder {x | −2 < x ≤ 4}.
- Check a value inside, x = 1: −1 < 5 ≤ 11 is true ✓.
- Check a value outside, x = −3: −1 < −3 ≤ 11 is false, as expected ✓.
How to use the compound inequality calculator
- Choose how to enter the problem: Three-part for a < bx + c ≤ d, AND / OR for two separate inequalities, Type it to write the whole thing in one line, or Interval notation to translate something like (−∞, −2) ∪ [5, ∞).
- Type the numbers or expressions. Fractions, decimals and parentheses such as (x + 1)/2 are fine. Type <= for ≤ and >= for ≥.
- Read the answer as an inequality, in interval notation and in set-builder notation. The number line shows each part and the final solution, and Show steps explains every move, including any sign flip.
- Optional: enter a value in Test a value of x to see whether that number is a solution.
What is a compound inequality?
A compound inequality is two inequalities joined by the word AND or the word OR. The word decides how the two solutions combine.
- AND means both must be true, so the answer is the overlap (the intersection, ∩). x > 2 and x ≤ 6 gives 2 < x ≤ 6. A three-part inequality such as −1 < 2x + 3 ≤ 11 is a short way to write an AND.
- OR means at least one must be true, so the answer is everything in either solution (the union, ∪). x < −2 or x ≥ 5 gives two separate rays.
How to solve a compound inequality step by step
- Three-part form: do the same operation to all three parts until x is alone in the middle. Subtract or add first, then multiply or divide.
- Two separate inequalities: solve each one on its own, exactly like a single inequality.
- Combine: for AND keep only the overlap; for OR keep both pieces.
- Write and check: give the answer in interval notation and test one number inside it and one outside.
Watch the sign
Multiplying or dividing by a negative number reverses every inequality sign. In a three-part inequality both signs flip at once, and the ends swap places. For 1 < −2x + 7 < 9, subtract 7: −6 < −2x < 2. Divide by −2 and flip: 3 > x > −1. Read it from right to left so the smaller number comes first: −1 < x < 3. In general, for a < bx + c < d with b negative, the answer is (d − c)/b < x < (a − c)/b.
Worked examples
Example 1: a three-part inequality
Solve −3 ≤ (x + 1)/2 < 4. Multiply all three parts by 2: −6 ≤ x + 1 < 8. Subtract 1: −7 ≤ x < 7. Interval notation: [−7, 7). The bracket at −7 means it is included; the parenthesis at 7 means it is not.
Example 2: an AND inequality
Solve 3x − 1 > 5 and x + 4 ≤ 10. The first gives 3x > 6, so x > 2. The second gives x ≤ 6. Both must be true, so the answer is the overlap: 2 < x ≤ 6, or (2, 6].
Example 3: an OR inequality with a sign flip
Solve −4x + 2 ≥ 10 or 5x > 3x + 8. The first gives −4x ≥ 8, and dividing by −4 flips the sign: x ≤ −2. The second gives 2x > 8, so x > 4. Either may be true, so the answer is x ≤ −2 or x > 4, which is (−∞, −2] ∪ (4, ∞).
Interval and set-builder notation
Interval notation lists the ends of each piece. A parenthesis ( ) means the end is not included (< or >); a square bracket [ ] means it is included (≤ or ≥). Infinity always takes a parenthesis. Pieces of an OR answer are joined with ∪. Set-builder notation describes the same set in words of math: {x | −2 < x ≤ 4} reads “all x such that x is greater than −2 and at most 4”.
| Inequality | Interval notation | Number line |
|---|---|---|
| −2 < x ≤ 4 | (−2, 4] | open dot at −2, closed dot at 4, shaded between |
| −7 ≤ x < 7 | [−7, 7) | closed dot at −7, open dot at 7 |
| x < −2 or x ≥ 5 | (−∞, −2) ∪ [5, ∞) | shaded outward from both ends, middle empty |
| x ≤ −2 or x > 4 | (−∞, −2] ∪ (4, ∞) | closed dot at −2, open dot at 4 |
| x ≠ 3 | (−∞, 3) ∪ (3, ∞) | everything except an open dot at 3 |
Graphing a compound inequality on a number line
Graph each part on its own line first, then shade the result. An AND answer is the region where both shadings overlap, usually one segment between two dots. An OR answer keeps every shaded region, often two arrows pointing away from each other. Use a filled dot for ≤ or ≥ and an open dot for < or >. The calculator draws all three lines so you can see the overlap or the union.
No solution and all real numbers
An AND can have no solution when the two parts do not overlap: x < 2 and x > 6 has no number that is both. A three-part inequality like 5 < x + 1 < 2 also has no solution, because 4 < x < 1 is impossible. An OR can cover every real number: x < 5 or x > 1 includes everything, because every number is either below 5 or above 1.
Common mistakes to avoid
- Flipping only one sign. When you divide a three-part inequality by a negative number, both signs flip.
- Mixing up AND and OR. AND keeps the overlap; OR keeps both pieces. Writing x < −2 and x ≥ 5 as one interval is wrong, because no number is in both.
- Writing −2 > x > 5. An OR answer pointing outward cannot be squeezed into a three-part inequality.
- Using a bracket with infinity. Write [5, ∞), not [5, ∞].
- Doing an operation to only one part of a three-part inequality.
Checking a compound inequality by hand
Pick one number inside your answer and one outside. Substitute each into the original inequality. The inside number should make the AND (or the OR) true, and the outside number should make it false. The endpoints deserve a quick check too: an included end should make its part true with equality.
Homework compound inequalities, solved step by step
These are real compound inequalities students search for. Solve each part separately, then combine: or keeps every value that works in either part (union), and and keeps only values that work in both (intersection). Remember to flip the sign when you divide by a negative number.
2d + 3 ≤ −11 or 3d − 9 > 15
First part: 2d ≤ −14, so d ≤ −7. Second part: 3d > 24, so d > 8.
Answer: d ≤ −7 or d > 8
9 − 4x ≥ 5 or 4(−1 + x) − 6 ≥ 2
First part: −4x ≥ −4. Dividing by −4 flips the sign: x ≤ 1. Second part: 4x − 10 ≥ 2, so 4x ≥ 12 and x ≥ 3.
Answer: x ≤ 1 or x ≥ 3
−5 < 2x + 1 ≤ 7
Subtract 1 from all three parts: −6 < 2x ≤ 6. Divide all three parts by 2.
Answer: −3 < x ≤ 3, or (−3, 3] in interval notation
3x − 4 > 5 or 1 − 2x ≥ 7
First part: 3x > 9, so x > 3. Second part: −2x ≥ 6, and dividing by −2 flips the sign: x ≤ −3.
Answer: x ≤ −3 or x > 3
3(x + 3) − 2 < 4 or 1 − x ≤ −1
First part: 3x + 7 < 4, so 3x < −3 and x < −1. Second part: −x ≤ −2, so x ≥ 2. On a number line: an open dot at −1 shaded left, and a closed dot at 2 shaded right.
Answer: x < −1 or x ≥ 2
(1/2)x − 4 < 3 and 7 ≤ 3x + 5
First part: (1/2)x < 7, so x < 14. Second part: 2 ≤ 3x, so x ≥ 2/3. With and, keep the overlap.
Answer: 2/3 ≤ x < 14
−x − 1 ≤ 6 or 2 > −x − 1
First part: −x ≤ 7, so x ≥ −7. Second part: 3 > −x, so x > −3. Every x greater than −3 is already at least −7, so the union is just the first part.
Answer: x ≥ −7
−2x + 2 ≤ 10 or −2x + 2 > −4
First part: −2x ≤ 8, so x ≥ −4. Second part: −2x > −6, so x < 3. Together the two rays cover the whole number line.
Answer: All real numbers
Compound inequality practice quiz: 10 questions
Test yourself with 10 multiple-choice questions. Choose an answer and press Submit to see if you are right and why. Your score appears at the end.
Subtract 1: −6 < −x < 2. Multiply by −1 and flip both signs: 6 > x > −2, which is −2 < x < 6.
AND means both inequalities must be true, so only numbers in both solutions (the intersection) count.
No number is both greater than 4 and less than 1, so the two solutions do not overlap.
−3 is included (≤), so it gets a square bracket; 5 is not included (<), so it gets a parenthesis.
The bracket at 1 means 1 is included, the parenthesis at 6 means 6 is not, and ∪ means OR.
x − 2 < 4 gives x < 6 and x + 1 > 0 gives x > −1. Every number is less than 6 or greater than −1, so the union is the whole number line.
Within 3 degrees means between 68 − 3 = 65 and 68 + 3 = 71, inclusive, an AND inequality.
Quiz complete
Frequently asked questions
What is a compound inequality?
Two inequalities joined by AND or OR, such as x > 2 and x ≤ 6, or x < −2 or x ≥ 5. A three-part inequality like −1 < 2x + 3 ≤ 11 is an AND written in a shorter way.
How do you solve a compound inequality step by step?
For a three-part inequality, do the same operation to all three parts until x is alone in the middle. For two separate inequalities, solve each one, then take the overlap for AND or both pieces for OR. Flip the signs whenever you divide by a negative.
How do you write a compound inequality in interval notation?
Write each piece as (start, end), using a bracket for an included end and a parenthesis for an excluded end or infinity. Join OR pieces with ∪: x < −2 or x ≥ 5 is (−∞, −2) ∪ [5, ∞).
How do you graph a compound inequality on a number line?
Put an open dot at ends with < or > and a filled dot at ends with ≤ or ≥. Shade between the dots for −2 < x ≤ 4. For x < −2 or x > 5, shade outward in both directions and leave the middle empty.
Is there a compound inequality formula?
For a < bx + c < d with b positive, the answer is (a − c)/b < x < (d − c)/b. If b is negative the signs flip, giving (d − c)/b < x < (a − c)/b. For example, 1 < −2x + 7 < 9 gives −1 < x < 3.
Related calculators
- Inequality calculator
- Absolute value calculator
- Quadratic inequality calculator
- Linear equation calculator
- Domain and range calculator
More algebra calculators
Related to This Article
More math articles
- Area and Perimeter
- Investigations, Variables, and Controls
- Projectile Motion Calculator: Range, Max Height and Time of Flight
- Positive Externalities: Social Benefit and Corrective Subsidies
- How to Understand the Real Number Line
- Free Grade 6 English Worksheets for Delaware Students
- Rhode Island RICAS Grade 4 Math Free Worksheets: Printable Grade 4 Math Practice, Fully Worked Keys
- 6th Grade PARCC Math Practice Test Questions
- Montana MAST Grade 7 Math Worksheets: 95 Free Printable PDFs with Step-by-Step Keys
- The Best Grade 5 ELA Practice Tests for Illinois Students



What people say about "Compound Inequality Calculator Step by Step: AND & OR"?
No one replied yet.