Linear Inequality Calculator

Solve ax + b < cx + d (or ≤, >, ≥) step by step. Flips the sign when dividing by a negative and gives the answer in interval notation.

The inequality is ax + b (sign) cx + d. Use 0 for a missing term: for 3x − 1 > 5 enter a = 3, b = −1, c = 0, d = 5.

Results

Solution
x ≤ 1
Interval notation
(−∞, 1]
A square bracket means the endpoint is included.
Boundary value
1.00
Sign reversed?
Yes: you divided by −17, a negative number, so ≥ became ≤.
Steps
−7x + 13 ≥ 10x − 4 Subtract 10x from both sides: −17x + 13 ≥ −4 Subtract 13 from both sides: −17x ≥ −17 Divide both sides by (−17). Dividing by a negative number reverses the inequality: x ≤ 1 Check with x = 1: left side = 6, right side = 6, and 6 ≥ 6 is true.

How it’s calculated

Solve a linear inequality the same way as a linear equation: collect the x terms on one side and the numbers on the other, then divide by the coefficient of x. The one extra rule: multiplying or dividing both sides by a negative number reverses the inequality sign (< becomes >, ≤ becomes ≥).

ax + b < cx + d (a − c)x < d − b x < (d − b) ÷ (a − c) if a − c > 0 x > (d − b) ÷ (a − c) if a − c < 0 (sign reversed)

Interval notation. A round bracket ( ) leaves the endpoint out (for < and >); a square bracket [ ] includes it (for ≤ and ≥). Infinity always gets a round bracket.

InequalityInterval
x < 2(−∞, 2)
x ≤ 2(−∞, 2]
x > 2(2, ∞)
x ≥ 2[2, ∞)

Example: 13 − 7x ≥ 10x − 4. Subtract 10x from both sides: −17x + 13 ≥ −4. Subtract 13: −17x ≥ −17. Divide by −17 and reverse the sign: x ≤ 1, or (−∞, 1] in interval notation. Check x = 1: 13 − 7 = 6 and 10 − 4 = 6, and 6 ≥ 6 is true.

If the x terms cancel (a = c), the inequality is either always true (every real number is a solution) or never true (no solution). Fractions are kept exact, so the boundary is shown as a fraction such as 15/34 when it does not terminate as a decimal.

Frequently asked questions

Why does the inequality sign flip when I divide by a negative number?

Multiplying or dividing by a negative number reverses the order of numbers on the number line: 2 < 3, but −2 > −3. To keep the statement true, the sign has to turn around.

Does the sign flip when I subtract a negative number?

No. Adding or subtracting any number, positive or negative, never changes the direction of the sign. Only multiplying or dividing by a negative number does.

How do I write x ≤ 1 in interval notation?

(−∞, 1]. The square bracket shows that 1 is included; infinity always takes a round bracket.

What if the x terms cancel out?

You are left with a statement about numbers only, such as 0 < 5 (always true, so every x is a solution) or 0 > 5 (never true, so there is no solution).

Embed this calculator

Add this free calculator to your own website. Copy the code below into your page’s HTML:

Need this calculator branded, changed or built around your own prices?See custom business solutions →

Sources

Formulas are taken from the free public references above. Results are provided “as is” for informational and educational purposes only. See our disclaimer.

Added · Last updated · How we check our calculators

Spotted a mistake or missing option? Report a problem· Suggest a calculator