Navigation
Calculators Pricing Blog About Contact
Get Started
Get Started Login
📐

Interval Notation Calculator

Convert between interval notation, inequality notation, and set-builder notation with number line descriptions.

,

What Is Interval Notation?

Interval notation is a concise mathematical way of describing a set of real numbers between two endpoints. Instead of writing out an inequality like "all numbers x such that negative three is less than x and x is less than or equal to five," you write (-3, 5]. The parentheses and brackets indicate whether each endpoint is included in the set (bracket) or excluded (parenthesis). This notation is fundamental in algebra, calculus, and analysis.

Interval notation appears throughout mathematics: in expressing the domain and range of functions, describing solution sets of inequalities, specifying intervals of convergence for series, defining continuous regions in calculus, and communicating constraints in optimization. Mastering interval notation is essential for success in algebra and all higher-level mathematics courses.

Understanding Brackets and Parentheses

The choice of bracket or parenthesis at each endpoint conveys critical information. A square bracket [ or ] means the endpoint is included in the set (the inequality uses "less than or equal to" or "greater than or equal to"). A parenthesis ( or ) means the endpoint is excluded (the inequality uses strict "less than" or "greater than"). For example, [2, 7) includes 2 but excludes 7, meaning all x where 2 is less than or equal to x and x is less than 7.

Infinity symbols always use parentheses because infinity is not a real number and cannot be included in a set. You write (-infinity, 5] for "all x less than or equal to 5" and [3, infinity) for "all x greater than or equal to 3." The set of all real numbers is written as (-infinity, infinity), sometimes denoted by the symbol for the set of real numbers.

Types of Intervals

Open intervals use parentheses at both ends: (a, b) means a is strictly less than x and x is strictly less than b. Neither endpoint is included. Closed intervals use brackets at both ends: [a, b] means a is less than or equal to x and x is less than or equal to b. Both endpoints are included. Half-open (or half-closed) intervals use one of each: [a, b) includes a but excludes b, while (a, b] excludes a but includes b.

Bounded intervals have two finite endpoints. Unbounded intervals extend to infinity in one or both directions: (-infinity, b], [a, infinity), or (-infinity, infinity). A degenerate interval [a, a] contains exactly one point and is equivalent to the set containing just a. The empty interval occurs when the lower bound exceeds the upper bound.

Converting from Inequality Notation

To convert an inequality to interval notation, identify the lower bound, upper bound, and whether each is included. The inequality -3 is less than x and x is less than or equal to 5 becomes (-3, 5] — parenthesis at -3 because it is strict inequality, bracket at 5 because x can equal 5. For single inequalities like x is greater than or equal to 2, the interval is [2, infinity). For x is less than -1, it is (-infinity, -1).

Compound inequalities involving "or" produce unions of intervals. For example, "x is less than -2 or x is greater than 3" becomes (-infinity, -2) union (3, infinity). The union symbol represents combining two or more separate intervals. This occurs when a solution set is not contiguous, as with absolute value inequalities like |x| > 3.

Set-Builder Notation

Set-builder notation describes a set by stating the property its members must satisfy. It takes the form {x in the real numbers | condition on x}. For the interval (-3, 5], the set-builder notation is {x in the real numbers | -3 is less than x and x is less than or equal to 5}. The vertical bar is read as "such that." This notation is more flexible than interval notation because it can describe any definable set, not just intervals.

Set-builder notation is particularly useful for describing sets that are not simple intervals, such as {x in the real numbers | x is not equal to 0} or {x in the integers | x is greater than 0}. For simple intervals, however, interval notation is preferred for its brevity and clarity.

Number Line Representation

On a number line, intervals are represented by shaded regions between the endpoints. A closed (filled) circle at an endpoint means that point is included (corresponding to a bracket in interval notation). An open (hollow) circle means the point is excluded (corresponding to a parenthesis). Arrows extending to the left or right indicate unbounded intervals extending to negative or positive infinity.

The number line representation is the most intuitive way to visualize intervals. When graphing the solution to an inequality, you shade the portion of the number line satisfying the condition and use appropriate circles at the boundaries. This visual representation directly translates to interval notation: the left end determines the left symbol, the right end determines the right symbol.

Common Mistakes to Avoid

Using brackets with infinity: Always use parentheses with negative infinity and positive infinity because infinity is not a number and cannot be included in a set. Write (-infinity, 5], not [-infinity, 5]. Reversing endpoints: The smaller number always comes first. Write [-3, 5], not [5, -3]. Confusing open and closed: Remember that parentheses exclude the endpoint and brackets include it. The notation (3, 7] means 3 is NOT in the set but 7 IS.

Forgetting unions: When a solution set has gaps, you must use the union of two intervals. "x is less than 1 or x is greater than 4" is (-infinity, 1) union (4, infinity), not (1, 4) or any single interval. Single-point confusion: The set containing just the number 5 is written {5} in set notation, not [5, 5] (though they are technically equivalent). A single point is not typically expressed in interval notation.

Frequently Asked Questions

Parentheses ( ) mean the endpoint is excluded (strict inequality: < or >). Brackets [ ] mean the endpoint is included (non-strict inequality: <= or >=). For example, (2, 5] includes all numbers greater than 2 and less than or equal to 5, so 2 is not included but 5 is.
Infinity is not a real number and cannot be an element of a set, so it can never be "included." Therefore, infinity and negative infinity always use parentheses: (-infinity, 5] or [3, infinity). Using brackets with infinity is always incorrect.
Identify the lower and upper bounds. Use a bracket [ or ] if the inequality includes "or equal to" (>= or <=) and a parenthesis ( or ) for strict inequalities (> or <). Example: -2 <= x < 7 becomes [-2, 7). For x >= 3, write [3, infinity).
Set-builder notation describes a set by stating the property its elements satisfy: {x in R | condition}. For example, the interval (-3, 5] in set-builder notation is {x in R | -3 < x <= 5}. It is more flexible than interval notation and can describe any definable set.
A half-open (or half-closed) interval includes one endpoint but not the other. [a, b) includes a but not b, while (a, b] includes b but not a. Example: [0, 1) includes 0 and all numbers up to but not including 1.
Use the union symbol (U) between the intervals. For example, "x < -2 or x > 3" is written as (-infinity, -2) U (3, infinity). This represents all numbers in either interval. Unions are needed when the solution set has gaps.
Technically, [a, a] represents the single point a, but this is uncommon. Single points are usually written in set notation as {a}. In practice, interval notation is used for ranges of values, not individual points.

Embed this Calculator

Copy the code below and paste it into your website's HTML. Your visitors can use this calculator for free.

px × px
<iframe src="https://calculatorteam.com/embed/interval-notation-calculator" width="100%" height="600" style="border:none;border-radius:12px;" loading="lazy" title="Interval Notation Calculator"></iframe>

Report an Issue

Let us know what's wrong with this calculator. We'll review and fix it as soon as possible.