Not sure which lesson to do first? Find your level and get a plan →

Math · Algebra Fundamentals · Grade 9-12

Interval Notation

Interval notation is shorthand for all the real numbers in a range, using [ ] for included endpoints and ( ) for excluded ones.


Quick Answer

Interval notation is shorthand for all the real numbers in a range, using [ ] for included endpoints and ( ) for excluded ones. Use it to write the solution of an inequality, or the domain or range of a function, without listing numbers: x>2 becomes (2,∞) and 1≤x≤5 becomes [1,5]. Infinity always gets a round bracket, because no real number equals it. When a solution comes in two separate pieces, write each piece and join them with the union sign ∪.

Why This Matters

Interval notation is how domains, ranges and inequality solutions are written in algebra, precalculus and calculus, so reading it fluently matters as soon as functions appear. In a few symbols it records whether each endpoint counts, which is the difference between "under 18" and "18 or under". Mixing up the brackets changes the answer: [0,5) includes 0 and excludes 5, while (0,5] does the reverse.

Intuitive Explanation

On a number line, the solution of −1≤x<4 is a shaded stretch from −1 to 4, with a filled dot at −1 (included) and an open dot at 4 (excluded). Interval notation writes that picture in symbols: [−1,4). The square bracket stands for the filled dot and the round bracket for the open dot, with the smaller endpoint written first.

Rays that never stop use infinity. x≥3 is [3,∞), and x<0 is (−∞,0). The symbol ∞ is not a number, so no real number equals it, and it always gets a round bracket. The whole number line is (−∞,∞).

When the solution comes in two pieces, write each piece and join them with ∪, which means "or". The domain of f(x)=1x−2 is every number except 2: (−∞,2)∪(2,∞). The solution of "x≤−1 or x>3" is (−∞,−1]∪(3,∞).

Interval notation describes continuous ranges only. The set {1,2,3} of three whole numbers is not [1,3], which also contains 1.5 and every other number in between. And outside an inequality, (2,5) usually means the point with x=2 and y=5; the context, a range of values or a location on a grid, tells you which.

Think of it like this. Read an interval like a stretch of road with a gate at each end. A square bracket is a gate you may stand in; a round bracket is a gate you can walk up to as closely as you like but never stand in. Infinity has no gate at all, because that road never ends, so that end always takes a round bracket.

Core idea. Interval notation names a range of real numbers with square brackets at endpoints that are included and parentheses at endpoints that are excluded.


When to Use

Use it when an answer is a continuous range of real numbers: the solution of an inequality, the domain or range of a function, or a tolerance such as lengths from 4.9 to 5.1 cm. Choose a square bracket for ≤ or ≥ and a parenthesis for <, > or infinity. If the answer is a few separate values, list them in set braces instead; if it is described by a rule such as "even integers", use set-builder notation.

Tip. Ask: Am I describing a continuous range of reals where I must mark each endpoint as included (bracket) or excluded (parenthesis)?

How to Recognize It

Before writing an interval, check whether the answer is an unbroken stretch of numbers and what happens at each end of it.

  1. Does the answer include every real number between its ends, fractions and decimals too?

    Then interval notation fits. If only whole numbers count, such as numbers of tickets from 1 to 5, list them in braces as {1,2,3,4,5}, since [1,5] would also include 2.5.

  2. Does the answer come in one piece?

    One piece is a single interval. Two pieces, such as x<−1 or x>4, are written as a union, (−∞,−1)∪(4,∞). If the set follows a rule like all even numbers, set-builder notation is the better choice.

  3. Is the pair of numbers naming a point on the coordinate plane?

    A pair like (3,7) in a graphing question is an ordered pair, a single location. In an inequality or domain question the same symbols mean every number between 3 and 7, so read the surrounding question first.

  4. Is the solution a single number, or no numbers at all?

    A single value like x=3 is usually written {3}; [3,3] means the same set but is rarely used. An inequality with no solutions, such as x2<0, has the empty set ∅ as its answer.

Interval Notation compared with Inequality notation, Set-builder notation, and Coordinate / ordered pair

All four rows use brackets or inequality signs to describe numbers, so they are easily confused. Ask whether you are naming one unbroken stretch of the number line, a set given by a rule, a condition with < or ≤, or one point in the plane.

Interval Notation

Meaning
Use this when you need to write a continuous range of real numbers and specify which endpoints are included or excluded.
Key test
Am I describing a continuous range of reals where I must mark each endpoint as included (bracket) or excluded (parenthesis)?
Example
Write the solution of −1≤x<4 in interval notation.

Inequality notation

Meaning
States the same range with <,≤ symbols instead of brackets.
Key test
Use when the problem or proof step is phrased in inequality form.
Formula
2<x≤5
Example
2<x≤5 equals (2,5]

Set-builder notation

Meaning
Describes a set by a rule, allowing non-interval and discrete sets.
Key test
Use when the set is not one continuous stretch, e.g. with 'or'.
Formula
{x∣x<0 or x>3}
Example
Two separate pieces

Coordinate / ordered pair

Meaning
(x,y) also uses parentheses but names a single point, not a range.
Key test
Use when locating a point on the plane, not a range on a line.
Formula
(2,5) as a point
Example
Plot (2,5)

Formula & Notation

How to read it: Examples: (a,b), [a,b], (a,∞), (−∞,b].

Worked Examples

Example 1 — Translate an inequality

Easy

Write the solution of −1≤x<4 in interval notation.
Show the steps and the answer
  1. Find the endpoints: −1 on the left and 4 on the right.

    Interval notation lists the smaller endpoint first.

  2. Left end: ≤ means −1 is included, so it gets a square bracket, [−1.

    A bracket matches a filled dot on the number line.

  3. Right end: < means 4 is excluded, so it gets a round bracket, 4).

    A parenthesis matches an open dot.

  4. Combine into [−1,4) and test a value: x=0 satisfies −1≤0<4 and lies in [−1,4).

    A quick test confirms the endpoints are in the right order.

Answer: [−1,4)

Takeaway: Bracket for ≤ or ≥, parenthesis for < or >, smaller endpoint first.

Example 2 — A split solution set

Standard

Write the solution of x<−1 or x≥4.
Show the steps and the answer
  1. Notice the word "or": the solution is two separate stretches, one left of −1 and one from 4 rightwards.

    No single interval can skip over the gap between −1 and 4.

  2. First piece: x<−1 runs forever to the left, so it is (−∞,−1).

    −1 is excluded by <, and −∞ always takes a parenthesis.

  3. Second piece: x≥4 is [4,∞).

    4 is included by ≥, and ∞ again takes a parenthesis.

  4. Join them with the union sign: (−∞,−1)∪[4,∞).

    ∪ means a number may be in either piece, matching "or".

Answer: (−∞,−1)∪[4,∞)

Takeaway: Two separate pieces become two intervals joined by ∪; an "or" inequality usually signals this.

Example 3 — Find the mistake: each endpoint on its own

Application

Write the domain of f(x)=x−5 in interval notation. Raj writes: "x>5, so the domain is (5,∞]." Find the mistakes and correct them.
Show the steps and the answer
  1. Find the condition: x−5 needs x−5≥0, so x≥5.

    The square root of 0 exists, so 5 belongs in the domain; Raj's x>5 leaves it out.

  2. Test the endpoint: f(5)=0=0, a real number.

    Substituting confirms 5 is allowed, so the left end takes a square bracket.

  3. Fix the right end: ∞ is never included, so it takes a parenthesis.

    No real x equals ∞, so (5,∞] is not a valid interval.

  4. Write the domain: [5,∞).

    Square bracket for the included 5, round bracket for infinity.

Answer: [5,∞)

Takeaway: Decide each endpoint separately by testing it, and always close infinity with a parenthesis.

Where You'll See It

  • Storing a vaccine safely

    Many vaccines must be kept between 2°C and 8°C inclusive, the interval [2,8]. A fridge reading of exactly 8°C is still acceptable but 8.1°C is not, which is exactly what the square bracket records.

  • Ages for a child's ticket

    A cinema's child price covers ages from 3 up to but not including 13, the interval [3,13). A 12-year-old pays the child price; on their 13th birthday they leave the interval, because the round bracket excludes 13.

  • Tolerance on a machined bolt

    A bolt specified as 10±0.05 mm must have a diameter in [9.95,10.05]. Quality control accepts 10.05 mm, the closed endpoint, and rejects 10.06 mm, which lies outside the interval.

Common Mistakes

  1. The slip: Using a bracket on infinity

    Instead: ∞ and −∞ are never included, so always use a parenthesis: (−∞,3]

  2. The slip: Mixing up which symbol includes

    Instead: square bracket [ ] includes the endpoint (≤,≥); parenthesis ( ) excludes it (<,>)

  3. The slip: Reading (2,5) as a point

    Instead: in interval context it means all reals strictly between 2 and 5, not a coordinate


Mini Practice

Try these on your own. Tap Reveal when you want to check.

  1. Write x>3 in interval notation.

    Hint: Is 3 included? What is the upper end?

  2. Write −2≤x≤6 in interval notation.

    Hint: Both endpoints are included.

  3. Solve 2x−1<7 and write the answer in interval notation.

    Hint: Solve first, then decide on the bracket type.

  4. Write 'all real numbers except 0' in interval notation.

    Hint: You need two pieces joined by a union.

  5. In one problem (2,5) is the answer to 'which point is on the line?'. In another it is the answer to 2<x<5. Which one is an interval?

    Hint: Does the answer name one location or a range of numbers?

  6. A student writes x≥−1 as [−1,∞]. Find the mistake.

    Hint: Can a number ever equal infinity?

Want the full set?

50 practice questions for this concept — free to try, every one with a complete worked solution showing the why, not just the answer.

Frequently Asked Questions

How do I write all real numbers in interval notation?

As (−∞,∞)(-\infty,\infty), the whole number line with no endpoints included, because neither end is a real number. It is the usual domain of a polynomial such as f(x)=x2−3xf(x)=x^2-3x, since any real input works. The range of that function is different: it starts at the lowest point of the parabola, −94-\frac94 at x=32x=\frac32, so the range is [−94,∞)[-\frac94,\infty).

Is [3,1] a valid interval?

No. An interval is always written smaller number first, so the numbers from 1 to 3 are [1,3][1,3]. Depending on the book, [3,1][3,1] either describes no numbers or is simply an error. The rule needs care with negatives: x>−5x>-5 and x<−2x<-2 together give (−5,−2)(-5,-2), because −5-5 is smaller than −2-2, even though 5 looks bigger than 2.

What does the union symbol ∪ mean, and is there an intersection symbol too?

∪\cup means or: a number belongs to A∪BA\cup B if it is in either piece. Its partner ∩\cap means and: a number belongs to A∩BA\cap B only if it is in both. For example, (−∞,5)∩[2,∞)=[2,5)(-\infty,5)\cap[2,\infty)=[2,5), the overlap of two rays. Compound inequalities follow the same split: an and-inequality such as 2≤x<52\le x<5 is an intersection, while an or-inequality becomes a union.

Can an interval be closed at one end and open at the other?

Yes, and these half-open intervals are common. Ages for a child ticket, at least 3 but under 12, form [3,12)[3,12): a 3-year-old pays the child price and a 12-year-old does not. Many everyday ranges work this way so that groups do not overlap: [0,10)[0,10), [10,20)[10,20) and [20,30)[20,30) cover every value from 0 up to 30, with each number in exactly one group.

Learning Path

Interval Notation

You are here

Next →

Nothing after this yet
You need Inequalities, Solution Set (describing all answers at once) and the Number Line (filled and open dots) first. This concept adds a compact way to write ranges, with brackets for included endpoints, parentheses for excluded ones, and ∪ for separate pieces. You will use it for the domains and ranges of functions, for absolute-value inequalities, and in calculus to say where a function is increasing or continuous.

See Also