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 entered−2<x≤5-2 < x \le 5

(−2,5]\displaystyle \left(-2, 5\right]

Interval notation

(−2,5]\displaystyle \left(-2, 5\right]

Set-builder notation

{x∣−2<x≤5}\displaystyle \{x \mid -2 < x \le 5\}
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.

    −2<x≤5→(−2,5]-2 < x \le 5 \to \left(-2, 5\right]
  2. Result

    So the interval notation is (−2,5]\left(-2, 5\right].

Worked examples