How to graph inequalities on a number line

When we graph an inequality, we’re marking every number that makes it true. Start at the boundary number. Then decide whether that number is included and which way the solution goes.

Put the variable on the left

If the inequality isn’t already solved, isolate the variable. It helps to read the variable first. For example, 6>x says the same thing as x<6. When we swap the sides, the symbol turns so it still points toward the smaller value.

Choose the circle and the direction

For < or >, the boundary value is excluded, so draw an open circle. For ≤ or ≥, the boundary value is included, so fill the circle in.

Shade left for values that are less than the boundary, or right for values that are greater. The arrow shows that the solution keeps going in that direction.

Example: Graph x < 5

Use an open circle at 5 because 5 isn’t less than itself. Draw the ray to the left, where all the values are less than 5.

Number line with a open circle at 5The circle at 5 is open, and the shaded rays point left.2345678
The open circle excludes 5. The ray shows all values less than 5.

Example: Graph x ≥ 2

Fill the circle at 2 because the inequality includes equality. Draw the ray to the right for all the greater values.

Number line with a filled circle at 2The circle at 2 is filled, and the shaded rays point right.−1012345
The filled circle includes 2. The ray shows the greater values.

Example: Graph all values except one

To graph x≠4, use an open circle at 4. Every number on either side is a solution, so draw a ray in each direction.

Number line with a open circle at 4The circle at 4 is open, and the shaded rays point left and right.1234567
Every real number except 4 is included.

Example: Solve before you graph

For 3(x+2)+1≤x-5, distribute and combine the constants on the left. Subtract x and 7 from both sides, then divide by the positive number 2, so the direction of the inequality stays the same.

3(x+2)+1≤x-53x+7≤x-52x≤-12x≤-6
Number line with a filled circle at -6The circle at -6 is filled, and the shaded rays point left.−9−8−7−6−5−4−3
The solution includes −6 and every number to its left.