How to graph inequalities on a number line

Math & Numbers By 2 min read

Quick answer

Draw a circle at the boundary number: open for < or > (the number isn’t included), closed for ≤ or ≥ (it is included). Then shade the line in the direction of the solutions: left for less than, right for greater than.

An inequality like x > 3 has endless answers: 4, 3.5, 3.001, a million. A number line lets you show all of them with one circle and one arrow.

Open or closed circle?

SymbolMeaningCircle
<less thanOpen
>greater thanOpen
≤less than or equal toClosed (filled in)
≥greater than or equal toClosed (filled in)

A trick to remember: the “or equal to” symbols have an extra line underneath, and the closed circle has extra ink inside.

Example 1: x > 3

Open circle at 3 (because 3 itself isn’t greater than 3), shaded to the right.

-6-5-4-3-2-10123456
x > 3

Example 2: x ≤ −1

Closed circle at −1 (because −1 is allowed), shaded to the left.

-6-5-4-3-2-10123456
x ≤ −1

Example 3: a compound inequality

−2 < x ≤ 4 means x is bigger than −2 and at most 4. Draw both circles and shade only between them.

-6-5-4-3-2-10123456
−2 < x ≤ 4

For an “or” inequality, such as x < 0 or x ≥ 5, you draw two separate arrows pointing away from each other.

Solve first, then graph

If the inequality has more than just x, solve it like an equation first. There’s one extra rule: when you multiply or divide by a negative number, flip the sign.

−2x > 6

Divide both sides by −2 and flip: x < −3

Graph that with an open circle at −3, shaded to the left. Check it by testing a number: x = −4 gives −2(−4) = 8, and 8 > 6 is true.

Need to tidy up the expression before solving? See how to simplify algebraic expressions.

Still curious?

Jump to a random question from the archive.

Surprise me

Keep exploring