Here is the rule, the one you want stuck in your head before any example, diagram, or edge case:
Square bracket
[or]= the endpoint is in the set. Round bracket(or)= the endpoint is out of the set.
That is the whole story. Every subtlety below is a consequence of that. If you get stuck, fall back here and re-derive.
Read the bracket, decide the endpoint
When you see an interval, read it left to right and check each bracket separately — they are independent.
- Left bracket
[: the left endpoint is included. - Left bracket
(: the left endpoint is excluded. - Right bracket
]: the right endpoint is included. - Right bracket
): the right endpoint is excluded.
Each side of an interval answers a yes-or-no question: "is this number itself in the set?" The bracket is the answer.
The four combinations, concretely
Let us use the endpoints 2 and 5 so we can check whether specific numbers belong.
- [2, 5] means 2 \le x \le 5. Both endpoints are in. 2 is in the set; 5 is in the set. Called a closed interval.
- (2, 5) means 2 < x < 5. Both endpoints are out. 2 is not in the set; 5 is not in the set. Called an open interval.
- [2, 5) means 2 \le x < 5. Left in, right out. 2 is in; 5 is not. Called half-open (or closed-open).
- (2, 5] means 2 < x \le 5. Left out, right in. 2 is not in; 5 is. Also half-open (open-closed).
In all four cases the "body" of the interval — every number strictly between 2 and 5 — is the same. Only the fate of the endpoints 2 and 5 differs.
The number-line picture: filled circle vs hollow circle
Interval notation has a one-to-one translation to a drawing on the number line. Brackets map to circle styles:
- Square bracket
[or]= filled circle at that endpoint (a solid dot). "This point is in." - Round bracket
(or)= hollow circle at that endpoint (an empty ring). "This point is not in — we get arbitrarily close, but we do not land on it."
This picture is the one that carries the intuition. A filled dot is a stop sign saying "you are here, you belong." A hollow dot is a warning saying "you may approach but not enter."
Infinities always get a round bracket
One extra rule, the one that trips up almost everyone at some point:
\infty and -\infty always get a round bracket. Never a square one.
So you write (-\infty, 3], not [-\infty, 3]. You write [7, \infty), not [7, \infty].
The reason: a square bracket means the endpoint is included in the set, and for that to make sense the endpoint must be an actual real number. \infty is not a real number — it is shorthand for "no bound on this side, the interval just keeps going." There is nothing to include. Writing [\infty] would claim you are including the number infinity, and no such number exists on the real line.
So (-\infty, 3] reads: "x can be as negative as you like — no lower wall — and on the right, x is at most 3, including 3." That is x \le 3.
Does the inequality tell me which bracket?
Yes — the bracket is the notation version of the inequality symbol. The translation is tight:
| Inequality | Bracket on that side | Circle |
|---|---|---|
| < or > (strict) | round ( or ) |
hollow |
| \le or \ge (non-strict, "or equal") | square [ or ] |
filled |
If you can write the solution of an inequality as a phrase — "x is strictly less than 5" versus "x is less than or equal to 5" — you can read off the bracket. The word strictly is your round-bracket word. The phrase or equal to is your square-bracket phrase.
So x \ge 2 becomes [2, \infty): the 2 is included (square), and there is no finite upper endpoint (round, round — against infinity, always round).
And -1 < x \le 4 becomes (-1, 4]: strict on the left (round), non-strict on the right (square).
A quick self-test
- [0, 10] — 0 in, 10 in.
- (0, 10) — 0 out, 10 out.
- (0, 10] — 0 out, 10 in.
- (-\infty, 0) — 0 out; the solution is x < 0.
- [-\infty, 5] — trick: not a legal interval, because the left bracket against -\infty must be round.
If any of those slipped, re-read the one-line rule at the top and try again.
Why the convention is this way
A square bracket [ has a vertical bar — a solid wall that includes the point sitting against it. A round bracket ( is smooth and open at the end — a curtain the endpoint slips past. The shape mimics the behaviour.
For a hands-on feel — drag the endpoints, toggle each bracket, watch the notation update live — open Interval Builder: Drag Endpoints, Toggle Open-Closed, Watch the Notation. And for the full theory of solving inequalities, head back to Intervals and Inequalities Preview.