Inequalities on a Number Line: Definition, Method and Examples

MathPublished

Graphing Inequalities on a Number Line

To graph an inequality on a number line, mark the boundary value with an open circle for strictly less than or greater than, and a closed circle for less than or equal to or greater than or equal to. Then, shade the line to the left for smaller values or to the right for greater values.


Number lines display real numbers in sequential order, making them the perfect tool for visualizing solution sets. An equation typically has a single solution, but an inequality usually represents a continuous range of numbers.


Graphing these solution sets forms the foundation for understanding how variables behave across different boundaries.

What does an inequality graph show?

An inequality graph shows every possible number that makes the mathematical statement true.


Because it is impossible to write out an infinite list of decimal and fractional solutions, drawing inequalities on a number line provides a complete and immediate visual summary of the valid range.


The graph uses three main components to communicate the solution:

  1. A designated boundary value where the solution set begins or ends.
  2. A specific circle type that shows whether the boundary value itself is included.
  3. A shaded directional arrow that points toward all the other valid numbers.

Choose an open or closed circle

The first step when creating an inequality graph is deciding which type of circle belongs at the boundary value. This depends entirely on the inequality symbol.


An open circle represents a strict boundary that is not included in the solution.


Use an open circle for strictly less than or strictly greater than relationships:

  • << means less than.
  • >> means greater than.

A closed circle represents an inclusive boundary that is part of the solution.


Use a closed, filled-in circle for relationships that include equal to:

  • ≤\leq means less than or equal to.
  • ≥\geq means greater than or equal to.

Two number lines. The top shows an open circle indicating the boundary is not included. The bottom shows a closed circle indicating the boundary is included.

Shade left or right

After placing the correct circle, draw a thickened line or an arrow extending in the direction of the valid numbers.


Number line inequalities shade to the left for lesser values. If the inequality uses << or ≤\leq, draw the arrow pointing left toward the negative direction.


Conversely, shade to the right for greater values. If the inequality uses >> or ≥\geq, draw the arrow pointing right toward the positive direction.

Two number lines demonstrating shading direction. The top graph shades left for values less than 1. The bottom graph shades right for values greater than 1.

When the variable is written on the left side of the expression, the inequality symbol acts like an arrowhead pointing in the correct shading direction. For example, in x>5x > 5, the >> points to the right, so you shade right.

Read a graph as an inequality

To convert an existing inequality graph back into an algebraic expression, reverse the graphing process.

  1. Identify the numerical position of the circle. This is your boundary value.
  2. Look at the circle. Choose a strict symbol (<< or >>) for an open circle, or an inclusive symbol (≤\leq or ≥\geq) for a closed circle.
  3. Look at the shading. If it points left, the variable is less than the boundary. If it points right, the variable is greater than the boundary.

A number line showing a closed circle at negative 1 with shading extending to the left. Annotations point out the boundary, the closed circle, and the leftward shading.

By putting all three clues together, you determine that the graph represents values less than or equal to −1-1. The final inequality is x≤−1x \leq -1.

Graph compound solution sets

A compound inequality combines two separate constraints into a single graph.


Compound inequalities using "AND" require the solution to satisfy both conditions simultaneously. These graphs display an enclosed line segment stretching between two boundary circles, representing an intersection of valid numbers.


Compound inequalities using "OR" require the solution to satisfy only one of the conditions. These graphs typically feature two circles with arrows shading in opposite directions, representing a union of separate valid regions.

Two compound inequality graphs. The top graph shows a line connecting an open circle at negative 3 to a closed circle at 2. The bottom graph shows an arrow pointing left from negative 2 and another pointing right from 3.

Worked examples

Review these examples to see how to apply the graphing rules to different types of inequality statements.


Example 1: Graphing a simple inequality


Question: Graph the inequality x≥−3x \geq -3.


Method:

  1. Locate the boundary value −3-3 on the number line.
  2. Draw a closed circle at −3-3 because the inequality includes "or equal to".
  3. Shade to the right because the inequality requires values that are greater.

Answer:

A number line from negative 5 to 5. A closed circle is marked at negative 3, with a thick arrow extending to the right.

Check: Test a value in the shaded region, such as 00. The statement 0≥−30 \geq -3 is true, confirming the correct direction.


Example 2: Reading a continuous interval


Question: Write the inequality that matches the graph below.

A number line showing an open circle at negative 2 and an open circle at 4. A thick line segment connects the two open circles.

Method:

  1. Identify the boundaries. The shading starts at −2-2 and ends at 44.
  2. Check the circles. Both circles are open, meaning neither boundary is included.
  3. Interpret the compound relationship. The shading is between the values, indicating an "AND" condition where values are greater than −2-2 and less than 44.

Answer: −2<x<4-2 < x < 4.


Check: The value 00 is shaded on the graph, and it correctly fits into the expression because −2<0<4-2 < 0 < 4.


Example 3: Graphing a union of ranges


Question: Graph the compound inequality x≤−1x \leq -1 or x>3x > 3.


Method:

  1. Evaluate the first condition: x≤−1x \leq -1. Place a closed circle at −1-1 and shade to the left.
  2. Evaluate the second condition: x>3x > 3. Place an open circle at 33 and shade to the right.
  3. Combine both elements onto a single number line.

Answer:

A number line showing an arrow shading left from a closed circle at negative 1, and another arrow shading right from an open circle at 3.

Check: Test a value in the empty gap, such as 11. The value 11 is neither less than or equal to −1-1 nor greater than 33, so it correctly remains unshaded.

Common mistakes

When creating inequality graphs, watch out for the most frequent graphing errors.


Reading the shading arrow incorrectly

Many learners assume the inequality symbol always points the way they should shade. This trick only works if the variable is on the left side. For example, 4<x4 < x means the exact same thing as x>4x > 4. You must shade to the right because xx is greater than 44, even though the << symbol points left.


Confusing circle types

It is easy to accidentally draw a closed circle for a strictly less than (<<) statement. Remember that shading a circle means you are filling it with a value to include it in your final solution set.

Frequently asked questions

Can I graph decimal or fraction boundaries?

Yes. You can mark an open or closed circle between the standard integer markers to represent fractions or decimals, such as placing a circle halfway between 00 and 11 for x>0.5x > 0.5.


What does a shaded line with no circles mean?

If a number line is completely shaded in both directions with no circles, the solution set contains all real numbers.


Why do we graph inequalities?

Representing solutions graphically is a useful step when solving inequalities. Checking your work visually makes algebraic errors more obvious, especially for linear inequalities.

Practice questions

Question

A number line from negative 5 to 5 showing an open circle at negative 2 with an arrow shading to the right.

Which inequality matches the graph shown above?

  • x>−2x > -2

  • x≥−2x \geq -2

  • x<−2x < -2

  • x≤−2x \leq -2

Answer:

x>−2x > -2

Question

How do you correctly graph the inequality x≤4x \leq 4?

  • Open circle at 44, shade left

  • Closed circle at 44, shade right

  • Closed circle at 44, shade left

  • Open circle at 44, shade right

Answer:

Closed circle at 44, shade left

Question

A number line displaying a closed circle at negative 4 and an open circle at 1, with a solid line connecting them.

Which compound inequality correctly represents the graph shown above?

  • −4≤x<1-4 \leq x < 1

  • −4<x≤1-4 < x \leq 1

  • −4≤x≤1-4 \leq x \leq 1

  • −4<x<1-4 < x < 1

Answer:

−4≤x<1-4 \leq x < 1

Question

A student graphs the inequality 5<x5 < x by drawing an open circle at 55 and shading to the left. Why is this incorrect?

  • The circle should be closed because 55 is positive.

  • The student should have placed the circle at −5-5 instead of 55.

  • The statement means xx is greater than 55, so the shading must go right.

  • The variable is on the right side, so the expression cannot be graphed.

Answer:

The statement means xx is greater than 55, so the shading must go right.

Question

A number line showing an arrow shading left from an open circle at negative 1, and another arrow shading right from a closed circle at 2.

Which compound inequality matches the graph above?

  • x<−1 and x≥2x < -1 \text{ and } x \geq 2

  • x<−1 or x≥2x < -1 \text{ or } x \geq 2

  • x≤−1 or x>2x \leq -1 \text{ or } x > 2

  • −1<x≤2-1 < x \leq 2

Answer:

x<−1 or x≥2x < -1 \text{ or } x \geq 2