Interval Notation Calculator
Convert inequalities to interval notation and back — get animated number line graphs, open and closed endpoint rules, union and intersection of intervals, and all four notation forms side by side. Free, no sign-up required.
Why this page is different
Loading the interval notation calculator workspace...
Zone 3
Interval Notation Reference Chart
Use this reference chart when you need a fast bracket-versus-parenthesis check. The inequality, interval notation, set-builder notation, and number-line shape should all tell the same story.
| Inequality | Interval | Set-builder | Number line | Try it |
|---|---|---|---|---|
| x > a | (a, +∞) | {x | x > a} | ○══════→ | Load example |
| x ≥ a | [a, +∞) | {x | x ≥ a} | ●══════→ | Load example |
| x < a | (-∞, a) | {x | x < a} | ←══════○ | Load example |
| x ≤ a | (-∞, a] | {x | x ≤ a} | ←══════● | Load example |
| a < x < b | (a, b) | {x | a < x < b} | ○══════○ | Load example |
| a ≤ x ≤ b | [a, b] | {x | a ≤ x ≤ b} | ●══════● | Load example |
| a < x ≤ b | (a, b] | {x | a < x ≤ b} | ○══════● | Load example |
| a ≤ x < b | [a, b) | {x | a ≤ x < b} | ●══════○ | Load example |
| x < a or x > b | (-∞, a) ∪ (b, +∞) | {x | x < a or x > b} | ←══○ ○══→ | Load example |
| x ≤ a or x ≥ b | (-∞, a] ∪ [b, +∞) | {x | x ≤ a or x ≥ b} | ←══● ●══→ | Load example |
| x ≠ a | (-∞, a) ∪ (a, +∞) | {x | x ≠ a} | ←══○ ○══→ | Load example |
| All reals | (-∞, +∞) | {x | x ∈ ℝ} | ←════════→ | Load example |
| No solution | ∅ | {} | ──────── | Load example |
Zone 4
How to Use the Interval Notation Calculator
This interval notation calculator is built for the exact conversion tasks that cause the most confusion in algebra, precalculus, and calculus: converting a solved inequality into interval notation, translating interval notation back into inequality form, deciding whether an endpoint should be open or closed, handling infinity correctly, and combining intervals with union or intersection. Instead of treating interval notation as a small add-on under another solver, this page makes the notation itself the main lesson.
The hero workspace separates three jobs that students often mix together. In inequality-to-interval mode, the page reads a solved inequality, a compound inequality, or a simple not-equal statement and turns it into interval notation, set-builder notation, and a number line. In interval-to-inequality mode, the page reverses that process and shows how each bracket or parenthesis maps back to a strict or inclusive inequality sign. In union and intersection mode, the page treats intervals as sets and computes the combined result directly.
The result area is designed to make notation choices visible. The Result tab summarizes the conversion and the endpoint rules, the Number Line tab makes the set visual, the Steps tab explains the reasoning in plain English, and the All Notations tab lines up inequality notation, interval notation, set-builder notation, and the graph at once. That side-by-side structure is the fastest way to catch bracket mistakes before they become homework mistakes.
Choose the mode: inequality to interval notation, interval notation to inequality, or interval union/intersection.
Enter the expression directly, use the interval keyboard for symbols like ∞, ∪, ∩, brackets, or parentheses, or tap one of the guided examples.
Read the result cards together: inequality notation, interval notation, set-builder notation, endpoint rules, and the number line should all agree.
Use the steps tab to see why the endpoints are open or closed, then verify the answer on the number line before copying it.
What Is Interval Notation?
Interval notation is a compact way to describe sets of real numbers. Instead of writing a sentence such as all x greater than 3, you can write (3, +∞). Instead of writing -1 < x ≤ 5, you can write (-1, 5]. The notation is short, but it still contains all the information about whether endpoints are included, excluded, bounded, or unbounded.
The notation belongs to the real number line. Each interval represents a continuous stretch of values, a union of continuous stretches, all real numbers, or the empty set. That is why interval notation appears so often in inequality solving, domain and range work, calculus, and set notation. It is not a different answer from inequality notation. It is the same answer written more efficiently.
Students usually struggle with interval notation because the symbols carry meaning in both directions. Parentheses and brackets tell you whether an endpoint is open or closed, while infinity tells you the set never stops in that direction. Once those three ideas are clear, interval notation becomes one of the easiest ways to read a solution set quickly.
Open vs Closed Intervals: Parentheses and Brackets Explained
An open interval uses parentheses and excludes the endpoint. For example, (a, b) means a < x < b, so neither a nor b is part of the set. A closed interval uses brackets and includes the endpoint. For example, [a, b] means a ≤ x ≤ b, so both endpoints stay in the solution.
Mixed intervals combine those rules. The interval (a, b] means the left endpoint is open and the right endpoint is closed, while [a, b) means the left endpoint is closed and the right endpoint is open. That one-symbol difference is what separates x < 5 from x ≤ 5, so a bracket mistake changes the actual solution set.
A reliable memory rule is this: parentheses mean the point is not included, brackets mean the point is included. On the number line that becomes an open circle for parentheses and a closed circle for brackets. The symbol on the page and the marker on the graph should always match.
Open interval
Endpoints excluded, so use strict signs.
Closed interval
Endpoints included, so use inclusive signs.
Left open, right closed
Exclude a, include b.
Left closed, right open
Include a, exclude b.
How to Convert an Inequality to Interval Notation
To convert an inequality into interval notation, first identify the boundary values. For x > 3, the boundary is 3. For -1 < x ≤ 5, the boundaries are -1 and 5. Those values become the endpoints of the interval.
Next decide whether each endpoint is open or closed. Strict inequalities, < and >, use parentheses because the endpoint is excluded. Inclusive inequalities, ≤ and ≥, use brackets because the endpoint is included. If the solution extends forever to the left or right, use -∞ or +∞ with parentheses.
Finally write the interval from left to right on the number line. A single bounded solution such as -1 < x ≤ 5 becomes (-1, 5]. A right ray such as x ≥ 3 becomes [3, +∞). A split answer such as x < -3 or x > 7 becomes (-∞, -3) ∪ (7, +∞).
How to Convert Interval Notation to an Inequality
To convert interval notation back into an inequality, read each endpoint symbol first. A parenthesis means the endpoint is not included, so it becomes a strict sign. A bracket means the endpoint is included, so it becomes an inclusive sign.
Then read the direction of the interval. A bounded interval such as [-1, 5) becomes -1 ≤ x < 5 because x stays between the two endpoints. An interval with infinity has only one finite boundary, so (3, +∞) becomes x > 3 and (-∞, -2] becomes x ≤ -2.
If the interval uses a union symbol, convert each piece separately and combine them with OR. For example, (-∞, -3) ∪ (7, +∞) becomes x < -3 or x > 7. The union symbol means the solution can live in either interval.
Interval Notation with Infinity
Infinity is not a real number, so interval notation never treats it like a reachable endpoint. That is why both +∞ and -∞ always use parentheses. Even if an inequality is x ≥ 3, the interval [3, +∞) still ends with a parenthesis on infinity.
The same rule works in the other direction. If you see (-∞, 2], the finite endpoint 2 is closed because x can actually equal 2, but the negative infinity side must stay open because the interval continues forever and never reaches a smallest real number.
All real numbers are written as (-∞, +∞). That notation does not mean the set includes infinity itself. It means the set extends without bound in both directions. Students often remember the bracket rule but forget the infinity exception, so it is worth treating as a separate rule every time.
Union and Intersection of Intervals
Union uses the symbol ∪ and means OR. If a value belongs to interval A or interval B or both, it belongs to A ∪ B. On the number line, union makes the highlighted region larger because it keeps every point that appears in at least one interval.
Intersection uses the symbol ∩ and means AND. A value belongs to A ∩ B only if it lies in both intervals at the same time. On the number line, that usually makes the highlighted region smaller because only the overlap survives.
When intervals overlap, union can merge them into one larger interval while intersection can isolate the shared middle. When intervals do not overlap at all, union keeps both pieces and intersection becomes the empty set. Those are the same OR and AND ideas students already know from compound inequalities.
Compound Inequalities and Interval Notation
Compound inequalities usually translate into either a single bounded interval or a union of two outer rays. An AND inequality such as -1 < x ≤ 5 keeps the overlap of two conditions, so its interval notation is a single bounded interval, (-1, 5].
An OR inequality behaves differently. The statement x < -3 or x > 7 keeps values on either outer side, so the answer is a union: (-∞, -3) ∪ (7, +∞). The union symbol is the interval-notation version of the word OR.
Not-equal statements are another special compound pattern. The inequality x ≠ 2 means every real number except 2, so it becomes (-∞, 2) ∪ (2, +∞). The number line looks continuous except for one open hole at the excluded point.
Set-Builder Notation vs Interval Notation
Set-builder notation describes the same solution set in sentence form. The expression { x | -1 < x ≤ 5 } reads as the set of all x such that -1 < x ≤ 5. Interval notation compresses that same information into symbols by writing (-1, 5].
The advantage of set-builder notation is that the condition stays explicit. The advantage of interval notation is that the number-line structure becomes obvious at a glance. Strong students learn to move between both forms because textbooks, exams, and calculus problems use them interchangeably.
A useful checking strategy is to compare three forms at once: inequality notation, interval notation, and set-builder notation. If one form says the endpoint is included and another form says it is not, the mismatch becomes easy to spot before you move on.
Interval Notation Examples with Solutions
Open endpoint and positive infinity
Because the inequality is strict, 3 is excluded and uses a parenthesis. The solution extends right forever, so the interval is (3, +∞).
Interval
Inequality
Closed endpoint and negative infinity
The value -2 is included because the sign is ≤, so the interval is (-∞, -2].
Interval
Inequality
Mixed open and closed endpoints
The left endpoint is open because -1 is excluded, while the right endpoint is closed because 5 is included.
Interval
Inequality
Union back to OR
Convert each ray separately, then join them with OR to get x < -3 or x > 7.
Interval
Inequality
OR becomes union
OR keeps either outer branch, so the interval notation uses the union symbol ∪.
Interval
Inequality
Union merges overlap
These intervals overlap, so the union becomes one larger interval, (-2, 8].
Interval
Inequality
Intersection keeps only overlap
The shared part starts at 3 and ends at 5. The result is [3, 5).
Interval
Inequality
Disjoint intervals produce the empty set
No value can be less than 4 and greater than 6 at the same time, so the intersection is ∅.
Interval
Inequality
Frequently Asked Questions
What is interval notation in math?
Interval notation is a compact way to describe a set of real numbers using parentheses, brackets, commas, infinity symbols, and sometimes union symbols.
What is the difference between interval notation and inequality notation?
Inequality notation states the condition directly, such as x > 3, while interval notation writes the same solution set as (3, +∞).
What are the four types of intervals?
The four basic bounded interval types are open, closed, left-open right-closed, and left-closed right-open.
What is set-builder notation and how does it relate to interval notation?
Set-builder notation writes the condition as a set, such as {x | -1 < x ≤ 5}, while interval notation compresses the same set as (-1, 5].
When do you use parentheses vs brackets in interval notation?
Use parentheses for open endpoints that are not included and brackets for closed endpoints that are included.
What does a parenthesis mean in interval notation?
A parenthesis means the endpoint is excluded from the set, which matches a strict inequality such as < or >.
What does a bracket mean in interval notation?
A bracket means the endpoint is included in the set, which matches an inclusive inequality such as ≤ or ≥.
Why does infinity always use parentheses in interval notation?
Infinity is not a real endpoint that can be reached or included, so it always uses parentheses.
Can you use a bracket with infinity? (e.g., [3, ∞])
No. A finite endpoint such as 3 can use a bracket, but infinity itself must always use a parenthesis.
How do you convert an inequality to interval notation?
Find the boundary values, decide whether each endpoint is open or closed, and write the interval from left to right using parentheses, brackets, and infinity when needed.
How do you convert interval notation to an inequality?
Read each endpoint symbol first: parentheses become strict signs, brackets become inclusive signs, and infinity creates an unbounded inequality.
How do you write x > 3 in interval notation?
x > 3 becomes (3, +∞) because 3 is excluded and the solution extends forever to the right.
How do you write x ≤ -2 in interval notation?
x ≤ -2 becomes (-∞, -2] because the interval extends left without bound and includes -2.
How do you write -1 < x ≤ 5 in interval notation?
It becomes (-1, 5] because -1 is open and 5 is closed.
How do you write a compound inequality in interval notation?
An AND compound inequality usually becomes one bounded interval, while an OR compound inequality usually becomes a union of two intervals.
What does the union symbol ∪ mean in interval notation?
The union symbol means OR. A value belongs to the final set if it is in either interval.
How do you find the union of two intervals?
Keep every point that belongs to at least one interval, and merge the intervals if they overlap or touch through an included endpoint.
How do you find the intersection of two intervals?
Keep only the overlap shared by both intervals. If no overlap exists, the result is the empty set.
What is the intersection of (-2,5) and [3,8]?
The intersection is [3, 5) because 3 is included in both sets, while 5 is excluded by the first interval.
How do you write all real numbers in interval notation?
All real numbers are written as (-∞, +∞).
How do you write no solution in interval notation?
No solution is written as ∅, the empty set.
How do you write x ≠ 2 in interval notation?
x ≠ 2 becomes (-∞, 2) ∪ (2, +∞) because every real number works except 2 itself.
Keep Exploring
Related calculators
Linear Inequality Calculator
Solve one-variable linear inequalities with steps, interval notation, and a clean number-line graph.
Compound Inequality Calculator
Solve compound inequalities with interval intersection, union logic, and graph output.
Absolute Value Inequality Calculator
Solve absolute value inequalities with case splitting, interval notation, and step-by-step explanations.
Rational Inequality Calculator
Solve rational inequalities with steps, excluded values, sign charts, and interval notation.