Algebra & Set Theory Notation

Interval Notation Calculator

Convert inequalities, compound AND/OR statements, and set-builder notation to exact interval notation with interactive vector SVG number line visualizations.

Quick Presets:
Interval Notation Result Half-Open Interval
Interval Type

Half-Open

Interval Length

8.0

Midpoint

1.0

Boundedness

Bounded

Vector Number Line Representation Brackets [ ] & Parentheses ( )
Step-by-Step Notation Conversion

How to Use the Interval Notation Calculator

  1. Select your interval format: Choose Bounded Interval for segments between two finite numbers \(a\) and \(b\), Unbounded Ray for infinite single inequalities, or Compound for AND/OR unions and intersections.
  2. Specify endpoints and signs: Input numerical boundary values and select whether the boundary is open (\(<\), \(>\)) or closed (\(\le\), \(\ge\)).
  3. Read interval and set-builder notation: View the mathematically precise output with matching brackets \([\ ]\) or parentheses \((\ )\).
  4. Inspect the vector number line: Review the interactive SVG number line showing the shaded solution interval with open and closed circles.

Problems This Interval Notation Calculator Solves

Prevents Bracket vs. Parenthesis Blunders

Knowing when to use square brackets \([\ ]\) (inclusive) versus round parentheses \((\ )\) (exclusive) is the most common student error in precalculus. The tool enforces correct syntax automatically.

Demystifies Infinity Bounds (\(-\infty, +\infty\))

Students frequently write \([4, \infty]\) with a closed bracket on infinity. The tool reinforces the fundamental axiom that infinity is an unbounded direction, always requiring round parentheses.

Simplifies Compound Disjoint Unions

Converting 'OR' inequalities like \(x < -2 \text{ or } x \ge 3\) into \((-\infty, -2) \cup [3, \infty)\) is synthesized with appropriate set union operators (\(\cup\)).

Translates Between Set-Builder and Interval Forms

Different textbooks and professors alternate between set-builder notation \(\{x \in \mathbb{R} \mid a < x \le b\}\) and interval notation. The calculator renders both simultaneously.

Key Features & Capabilities

01
Universal Conversion

Handles bounded, unbounded rays, and compound AND/OR unions and intersections.

02
Vector Number Line

Renders crisp SVG vector graphics with open and closed circles and shaded intervals.

03
Length & Midpoint

Calculates finite interval length \(b - a\) and center midpoint \((a + b)/2\).

The Intuitive Mental Model: Fences, Gates, and Infinite Horizons

Think of the real number line as a long continuous highway. An interval is simply a designated stretch of that highway between two mile markers. The brackets and parentheses act as the boundary gates at each checkpoint:

Square Bracket \([ \text{ or } ]\) The Locked Gate (Included)

A square bracket signifies that the boundary value itself is included in your set. In inequality notation, this corresponds to \(\le\) or \(\ge\). If you stand on number line point \(x = 3\), you are legitimately inside \([3, 8]\). Graphically, it is rendered as a solid, filled-in circle.

Round Parenthesis \(( \text{ or } )\) The Open Gate (Excluded)

A parenthesis indicates that you can approach the boundary infinitely close (like \(2.99999\dots\)), but the boundary number itself is strictly excluded. In inequalities, this represents \(<\) or \(>\). Graphically, it is shown as an open, hollow ring.

Mastering Interval Notation Across Every Skill Level

Level 1: Beginner

The Left-to-Right Ordering Rule

Intervals are always written in chronological order from left to right: (smaller number, larger number). Writing \((7, 2)\) is invalid mathematics. Always verify:

  • \(\le\) or \(\ge\) → Solid dot → Square bracket \([\ ]\)
  • \(<\) or \(>\) → Hollow dot → Parenthesis \((\ )\)
  • Positive \(\infty\) always sits on the right; negative \(-\infty\) always on the left.
Level 2: Intermediate

Compound Unions vs. Intersections

Compound inequalities dictate whether to join disjoint segments or find overlap:

  • Union (\(\cup\)): Represents the logical "OR". The set includes values in either interval: \((-\infty, -1) \cup [4, \infty)\).
  • Intersection (\(\cap\)): Represents the logical "AND". The set includes only numbers satisfying both conditions simultaneously, collapsing overlapping rays into a single bounded segment.
Level 3: Advanced STEM

Topology & Compactness in \(\mathbb{R}\)

In mathematical analysis and topology, interval notation defines fundamental geometric subsets:

  • \((a, b)\) is an open set containing an \(\epsilon\)-ball around every point.
  • \([a, b]\) is closed and bounded, making it compact by the Heine-Borel Theorem, guaranteeing that continuous functions achieve absolute extrema (Extreme Value Theorem).

Common Traps & Exam Pitfalls to Avoid

⚠️ Brackets on Infinity

Never write \([2, \infty]\) or \([-\infty, 5)\). Infinity is an unbounded directional concept, not a reachable real number. Infinity always takes a round parenthesis: \([2, \infty)\).

⚠️ Inverted Numerical Bounds

Writing \([6, -1]\) because the original formula wrote \(-1 \le x \le 6\) backwards is a fatal syntax penalty on standardized exams. The lower bound must always come first: \([-1, 6]\).

⚠️ Confusing Point Coordinates with Intervals

The notation \((2, 5)\) can represent either an open interval on a 1D number line or an \((x, y)\) coordinate in a 2D Cartesian plane. Context matters: specify "the interval \((2, 5)\)" to avoid ambiguity.

Interval Notation Reference Guide & Notation Matrix

Interval Notation Inequality Notation Set-Builder Notation Topological Nature
\((a, b)\) \(a < x < b\) \(\{x \mid a < x < b\}\) Open Interval (Bounded)
\([a, b]\) \(a \le x \le b\) \(\{x \mid a \le x \le b\}\) Closed & Compact (Bounded)
\([a, b)\) \(a \le x < b\) \(\{x \mid a \le x < b\}\) Half-Open (Left-Closed)
\((a, b]\) \(a < x \le b\) \(\{x \mid a < x \le b\}\) Half-Open (Right-Closed)
\([a, \infty)\) \(x \ge a\) \(\{x \mid x \ge a\}\) Closed Ray (Unbounded Right)
\((-\infty, a)\) \(x < a\) \(\{x \mid x < a\}\) Open Ray (Unbounded Left)
\((-\infty, \infty)\) All real numbers \(\{x \mid x \in \mathbb{R}\}\) Entire Real Line (Clopen)

Worked Step-by-Step Examples

Example 1: Bounded Half-Open Interval

Convert \(-3 \le x < 5\)

Step 1: Check left endpoint: Since \(x \ge -3\) includes equality, use a square bracket \([-3\).

Step 2: Check right endpoint: Since \(x < 5\) is strict, use a round parenthesis \(5)\).

Interval Notation: \([-3, 5)\).

Number Line: Solid dot at \(-3\), hollow circle at \(5\), shaded line segment in between.

Example 2: Disjoint Union of Rays

Convert \(x < -2 \text{ or } x \ge 4\)

Step 1: Express left ray: \(x < -2\) extends to \(-\infty\) without bound → \((-\infty, -2)\).

Step 2: Express right ray: \(x \ge 4\) starts at closed \(4\) and extends to \(+\infty\) → \([4, \infty)\).

Step 3: Combine with union \(\cup\): \((-\infty, -2) \cup [4, \infty)\).

Number Line: Shaded arrow pointing left from open circle \(-2\), and shaded arrow pointing right from closed dot \(4\).

Frequently Asked Questions

When do you use parentheses vs. square brackets in interval notation?
Square brackets [ or ] are used for closed intervals when the endpoint number is included in the solution set (corresponding to ≤ or ≥). Round parentheses ( or ) are used for open intervals when the endpoint is excluded (corresponding to < or >), and are ALWAYS used with infinity (-∞ or +∞).
Why is infinity always written with a parenthesis in interval notation?
Infinity (∞) is not a finite real number that can be reached or contained in a set; it represents an unbounded direction. Therefore, interval notation always uses parentheses around -∞ and +∞ to indicate that the boundary is unbounded.
What is the difference between a Union (∪) and an Intersection (∩) of intervals?
A Union (∪) represents an 'OR' compound inequality, combining all numbers that belong to either interval (e.g., x < -2 or x > 5 becomes (-∞, -2) ∪ (5, ∞)). An Intersection (∩) represents an 'AND' inequality, taking only numbers common to both intervals.
How do you write 'all real numbers' in interval notation?
The set of all real numbers (ℝ) is written in interval notation as (-∞, ∞). In set-builder notation, it is written as {x | x ∈ ℝ}.
What is set-builder notation?
Set-builder notation describes the properties that a variable must satisfy to be in a set. For example, the interval [-2, 5) is written in set-builder notation as {x ∈ ℝ | -2 ≤ x < 5}, read as 'the set of all real numbers x such that x is greater than or equal to -2 and strictly less than 5'.
Can an interval notation set be empty?
Yes. When an intersection of two non-overlapping intervals is evaluated (e.g. x < 2 AND x > 7), no number satisfies both conditions simultaneously. The solution set is the empty set, denoted by ∅.