Skip to content
FiftyCalc Free calculators for all 50 states

Interval Notation Calculator

Test cases replayed : 7 of 7 match · Methodology · No outside source listed

Choose how each end of the set behaves (included, excluded or unbounded) and enter the endpoints. The calculator writes the same set in interval notation, as an inequality and in set-builder notation.

Result

Sample figures

Interval notation—

Inequality —

  • Set-builder notation—

Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.

Interval Notation Calculator

Left end

Left end: choose Unbounded (−∞), Excluded, open: ( or Included, closed: [. Prefilled example: Included, closed: [.

Left endpoint a: enter a number. Prefilled example: -2.

Right end

Right end: choose Unbounded (∞), Excluded, open: ) or Included, closed: ]. Prefilled example: Excluded, open: ).

Right endpoint b: enter a number. Prefilled example: 5.

How to use this calculator

Fill in the fields in this order; each step takes you to its field.

  1. Left end: choose Unbounded (−∞), Excluded, open: ( or Included, closed: [.
  2. Left endpoint a: enter a number.
  3. Right end: choose Unbounded (∞), Excluded, open: ) or Included, closed: ].
  4. Right endpoint b: enter a number.
  5. Read the result: Interval notation; the panel also shows Inequality and Set-builder notation.

How this calculator works

A square bracket [ or ] means the endpoint is included (≤ or ≥, a closed dot on a number line); a parenthesis ( or ) means it is excluded (< or >, an open dot). Infinity is never included, so −∞ and ∞ always take a parenthesis.

Example: −2 ≤ x < 5 is written [−2, 5) and {x | −2 ≤ x < 5}. A set with both ends unbounded is (−∞, ∞), all real numbers.

If the left endpoint is greater than the right one, or the two are equal with an end excluded, no number qualifies and the set is empty (∅); equal endpoints both included give the single number {a}.

Worked example

Left endIncluded, closed: [
Left endpoint a-2
Right endExcluded, open: )
Right endpoint b5
Interval notation[-2, 5)
Inequality-2 ≤ x < 5
Set-builder notation{x | -2 ≤ x < 5}

Frequently asked questions

How do I write x ≥ 3 in interval notation?

Choose Included for the left end with a = 3 and Unbounded for the right end: [3, ∞).

What is the difference between ( and [?

( excludes the endpoint and [ includes it. (2, 5] contains 5 but not 2.

How do I write "x < −1 or x > 4"?

Write each part and join them with the union sign: (−∞, −1) ∪ (4, ∞). Use the calculator once for each part.

Related calculators