Interval notation

Topic guide · Updated 2026-11-26

Quick answer

Interval notation writes a set of numbers as its endpoints. A square bracket [ ] means the endpoint is included; a parenthesis ( ) means it is not. So 2 ≤ x < 5 is written [2, 5). Infinity always uses a parenthesis, and separate pieces are joined with the union symbol ∪.

−2−112345678−2−11234(2, 1)
  • y=1 {2<=x<5}
  • (2,1)
Open in graphing calculator

Conversion table

InequalityInterval notation
2 < x < 5(2, 5)
2 ≤ x ≤ 5[2, 5]
2 ≤ x < 5[2, 5)
x > 3(3, ∞)
x ≤ −1(−∞, −1]
x ≠ 0(−∞, 0) ∪ (0, ∞)
All real numbers(−∞, ∞)

Graphing an interval

On a number line, a filled dot marks an included endpoint and an open circle marks an excluded one. In the graphing calculator, a restriction like {2 <= x < 5} draws a function only on that interval.

Frequently asked questions

Why does infinity always get a parenthesis?

Infinity is not a number you can reach, so it can never be included as an endpoint.