The rules are small, but a handful of traps cost students marks every semester: infinity with a bracket, a forgotten sign flip, two pieces forced into one interval. This page covers the rules, the reasoning behind them, and the cases where answers go wrong.
How do you write interval notation?
An interval is a stretch of the number line, and the notation records two facts about each end: where it is, and whether the endpoint itself counts. The left value always comes first, so the smaller number is written on the left no matter how the original problem was phrased. A comma separates the two, and the pair is wrapped in the right symbols.
The sign in the inequality decides the symbol. Signs with an equals line (, ) include the endpoint, so they get a bracket. Strict signs (, ) exclude it, so they get a parenthesis. Written out, the four finite shapes are:
A square bracket has corners that fence the endpoint in. A rounded parenthesis has nothing to hold it, so the endpoint slips out.
Infinity follows its own rule. The symbols and describe a set that never stops, not a number the set reaches, so they always take a parenthesis. would claim that infinity is a member of the set. The correct forms are and .
The most common slip with negatives is ordering. For , the answer is , never . Read the number line left to right and write the ends in that order.
Quick check
Answer:
Interval notation vs inequalities and number lines
Interval notation, inequalities and number-line graphs are three views of one set. An open dot on a graph is a parenthesis, a filled dot is a bracket, and an arrow is an infinity symbol. A shaded stretch between dots is the interval itself.
| Inequality | Interval notation | Number line |
|---|---|---|
| open dots at both ends | ||
| filled dots at both ends | ||
| filled left, open right | ||
| open dot, arrow right | ||
| filled dot, arrow left | ||
| all real numbers | whole line shaded |
A double inequality such as is really two conditions joined by “and”, which is why it collapses to one interval. The full rules for those are in compound inequalities.
One limit is worth knowing. An interval is continuous: contains , and every other real number between its ends. A list like is not an interval, and it needs braces, . Set-builder notation, , says the same thing as in words rather than symbols.
How to write interval notation after solving an inequality

Solving an inequality uses the same moves as an equation, with one exception: multiplying or dividing by a negative number reverses the sign. The reason is that multiplying by reflects the number line, so “larger” and “smaller” swap places. If the steps are unfamiliar, solving two-step equations covers the same operations, and solving linear inequalities adds the sign rules.
Example 1. Solve and write the answer in interval notation.
Subtracting leaves . Dividing by flips to , so . The set starts at (included) and runs right forever:
The trap is the missed flip. Without it, the answer comes out as , which is exactly the wrong half of the line. A ten-second guard is to test in the original: is true, and lies inside , so the direction is right. Test one point on the other side, such as , and you get , which is false, as it should be.
Longer inequalities work the same way. Clear parentheses, collect terms, then flip once if you divide by a negative. The routines from solving multi-step equations carry over unchanged.
Union and intersection in interval notation
![When touching intervals merge Number lines showing [1,3) union [3,6] merges but (1,3) union (3,6) leaves a hole at 3](/img/interval-notation-2.webp)
Use “or” when a solution lives in separate pieces, and join the pieces with a union, . Use “and” when both conditions must hold at once, which gives the overlap, an intersection, . Absolute value inequalities produce both: is an “and” and gives one interval, while is an “or” and gives two.
Example 2. Solve .
Each piece becomes its own interval, written left to right:
Check with : , which is not greater than , so should be outside the set, and it sits in the gap. Check the endpoint : , which is not greater than , so the parenthesis is correct. For more cases, see absolute value inequalities, and for the equal version, solving absolute value equations.
Intersections follow a simple rule: the overlap starts at the larger left endpoint and ends at the smaller right endpoint. For example, . When two endpoints tie, the more restrictive symbol wins in an intersection, so the parenthesis beats the bracket. In a union, the opposite holds: merges into one interval because the second piece includes . But cannot merge, because neither piece contains .
Quick check
Answer:
How to find domain and range in interval notation
A domain starts as all real numbers, and then each restriction removes something. Three restrictions cover most courses: a denominator cannot be zero, an even root cannot have a negative radicand, and a logarithm needs a positive argument (see logarithm rules for why). Each restriction gives an inequality, and the domain is the set that satisfies all of them at once.
Removing an endpoint only changes a bracket to a parenthesis. Removing a value from the middle, like from , splits the interval in two, so a union is required.
Example 3. Find the domain of .
The root needs , so . The denominator needs , so . Start with . The value lies inside it, so removing it leaves two pieces:
The same denominator and radicand thinking appears in solving rational equations and solving radical equations, where untested answers can land on excluded values.
Ranges use the same notation but ask a different question: which outputs actually occur? For , a square is never negative, so the smallest output is at , and the range is . Quadratic inequalities also end in intervals. Factoring gives , the parabola opens upward, and it is positive outside its roots, so the solution is . When the roots do not factor, the quadratic formula supplies the endpoints.
Interval notation for all reals, no solution and single points
Sometimes the variable cancels and the inequality collapses to a statement with no in it. That statement is either always true or always false, and each outcome has its own notation.
- Always true, as in (which reduces to ): every real number works, so the answer is .
- Always false, as in (which reduces to ): no real number works, so the answer is the empty set, .
- A single value, as in : only works. Technically , but is the clearer way to write it.
These outcomes show up when you collect variables from both sides, which is why equations with variables on both sides is worth reviewing first. An empty set is not the same as “answer: 0”. It means the question has no solutions at all.
Two related oddities: is empty because nothing sits strictly between a number and itself, and an interval like with the ends reversed is not valid notation. If an intersection such as has no overlap, the correct answer is , not an invented interval.
Quick check
Answer: No solution,
How do you check an interval notation answer?
Every interval answer can be verified in under a minute with three quick tests. They catch nearly every error described above.
- Test one point inside each piece of your answer in the original problem. Every one should work.
- Test one point in each gap or outside region. Every one should fail.
- Test each endpoint directly. If the endpoint works, it needs a bracket. If it fails or is undefined, it needs a parenthesis.
The endpoint test is the one students skip, and it settles the bracket question without any memorizing. For in Example 2, plugging in gives , which is false, so the parenthesis is forced. Infinity needs no test because it always takes a parenthesis.
Try this: Solve , then test one point inside your interval, one outside, and the endpoint itself. (The endpoint should fail, giving .)
A final read-through takes five seconds: smaller number on the left, parentheses on both infinities, and a union symbol anywhere the solution has a gap.
Where interval notation shows up outside homework
Calculus leans on it constantly. A theorem about continuous functions on a closed interval guarantees a highest and lowest value, and the brackets matter because the endpoints are part of the guarantee. On , a function can climb toward a value without ever reaching it.
Statistics reports confidence intervals this way. A result written as means a plausible range for an unknown value. Engineering uses the same idea for tolerances: a part specified as mm is acceptable anywhere in .
Word problems produce intervals whenever “at least”, “at most” or “between” appears. A trip of miles that must take between and hours needs a speed with , so mph. Rate setups like this are covered in distance, rate and time problems, and linear equation word problems shows how to translate the wording into an inequality in the first place.
One notational clash deserves a warning: can be an interval or a point on a graph. Context settles it, and a sentence like “the solution is ” removes any doubt. Some textbooks outside the US write open ends with reversed brackets, as in , and some use a semicolon in place of the comma. The meaning is identical.
Practice problems
0 of 5 solved
- Write in interval notation.
Answer:
The sign includes , so the left end gets a bracket. The set runs forever to the right, and infinity always gets a parenthesis. Answer: . - Write in interval notation.
Answer:
The strict sign excludes , so use a parenthesis on the left. The sign includes , so use a bracket on the right. Answer: . - Solve and write the answer in interval notation.
Answer:
Subtract : . Divide by and flip the sign: . The set extends left from without including it: . - Solve and write the answer in interval notation.
Answer:
Split into or . That gives or . Join the two pieces with a union, left piece first: . - Find the domain of in interval notation.
Answer:
The root needs , so . The fraction needs . Remove from to get .
Common questions
What is the difference between brackets and parentheses in interval notation?
A square bracket means the endpoint belongs to the set, which matches and . A parenthesis means the endpoint is left out, which matches and . So contains but not .
Why is infinity always written with a parenthesis?
Infinity is not a real number, so it can never be a member of a set of real numbers. A bracket claims the endpoint is included, which would be false for or . That is why the correct forms are and .
How do you write all real numbers in interval notation?
Write , which is the same set as . Both ends are unbounded, so both get parentheses.
How do you write x not equal to 3 in interval notation?
Remove from the number line, which splits it into two pieces: . A single excluded value always produces a union of two intervals.
When do you use the union symbol in interval notation?
Use when a solution comes in separate pieces, usually from an inequality with 'or' or from a domain with a hole. Write the pieces from left to right on the number line.
What is the difference between interval notation and set-builder notation?
Set-builder notation states a condition, as in . Interval notation names only the endpoints and lets the brackets carry the detail, giving . Interval notation is shorter and is the usual format for domains and solutions.