Algebra • Sets, Intervals & Real Number Lines

Inequality to Interval Notation Converter

Convert single rays, compound bounded intervals, and disjoint "OR" inequalities into standard interval notation [a, b) and set-builder format with interactive number line visualization.

|
Last Updated: September 2026
|
Verified Accurate: Real Analysis & Set Theory
Standard Inequality Scenarios

Input Method

Type freeform inequality or use guided interval builder

Quick insert:
Interval Notation Result
-3 < x ≤ 7
⇒
(-3, 7]
Set-Builder Notation
{ x ∈ ℝ | -3 < x ≤ 7 }
Formal set definition
Interval Classification
Half-Open (Left-Open)
Topology categorization
Interval Length / Span
Δ = 10.000
Distance between endpoints
Real Number Line Visualization Auto-Scaling
Open Circle (Strict) Closed Circle (Inclusive)
← −∞ (Negative Infinity) Interval Range +∞ (Positive Infinity) →
Left Boundary
-3 (Excluded ‘(’)
Right Boundary
7 (Included ‘]’)
Boundedness
Bounded Interval
Endpoints Set
(-3, 7]
Step-by-Step Conversion Derivation Rules of Enclosure
The 8 Fundamental Interval Notation Patterns Universal Reference
Inequality Form Interval Notation Type Name Bracket Rule
a < x < b (a, b) Open Interval Both excluded: parentheses
a ≤ x ≤ b [a, b] Closed Interval Both included: square brackets
a < x ≤ b (a, b] Half-Open (Left-Open) Left excluded, right included
a ≤ x < b [a, b) Half-Open (Right-Open) Left included, right excluded
x > a (a, ∞) Right-Ray (Open) ∞ always uses parenthesis
x ≥ a [a, ∞) Right-Ray (Closed) Left bracket, right parenthesis
x < b (−∞, b) Left-Ray (Open) −∞ always uses parenthesis
x ≤ b (−∞, b] Left-Ray (Closed) Left parenthesis, right bracket
Direct Answer & Overview
Verified Educational Guide

How to Convert Inequalities to Interval Notation

To convert an inequality to interval notation, write the lower boundary followed by the upper boundary separated by a comma. Use round parentheses ( ) when an endpoint is excluded (<, >, ±∞). Use square brackets [ ] when an endpoint is included (≤, ≥). For compound inequalities like a < x ≤ b, write (a, b].

Primary Mathematical Formula Interval Topology & Boundary Enclosure Model
Standard Equation
ƒ(x)
Q.E.D.
a<xlebimplies(a,b]quadextandquadxgeaimplies[a,infty)a < x le b implies (a, b] quad ext{and} quad x ge a implies [a, infty)
Strict inequalities (<, >) map to round parentheses; inclusive inequalities (≤, ≥) map to square brackets.
Exact Formula
Input Parameters
Required
1
Strict Inequality (<, >): Endpoint excluded from solution set, enclosed with round parenthesis ( ).
2
Inclusive Inequality (≤, ≥): Endpoint included in solution set, enclosed with square bracket [ ].
Expected Outputs
Calculated
Interval Notation: Standard compact format (a, b], [a, b], [a, ∞), etc.
Set-Builder Form: { x ∈ ℝ | condition } formal mathematical definition.
Worked Numerical Example
Instant Verification
Convert the inequality -3 < x ≤ 7 to interval notation
→ Left bound -3 is strict (<) ⟹ '(-3'; Right bound 7 is inclusive (≤) ⟹ '7]'
(-3, 7]

The Master Rules of Interval Notation

In algebra, calculus, and set theory, interval notation provides a concise, standardized notation for writing continuous subsets of the real number line ℝ. Rather than writing inequality symbols like <, ≤, >, or ≥, mathematicians enclose the boundary values inside brackets and parentheses:

Round Parentheses: ( )

Indicates an excluded boundary (open endpoint). Applied whenever the inequality uses strict symbols (< or >) and always on infinite limits (−∞ or +∞).

Square Brackets: [ ]

Indicates an included boundary (closed endpoint). Applied whenever the inequality uses non-strict "or equal to" symbols (≤ or ≥).

The 4 Core Interval Topologies

Every continuous interval belongs to one of four fundamental geometric topologies based on boundary closure:

Classification Inequality Condition Interval Notation Number Line Appearance
Open Interval a < x < b (a, b) Two hollow circles ○ — ○
Closed Interval a ≤ x ≤ b [a, b] Two solid filled dots • — •
Half-Open (Left) a < x ≤ b (a, b] Hollow left ○, solid right •
Half-Open (Right) a ≤ x < b [a, b) Solid left •, hollow right ○
Infinite Left-Ray x ≤ b (−∞, b] Arrow pointing left ← •
Infinite Right-Ray x > a (a, ∞) ○ → Arrow pointing right

Disjoint Unions & Compound "OR" Inequalities

When solving absolute value inequalities like |x| > 3 or quadratic inequalities whose graph lies above a horizontal axis, the solution set consists of two disconnected branches. In logic, this is written with the keyword "or":

x < −3  or  x > 3

Because a single interval cannot jump across a gap, interval notation joins the two independent rays using the set union operator ∪:

(−∞, −3) ∪ (3, ∞)

Visualizing on the Real Number Line

Graphing inequalities on a real number line translates abstract algebraic constraints into visual segments. The graphical conventions map 1-to-1 to interval brackets:

Open Circle ○ < or > ↔ Parenthesis ( )
Closed Circle • ≤ or ≥ ↔ Square Bracket [ ]
Arrowhead ← / → −∞ / +∞ ↔ Always Parenthesis ( )

Step-by-Step Worked Conversion Examples

Example 1 • Half-Open Compound Inequality Double-Sided Sandwich

Convert -3 < x ≤ 7 to Interval Notation

1. Left endpoint: -3 with strict inequality (<) ⇒ Excluded ⇒ "("
2. Right endpoint: 7 with non-strict inequality (≤) ⇒ Included ⇒ "]"
3. Assemble in order [lower, upper]: (-3, 7]
Interval Notation: (-3, 7]  |  Set-Builder: { x ∈ ℝ | -3 < x ≤ 7 }
Example 2 • Unbounded Non-Negative Ray Domain of a Square Root

Convert x ≥ 0 to Interval Notation

1. Left boundary is 0 with inclusive operator (≥) ⇒ Included ⇒ "["
2. Values extend infinitely upwards without limit ⇒ +∞ ⇒ ")"
3. Assemble in order [lower, upper]: [0, ∞)
Interval Notation: [0, ∞)  |  Set-Builder: { x ∈ ℝ | x ≥ 0 }
Example 3 • Disjoint "OR" Union Split Solution Set

Convert x < -2 or x ≥ 4 to Interval Notation

1. Left branch: x < -2 extends to -∞ ⇒ (-∞, -2)
2. Right branch: x ≥ 4 extends to +∞ ⇒ [4, ∞)
3. Combine both branches using union operator ∪
Interval Notation: (-∞, -2) ∪ [4, ∞)

Common Pitfalls and Notation Mistakes

Putting Square Brackets on Infinity

Writing [-∞, 5] is universally incorrect. Infinity is an open boundless direction, never a discrete member of the set. Always write (-∞, 5].

Writing Intervals in Descending Order

Writing (7, -3] instead of (-3, 7]. The lower value must strictly appear first on the left.

Confusing Intersection (∩) with Union (∪)

"OR" conditions require union ∪. Using intersection ∩ would produce an empty set ∅ because no single number x can simultaneously be < -2 AND > 4.

Swapping Strict and Inclusive Brackets

Remember: < and > map to round ( ), whereas ≤ and ≥ map to square [ ].

Fact-Checked & Verified • Computational Accuracy Standards
Updated September 2026 • Editorial Policy
Authored By
Sanjay Samanta

Lead Developer & Founder of Basic Math Tools. Specializes in browser-native computational algorithms and applied mathematics.

Reviewed & Verified By
Academic Review Board

Mathematics & curriculum specialists. Audited against standard algebraic and arithmetic principles.

Found an error or have an improvement suggestion? Report a calculation issue

Frequently Asked Questions

How do you convert an inequality into interval notation?
To convert an inequality to interval notation: (1) Identify the lower boundary and place it on the left. If values extend without bound downward, use -∞. (2) Identify the upper boundary and place it on the right. If values extend without bound upward, use +∞. (3) Choose round parentheses ( ) if the boundary is excluded (<, >, ±∞). Choose square brackets [ ] if the boundary is included (≤, ≥).
Why does infinity always use a round parenthesis instead of a square bracket?
Square brackets [ ] signify that a specific, reachable endpoint is included in the set. Infinity (∞ and -∞) is not a discrete real number; it is a directional concept representing boundless expansion. Because infinity can never be reached or contained, it must strictly always take a round parenthesis.
What does a union symbol ∪ mean in interval notation?
The union symbol ∪ represents the mathematical logic of "OR". When an inequality describes disconnected or disjoint regions of the number line (such as x < -2 or x ≥ 5), the union symbol joins the separate intervals into a single solution set: (-∞, -2) ∪ [5, ∞).
How do you convert compound inequalities like -3 < x ≤ 7?
A compound inequality with x sandwiched between two constants represents a bounded interval. The left boundary is -3 (strict <, so use round parenthesis "(") and the right boundary is 7 (inclusive ≤, so use square bracket "]"). The resulting interval is (-3, 7], classified as a half-open interval.
Can you write interval notation in descending order like [7, -3)?
No! Interval notation must strictly follow the natural left-to-right order of the real number line: the smaller lower bound must always appear first on the left, followed by a comma and the larger upper bound on the right. Writing [7, -3) is universally invalid.
How do you represent "all real numbers" or "all real numbers except zero" in interval notation?
The set of all real numbers ℝ is written as (-∞, ∞). All real numbers except zero (x ≠ 0) represents the disjoint union of everything below zero and everything above zero: (-∞, 0) ∪ (0, ∞).