Algebra • Core Flagship Pillar

Inequality Calculator

Solve single-variable linear inequalities ($ax + b \le cx + d$), compound bounded ranges ($L \le bx + c \le R$), and absolute value inequalities ($|ax + b| \le c$) with interactive real number line visualization, exact interval notation, and step-by-step algebraic derivations.

|
Last Updated: September 2026
|
Verified Accurate: Real Analysis Interval Engine

Enter Inequality Expression

Preset Examples
Format: ax + b [Sign] cx + d
Real Number Line Solution Graph
Interval Notation
(-∞, 5]
Continuous Real Interval
Set Builder Notation
{ x | x ≤ 5 }
Algebraic Condition
∑

Step-by-Step Inequality Algebraic Derivation

Direct Answer & Overview
Verified Educational Guide

How to Solve an Algebraic Inequality

To solve an algebraic inequality ax + b ≤ cx + d, group variable terms on one side and constant terms on the other: (a − c)x ≤ (d − b). Divide both sides by the variable coefficient (a − c). If dividing or multiplying by a negative number, immediately flip the inequality symbol (≤ becomes ≥). Express final solutions in interval notation [k, ∞) or (−∞, k] and plot on a real number line using closed dots for inclusive boundaries (≤, ≥) and open circles for strict boundaries (<, >).

Primary Mathematical Formula Linear Inequality Transposition and Negative Sign Reversal Rule
Standard Equation
ƒ(x)
Q.E.D.
ax+b≤cx+d  ⟹  (a−c)x≤(d−b)  ⟹  x≤d−ba−c(flip if a−c<0)ax + b \le cx + d \implies (a - c)x \le (d - b) \implies x \le \frac{d - b}{a - c} \quad (\text{flip if } a - c < 0)
Infinity (∞ and -∞) always takes parentheses ')' or '(' because it represents an unbounded horizon rather than a reachable numeric endpoint.
Exact Formula
Input Parameters
Required
1
Inequality Mode — Linear (ax+b ≤ cx+d), Compound (L ≤ bx+c ≤ R), or Absolute Value (|ax+b| ≤ c)
2
Boundary Constants — Real coefficients and comparison operators (<, ≤, >, ≥)
Expected Outputs
Calculated
Inequality Solution — Simplified inequality stating the valid range for variable x
Interval Notation — Standard mathematical range using brackets [ ] and parentheses ( )
Number Line Graph — Real number line plot with shaded solution rays and endpoint markers
Worked Numerical Example
Instant Verification
Solve the linear inequality -3x + 4 > 16.
→ Subtract 4 from both sides: -3x > 12. Divide both sides by -3 and flip the inequality sign (> becomes <): x < 12 / (-3) = -4.
Result: Inequality: x < -4 | Interval: (-∞, -4) | Set Builder: { x ∈ ℝ | x < -4 }.

Linear Inequality Principles & The Negative Sign Flip Rule

In real analysis and algebra, an inequality defines an order relation between two mathematical expressions using one of four comparison operators: strictly less than ($<$), less than or equal to ($\le$), strictly greater than ($>$), or greater than or equal to ($\ge$).

While a linear equation $ax + b = c$ typically isolates a single discrete point on the real number line, an inequality typically delineates an infinite continuum of values satisfying the order relation. For visual two-dimensional plotting of inequalities, explore our Graph Linear Inequality Tool.

The Fundamental Reversal Law (The Golden Rule)
Multiplying or dividing both sides of an inequality by a negative real number reverses the direction of the inequality symbol.

Mathematical Proof: Consider two real numbers $a$ and $b$ such that $a < b$. By the axiom of order, $b - a > 0$. If we multiply both sides by $-1$, we examine the difference $(-a) - (-b) = b - a > 0$. Because $(-a) - (-b)$ is strictly positive, $-a$ must be strictly greater than $-b$: $-a > -b$. Geometrically, multiplication by $-1$ reflects the number line across the origin $0$, reversing left-to-right relative positions.

Interval Notation, Endpoint Geometry & Set Builder Form

Communicating inequality solutions requires standardized mathematical notations that capture continuous intervals without ambiguity:

1. Interval Notation
[a, b],   (a, b),   (-∞, k],   [k, ∞)

Square brackets $[ \, ]$: Indicate inclusive boundary endpoints where the boundary value itself satisfies the relation ($\le, \ge$). Displayed on number line plots as solid closed circles.

Parentheses $( \, )$: Indicate strict exclusions ($<, >$) or unbounded horizons ($-\infty, \infty$). Displayed on number line plots as open hollow circles.

2. Set Builder Notation
&#123; x ∈ ℝ | x ≥ k &#125;

Formally reads: "The set of all real numbers $x$ such that $x$ is greater than or equal to $k$." Set builder notation explicitly anchors the domain in the real field $\mathbb{R}$.

Compound Inequalities: Conjunctions (AND) vs. Disjunctions (OR)

A compound inequality connects two distinct inequality statements using logical operators:

Conjunction (AND / Intersection $\cap$)

a ≤ x ≤ b

Requires that both conditions hold simultaneously. Solved by performing operations simultaneously across all three parts of the inequality chain:

$$-4 \le 2x + 6 < 14 \implies -10 \le 2x < 8 \implies -5 \le x < 4 \implies [-5, 4)$$

Produces a single bounded line segment on the real number line spanning between endpoints.

Disjunction (OR / Union $\cup$)

x < a  or  x > b

Satisfied if either individual condition holds true. Solved by treating each inequality independently and uniting their solution sets:

$$3x - 1 < -7 \quad \text{or} \quad 2x + 5 \ge 13 \implies x < -2 \quad \text{or} \quad x \ge 4 \implies (-\infty, -2) \cup [4, \infty)$$

Produces two disconnected rays extending outward toward positive and negative infinity.

Absolute Value Inequalities & Distance Metrics

The absolute value $|u|$ geometrically represents the Euclidean distance of a coordinate $u$ from the origin $0$. This geometric definition governs the transformation of absolute value inequalities into algebraic compound forms:

Bounded Distance: |u| ≤ c
$$-c \le u \le c \quad (\text{Bounded Interval})$$

States that the distance from the origin is at most $c$ units. For example, $|2x - 3| \le 7 \implies -7 \le 2x - 3 \le 7 \implies -4 \le 2x \le 10 \implies [-2, 5]$.

Outward Distance: |u| ≥ c
$$u \le -c \quad \text{or} \quad u \ge c \quad (\text{Disjoint Rays})$$

States that the distance from the origin is at least $c$ units. For example, $|x + 2| > 4 \implies x + 2 < -4 \text{ or } x + 2 > 4 \implies (-\infty, -6) \cup (2, \infty)$.

Special Negative Constant Cases: If $c < 0$, $|u| < c$ has no solution ($\emptyset$) because distance can never be negative. Conversely, $|u| > c$ is satisfied by all real numbers ($(-\infty, \infty)$) because absolute values are non-negative. To compare individual values directly, test our Greater Than or Less Than Calculator.

Comprehensive Inequality Classification Matrix

The reference table below synthesizes algebraic forms, logical endpoint classifications, and graphical representations:

Inequality Statement Boundary Type Interval Notation Number Line Dot Set Builder Notation
x > k Strict / Ray to $+\infty$ (k, ∞) Open Circle &#123; x ∈ ℝ | x > k &#125;
x ≥ k Inclusive / Ray to $+\infty$ [k, ∞) Solid Circle &#123; x ∈ ℝ | x ≥ k &#125;
x < k Strict / Ray to $-\infty$ (-∞, k) Open Circle &#123; x ∈ ℝ | x < k &#125;
x ≤ k Inclusive / Ray to $-\infty$ (-∞, k] Solid Circle &#123; x ∈ ℝ | x ≤ k &#125;
a ≤ x < b Compound Half-Open [a, b) Solid at a, Open at b &#123; x ∈ ℝ | a ≤ x < b &#125;

Real-World Applications in Engineering, Quality Control & Budgets

Inequalities are fundamental mathematical representations of limits, boundaries, tolerances, and resource constraints:

1. Precision Mechanical Engineering & CNC Tolerances

Aerospace and automotive engine components must satisfy rigorous dimensional tolerances to prevent friction failure or fluid leakage. If a piston cylinder requires an optimal diameter of $85.000\text{ mm}$ with a maximum allowable error of $0.015\text{ mm}$, quality control engineers express this as $|d - 85.000| \le 0.015$. Expanding yields the acceptable production window: $[84.985\text{ mm}, 85.015\text{ mm}]$.

2. Operations Research & Linear Programming Constraints

Supply chain logistics managers maximize profit subject to linear inequalities representing finite warehouse capacity, transportation fleet hours, and raw material availability: $3x_1 + 5x_2 \le 1200\text{ hours}$. In linear programming, the feasible region is defined by the intersection of these half-plane inequalities.

3. Corporate Finance & Break-Even Feasibility

A startup evaluating production profitability formulates revenue and expense inequality models: $\text{Revenue}(q) \ge \text{Fixed Overhead} + \text{Variable Unit Cost} \cdot q$. The resulting inequality $45q \ge 60000 + 15q \implies 30q \ge 60000 \implies q \ge 2000\text{ units}$ establishes the minimum operational production threshold.

Step-by-Step Worked Numerical Case Studies

Case Study 1: Multi-Step Inequality with Variable on Both Sides

Problem: Solve $4(2x - 3) \ge 11x + 6$.

Step 1 (Distribute): 8x - 12 ≥ 11x + 6
Step 2 (Group Variables): 8x - 11x ≥ 6 + 12 ==> -3x ≥ 18
Step 3 (Divide & Flip Sign): x ≤ 18 / (-3) ==> x ≤ -6
Step 4 (Interval Notation): (-∞, -6]
Set Builder: &#123; x ∈ ℝ | x ≤ -6 &#125;
Case Study 2: Absolute Value Inequality with Positive Scalar

Problem: Solve $|3x + 5| > 14$.

Step 1 (Split Disjunction): 3x + 5 < -14 OR 3x + 5 > 14
Step 2 (Branch 1): 3x < -19 ==> x < -19/3 (-6.333)
Step 3 (Branch 2): 3x > 9 ==> x > 3
Step 4 (Union Interval): (-∞, -19/3) ∪ (3, ∞)

Common Traps, Infinity Brackets & Sign Errors

Failing to Reverse Inequality When Dividing by Negative Numbers

If $-2x \le 10$, dividing by $-2$ requires flipping $\le$ to $\ge$: $x \ge -5$. Failing to reverse this symbol inverts the entire solution ray across the number line.

Using Square Brackets on Infinity

Writing $[3, \infty]$ is mathematically incorrect. Infinity is an unbounded directional limit, not a real number that can be included. Always write $[3, \infty)$.

Splitting Compound Inequalities with Inverted Bounds

When solving compound forms like $10 > 2x + 4 \ge 2$, remember that reversing operators preserves validity: $2 \le 2x + 4 < 10 \implies -2 \le 2x < 6 \implies -1 \le x < 3$. Always maintain consistent left-to-right ascending order.

Fact-Checked & Verified • Computational Accuracy Standards
Updated September 2026 • Editorial Policy
Authored By
Sanjay Samanta

Lead Developer & Founder of Basic Math Tools. Specializes in browser-native computational algorithms and applied mathematics.

Reviewed & Verified By
Academic Review Board

Mathematics & curriculum specialists. Audited against standard algebraic and arithmetic principles.

Found an error or have an improvement suggestion? Report a calculation issue

Frequently Asked Questions

How do you solve a linear inequality step-by-step?
Solving a linear inequality follows the same inverse-operation principles as solving linear equations: apply addition and subtraction to group variable terms on one side and constants on the other, then multiply or divide by the coefficient. The critical distinction is the Golden Rule: whenever you multiply or divide both sides by a negative real number, you must reverse (flip) the direction of the inequality sign (e.g., < becomes >, and ≤ becomes ≥).
What is the difference between Interval Notation and Set Builder Notation?
Interval notation expresses solutions as continuous subsets of the real number line using brackets [ ] for inclusive endpoints (≤, ≥) and parentheses ( ) for non-inclusive endpoints (<, >) and infinities (-∞, ∞). Set builder notation explicitly states the logical condition governing the set within mathematical braces, such as { x ∈ ℝ | x ≥ 3 }.
How do you solve compound inequalities (AND vs. OR)?
Compound inequalities joined by "AND" (conjunctions) represent mathematical intersections where the variable must satisfy both constraints simultaneously, producing a bounded segment like [a, b]. Compound inequalities joined by "OR" (disjunctions) represent mathematical unions where the variable satisfies either constraint, producing two disjoint rays like (-∞, a] ∪ [b, ∞).
How do you solve an absolute value inequality |u| ≤ c vs. |u| ≥ c?
For any positive constant c: |u| ≤ c represents a distance within c units of zero on the real number line, converting into the bounded compound inequality -c ≤ u ≤ c. In contrast, |u| ≥ c represents a distance of at least c units away from zero, converting into two disjoint rays: u ≤ -c OR u ≥ c. If c is negative, |u| < c has no solution, while |u| > c is satisfied by all real numbers.
Why does multiplying or dividing by a negative number flip the inequality symbol?
Multiplying by a negative number reflects numbers across the origin (0) on the real number line, reversing their spatial order. For example, since 2 < 5, multiplying both sides by -1 yields -2 and -5; because -2 lies farther to the right on the number line than -5, the order is inverted: -2 > -5.
How are inequalities used in engineering tolerances, economics, and optimization?
In precision mechanical engineering, allowable manufacturing tolerances are defined by absolute value inequalities such as |diameter - 50.0mm| ≤ 0.02mm. In financial management and operations research, inequalities formulate budget, resource, and labor capacity constraints in linear programming optimization models.