Define a set of numbers on the number line using interval notation
Specify the endpoints and whether they are inclusive or exclusive to generate the corresponding interval notation, set-builder notation, and a description.
Click on any example to load it into the calculator
An interval where both endpoints are included.
Interval: [-2, 5]
An interval where neither endpoint is included.
Interval: (0, 10)
An interval where the left endpoint is included and the right is not.
Interval: [3, 8)
An interval where the right endpoint is included and the left is not.
Interval: (-100, 100]
[
or ]
if the number should be included in the interval (inclusive). Use (
or )
if the number should be excluded (exclusive).(10, 2)
. Interval notation must always go from the smaller value to the larger value as read from left to right on a number line.(2, 10)
.(5, 9]
when the description is 'greater than 5 and less than or equal to 9' but you intend to include 5. The notation (5, 9]
explicitly excludes 5.[5, 9]
means '5 ≤ x ≤ 9', while (5, 9)
means '5 < x < 9'. Match the bracket to the inequality symbol.[0, ∞]
. Infinity is not a number that can be 'included' in a set.∞
and -∞
. The correct form is [0, ∞)
. (Note: this calculator focuses on bounded intervals between two numbers).{ x ∈ ℝ | a ≤ x ≤ b }
becomes Interval: [a, b]
{ x ∈ ℝ | a < x < b }
becomes Interval: (a, b)
∪
is used. For example, the solution to x² > 4
is x < -2
or x > 2
. This is written in interval notation as (-∞, -2) ∪ (2, ∞)
. Our calculator focuses on creating single, connected intervals.