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.

Compound inequality calculator: choose an input
The middle can be any linear expression, such as 3 − 4x or (x + 1)/2. A negative x-coefficient flips both signs.
Try:
−1 < 2x + 3 ≤ 11
−2 < x ≤ 4AND = overlap

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}.

Interval notation(−2, 4]
Set-builder notation{x | −2 < x ≤ 4}
Left partx > −2
Right partx ≤ 4
Shape of the answerbounded (between two numbers)
Left part: x > −2−3−1012345−2Right part: x ≤ 4−3−2−1012354Solution: (−2, 4]−3−101235−24
Filled dot: endpoint included (≤ or ≥, square bracket). Hollow dot: endpoint excluded (< or >, parenthesis). Arrow: continues forever.
Show steps
  1. 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.
  2. Subtract 3 from all three parts: −1 − 3 < 2x ≤ 11 − 3, so −4 < 2x ≤ 8.
  3. Divide all three parts by 2: −2 < x ≤ 4.
  4. Write the answer three ways: −2 < x ≤ 4, interval (−2, 4], set-builder {x | −2 < x ≤ 4}.
  5. Check a value inside, x = 1: −1 < 5 ≤ 11 is true ✓.
  6. Check a value outside, x = −3: −1 < −3 ≤ 11 is false, as expected ✓.

Compound Inequality Calculator (Free, Step-by-Step)
Embed this calculator on your site

Free to use on class pages, blogs and course pages. Copy the code below and paste it into your page:

How to use the compound inequality calculator

  1. 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, ∞).
  2. Type the numbers or expressions. Fractions, decimals and parentheses such as (x + 1)/2 are fine. Type <= for ≤ and >= for ≥.
  3. 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.
  4. 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

  1. 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.
  2. Two separate inequalities: solve each one on its own, exactly like a single inequality.
  3. Combine: for AND keep only the overlap; for OR keep both pieces.
  4. 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.

Question 1 of 10
1. Solve 4 < 2x − 2 ≤ 10.

Found a mistake? Let us know!

2. Solve −5 < −x + 1 < 3.

Found a mistake? Let us know!

3. Which word means you keep only the overlap of the two solutions?

Found a mistake? Let us know!

4. Solve x + 3 < 1 or 2x ≥ 8.

Found a mistake? Let us know!

5. Solve x > 4 and x < 1.

Found a mistake? Let us know!

6. What is −3 ≤ x < 5 in interval notation?

Found a mistake? Let us know!

7. Which inequality matches (−∞, 1] ∪ (6, ∞)?

Found a mistake? Let us know!

8. Solve x − 2 < 4 or x + 1 > 0.

Found a mistake? Let us know!

9. Solve −1 ≤ (x − 3)/2 ≤ 2.

Found a mistake? Let us know!

10. A thermostat keeps the temperature T within 3 degrees of 68 °F. Which compound inequality describes T?

Found a mistake? Let us know!

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

More algebra calculators

Browse all 541 calculators

Related to This Article

What people say about "Compound Inequality Calculator Step by Step: AND & OR"?

No one replied yet.

Leave a Reply