Saved

Press the star next to a tool's name to save it.

All my tools

Interval Notation Calculator

Use this interval notation calculator to turn an inequality into interval notation or back, describe the number line graph, and solve quadratic inequalities.

Restored your last values ·

To write an inequality in interval notation, type it with x, such as x > 3 or −2 < x ≤ 5. Use “or” to join parts. To go the other way, type an interval such as (−2, 5] or (−inf, 3) U (7, inf). For a quadratic, enter a, b and c and the sign.

Everything is worked out in your browser. Nothing you type is sent anywhere.

–

–

Choose what you want, enter your inequality or interval, then press Solve.

An interval notation calculator writes an inequality in interval notation, turns interval notation back into inequalities, describes the graph on a number line, and solves quadratic inequalities. Type an inequality such as −2 < x ≤ 5 and you get (−2, 5]. The notation follows the Wikipedia page on intervals, and the work is done in your browser. It is also an inequality to interval notation calculator, and a calculator for graphing inequalities in one variable and quadratic inequalities.

How to use the interval notation calculator

  1. Choose what you want: inequality to interval, interval to inequality, or a quadratic inequality.
  2. Type the inequality or the interval, or enter a, b and c and the sign.
  3. Press Solve.

Interval notation

The Wikipedia page on intervals explains the notation. (a, b) is the set of numbers x with a < x < b, an open interval. [a, b] is the set with a ≤ x ≤ b, a closed interval, and (a, b] and [a, b) are half-open. A round bracket leaves out the end point, and a square bracket includes it. For intervals that go on forever, the page gives (a, +∞) for x > a and (−∞, b] for x ≤ b, and says that an infinite end always takes a round bracket, since infinity is not a number. The whole number line is (−∞, +∞).

From an inequality to an interval

Type a single inequality, such as x > 3, and the answer is (3, ∞). A compound inequality such as −2 < x ≤ 5 gives (−2, 5]. An inequality written with the number first, such as 3 ≥ x, is read the other way round and gives (−∞, 3]. For a solution in two parts, join them with the word or: x < −1 or x ≥ 4 gives (−∞, −1) ∪ [4, ∞), where the symbol ∪ means the union of the two sets. The not-equal sign works too: x ≠ 4 is (−∞, 4) ∪ (4, ∞). Overlapping parts are merged: x > 3 or x > 5 is just (3, ∞).

From an interval to an inequality

Type the interval, for example (−2, 5], and the calculator writes −2 < x ≤ 5. For (−inf, 3] ∪ (7, inf), it gives x ≤ 3 or x > 7. You can type inf for infinity and the letter U for the union. A single point is written as [2, 2], and the page says it is the set {2}, while (2, 2) is empty. If the first end is greater than the second, as in (5, 1), all four notations give the empty set. For a bounded interval, the calculator also gives the length, |b − a|, and the midpoint, (a + b)/2, both of which are on the page. For (−2, 5], they are 7 and 1.5. The page also notes that (a, b) ∪ [b, c] equals (a, c], which the calculator reproduces.

The number line

The calculator describes the graph of the solution on a number line in words. An open dot ○ marks an end point that is not included, a closed dot ● marks one that is included, and shading runs between the ends or towards infinity. For x > 3, it says an open dot at 3 with shading to the far right. For −2 < x ≤ 5, it says an open dot at −2 and shading to the closed dot at 5. This matches how you would draw the graph of an inequality in one variable.

Quadratic inequalities

To solve ax² + bx + c > 0 or another sign, find the roots of the quadratic and look at the sign of a. A quadratic opens upward if a is positive, so it is below zero between the roots and above zero outside them. For x² − 5x + 6, the roots are 2 and 3, so the solution of > 0 is (−∞, 2) ∪ (3, ∞), and the solution of ≤ 0 is [2, 3]. If a is negative, the picture is reversed: −x² + 4 > 0 holds between −2 and 2. If there are no real roots, the quadratic is always on one side of zero, so the solution is all real numbers or none. A double root gives a single point or all but one point. The calculator handles all of these cases and shows the discriminant.

A worked example with an absolute value

Absolute value inequalities turn into interval notation too. The absolute value page gives the example |x − 3| ≤ 9, which means −9 ≤ x − 3 ≤ 9, so −6 ≤ x ≤ 12. Type −6 ≤ x ≤ 12 into this calculator and you get [−6, 12]. For the greater-than version, |x − 3| > 9, the solution is x < −6 or x > 12, which you can type as x < −6 or x > 12 to get (−∞, −6) ∪ (12, ∞). The absolute value calculator on this site solves these problems directly.

Typing tips

You can type the symbols ≤ and ≥ or the two-character forms <= and >=. Fractions such as 1/2 are accepted as end points. Use the word or between the parts of a solution that has two pieces.

Common mistakes

  • Using a square bracket next to infinity. Infinity always takes a round bracket.
  • Mixing up the brackets. A round bracket leaves out the end point.
  • Forgetting the second piece. Greater-than solutions of a quadratic come in two parts.
  • Reversing the inequality wrongly. Write 3 ≥ x as x ≤ 3.
  • Writing the larger number first. An interval runs from low to high.

What next

Use this often? Add Interval Not to your Home screen.

Frequently asked questions

What is an interval notation calculator?

A tool that writes the solution of an inequality in interval notation, such as (−2, 5], and converts it back.

What do the brackets mean?

A round bracket excludes the end point, a square bracket includes it. Infinity always takes a round bracket.

How do you write x > 3 in interval notation?

(3, ∞).

How do you solve a quadratic inequality?

Find the roots, then use the sign of a. For x² − 5x + 6 > 0 the solution is (−∞, 2) ∪ (3, ∞).

What does the ∪ symbol mean?

The union of two sets: the numbers that are in either one. For example (−∞, −1) ∪ [4, ∞).

What went wrong?

We only receive the reason you pick, never what you typed into the tool.

Thanks for your feedback.

More Math Tools