🧮
🧮 Math & statistics

Interval Notation Calculator (interval ↔ inequality ↔ set-builder)

Results update as you type.

Your numbers

Understanding the interval notation calculator — concept and principle

This calculator converts between interval notation, inequalities and set-builder notation. Enter the two ends and whether each is included, and it gives all three forms, the kind of interval, its length and midpoint, its complement and the smallest whole number in it. Use it for algebra and precalculus homework on inequalities and domains.

Interval notation[−3, 5)−5−4−3−2−101234567includedexcludedmidpoint 1Inequality−3 ≤ x < 5Length8Kindhalf-opencomplement(−∞, −3) ∪ [5, ∞)
A square bracket and filled dot include the end; a round bracket and open dot leave it out.

How it is calculated

The principle

An interval is a single unbroken stretch of the number line. Because it has no gaps, its two ends and whether each end belongs to it describe it completely. The three notations say the same thing for different purposes: inequalities are natural when solving, interval notation is compact for answers and domains, and set-builder notation is the most general and also works for sets that are not intervals.

Worked example

Default inputs: lower end −3 included, upper end 5 excluded.

  1. Interval notation: [−3, 5).
  2. Inequality: −3 ≤ x < 5; set-builder: {x | −3 ≤ x < 5}.
  3. Kind: half-open and bounded.
  4. Length = 5 − (−3) = 8; midpoint = (−3 + 5) ÷ 2 = 1.
  5. Complement: (−∞, −3) ∪ [5, ∞); smallest whole number in it: −3.

How to read the result

The bracket types flip in the complement: −3 is in the interval, so the complement stops just before it with a round bracket, and 5 is not in the interval, so the complement starts at 5 with a square bracket. Whole numbers in [−3, 5) are −3 through 4, eight of them.

Common mistakes

Keep in mind: Interval notation describes real numbers. If only whole numbers are meant, list them or say so explicitly.

Frequently asked questions

What does [−3, 5) mean?

All real numbers from −3, included, up to 5, not included.

Why does infinity always get a round bracket?

Infinity is not a number that can be reached or included.

How do I write x > 2 in interval notation?

(2, ∞).

Sources: OpenStax, College Algebra 2e (2021), §2.7 Linear Inequalities and Absolute Value Inequalities

Checked 9 Nov 2026. OpenStax, College Algebra 2e (2021), §2.7 Linear Inequalities and Absolute Value Inequalities — “Using Interval Notation”, Table 1 (inequality, set-builder and interval notation; parentheses with ±∞; union symbol ∪).

🧮 All math & statistics tools →🌍 Calculators by country →