Interval Notation Calculator

Type an inequality and this returns it in interval notation, in set-builder form and as a number line description, with a note on why each bracket is the shape it is. It reads three-part forms with a bound on each side, pieces joined with and or or, not-equal, and all real numbers, and it takes the reverse direction too, turning an interval such as (-infinity, 3] U (7, infinity) back into an inequality. A third mode does set arithmetic on two intervals: union, intersection, A minus B and the complement of A. It works on one variable against plain numbers, so it converts notation rather than solving an inequality with an unknown on both sides.

Calculator Type

Type the inequality the way you would write it. One variable, any letter, joined with "and" or "or" if there is more than one piece.

Understands x > 3, -3 < x <= 7, x < -2 or x >= 5, x >= 1 and x < 4, x != 0, and "all real numbers".
Widget

The other direction. Type the interval, including a union if there is one, and it comes back as an inequality and in set-builder form.

Understands [-2, 5), (-infinity, 3], (7, infinity), a union written with U, and { } for the empty set.
Widget

Two intervals and one operation. Each box will take a union of several intervals if you need it.

Interval notation. A union written with U is fine.
Widget