Account

What new tool do you want?

Math & Education

Linear Inequality Solver

Solve linear inequalities in x like 3x − 5 < 7 or 2(x + 1) ≥ x − 4, flipping the sign correctly, with the answer in inequality and interval notation.

How to use

  1. 1Type the inequality using <, >, <= or >=.
  2. 2Read the solution and its interval notation.

How it's calculated

Rearranged to kx + m (sign) 0. Dividing by a negative k flips the inequality sign.

Frequently asked questions

Why does the sign flip?

Multiplying or dividing both sides by a negative number reverses the order: if −2x < 6 then x > −3.

What's interval notation?

A compact way to write solution sets: x > 4 is (4, ∞); x ≤ 2 is (−∞, 2]. Brackets mean the endpoint is included.

Can it solve quadratic inequalities?

Not yet — only linear ones in x.

A worked example of the sign flip

Take −2x + 1 ≥ 7. Subtracting 1 gives −2x ≥ 6, and dividing both sides by −2 means flipping the inequality: x ≤ −3. This tool solves it the same way internally — it rearranges to kx + m, finds x = −3, and because k (here −2) is negative, flips the operator from ≥ to ≤ automatically, reporting 'Sign flipped? Yes — divided by a negative number' along with the answer, specifically so the flip isn't a silent step you have to trust blindly.

Why the flip happens at all

Multiplying or dividing an inequality by a negative number reverses the order of every pair of numbers on the line: since 2 < 3, multiplying both by −1 gives −2 > −3 — the inequality has to flip to stay true. It's easy to forget this step by hand, which is the single most common error in solving inequalities, so the tool always shows whether a flip occurred rather than just the final answer.

Reading interval notation

The solution x ≤ −3 is written in interval notation as (−∞, −3] — the square bracket means −3 itself is included, while the round bracket on infinity signals there's no actual endpoint there to include. For a strict inequality like x < 4, the interval is (−∞, 4) with a round bracket on both ends, since 4 itself doesn't satisfy x < 4.

5 > 3 is true for every number, and 5 < 3 for none

If no x is left after the two sides are brought together, there is no boundary to solve for. The result is simply whether the statement is already true. 5 > 3 is true, so the answer is All real numbers. 5 < 3 is false, so the answer is No solution. x ≤ x is all real numbers, because the two sides match and ≤ includes the equals case. x < x is no solution, because a number is never strictly less than itself. In these cases you only get that one line — no interval, and no note about a flipped sign — because there is no endpoint to write down.

Two comparison signs are not solved as a range

The solver looks for the first <, >, ≤, or ≥, and it also accepts <= and >=. A chain such as 1 < x < 5 is not read as between 1 and 5. Only the first sign is used, and what is left over is not a straight line in x, so you get the message that only linear and quadratic equations in x are supported here. A squared inequality such as x^2 < 4 is turned away sooner, with the message that only linear inequalities are supported. Write one comparison, such as 3x − 5 < 7 or −2x + 1 ≥ 7.

Related tools

More: Math & Education