Graphing Inequalities on Anumber Line Calculator
Our free algebra calculator solves graphing inequalities anumber line problems. Get worked examples, visual aids, and downloadable results.
Reviewed for accuracy by Manoj Kumar, Mathematics Educator
Graphing Inequalities on Anumber Line Calculator
Calculator
Adjust values & calculateEnter your values below. Every result is computed in your browser โ no data is sent to any server.
Formula: x [operator] value
Worked example โ Open circle at -2, shade right. Interval: (-2, Infinity)
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 Step 2: Since > is strict, use an open circle at -2 Step 3: Since greater-than, shade to the right Step 4: Interval notation: (-2, Infinity) Step 5: Set-builder: {x | x > -2} Verify: Test x = 0: 0 > -2 is TRUE (in solution) Test 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 Step 2: Closed circle at -1 (since <=), open circle at 4 (since <) Step 3: Shade between -1 and 4 Step 4: Interval notation: [-1, 4) Step 5: Set-builder: {x | -1 <= x < 4} Verify: Test x = 2: -1 <= 2 < 4 TRUE Test 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.
What is the difference between an open circle and a closed circle?
Open and closed circles on a number line convey critical information about whether the boundary point itself is part of the solution set. An open circle (hollow dot) is used for strict inequalities (< and >) and indicates that the boundary value is NOT included in the solution. A closed circle (filled dot) is used for non-strict or inclusive inequalities (<= and >=) and indicates that the boundary value IS part of the solution. For example, x < 5 uses an open circle at 5 because 5 itself does not satisfy x < 5, while x <= 5 uses a closed circle because 5 satisfies x <= 5. This distinction directly corresponds to parentheses versus brackets in interval notation.
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 convert an inequality to interval notation?
Converting an inequality to interval notation requires matching the inequality symbols to the correct bracket types. Use a parenthesis ( or ) when the endpoint is not included (strict inequality < or >), and use a bracket [ or ] when the endpoint is included (inclusive inequality <= or >=). Infinity and negative infinity always get parentheses because they are not actual numbers. Examples: x > 3 becomes (3, Infinity); x <= -2 becomes (-Infinity, -2]; 1 < x <= 5 becomes (1, 5]; x >= 0 becomes [0, Infinity). For compound OR inequalities, use the union symbol U between the two intervals, such as (-Infinity, -1) U (4, Infinity) for x < -1 or x > 4.
What is set-builder notation and when do you use it?
Set-builder notation is a mathematical way to describe a set by stating the property that all elements must satisfy. It uses the format {variable | condition}, read as the set of all values of the variable such that the condition is true. For example, {x | x > 5} is read as the set of all x such that x is greater than 5. Set-builder notation is more flexible than interval notation because it can express complex conditions. While interval notation is preferred for simple continuous intervals, set-builder notation handles cases like {x | x is not equal to 3} or {x | x is an integer and x > 0} more naturally. Both notations are standard in algebra and are often used interchangeably for basic inequalities.
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.
Why is graphing inequalities on a number line useful?
Graphing inequalities on a number line serves several important purposes in mathematics and real-world applications. Visually, it transforms an abstract algebraic statement into a concrete picture that makes the solution set immediately understandable. Students can literally see which values satisfy the inequality and which do not. It helps verify algebraic solutions by providing a visual check. In real applications, number line graphs represent constraints: valid temperature ranges for a chemical process, acceptable weight limits for a bridge, or qualifying score ranges for a scholarship. The visual representation also aids in solving systems of inequalities, where overlapping shaded regions on the same number line reveal the combined solution. Number line graphs are the foundation for understanding graphing in two dimensions on the coordinate plane.
References
Reviewed for accuracy by Manoj Kumar, Mathematics Educator ยท Editorial policy
Related Calculators
๐งฎGraphing Quadratic Inequalities Calculator
Calculate graphing quadratic inequalities with inputs, formulas, and instant results.
๐งฎAbsolute Value Inequalities Calculator
Calculate absolute value inequalities with inputs, formulas, and instant results.
๐งฎLine Integral Calculator
Calculate line integral with inputs, formulas, and instant results.
๐งฎLeast Squares Regression Line Calculator
Calculate least squares regression line with inputs, formulas, and instant results.
๐งฎLine Equation From Two Points Calculator
Calculate line equation from two points with inputs, formulas, and instant results.
๐งฎLine of Intersection of Two Planes Calculator
Calculate line of intersection of two planes with inputs, formulas, and instant results.
๐งฎParallel Line Calculator
Calculate parallel line with inputs, formulas, and instant results.
๐งฎPerpendicular Line Calculator
Calculate perpendicular line with inputs, formulas, and instant results.