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.

Skip to calculator
Mathematics

Graphing Inequalities on Anumber Line Calculator

Graph any inequality on a number line. See open/closed circles, shading direction, interval notation, and set-builder notation instantly.

Last updated: December 2025Reviewed by NovaCalculator Mathematics Team

Calculator

Adjust values & calculate
Inequality
x < 3

Number Line Graph

โ—€
โ–ถ
3

Open circle at 3, shade to the left

Interval Notation
(-Infinity, 3)
Set-Builder Notation
{x | x < 3}
Description

All real numbers less than 3

Test Points

x = 1In Solution
x = 3Not in Solution
x = 5Not in Solution
Remember: Open circles (hollow) mean the value is NOT included. Closed circles (filled) mean the value IS included. Shade toward the solution set.
Your Result
Inequality: x < 3 | Interval: (-Infinity, 3)
Share Your Result
Understand the Math

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.

Last reviewed: December 2025

Worked Examples

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

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

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)
Expert Insights

Background & Theory

The Graphing Inequalities on Anumber Line Calculator applies the following established principles and formulas. Mathematics rests on a hierarchy of number systems, each extending the previous. The natural numbers (1, 2, 3, ...) support counting and ordering. The integers add negative values and zero, enabling subtraction without restriction. The rational numbers, expressible as p/q where p and q are integers and q is nonzero, close the system under division. The real numbers fill the gaps left by irrationals such as the square root of 2 or pi, forming a complete ordered field. The complex numbers, written as a + bi where i is the square root of negative one, complete the algebraic closure of the reals and allow every polynomial to have a root. Prime factorization states that every integer greater than one is uniquely expressible as a product of primes, a result known as the Fundamental Theorem of Arithmetic. Computing the greatest common divisor (GCD) of two integers relies most efficiently on the Euclidean algorithm: repeatedly replace the larger number with the remainder when it is divided by the smaller, until the remainder is zero. The last nonzero remainder is the GCD. The least common multiple (LCM) follows from the identity LCM(a, b) = |a * b| / GCD(a, b). Modular arithmetic defines equivalence classes of integers that share the same remainder under division by a modulus n. Fermat's Little Theorem and Euler's Theorem arise from this structure and underpin modern cryptography. Logarithms are the inverses of exponential functions. If b raised to the power x equals y, then the logarithm base b of y equals x. The natural logarithm uses base e, approximately 2.71828. Combinatorics counts arrangements and selections. The number of ordered arrangements (permutations) of r objects from n distinct objects is nPr = n! / (n - r)!. The number of unordered selections (combinations) is nCr = n! / (r! * (n - r)!). Pascal's triangle arranges these binomial coefficients so that each entry equals the sum of the two entries directly above it. The Fibonacci sequence, defined by F(1) = 1, F(2) = 1, and F(n) = F(n-1) + F(n-2), appears throughout nature and connects deeply to the golden ratio via Binet's formula.

History

The history behind the Graphing Inequalities on Anumber Line Calculator traces back through the following developments. Mathematics as a systematic discipline traces to ancient Mesopotamia. Babylonian clay tablets dating to around 1800 BCE demonstrate knowledge of quadratic equations, Pythagorean triples, and base-60 arithmetic, suggesting a practical mathematical tradition far preceding Greek formalism. Euclid of Alexandria compiled the Elements around 300 BCE, establishing the axiomatic method that would define rigorous mathematics for over two thousand years. His work organized plane geometry, number theory, and proportion into logically chained propositions derived from a small set of postulates. The algorithm bearing his name for computing GCDs appears in Book VII and remains in use today. In the 9th century, the Persian scholar Muhammad ibn Musa Al-Khwarizmi wrote Al-Kitab al-mukhtasar fi hisab al-jabr wal-muqabala, the treatise whose title gave algebra its name. He systematized the solution of linear and quadratic equations and described procedures that operated on unknowns as objects, a conceptual leap away from purely numerical calculation. Rene Descartes introduced coordinate geometry in 1637 by uniting algebra and Euclidean geometry, allowing curves to be studied through equations. This synthesis set the stage for calculus. Isaac Newton and Gottfried Wilhelm Leibniz independently developed calculus during the 1660s and 1670s, triggering a priority dispute that lasted decades and divided British and Continental mathematicians. Carl Friedrich Gauss proved the Fundamental Theorem of Algebra in 1799, showing that every nonconstant polynomial has at least one complex root. His Disquisitiones Arithmeticae of 1801 established modern number theory. David Hilbert's formalist program at the turn of the 20th century sought to place all of mathematics on an explicit axiomatic foundation, a project that Kurt Godel's incompleteness theorems of 1931 showed to be fundamentally limited. Alan Turing's work in the 1930s on computability introduced the theoretical model of the stored-program computer and linked mathematical logic directly to the limits of algorithmic calculation. His proof that no algorithm can decide in general whether an arbitrary program will halt or run forever placed fundamental boundaries on what mathematics can mechanically determine, and it opened the discipline now known as theoretical computer science.

Share this calculator

Explore More

Frequently Asked Questions

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.
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.
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.
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.
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.
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.
Educational Note: This calculator is provided for educational and informational purposes. Results are based on the formulas and inputs provided. Always verify important calculations independently. NovaCalculator processes calculator inputs client-side; optional analytics follow visitor consent settings.Reviewed by: NovaCalculator Mathematics Team โ€” Verified against standard mathematical and scientific references. Last reviewed: December 2025. ยฉ 2024โ€“2026 NovaCalculator.

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

Reviewed by Manoj Kumar, Mathematics Educator ยท Editorial policy