Graphing Inequalities Number Line Calculator

Graph inequalities on a number line with visual representation

Enter inequality
Use format: x >> 5, x <= -3, etc.

📐Inequality Symbols

Greater Than (>)
Open circle, arrow to the right
x > 5 means x is greater than 5
Less Than (<)
Open circle, arrow to the left
x < 5 means x is less than 5
Greater Than or Equal (>=)
Filled circle, arrow to the right
x >= 5 includes 5
Less Than or Equal (<=)
Filled circle, arrow to the left
x <= 5 includes 5

💼Common Applications

Mathematics
• Solving inequalities
• Range of solutions
• Domain restrictions
Real World
• Budget constraints
• Age requirements
• Temperature ranges
Science
• Measurement bounds
• Valid data ranges
• Safety thresholds

Graphing Inequalities on a Number Line Calculator: Visualize Solution Sets

Table of Contents - Graphing Inequalities on a Number Line


How to Use This Calculator - Graphing Inequalities on a Number Line

Enter an inequality like x is greater than 3, x is less than or equal to -2, or compound inequalities like -5 is less than x and x is less than or equal to 7.

Click "Graph" to see the visual representation on a number line. The calculator shows the boundary point, whether it's included (closed circle) or excluded (open circle), and shades the solution region.

The results display the number line graph, interval notation equivalent, and clarification of which numbers satisfy the inequality.


Understanding Number Line Graphs

Graphing inequalities on a number line provides a visual representation of all solutions. Unlike equations that typically have specific answers, inequalities have ranges of solutions.

The basic elements:

A number line graph has three key components: the boundary point (the critical number from the inequality), a circle (open or closed), and shading (indicating which direction contains solutions).

Open versus closed circles:

An open circle means the boundary point is NOT included in the solution (used for strict inequalities like less than or greater than). A closed circle means the boundary point IS included (used for less than or equal, greater than or equal).

Shading direction:

For "x is greater than a," shade to the right of a (larger numbers). For "x is less than a," shade to the left of a (smaller numbers). The shading shows all numbers that make the inequality true.

Why visualize:

The number line makes abstract inequalities concrete. You can see the solution set as a continuous region rather than trying to imagine it. It also makes compound inequalities much clearer.

Connection to interval notation:

The number line graph corresponds directly to interval notation. Open circles match parentheses, closed circles match brackets, and the shaded region shows the interval bounds.

Reading the graph:

To check if a number is a solution, see if it's in the shaded region. If it's under the shading (or on a closed circle), it's a solution. If it's outside the shading, it's not a solution.

Compound inequalities:

"And" inequalities (like 2 is less than x and x is less than 5) produce a shaded segment between two points. "Or" inequalities produce two separate shaded rays or regions.


How to Graph Inequalities Manually

Let me show you how to graph different types of inequalities step by step.

Example 1: Simple greater than

Graph: x is greater than 3

Step 1: Draw a number line and mark 3

←----•----3----→

Step 2: Use an open circle at 3 Since greater than is strict (doesn't include 3), draw an open circle: ○

Step 3: Shade to the right x greater than 3 means all numbers larger than 3

←----○====→
     3

The shading (====) shows all solutions.

Example 2: Less than or equal

Graph: x is less than or equal to -2

Step 1: Mark -2 on the number line

Step 2: Use a closed circle Less than or equal includes -2, so use a filled circle: ●

Step 3: Shade to the left x is less than or equal to -2 means all numbers smaller than or equal to -2

←====●----→
    -2

Example 3: Greater than or equal

Graph: x is greater than or equal to 1

Step 1: Mark 1

Step 2: Closed circle at 1 The "or equal" means include 1: ●

Step 3: Shade right

←----●====→
     1

All numbers from 1 onward are solutions.

Example 4: Strict less than

Graph: x is less than 0

Step 1: Mark 0

Step 2: Open circle Strict inequality excludes 0: ○

Step 3: Shade left

←====○----→
     0

Negative numbers and numbers approaching 0 (but not 0 itself) are solutions.

Example 5: Compound AND inequality

Graph: -3 is less than or equal to x and x is less than 5

This is the same as: -3 is less than or equal to x is less than 5

Step 1: Mark both -3 and 5

Step 2: Circle types -3 has less than or equal: closed circle ● 5 has less than: open circle ○

Step 3: Shade between them

←----●========○----→
    -3         5

Solutions are all numbers from -3 up to (but not including) 5.

Interval notation: [-3, 5)

Example 6: Compound OR inequality

Graph: x is less than -1 OR x is greater than or equal to 2

Step 1: This creates two separate regions

Step 2: Mark -1 and 2 -1: open circle ○ (strict inequality) 2: closed circle ● (includes 2)

Step 3: Shade both regions

←====○---------●====→
    -1         2

Solutions are in either shaded region (left of -1 OR from 2 onward).

Interval notation: (-∞, -1) ∪ [2, ∞)

Example 7: Negative boundary

Graph: x is greater than -5

Step 1: Mark -5

Step 2: Open circle at -5

Step 3: Shade right

←----○============→
    -5

All numbers greater than -5 (including negatives like -4, -3, etc., and all positives) are solutions.

Example 8: Solving then graphing

Graph: 2x + 3 is greater than 7

Step 1: Solve for x 2x + 3 is greater than 7 2x is greater than 4 x is greater than 2

Step 2: Graph x is greater than 2

←----○====→
     2

Example 9: Flipping inequality

Graph: -x is less than 3

Step 1: Solve (careful with negative coefficient) -x is less than 3 Multiply both sides by -1 (flip inequality) x is greater than -3

Step 2: Graph x is greater than -3

←----○========→
    -3

Example 10: All real numbers

Graph: x is less than 10 OR x is greater than 5

Step 1: Notice every number satisfies one condition Any number less than 10 or greater than 5 covers all numbers.

Step 2: Shade entire line

←=================→

This represents all real numbers: (-∞, ∞)


Real-World Applications

Age restrictions:

"Must be at least 18 years old" is x is greater than or equal to 18, graphed with a closed circle at 18 and shading to the right.

Temperature ranges:

Safe storage temperature "between 2°C and 8°C" is 2 is less than or equal to T is less than or equal to 8, shown as a shaded segment from 2 to 8 with closed circles at both ends.

Speed limits:

"Speed limit 65 mph" means x is less than or equal to 65, graphed with shading left from 65 with a closed circle.

Grade requirements:

"Need at least 70% to pass" is x is greater than or equal to 70, showing all passing scores on a number line from 70 onward.

Weight limits:

"Maximum weight 100 lbs" is w is less than or equal to 100, visualized with shading to the left of 100.

Time constraints:

"Available after 2 PM" is t is greater than or equal to 14 (in 24-hour format), graphed from 14 onward.

Budget planning:

"Spend no more than $500" is x is less than or equal to 500, shown with shading from 0 to 500.


Common Mistakes and How to Avoid Them

Mistake 1: Wrong circle type

Wrong: Using closed circle for strict inequality like x is greater than 5

Right: Strict inequalities (greater than, less than) use open circles ○. Only less than or equal and greater than or equal use closed circles ●.

Why it happens: Forgetting that "or equal" is what makes it closed. No "equal" means open.

Mistake 2: Shading wrong direction

Wrong: For x is greater than 3, shading to the left

Right: Greater than means larger, which is to the right on a number line. Less than means smaller, which is to the left.

Why it happens: Not connecting "greater" with "rightward." Use the mental image: numbers get bigger as you move right.

Mistake 3: Forgetting to flip inequality

Wrong: From -x is greater than 5, graphing x is greater than -5

Right: When multiplying or dividing by a negative, flip the inequality. -x is greater than 5 becomes x is less than -5.

Why it happens: Not knowing the rule or forgetting to apply it. Always flip when working with negatives.

Mistake 4: Compound AND versus OR

Wrong: Graphing "x is less than 2 OR x is greater than 5" as one shaded segment

Right: OR creates separate regions. This should be two separate shaded rays, not a segment between 2 and 5.

Why it happens: Confusing AND (between) with OR (separate regions).

Mistake 5: Boundary point errors

Wrong: Marking the wrong number on the number line

Right: Double-check which number is the boundary. For x is greater than 7, the boundary is 7, not something else.

Why it happens: Arithmetic errors when solving for x first. Verify your boundary.

Mistake 6: Both endpoints same type

Wrong: For 1 is less than x is less than or equal to 3, using open circles at both 1 and 3

Right: 1 gets open ○, 3 gets closed ● (because of the "or equal" on that side only).

Why it happens: Not reading each inequality symbol separately. Check each endpoint individually.

Mistake 7: Empty set confusion

Wrong: Graphing x is greater than 5 AND x is less than 2 as two separate rays

Right: No number is simultaneously greater than 5 and less than 2. This is empty set (no graph).

Why it happens: Not recognizing impossible conditions. AND requires both to be true at once.


Related Topics


How This Calculator Works

Step 1: Parse inequality

Extract variable (usually x)
Identify inequality symbol: less than, greater than, ≤, ≥
Extract boundary value(s)
Determine if compound (AND/OR)

Step 2: Solve if needed

If inequality has operations (like 2x + 3 is greater than 7):
  Isolate variable using algebra
  Track if multiplying/dividing by negative (flip inequality)
  Simplify to form: x [symbol] number

Step 3: Determine circle type

If less than or greater than (strict): open circle
If less than or equal or greater than or equal: closed circle
Mark on number line

Step 4: Determine shading direction

If x is greater than a: shade right from a
If x is less than a: shade left from a
If compound AND: shade between two points
If compound OR: shade both regions separately

Step 5: Draw number line

Create horizontal line
Mark appropriate scale
Place boundary point(s)
Draw circle(s) (open or closed)
Apply shading

Step 6: Verify

Test a number in shaded region (should satisfy inequality)
Test boundary point (should satisfy iff closed circle)
Test number outside shaded region (should not satisfy)

Step 7: Display

Show graphical representation
Provide interval notation
List critical points and circle types

FAQs

What's the difference between open and closed circles?

Open circle ○ means the boundary is NOT included (strict inequalities). Closed circle ● means the boundary IS included (includes "or equal").

How do I know which direction to shade?

Greater than (or greater than or equal) shades to the right. Less than (or less than or equal) shades to the left.

What does the shaded region represent?

All numbers in the shaded region are solutions to the inequality. If a number is in the shaded area, it makes the inequality true.

How do I graph x is greater than or equal to 5?

Closed circle at 5, shade to the right. The closed circle shows 5 is included.

What about compound inequalities?

AND inequalities shade between two points (like 2 is less than x is less than 5). OR inequalities create two separate shaded regions.

Can I test if my graph is correct?

Yes, pick a number in the shaded region and substitute it into the original inequality. It should make the inequality true.

What if I get x is less than x?

This is impossible (no number is less than itself). The solution is the empty set; there's nothing to graph.

How do I handle negative numbers?

They work the same way. For x is greater than -3, put a circle at -3 and shade to the right (which includes -2, -1, 0, 1, etc.).

What about graphing x is not equal to 5?

This is technically all real numbers except 5. You'd shade the entire line with an open circle at 5 (though this is rarely graphed on a number line).

How do I graph all real numbers?

Shade the entire number line with no boundary circles. This represents (-∞, ∞).

What's the connection to interval notation?

Open circle → parenthesis (, closed circle → bracket [. Shaded region → the interval between the bounds.

Can inequalities have no solution?

Yes, like x is greater than 5 AND x is less than 2. Nothing to graph because the set is empty.

Why flip the inequality for negatives?

Multiplying both sides by a negative reverses the order. Think: -2 is less than -1, but 2 is greater than 1.

How do I graph "at most 10"?

"At most" means less than or equal. So x is less than or equal to 10: closed circle at 10, shade left.

What about "at least"?

"At least" means greater than or equal. x is greater than or equal to a: closed circle at a, shade right.

Can fractions be boundaries?

Yes, graph x is greater than 1/2 with a circle at 0.5 and shade right.

How do I know if it's AND or OR?

"And" uses words like "between," "from...to" - creates one segment. "Or" uses "or," "outside" - creates separate regions.

What if both inequalities point same direction?

Like x is greater than 2 AND x is greater than 5? The stricter one (x is greater than 5) is the actual solution.

Do I always need to solve first?

If it's already in form "x [symbol] number," you can graph directly. Otherwise, solve for x first.

How precise does my number line need to be?

Mark the boundary point(s) clearly and accurately. The scale can be approximate, but boundaries should be exact.