Interval Notation Calculator

Convert between inequalities, interval notation and set-builder notation.

Use <, <=, > or >=. Join two parts with "or", such as x <= -1 or x > 4.

Try

Result

You enteredx≤−1 or x>4x \le -1 \text{ or } x > 4

(−∞,−1]∪(4,∞)\displaystyle \left(-\infty, -1\right] \cup \left(4, \infty\right)

Interval notation

(−∞,−1]∪(4,∞)\displaystyle \left(-\infty, -1\right] \cup \left(4, \infty\right)

Set-builder notation

{x∣x≤−1 or x>4}\displaystyle \{x \mid x \le -1 \text{ or } x > 4\}
Show the work
  1. Open and closed ends

    An inequality with << or >> leaves its end out, so the interval uses a round bracket. ≤\le or ≥\ge includes the end, so it uses a square bracket. Infinity is never reached, so it always takes a round bracket.

    x≤−1→(−∞,−1]x>4→(4,∞)\begin{gathered} x \le -1 \to \left(-\infty, -1\right] \\ x > 4 \to \left(4, \infty\right) \end{gathered}
  2. Union of intervals

    Two separate pieces are joined with the union sign ∪\cup, which means "in either one".

    (−∞,−1]∪(4,∞)\left(-\infty, -1\right] \cup \left(4, \infty\right)
  3. Result

    So the interval notation is (−∞,−1]∪(4,∞)\left(-\infty, -1\right] \cup \left(4, \infty\right).

Worked examples