7 min read

Inequalities on a Number Line

How to read, draw, and interpret every inequality type on a number line — from single rays to compound intervals and union graphs.

Definition and Core Idea

A number line graph makes an inequality visual. Instead of describing a solution set with symbols — x > 3, -2 ≤ x < 5 — the graph shows the same information as a shaded region on a horizontal axis. Every point in the shaded region is a value that satisfies the inequality. Every unshaded point does not.

The graph has two parts: the endpoint marker and the shading. The endpoint marker is a circle placed at the boundary value. An open circle means the boundary is not in the solution. A closed circle means it is. The shading extends from the circle in the direction of all values that satisfy the inequality — left for less than, right for greater than, or between two circles for a bounded interval.

Reading a number line graph is the reverse of drawing one. Given a graph, identify the circle type to determine whether the symbol is strict or inclusive, then identify the shading direction to determine whether the symbol is greater than or less than.

Rules, Forms, and Patterns

Single ray

One boundary, shading in one direction. Produced by x > a, x ≥ a, x < a, or x ≤ a. The ray extends to infinity in one direction.

Bounded interval

Two boundaries, shading between them. Produced by compound AND inequalities like a < x ≤ b. The shading does not extend to infinity.

Union of two rays

Two boundaries, shading outside them. Produced by compound OR inequalities like x < a or x ≥ b. The middle region is not shaded.

Worked Example

Prompt

01

Identify the two parts of the OR inequality. Part 1: x < -1 — strict symbol, open circle at -1, shade left. Part 2: x ≥ 3 — inclusive symbol, closed circle at 3, shade right.

02

Draw the endpoint markers. Open circle ○ at -1 (boundary excluded). Closed circle ● at 3 (boundary included).

03

Add the shading. Shade to the left of -1 (all values less than -1). Shade to the right of 3 (all values greater than or equal to 3). Leave the region between -1 and 3 unshaded.

04

Write the interval notation. Part 1: (-∞, -1). Part 2: [3, +∞). Union: (-∞, -1) ∪ [3, +∞).

Result

Use the Calculator for This Topic

A concept becomes durable only when you can move from the rule back into a fresh problem. The calculator is useful here because it lets you test the exact pattern from this article, compare your work with the step list, and verify the final graph or notation.

Start with the number line inequality calculator when you want to check circle placement and shading fast. If you want a focused visual primer before that, review how to graph inequalities on a number line, and if the symbol itself is the source of confusion, revisit inequality symbols.

For split-region practice, compare the same input with the compound inequality calculator. That makes it easier to see when a graph should become one bounded interval and when it should become two separate rays.

Suggested input

01

Enter x < -1 or x >= 3 to see the two-ray union graph from the worked example.

02

Try -2 ≤ x < 4 to see a bounded interval with mixed circle types.

03

Enter any inequality from your homework to check the circle placement and shading direction before drawing it by hand.

Open the number line inequality calculator

How to Read a Number Line Graph

Reading a number line graph means converting the visual information back into an inequality or interval notation. Start with the circle type: an open circle means the symbol is strict (> or <), and a closed circle means the symbol is inclusive (≥ or ≤). Then look at the shading direction: shading to the right means greater than, shading to the left means less than.

For a bounded interval, read both circles and the region between them. A closed circle at -2 and an open circle at 5 with shading between them reads as -2 ≤ x < 5 or [-2, 5). For a union graph with two separate rays, read each ray independently and join them with OR: a ray going left from an open circle at -1 and a ray going right from a closed circle at 3 reads as x < -1 or x ≥ 3, or (-∞, -1) ∪ [3, +∞).

What you see on the graphWhat it means
Open circle ○Strict symbol: > or <
Closed circle ●Inclusive symbol: ≥ or ≤
Shading to the right →Greater than
Shading to the left ←Less than
Shading between two circlesCompound AND inequality
Two separate shaded raysCompound OR inequality

The gap in an OR graph is the region that fails both conditions

When a number line graph shows two separate rays with a gap between them, the gap represents every value that satisfies neither part of the OR inequality. For x < -1 or x ≥ 3, the gap is the region from -1 to 3. A value like x = 0 is not less than -1 and not greater than or equal to 3, so it is correctly excluded from the shaded region.

Students sometimes shade the gap instead of the outer regions, which produces the graph for a compound AND inequality rather than an OR inequality. The test is simple: pick a value in the gap and check whether it satisfies either part of the original inequality. If it does not, the gap should be unshaded.

A number line graph and interval notation describe the same set

Every number line graph has an exact interval notation equivalent, and every interval notation expression has an exact number line graph. They are two representations of the same solution set, not two different answers.

This means you can always check your interval notation by sketching the corresponding number line graph, or check your graph by writing the interval notation and verifying the bracket types match the circle types. If the graph shows a closed circle at -2 but the interval notation writes (-2, 5), the representations disagree and one of them contains an error.

Put The Rule Into Practice

Concept pages are useful only if they transfer back into actual problem solving. After reading this guide, the best next step is to practice both directions: drawing a graph from an inequality and reading an inequality from a graph. The two skills reinforce each other.

The calculator pages linked here are meant to shorten that feedback loop. You can test a new inequality, inspect the number line output, and compare the graph with the interval notation to confirm that your visual model is consistent.

After you sketch a graph, rewrite it in interval notation and check whether the bracket types match the circle types. The visual graph and the notation should describe the same set without contradiction.

Common Mistakes To Avoid

Drawing a closed circle for a strict symbol (> or <) — strict symbols always use an open circle.

Shading the middle region for an OR inequality — the middle is the gap, not the solution.

Forgetting to draw the second ray for an OR inequality and only graphing one of the two parts.

Writing interval notation with a bracket on the infinity side — infinity always uses a parenthesis.

FAQ

How do I graph x ≠ 2 on a number line?

Place an open circle at 2 and shade the entire number line on both sides — everything except the point at 2. In interval notation: (-∞, 2) ∪ (2, +∞).

What does it mean if the entire number line is shaded?

It means the inequality is true for all real numbers. This happens when the solution is all reals, written as (-∞, +∞) in interval notation.

How do I know if a compound inequality is AND or OR from the graph?

If the shading is one connected region (a segment or a single ray), it is likely an AND inequality. If the shading is two separate regions with a gap between them, it is an OR inequality.