Graphing Inequalities Calculator (1D Number Line)

Solve and graph one-variable linear inequalities on a number line. Supports <, >, ≤, ≥, compound AND/OR inequalities with step-by-step solutions.

Graphing Inequalities (1D)

ax + b < c

Solution
x < 2.0000
Solved inequality for x
Interval Notation
(−∞, 2.0000)
Standard interval notation
Boundary Value
2.000000
Critical point on the number line
Boundary Type
Open (excluded) ○
Closed = solid dot, Open = hollow dot
Direction
← Left (toward −∞)
Direction of the solution set on the number line
Sign Flipped?
No
Dividing by a negative number flips the inequality

Number Line

2.00

Step-by-Step Solution

StepOperationResult
1Start2.00x + 3.00 < 7.00
2Subtract 3.00 from both sides2.00x < 4.00
3Divide by 2.00x < 2.0000
4Interval notation(−∞, 2.0000)

Inequality Symbols Reference

SymbolMeaningNumber LineInterval
<Less than○ open dot, shade left(−∞, a)
Less than or equal● closed dot, shade left(−∞, a]
>Greater than○ open dot, shade right(a, ∞)
Greater than or equal● closed dot, shade right[a, ∞)
Planning notes, formulas, and examples

About the Graphing Inequalities Calculator (1D Number Line)

Graphing inequalities on a number line is a fundamental algebra skill that helps you visualize solution sets. A linear inequality like 2x + 3 < 7 defines a range of values that satisfy the condition, and the number-line graph shows this range with a dot at the boundary and shading in the direction of valid solutions.

This calculator solves any one-variable linear inequality of the form ax + b < c (or >, ≤, ≥), displays the step-by-step solution including when to flip the inequality sign (dividing by a negative), and renders the result on an interactive number line. It also handles compound inequalities connected by AND (intersection) or OR (union), which is essential for more complex algebraic reasoning.

Whether you are studying for an algebra exam, checking homework, or teaching the concept, it gives instant solutions with clear visual feedback and proper interval notation.

When This Page Helps

Inequalities are everywhere in real life — from budget constraints and speed limits to engineering tolerances and statistical confidence intervals. Being able to solve and graph them quickly is a core algebra skill that carries into higher mathematics, science, and economics.

This calculator automates the solving process while showing every step, making it useful for learning, homework verification, and quick reference. The number-line visualization and interval notation conversion reduce avoidable errors.

How to Use the Inputs

  1. Enter the coefficient a, constant b, and right-hand side c for the inequality ax + b ○ c.
  2. Select the inequality operator: <, >, ≤, or ≥.
  3. Use presets for common examples like 2x + 3 < 7 or −3x + 6 > 0.
  4. Switch to "Compound" mode to add a second inequality and combine with AND or OR.
  5. Read the solution in the output cards and verify with the step-by-step table.
  6. Check the number line for the visual representation with open/closed dots.
  7. Review the interval notation for the standard mathematical representation.
Formula used
Solving ax + b < c: 1. Subtract b: ax < c − b 2. Divide by a: x < (c − b)/a (If a < 0, flip the inequality sign) Compound: A AND B = A ∩ B; A OR B = A ∪ B

Example Calculation

Result: x < 2

Start with 2x + 3 < 7. Subtract 3 from both sides: 2x < 4. Divide both sides by 2: x < 2. The solution is the interval (−∞, 2), shown as an open dot at 2 with shading to the left.

Tips & Best Practices

  • Always remember to flip the inequality when dividing by a negative number — it is the most common mistake.
  • Use compound AND for "between" constraints (e.g., 1 < x ≤ 5) and OR for "outside" constraints.
  • Practice converting between inequality, interval, and number-line representations.
  • An open dot (○) matches parentheses in interval notation; a closed dot (●) matches brackets.
  • If the coefficient a is 0, the inequality is either always true or always false.
  • Check your answer by substituting a test point from the shaded region back into the original inequality.

Understanding Linear Inequalities

A linear inequality in one variable has the general form ax + b < c (or >, ≤, ≥). The solution is always a ray on the number line — an infinite set of numbers extending in one direction from a boundary point. The boundary itself may or may not be included, depending on whether the inequality is strict (< or >) or non-strict (≤ or ≥). The solution process mirrors solving equations, with the critical difference that multiplying or dividing by a negative flips the direction.

Compound Inequalities

Compound inequalities combine two conditions. An AND compound like −1 ≤ x < 4 restricts x to a bounded interval. An OR compound like x < −2 or x > 5 produces two disjoint rays, representing values that satisfy at least one condition. In advanced mathematics, these concepts generalize to systems of linear inequalities in multiple variables, forming polytopes in higher-dimensional spaces.

Graphing on the Number Line

The number-line graph encodes the entire solution set visually. Draw the boundary point as open (○) or closed (●), then shade the appropriate direction. For compound inequalities, shade only the intersection (AND) or the union (OR) of the individual shading. This graphical representation is essential preparation for graphing two-variable inequalities on the coordinate plane.

Sources & Methodology

Last updated:

Frequently Asked Questions

  • You flip the inequality sign when you multiply or divide both sides by a negative number. For example, −2x > 6 becomes x < −3 after dividing by −2.