Skip to main content

Graphing Inequalities on Anumber Line Calculator

Our free algebra calculator solves graphing inequalities anumber line problems. Get worked examples, visual aids, and downloadable results.

Share this calculator

Formula

x [operator] value

Inequalities compare a variable to a value using <, <=, >, or >=. On a number line, open circles mark excluded endpoints, closed circles mark included endpoints, and shading shows the solution set direction.

Worked Examples

Example 1: Graph x > -2 on a Number Line

Problem: Graph the inequality x > -2 on a number line and write in interval notation.

Solution: Step 1: Identify boundary point: -2\nStep 2: Since > is strict, use an open circle at -2\nStep 3: Since greater-than, shade to the right\nStep 4: Interval notation: (-2, Infinity)\nStep 5: Set-builder: {x | x > -2}\nVerify: Test x = 0: 0 > -2 is TRUE (in solution)\nTest x = -3: -3 > -2 is FALSE (not in solution)

Result: Open circle at -2, shade right. Interval: (-2, Infinity)

Example 2: Graph -1 <= x < 4 on a Number Line

Problem: Graph the compound inequality -1 <= x < 4 on a number line.

Solution: Step 1: Two boundary points: -1 and 4\nStep 2: Closed circle at -1 (since <=), open circle at 4 (since <)\nStep 3: Shade between -1 and 4\nStep 4: Interval notation: [-1, 4)\nStep 5: Set-builder: {x | -1 <= x < 4}\nVerify: Test x = 2: -1 <= 2 < 4 TRUE\nTest x = -2: -1 <= -2 is FALSE

Result: Closed circle at -1, open circle at 4, shade between. Interval: [-1, 4)

Frequently Asked Questions

How do you graph an inequality on a number line?

Graphing an inequality on a number line involves three steps. First, identify the boundary point, which is the number in the inequality. Second, determine whether to use an open circle (for strict inequalities < or >) or a closed (filled) circle (for inclusive inequalities <= or >=). The open circle means the boundary point is NOT included in the solution, while the closed circle means it IS included. Third, shade the number line in the direction of the solution: shade to the left for less-than inequalities and to the right for greater-than inequalities. The shading represents all the numbers that satisfy the inequality. For example, x > 3 gets an open circle at 3 with shading to the right.

How do you graph compound inequalities on a number line?

Compound inequalities involve two conditions connected by AND or OR. For AND compound inequalities like 2 < x < 7, graph both boundary points on the same number line and shade the region between them, since x must satisfy both conditions simultaneously. For OR compound inequalities like x < 1 or x > 5, graph both parts separately on the same number line: shade to the left of 1 and to the right of 5, leaving the middle unshaded. The AND case produces a bounded segment on the number line, while the OR case produces two rays pointing in opposite directions. Always check each boundary for open or closed circles based on whether the inequality is strict or inclusive.

How do you solve and graph linear inequalities?

Solving a linear inequality follows the same steps as solving a linear equation, with one critical difference: when you multiply or divide both sides by a negative number, you must flip (reverse) the inequality sign. For example, to solve -2x + 3 > 7: subtract 3 from both sides to get -2x > 4, then divide by -2 (flip the sign!) to get x < -2. To graph the solution x < -2, draw a number line, place an open circle at -2 (because the inequality is strict), and shade everything to the left. You can verify your answer by substituting a test point: try x = -3, which gives -2(-3) + 3 = 9 > 7, confirming -3 is indeed in the solution set.

What is the difference between AND and OR compound inequalities?

AND and OR compound inequalities represent fundamentally different logical operations. An AND compound inequality (also called a conjunction) requires both conditions to be true simultaneously. On a number line, this typically produces the intersection or overlap of two solution sets, often appearing as a bounded segment like 2 < x < 8. An OR compound inequality (also called a disjunction) requires at least one condition to be true. On a number line, this produces the union of two solution sets, often appearing as two separate rays like x < -1 or x > 5. The AND solution is always a subset of either individual solution, while the OR solution contains both individual solutions entirely. A key special case is when AND conditions produce no overlap, resulting in an empty solution set.

How do you determine which direction to shade on a number line?

The direction of shading depends on the type of inequality and what variable appears on which side. If the variable is on the left side (like x < 5 or x > 3), shade left for less-than and right for greater-than. Think of it as the arrow on the number line pointing toward the smaller numbers (left) or larger numbers (right). If the inequality is rearranged with the variable on the right (like 3 > x, which means x < 3), first rewrite it in standard form with x on the left before graphing. A reliable method is to test a point: pick a number clearly to the left or right of your boundary, substitute it into the original inequality, and if it makes the inequality true, shade that direction. This test-point method works even for complex inequalities.

Can you graph absolute value inequalities on a number line?

Yes, absolute value inequalities translate into compound inequalities that can be graphed on a number line. For less-than types like |x - a| < b, this becomes the AND compound inequality a - b < x < a + b, creating a bounded segment centered at a with radius b. For greater-than types like |x - a| > b, this becomes the OR compound inequality x < a - b or x > a + b, creating two rays pointing outward from the center. For example, |x - 3| < 4 becomes -1 < x < 7 (open circles at -1 and 7, shade between), while |x - 3| > 4 becomes x < -1 or x > 7 (open circles at -1 and 7, shade outward). The center point a and distance b determine the boundary positions.

References