๐Ÿ‡บ๐Ÿ‡ธ USC
Math & Conversion
โž—

Inequality Calculator

Solve a linear inequality for x with full steps & interval notation

โž— Linear inequality

Enter the inequality in the form aยทx + b (op) c and solve for x.

2x โˆ’ 4 > 10
โœ…

Last updated June 2026

Method: Standard algebra for linear inequalities - isolate x by subtracting the constant and dividing by the coefficient, reversing the inequality sign whenever you divide by a negative number.

Included: The solution in inequality notation (e.g. x > 3) and interval notation, the boundary value, included/excluded endpoints, a number line, and a step-by-step breakdown. Handles the special cases of no solution and all real numbers.

Not included: Compound inequalities, quadratic or higher-degree inequalities, inequalities with x on both sides already combined, and absolute-value inequalities. Results are for learning, not graded work.

Inequality calculator: solve for x, step by step

An inequality calculator takes a statement like 2x − 4 > 10 and tells you exactly which values of x make it true. The answer is not a single number but a whole range - in this case x > 7, or in interval notation (7, +∞). This tool isolates x the same way you would by hand, shows every step, and - crucially - flips the inequality sign automatically whenever you divide by a negative number, the one rule that trips up almost everyone.

A worked example

Take 2x − 4 > 10. First add 4 to both sides to get 2x > 14. Then divide both sides by 2 (a positive number, so the sign stays) to get x > 7. Check it: plug in x = 82(8) − 4 = 12 > 10 โœ“, and x = 710 > 10 is false, so 7 itself is excluded (an open circle on the number line). That exclusion is why the interval uses a parenthesis: (7, +∞).

The formula and the steps

Every linear inequality this tool handles fits the pattern:

a·x + b  (< ≤ > ≥)  c  ⇒  x  (…)  (c − b) ÷ a

The solving recipe is three moves:

  1. Subtract b from both sides: a·x (op) c − b.
  2. Divide by a: x (op) (c − b) ÷ a.
  3. Flip the sign if a < 0: dividing by a negative number reverses the direction of the inequality.

Why you flip the sign

This is the rule that separates inequalities from equations. Consider a true statement like 3 < 5. Multiply both sides by −1 and you get −3 and −5. Is −3 < −5? No - −3 is the larger number, so the correct statement is −3 > −5. The direction had to reverse. The same thing happens any time you multiply or divide both sides by a negative value, which is why this calculator highlights the flip whenever your coefficient a is negative.

How to use this calculator

Enter the four parts of your inequality and press Solve:

  1. a - the coefficient multiplying x (use a negative value to see the sign flip).
  2. b - the constant added to the x term (enter a negative number if it is subtracted).
  3. Comparison - choose <, ≤, > or ≥.
  4. c - the value on the right-hand side.

The live preview shows your inequality as you type. After you solve, read the answer in both inequality and interval notation, see the boundary value and whether it is included, and follow the step table and number line to understand the working.

Reading interval notation

Interval notation is a compact way to write a solution range:

  • Parenthesis ( ) = endpoint excluded, used for strict < and >.
  • Square bracket [ ] = endpoint included, used for and .
  • −∞ and +∞ always take a parenthesis, because infinity is never a reachable endpoint.

So x > 7 becomes (7, +∞), while x ≤ 7 becomes (−∞, 7].

Who this is for

  • Algebra students learning to isolate a variable and remembering when to flip the sign.
  • Parents and tutors who want to show each step rather than just the answer.
  • Anyone checking homework who needs the result in both inequality and interval form.
  • Returning learners brushing up before a placement test or a stats/economics course that uses inequalities.

Three quick scenarios

  • Positive coefficient: 3x + 2 ≤ 113x ≤ 9x ≤ 3, interval (−∞, 3], closed dot at 3.
  • Negative coefficient (sign flips): −2x + 1 < 7−2x < 6 → divide by −2 and flip → x > −3, interval (−3, +∞).
  • No x term: 0x + 5 > 2 reduces to 5 > 2, which is always true, so the answer is all real numbers.

Key terms

  • Coefficient (a): the number multiplying x. Its sign decides whether the inequality flips.
  • Boundary / critical value: the number where both sides are equal - the dividing line between solutions and non-solutions.
  • Strict vs. non-strict: < and > are strict (boundary excluded); and include the boundary.
  • Solution set: all the values of x that make the statement true - a ray on the number line.

What changes the result

  • Sign of a: a negative coefficient reverses the inequality direction.
  • Strict vs. inclusive operator: changes only whether the boundary point is part of the solution (open vs. closed dot).
  • Values of b and c: shift the boundary value left or right but do not change the direction.
  • a = 0: removes x entirely, giving either no solution or all real numbers.

Tips for solving by hand

  • Undo in reverse order: handle addition/subtraction first, then multiplication/division - the opposite of the order of operations.
  • Watch the sign every time you divide: circle the operator and flip it the moment you divide by a negative.
  • Test a point: substitute one number from your answer back into the original inequality to confirm it.
  • Keep the boundary, change only its dot: the number is the same for strict and non-strict; only inclusion differs.

Where inequalities show up in real life

Inequalities are not just textbook exercises - they describe any situation with a limit, a threshold, or a "at least / at most" condition. A few everyday examples translate directly into the a·x + b (op) c form this calculator solves:

  • Budgeting: "I have $200 and each ticket costs $15 plus a $20 fixed fee - how many can I buy?" becomes 15x + 20 ≤ 200, giving x ≤ 12, so at most 12 tickets.
  • Grades: "I need an average of at least 90 over four tests and already have 88, 92, 85" sets up an inequality for the score still needed on the last test.
  • Business break-even: a firm turns a profit only when revenue beats cost, which is an inequality in units sold.
  • Speed and distance: "to arrive within 2 hours at speed x" produces a lower bound on x.

Once you write the situation as a single linear inequality, the solving steps are exactly the ones above. If your problem is about a percentage of a budget rather than a fixed threshold, the Percentage Calculator can help you find the numbers to plug in first.

A worked word problem

Suppose a phone plan charges a $25 base fee plus $0.10 per minute, and you want to keep the bill under $40. Let x be the number of minutes. The bill is 0.10x + 25, and "under $40" means 0.10x + 25 < 40. Subtract 25 from both sides to get 0.10x < 15, then divide by 0.10 (a positive number, so the sign stays) to get x < 150. So you can talk for up to - but not including - 150 minutes and stay under budget. In interval notation that is (−∞, 150), with an open dot at 150 because spending exactly $40 would not be "under" $40. Enter a = 0.10, b = 25, the < operator, and c = 40 to see the same result with every step laid out.

When x appears on both sides

This calculator expects the inequality already arranged as a·x + b (op) c, with all the x terms collected into a single coefficient a. If your problem has x on both sides, do one tidy-up step first. Take 5x + 3 > 2x + 12: subtract 2x from both sides to get 3x + 3 > 12, which is now in standard form with a = 3, b = 3, and c = 12. From there the calculator finishes it: 3x > 9, so x > 3. The rule of thumb is to move every x term to the side where the coefficient stays positive when possible - that way you avoid an extra sign flip. The same trick works for constants: gather all the plain numbers on the opposite side from x.

Graphing the solution on a number line

The number line is the picture of your answer. After solving, you draw a single point at the boundary value and then shade a ray in the direction the inequality points. The dot style encodes strictness: an open (hollow) circle for < or > because the boundary is not part of the solution, and a closed (filled) circle for or because it is. The direction of shading matches the variable: x > 3 shades to the right of 3 (larger numbers), while x < 3 shades to the left. A common slip is to read the original operator instead of the final one - after a sign flip the shading direction follows the solved inequality, not the problem you started with. This calculator draws the line for you so you can sanity-check your hand drawing against it.

Limitations

This is a single-inequality, single-variable solver. It does not handle compound inequalities such as 1 < 2x + 3 ≤ 7, inequalities with an term, absolute-value inequalities, or systems with more than one variable. It also assumes the inequality is already arranged as a·x + b (op) c; if x appears on both sides, move all the x terms to one side first and combine them into a single a. The output is a planning/learning aid, not a substitute for showing your own work on graded assignments.

How it compares to related tools

If your problem is not a plain linear inequality, a sister calculator fits better:

โš ๏ธ Common mistakes & edge cases

Forgetting to flip the sign

The number-one error: dividing or multiplying by a negative coefficient without reversing the inequality. −2x < 6 becomes x > −3, not x < −3. Flip every time the divisor is negative.

Flipping after adding or subtracting

The opposite error: the sign only flips for multiplication or division by a negative. Adding or subtracting a number - even a negative one - never changes the inequality direction.

Mixing up open and closed endpoints

Strict inequalities (<, >) exclude the boundary - use a parenthesis and an open dot. Non-strict (, ) include it - use a bracket and a filled dot.

Writing infinity with a bracket

Infinity is never a reachable endpoint, so it always takes a parenthesis: (−∞, 7] is correct, [−∞, 7] is not.

Note: This calculator is a learning aid for single linear inequalities. Always confirm the answer by substituting a test value back into the original inequality.

❓ Frequently asked questions

How do you solve a linear inequality?

Treat it almost like an equation: isolate x. Start from ax + b (op) c, subtract b from both sides to get ax (op) c - b, then divide both sides by a. The one extra rule is that if a is negative you must flip the inequality sign when you divide. The result is x on one side and the boundary value on the other, for example x > 3.

When do you flip the inequality sign?

You flip (reverse) the inequality sign only when you multiply or divide both sides by a negative number. Adding or subtracting never changes the direction. So if the coefficient a in front of x is negative, dividing by it turns < into >, <= into >=, and so on. This calculator flips automatically and tells you when it happened.

What is interval notation?

Interval notation describes a solution set as a range. A parenthesis ( or ) means the endpoint is excluded (strict < or >), and a square bracket [ or ] means it is included (<= or >=). For example x > 3 is (3, +inf), and x <= 5 is (-inf, 5]. Infinity always uses a parenthesis because it is never a reachable endpoint.

What does an open versus closed circle mean on the number line?

On a number line, an open (hollow) circle marks an endpoint that is not part of the solution, used for strict inequalities (< or >). A closed (filled) circle marks an endpoint that is included, used for <= or >=. The shaded ray shows every value of x that satisfies the inequality.

Why does my inequality have no solution or all real numbers?

If the coefficient a is 0, the x term disappears and the inequality becomes a plain comparison of constants, like 0 < -2. If that comparison is always false you get 'no solution'; if it is always true you get 'all real numbers'. Either way the answer does not depend on x.

How is solving an inequality different from solving an equation?

The algebra is the same - isolate x by undoing operations in reverse order - with one key difference: multiplying or dividing by a negative number flips the inequality sign, which never happens with an equals sign. Also, the answer is a range of values (a solution set) rather than a single number.

Can this calculator solve compound or quadratic inequalities?

No. This tool solves a single linear inequality of the form ax + b (op) c, where x appears to the first power only. Compound inequalities (like 1 < 2x + 3 <= 7) and quadratic inequalities (with an x-squared term) need a different method; for quadratics, find the roots first with the Quadratic Formula Calculator and then test intervals.

How do I check my answer?

Pick any number inside your solution set and substitute it back into the original inequality - it should make a true statement. Then pick a number outside the set; it should make a false statement. For x > 3, testing x = 4 should work and x = 2 should fail. The boundary value itself works only for <= and >=.

What does the boundary value represent?

The boundary (or critical) value is the number where the two sides are exactly equal - the dividing line between solutions and non-solutions. For x >= 3 the boundary is 3, and it is included; for x > 3 it is the same 3 but excluded. The boundary is the same whether the inequality is strict or not; only its inclusion changes.

Is the solution to an inequality a single number?

Usually no. A linear inequality has infinitely many solutions - every number on one side of the boundary. That is why the answer is written as a range (x > 3) or an interval ((3, +inf)) rather than a single value, and why it is drawn as a shaded ray on a number line.

How do I solve an inequality with x on both sides?

First move all the x terms to one side and all the constants to the other, just like with an equation. For example, 5x + 3 > 2x + 12 becomes 3x + 3 > 12 after subtracting 2x, then 3x > 9, then x > 3. Once everything is collected into the single form ax + b (op) c you can enter the numbers here. Moving terms by adding or subtracting never flips the sign; only dividing by a negative does.

What does open versus closed (strict versus non-strict) mean?

A strict inequality uses < or > and excludes the boundary value - the boundary is drawn as an open circle and written with a parenthesis in interval notation. A non-strict inequality uses <= or >= and includes the boundary - a closed (filled) circle and a square bracket. The boundary number itself is identical either way; only whether it counts as a solution changes.

Can I use decimals or fractions in this calculator?

Yes. The coefficient a and the constants b and c can be whole numbers, decimals, or negative values, so a problem like 0.10x + 25 < 40 works directly. If your coefficients are fractions, convert them to decimals first, or clear the fractions by multiplying both sides by the common denominator before entering the numbers.

๐Ÿ’ก Good to know

The boundary value is the same either way

Whether your operator is strict or inclusive, the boundary number does not change - only whether it is part of the answer. x > 3 and x ≥ 3 share the boundary 3; one excludes it (open dot), the other includes it (filled dot).

Solving inequalities mirrors solving equations

The steps are identical to solving ax + b = c - with one exception: dividing or multiplying by a negative number flips the inequality. If you can solve the equation, you can solve the inequality.

Always test a point

Pick any number inside your solution set and substitute it back into the original inequality - it should hold. A number outside the set should fail. This 30-second check catches a flipped sign or a misread endpoint instantly.

Related Calculators