Interval Notation Calculator
Convert inequalities, find unions & intersections, and visualize intervals on a number line
Inequality to Interval Notation
Enter your inequality and get the interval notation with a number line graph.
x > 3
x ≤ 5
-2 < x < 7
x ≥ -4
x < 0
Accepted formats: Use <, >, <=, >= (or ≤, ≥). Examples:
x > 3, x <= 5, -2 < x < 7, 1 <= x <= 10
Interval Notation
Original
Interval
Set Builder
Type
Bounded
Number Line Visualization
✓ Copied!
Union & Intersection of Intervals
Enter two intervals in standard notation and compute their union (∪) and intersection (∩).
Format: Use standard interval notation like
(2, 5], [-3, 7), (-∞, 4], (6, ∞).
Type -inf or -∞ for negative infinity, inf or ∞ for positive infinity.
Interval A
Interval B
Union (A∪B)
Intersection (A∩B)
Overlap?
Number Line — A (purple) & B (green)
✓ Copied!
Compound Inequality Solver
Solve AND / OR compound inequalities and express in interval notation.
Tip: Enter two separate inequalities and choose AND or OR.
For AND, the solution is the intersection. For OR, it is the union.
Solution
Inequality 1
Interval 1
Inequality 2
Interval 2
Connective
Final Answer
Number Line Visualization
✓ Copied!
Interval Notation Reference Guide
| Inequality | Interval Notation | Type | Meaning |
|---|---|---|---|
| a < x < b | (a, b) | Open | x between a and b, not including endpoints |
| a ≤ x ≤ b | [a, b] | Closed | x between a and b, including both endpoints |
| a < x ≤ b | (a, b] | Half-open | Excludes a, includes b |
| a ≤ x < b | [a, b) | Half-open | Includes a, excludes b |
| x > a | (a, +∞) | Unbounded right | All x greater than a |
| x ≥ a | [a, +∞) | Unbounded right | All x greater than or equal to a |
| x < b | (-∞, b) | Unbounded left | All x less than b |
| x ≤ b | (-∞, b] | Unbounded left | All x less than or equal to b |
| All reals | (-∞, +∞) | Full real line | Every real number |
| x = a (single point) | {a} | Degenerate | Only the value a |
| No solution | ∅ | Empty | No values satisfy the condition |
Set Operations
| Operation | Symbol | Example | Result |
|---|---|---|---|
| Union | ∪ | (1,4) ∪ (3,7) | (1,7) |
| Intersection | ∩ | (1,4) ∩ (3,7) | (3,4) |
| Complement | Aᶜ | [2,5]ᶜ | (-∞,2)∪(5,+∞) |
Bracket Rules
( or )Open bracket — endpoint is excluded
[ or ]Closed bracket — endpoint is included
±∞Always paired with open brackets: (−∞, ...) or (..., +∞)