Graphing Inequality Solutions on a Number Line
Once an inequality is solved, graphing it on a number line is a direct translation from the interval notation — no new algebra required.
Step 1 — Mark the Boundary Point
Locate the boundary value on the number line and mark it with a circle. This is the same value that appears in the inequality calculator’s interval notation result.
Step 2 — Choose Open or Closed Based on Strict vs. Non-Strict
- Open circle (unfilled) for a strict inequality (
<or>) — the boundary itself is not part of the solution. - Closed circle (filled in) for a non-strict inequality (
≤or≥) — the boundary is included.
This matches interval notation exactly: an open circle corresponds to a parenthesis, a closed circle corresponds to a square bracket. See the inequality symbols glossary for the full parenthesis/bracket convention.
Step 3 — Shade in the Correct Direction
x < valueorx ≤ value→ shade left (toward negative infinity)x > valueorx ≥ value→ shade right (toward positive infinity)
A simple way to remember the direction: the inequality symbol itself points toward the shaded side — x > 3 points right, so shade right from an open circle at 3.
Step 4 — Graphing a Compound Inequality
A compound inequality like -3 ≤ x < 2 graphs as a segment between the two boundary values, not a ray extending to infinity in either direction:
- Mark both boundary points (-3 and 2 in this example).
- Use a closed circle at -3 (since
≤includes it) and an open circle at 2 (since<excludes it). - Shade the segment between the two points — the solution is everything in that range, not beyond either end.
This visually matches the half-open interval [-3, 2) — one filled endpoint, one hollow endpoint, with the shaded region connecting them.
Step 5 — Graphing “Or” Statements (Two Disconnected Regions)
If a problem uses “or” instead of a chained compound inequality — for example, x < 2 or x > 8 — the graph shows two separate shaded rays pointing away from each other, with a gap in between. This looks visually different from a compound “and” inequality’s single connected segment, and the two can’t be written as one chained inequality. See the inequality symbols glossary for why “and” and “or” compound statements behave differently.
Step 6 — Use the Graph to Double-Check Your Algebra
A quick way to catch a sign-flip mistake: pick a test point from the shaded region and plug it back into the original inequality (before solving). If it doesn’t satisfy the original statement, the graph — and likely the algebra behind it — has an error, probably a missed or incorrectly applied sign flip. See common mistakes solving inequalities for the specific errors this check catches.
From Interval Notation to Graph and Back
Every interval notation result from the inequality calculator translates directly into a number-line graph using the steps above, and the reverse is also true — a graph can be read back into interval notation the same way. See inequality calculator examples for solved problems you can practice graphing yourself.