What Is Interval Notation?
Interval notation is a compact way to write the set of all real numbers between two bounds. A square bracket [ ] means the endpoint is included (closed), while a parenthesis ( ) means it is excluded (open). Infinity (\(\infty\)) and negative infinity (\(-\infty\)) always use parentheses because they are not real numbers and can never be reached.
How to Use This Calculator
Enter a lower bound and choose whether it is open (\(>\), exclusive) or closed (\(\ge\), inclusive). Do the same for the upper bound. To represent an unbounded side, leave the bound field blank — the calculator will use \(-\infty\) or \(+\infty\) automatically. It instantly returns the interval, the equivalent inequality, and set-builder notation.
The Conversion Rules
The endpoint type controls the symbol used: closed lower → [ and \(\ge\); open lower → ( and \(>\); closed upper → ] and \(\le\); open upper → ) and \(<\). For example, the inequality \(2 \le x < 7\) becomes the interval \([2, 7)\), and \(x > 5\) becomes \((5, \infty)\).
Worked Example
Suppose you want all numbers from 2 (included) up to but not including 7. Lower bound 2 is closed, upper bound 7 is open. The result is the interval \([2, 7)\), the inequality \(2 \le x < 7\), and the set \(\{\, x \mid 2 \le x < 7 \,\}\).
More Worked Examples
These examples cover cases the main calculator form does not show directly, such as intervals that extend to infinity and conversions in the reverse direction. The rule behind all of them: a square bracket [ ] or ≤ / ≥ means the endpoint is included, and a parenthesis ( ) or < / > means it is excluded. Infinity is never a real number, so it always gets a parenthesis.
Example 1: Unbounded interval, x ≥ −4
- Read the inequality: x is greater than or equal to −4, so −4 is included. The lower endpoint gets a square bracket: [−4.
- There is no upper limit, so x can grow without bound. The upper endpoint is ∞, which always takes a parenthesis: ∞).
- Combine them: [−4, ∞).
- Set-builder form: \(\{x \mid x \ge -4\}\). Check: x = −4 and x = 100 are in the set, but x = −5 is not.
Example 2: Fully open interval, −3 < x < 5
- Read the lower part: −3 < x uses a strict inequality, so −3 is not included. Write (−3.
- Read the upper part: x < 5 is also strict, so 5 is not included. Write 5).
- Combine them: (−3, 5). In the calculator, enter lower = −3 with lowertype = open, and upper = 5 with uppertype = open.
- Check the endpoints: x = 0 is in the interval (−3 < 0 < 5), but x = −3 and x = 5 are not. The interval has length 5 − (−3) = 8 and midpoint (−3 + 5) ÷ 2 = 1.
Example 3: Reverse conversion, (−∞, 2] back to an inequality
- The left side is −∞ with a parenthesis. That means there is no lower bound, so no lower inequality is needed.
- The right side is 2 with a square bracket, so 2 is included. This gives x ≤ 2.
- Set-builder form: \(\{x \mid x \le 2\}\), read as "the set of all x such that x is less than or equal to 2."
Bonus: a compound (two-piece) case
The inequality "x < −1 or x ≥ 3" has two separate pieces. Convert each piece on its own: x < −1 becomes (−∞, −1), and x ≥ 3 becomes [3, ∞). Join them with the union symbol: (−∞, −1) ∪ [3, ∞). The values between −1 and 3 are left out, so one interval cannot describe the set.
Key Terms and Symbols
- Open interval: an interval that excludes both endpoints, written (a, b). It corresponds to a < x < b.
- Closed interval: an interval that includes both endpoints, written [a, b]. It corresponds to a ≤ x ≤ b.
- Half-open (half-closed) interval: an interval that includes one endpoint and excludes the other, such as [a, b) for a ≤ x < b or (a, b] for a < x ≤ b.
- Bounded interval: an interval with a finite number at both ends, such as [2, 7). Its length is finite.
- Unbounded interval: an interval that extends forever in at least one direction, such as [−4, ∞) or (−∞, 2].
- Set-builder notation: a way to describe a set by a rule, for example \(\{x \mid x \le 2\}\), read as "the set of all x such that x ≤ 2." The vertical bar means "such that."
- Union symbol ∪: combines two sets into one that contains everything in either. For example, (−∞, −1) ∪ [3, ∞).
- Empty set ∅: the set with no elements. For example, no real number satisfies x > 5 and x < 2 at once, so the solution set is ∅.
- Infinity ∞ and negative infinity −∞: symbols meaning the values grow without limit in the positive or negative direction. They are not real numbers, so they are always written with a parenthesis, never a square bracket.
- ∈: means "is an element of." For example, 0 ∈ (−3, 5) is true, but 5 ∈ (−3, 5) is false.
- ≤ and ≥: mean "less than or equal to" and "greater than or equal to." They include the endpoint and match a square bracket. The strict symbols < and > exclude it and match a parenthesis.
FAQ
Why does infinity always use a parenthesis? Because infinity is a concept, not an actual number, it can never be "included," so it always takes an open parenthesis.
What if the lower bound is larger than the upper bound? The interval is empty — there are no real numbers that satisfy both conditions.
What does a single point like \(\{\,3\,\}\) mean? When both bounds equal the same value and both are closed (\(3 \le x \le 3\)), the only solution is \(x = 3\), written as the single-point set \(\{\,3\,\}\).