Solve and Graph Inequalities Calculator

Solve and Graph Inequalities Calculator

Emerging AI Skill PRO

Enter Calculation

Formula

ax+b≤c⟹x≤c−ba\text{a}\,x + \text{b} \;{\le}\; \text{c} \;\Longrightarrow\; x \le \dfrac{\text{c} - \text{b}}{\text{a}}
Usage stats

Advertisement

Results

Solution
x ≤ 4.0
Interval notation: (-∞, 4.0]
Boundary value 4
Interval (-∞, 4.0]
Direction code (1=less, 0=greater) 1

Report an error on this page

What this calculator does

This tool solves a one-variable linear inequality of the form \(a\cdot x + b \gtreqless c\), where \(\gtreqless\) is one of \(\le\), \(<\), \(\ge\), or \(>\). It returns the boundary value, the solved direction (for example \(x \le 4\)), and the answer written in interval notation so you can graph it on a number line.

How to use it

Enter the coefficient a, the constant b, choose the relation, and enter the right-hand value c. Press calculate. The result tells you whether the solution is a left ray, a right ray, all real numbers, or empty.

The formula explained

Start with \(a\cdot x + b \gtreqless c\). Subtract b from both sides to get \(a\cdot x \gtreqless c - b\). Then divide both sides by a. The single most important rule: if a is negative, you must reverse the inequality sign. So $$\text{a}\,x + \text{b} \;\le\; \text{c} \;\Longrightarrow\; x \le \dfrac{\text{c} - \text{b}}{\text{a}}$$ \(2x + 3 \le 11\) gives \(x \le 4\), while \(-2x \le 6\) gives \(x \ge -3\).

Advertisement
Number line with an open circle at a boundary and a shaded ray pointing left
A strict inequality (\(x < \text{value}\)) is shown with an open circle and a ray pointing left.

Worked example

Solve \(2x + 3 \le 11\). Subtract 3: \(2x \le 8\). Divide by 2: \(x \le 4\). Because the relation is "less than or equal," the boundary 4 is included, so the interval is \((-\infty, 4]\). On a number line, draw a filled dot at 4 and shade to the left.

Two number lines comparing an open circle for strict and a filled dot for inclusive inequalities
Open circle for strict (\(<\) or \(>\)) versus filled dot for inclusive (\(\le\) or \(\ge\)).

More Worked Examples: Negative Coefficients and Special Cases

These three examples cover the situations that trip people up most: dividing by a negative number, an inclusive inequality, and a zero coefficient.

Example 1: Negative coefficient (the sign flips)

Solve \(-3x + 5 > 11\).

  1. Subtract 5 from both sides: \(-3x > 11 - 5 = 6\).
  2. Divide both sides by \(-3\). Dividing by a negative number reverses the inequality, so \(>\) becomes \(<\): \(x < \dfrac{6}{-3}\).
  3. Result: \(x < \) 11, boundary value">-2.

Interval notation: (-∞, -2). The inequality is strict, so the number line has an open circle at -2 with shading to the left. Check: x = -3 gives \(-3(-3) + 5 = 14 > 11\), which is true.

Example 2: Inclusive inequality (filled dot)

Solve \(4x - 7 \ge 5\).

  1. Add 7 to both sides: \(4x \ge 12\).
  2. Divide by 4 (positive, so the sign stays): \(x \ge \dfrac{12}{4}\).
  3. Result: \(x \ge \)3.

Interval notation: [3, ∞). The inequality includes 3, so the number line has a filled dot at 3 with shading to the right. Check: x = 3 gives \(4(3) - 7 = 5 \ge 5\), which is true.

Example 3: When a = 0

If the coefficient of x is zero, x disappears and the statement is either always true or always false.

  • \(0x + 2 \le 5\) becomes \(2 \le 5\), which is true for every x. The solution is all real numbers, (-∞, ∞).
  • \(0x + 6 < 5\) becomes \(6 < 5\), which is false for every x. There is no solution: the empty set, ∅.

In these cases there is no boundary value to divide out, because dividing by \(a = 0\) is undefined.

Inequality Symbols, Number Line Dots and Interval Notation

This table assumes a positive coefficient on x, so the form is \(x \; \text{relation} \; 4\). If you divide by a negative number, flip the relation first.

Relation Meaning in words Circle type Shading direction Bracket style Example (interval notation)
< less than Open circle Left Parenthesis ) at the boundary x < 4 → (-∞, 4)
≤ less than or equal to Filled dot Left Square bracket ] at the boundary x ≤ 4 → (-∞, 4]
> greater than Open circle Right Parenthesis ( at the boundary x > 4 → (4, ∞)
≥ greater than or equal to Filled dot Right Square bracket [ at the boundary x ≥ 4 → [4, ∞)

Note: ∞ and -∞ are not real numbers, so they always take a parenthesis, never a square bracket.

Advertisement

Key Terms in Inequalities

Linear inequality
An inequality in which the variable appears only to the first power, such as \(ax + b \le c\).
Coefficient (a)
The number multiplying x. If it is negative, the inequality sign must be reversed when you divide by it.
Constant (b)
The number added to or subtracted from the x term. You remove it by doing the opposite operation on both sides.
Boundary (critical) value
The value of x where the two sides are equal, \(x = \dfrac{c - b}{a}\). It separates solutions from non-solutions.
Strict vs. inclusive inequality
A strict inequality (< or >) excludes the boundary value. An inclusive inequality (≤ or ≥) includes it.
Solution set
All values of x that make the inequality true.
Interval notation
A compact way to write a solution set using endpoints, with parentheses for excluded endpoints and square brackets for included ones, e.g. [3, ∞).
Ray
A part of the number line that starts at one point and extends forever in one direction. Solutions of a single linear inequality form a ray.
All real numbers
The case where every x works, written (-∞, ∞). It happens when a = 0 and the remaining statement is true.
Empty set
The case where no x works, written ∅. It happens when a = 0 and the remaining statement is false.
Number line graph
A picture of the solution set: a dot or circle at the boundary value, with shading along the ray of solutions.

FAQ

When do I flip the sign? Only when you multiply or divide both sides by a negative number — here, whenever \(a < 0\).

What if a = 0? Then x disappears and the statement is either always true (all real numbers) or always false (no solution), depending on b and c.

Open or closed bracket? Use a closed bracket [ ] for \(\le\) and \(\ge\), and an open bracket ( ) for \(<\) and \(>\). Infinity always gets an open parenthesis.

Last updated:

Most popular in Math and Statistics

View all Math and Statistics calculators