How to Solve Linear Inequalities
A linear inequality looks like an equation, except the equals sign is replaced by >, <, ≥, or ≤. Instead of one answer, you get a whole range of answers — every number that makes the statement true. That range is usually the honest answer to a real question, because life rarely asks for one exact value: it asks how much you can spend at most, how many marks you need at least, or which temperatures are still safe. Solving works almost exactly like solving equations — isolate x with inverse operations — with one famous exception about negative numbers that this solver handles for you and flags in its steps.
The Symbols in ax + b > c, One by One
Every inequality this solver handles fits the template ax + b (sign) c. The coefficient a is the number multiplying x; it controls how steeply the left side grows, and its sign decides whether the inequality flips at the final step. The constant b is the number added to the x-term, and c is the target value on the right-hand side. The sign is one of four: > and < are strict, excluding the endpoint, while ≥ and ≤ include it. Solving always produces a boundary value, (c − b) ÷ a, and the final answer is every number on one side of that boundary, with the sign flipped if a is negative.
How to Use This Solver
- Enter a — the coefficient of x in your inequality — in the first box, including a minus sign if the coefficient is negative.
- Enter b — the constant added to the x-term — in the second box; the display assembles your inequality as ax + b (sign) c as you type.
- Choose the sign from the dropdown (>, <, ≥, or ≤) and enter c, the value on the right-hand side, in the last box.
- Read the result panel, which updates live: the solution in the form x (sign) boundary, the interval notation, numbered solving steps that call out any sign flip, and a number line graph with the endpoint drawn as an open or filled dot.
The Golden Rule: Flip on Negatives
Add, subtract, multiply, or divide both sides just like an equation — except when you multiply or divide by a negative number, you must flip the inequality sign. So −3x < 9 becomes x > −3. Forgetting this flip is the #1 mistake students make.
Reading the Answer
- Inequality form: x > 4 — direct and familiar.
- Interval notation: (4, ∞) — compact; round brackets exclude, square brackets include.
- Number line: a ray starting at the endpoint with an open or filled dot — the graph above draws it for you.
Worked Example 1: Solve −2x + 5 ≤ 13
- Subtract 5 from both sides: −2x ≤ 8.
- Divide by −2 — and flip the sign: x ≥ −4.
- Check the boundary: at x = −4, −2(−4) + 5 = 13, so the endpoint is included and the dot on the number line is filled.
- Interval notation: [−4, ∞).
Read the working slowly and notice where the drama happens. The subtraction step is ordinary equation-solving and changes nothing about the direction of the sign. The division step is the dangerous one: dividing by −2 reverses the order of the number line, so ≤ must become ≥ to keep the statement true. Test the answer with a value comfortably inside the range, say x = 0: −2(0) + 5 = 5, and 5 ≤ 13 is true. Test one outside, say x = −10: −2(−10) + 5 = 25, and 25 ≤ 13 is false, exactly as it should be. In the solver this is a = −2, b = 5, sign ≤, c = 13.
Worked Example 2: Solve 3x − 7 < 8
This time nothing flips, which is its own lesson. Add 7 to both sides to undo the subtraction: 3x < 15. Divide both sides by 3 — a positive number, so the sign stays exactly as it is: x < 5. The solution in interval notation is (−∞, 5), and the number line carries an open dot at 5 because the strict sign excludes the endpoint. Check the boundary honestly: at x = 5, 3(5) − 7 = 8, and 8 < 8 is false, confirming 5 is not a solution. Check a value inside the range, x = 0: 3(0) − 7 = −7, and −7 < 8 is true. To reproduce it above, enter a = 3, b = −7, sign <, c = 8 — note how a subtracted constant is entered as a negative b.
How to Solve an Inequality Step by Step
- Simplify both sides. Combine like terms and clear brackets so the inequality is as simple as possible before you move anything.
- Isolate the variable term. Add or subtract the same number on both sides to gather every x-term on one side and the numbers on the other. Adding and subtracting never changes the direction of the inequality.
- Divide or multiply, watching the sign. If you multiply or divide both sides by a negative number, the inequality sign flips: ≤ becomes ≥ and < becomes >. This is the step where most mistakes happen.
- Check with a test value. Substitute a value from your answer into the original inequality — it must hold. Then try a value just outside the interval: it must not hold.
Worked Examples: The Sign-Flip Rule and Compound Inequalities
Two example types cause most of the trouble: multiplying by a negative, and compound inequalities, which chain two inequalities into one. The final check is the same either way: test values inside and outside the answer.
Example 3: solve −x ≤ 12 (the sign rule). Multiply both sides by −1 and the sign flips: x ≥ −12. Check with x = 0 (inside): −0 = 0 ≤ 12 ✓. Check with x = −20 (outside): −(−20) = 20 ≤ 12 ✗. Both checks agree with the answer.
Example 4: solve the compound inequality −3 < 2x + 1 ≤ 9. Apply each step to all three parts: subtract 1 → −4 < 2x ≤ 8, then divide by 2 → −2 < x ≤ 4. In interval notation the answer is (−2, 4]: −2 is excluded (strict sign) and 4 is included (≤). Check with x = 0 (inside): −3 < 1 ≤ 9 ✓. A compound inequality like this is two inequalities sharing one solution set — x must be greater than −2 and at most 4 at the same time — and every operation goes to all three parts, left, middle and right, so the chain stays balanced, just as it would with an equals sign in the middle.
When Inequalities Are the Right Tool
Budgeting questions are inequalities: if a jacket costs $40 and games cost $15 each, 40 + 15x ≤ 100 tells you how many games fit the budget — at most 4. Grade questions are inequalities too: the minimum average you need on remaining tests is a ≥ problem. Eligibility rules — income at or below a threshold for a benefit, a minimum age, a maximum luggage weight — are all stated as inequalities, and so are safety ranges such as a freezer that must stay at or below −18°C. Whenever the question contains “at most”, “at least”, “no more than”, or “fewer than”, an inequality, not an equation, is the model.
Three Mistakes That Flip Answers Wrong
First, forgetting the flip when dividing or multiplying by a negative — the classic error, and the reason −2x ≤ 8 is so often answered x ≤ −4 instead of x ≥ −4. Second, flipping when you should not: adding or subtracting a negative number, such as moving −7 across the sign, never flips an inequality; only multiplication or division by a negative does. Third, mismatching the endpoint notation: writing a square bracket or drawing a filled dot for a strict > or < claims the boundary value is a solution when the boundary test proves it is not.
Comfortable with equations first? Try our linear equation solver or the algebra calculator.