Interval Notation Calculator
Test cases replayed : 7 of 7 match · Methodology · No outside source listed
Choose how each end of the set behaves (included, excluded or unbounded) and enter the endpoints. The calculator writes the same set in interval notation, as an inequality and in set-builder notation.
Result
Interval notation
Inequality
- Set-builder notation
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Left end: choose Unbounded (−∞), Excluded, open: ( or Included, closed: [.
- Left endpoint a: enter a number.
- Right end: choose Unbounded (∞), Excluded, open: ) or Included, closed: ].
- Right endpoint b: enter a number.
- Read the result: Interval notation; the panel also shows Inequality and Set-builder notation.
How this calculator works
A square bracket [ or ] means the endpoint is included (≤ or ≥, a closed dot on a number line); a parenthesis ( or ) means it is excluded (< or >, an open dot). Infinity is never included, so −∞ and ∞ always take a parenthesis.
Example: −2 ≤ x < 5 is written [−2, 5) and {x | −2 ≤ x < 5}. A set with both ends unbounded is (−∞, ∞), all real numbers.
If the left endpoint is greater than the right one, or the two are equal with an end excluded, no number qualifies and the set is empty (∅); equal endpoints both included give the single number {a}.
Worked example
| Left end | Included, closed: [ |
|---|---|
| Left endpoint a | -2 |
| Right end | Excluded, open: ) |
| Right endpoint b | 5 |
| Interval notation | [-2, 5) |
|---|---|
| Inequality | -2 ≤ x < 5 |
| Set-builder notation | {x | -2 ≤ x < 5} |
Frequently asked questions
How do I write x ≥ 3 in interval notation?
Choose Included for the left end with a = 3 and Unbounded for the right end: [3, ∞).
What is the difference between ( and [?
( excludes the endpoint and [ includes it. (2, 5] contains 5 but not 2.
How do I write "x < −1 or x > 4"?
Write each part and join them with the union sign: (−∞, −1) ∪ (4, ∞). Use the calculator once for each part.