Math calculators

Inequality Calculator

Updated Dec 3, 2026 By Infinity Calculator Formulas Sources
4.1 · Rate
Enter Your Inequality
Auto-Detect will classify the inequality for you.
Tip: type >= for ≥, <= for ≤, != for ≠. Use ^ for powers, sqrt( ), | |, log2( ), ln( ).
-3 < 2x + 1 \le 7
Example inequalities
Accepted: txt, pdf, doc, png, jpeg, jpg; max 32MB, one file. Text (.txt) files auto-fill the input.

Solution Summary

Type: —
Original-3 < 2x+1 \le 7
Inequality notation—
Interval notation—
Set-builder notation—

Interval notation

—

Step-by-Step Solution

Enter values for each variable and test whether the inequality holds.


Introduction

An inequality is a math statement that compares two values using symbols like < (less than), > (greater than), ≤ (less than or equal to), and ≥ (greater than or equal to). Instead of finding one exact answer like an equation, an inequality usually gives you a range of values that make the statement true.1

This inequality calculator solves linear, quadratic, absolute value, rational, radical, logarithmic, exponential, and compound inequalities. Type your inequality into the input field and press Calculate. The tool will show your answer in inequality notation, interval notation, and set-builder notation. It also gives you a step-by-step solution, a number line graph, and a coordinate graph so you can see exactly where your solution set lies.

You can use the built-in math keyboard to enter special symbols, test values with the evaluate tab, or check your own work with the verify tab. This calculator breaks down each problem into clear steps so you can learn how to solve inequalities on your own.

How to Use Our Inequality Calculator

Enter any inequality and this calculator will solve it for you. It shows the answer in multiple forms, gives step-by-step work, and draws a number line and graph of the solution.

Inequality Type: Pick a type from the dropdown menu to see an example of how to type that kind of inequality. You do not have to pick one. The calculator works out the type from what you enter and shows it at the top of the results.

Inequality: Type your inequality into the input box. Use > for greater than, < for less than, >= for greater than or equal to, and <= for less than or equal to. Use ^ for exponents, sqrt() for square roots, and | | for absolute value. A live preview shows your inequality in math notation as you type.

Math Keyboard: Click "Show Keyboard" if you need help typing math symbols. It has tabs for Algebra, Trigonometry, and Calculus symbols you can insert with one click.

Quick Operations: Click Solve to find the solution. Simplify, Factor, Expand, Find Domain, Find Intercepts, and Find Vertex open the Simplify tab, which shows more details about your expression.

Example Inequalities: Click any example tile to load a sample problem into the calculator. Click "Show More Examples" to see additional options.

Upload a File: Upload a .txt file that contains an inequality, and its first line fills the input box automatically. For a photo or another document, type the inequality into the box instead.

Solve For: When your inequality has more than one variable, use this dropdown to pick which variable to solve for.

Variable Sliders: Turn on "Show variable sliders" to drag sliders and test different values. The calculator tells you if the inequality is true or false at each value.

Results: After you click Calculate, the solution summary shows your answer in inequality notation, interval notation, and set-builder notation. Use the tabs below to view the step-by-step solution, number line, graph, evaluate tool, algebraic details, or the answer checker.

Verify Your Answer: Go to the Verify tab, type in your own answer, and click "Check My Answer" to see if it matches the correct solution.

What Is an Inequality?

An inequality is a math statement that compares two values using symbols like < (less than), > (greater than), ≤ (less than or equal to), and ≥ (greater than or equal to). Unlike an equation, which says two things are equal, an inequality says one side is bigger or smaller than the other. With ≤ or ≥, the two sides can also be equal.

For example, 2x + 1 > 5 asks: what values of x make the left side larger than 5? The answer is not just one number. It is a whole range of numbers. In this case, every number greater than 2 works.

Types of Inequalities

There are several common types of inequalities you will see in algebra:

  • Linear inequalities can be written as ax + b < c, where a is not 0 and the sign can be any of <, >, ≤ or ≥, like 3x − 4 < 8. These are solved much like a basic solve for x problem.
  • Quadratic inequalities have a squared variable, like x² − 9 > 0. You can find the boundary points using the quadratic formula.2
  • Compound inequalities join two inequalities together, like −3 < 2x + 1 ≤ 7. In a chain like this one, both parts must be true at the same time.1 When two inequalities are joined by "or," only one of them needs to be true.6
  • Absolute value inequalities use absolute value bars, like |x − 2| < 5. These measure distance from a point on the number line.1
  • Rational inequalities have a variable in the denominator, like 1/(x − 2) > 0.

How to Solve an Inequality

Solving an inequality is a lot like solving an equation. You add, subtract, multiply, or divide both sides to get the variable alone. There is one important rule to remember: if you multiply or divide both sides by a negative number, you must flip the inequality sign.1 For example, if you divide both sides by −2, a < sign becomes a > sign.

How to Show the Answer

The solution to an inequality is usually a range of numbers. You can write it in several ways:

  • Inequality notation uses symbols, like x > 2.
  • Interval notation uses brackets and parentheses, like (2, ∞). A parenthesis means the endpoint is not included. A bracket means it is included.1
  • Set-builder notation uses a rule, like { x | x > 2 }, which reads "all real numbers x such that x is greater than 2."1
  • Number line: a drawing that shades the part of the line where the answer lives. An open circle means the point is not included. A filled circle means it is.

Inequalities are used in everyday life more than you might think. They help set speed limits, budget ranges, age requirements, and safe temperatures. Any time you see a rule that says "at least," "no more than," or "between," you are looking at an inequality.


Formulas used

Discriminant of a Quadratic 3
\Delta = b^{2} - 4ac
Quadratic Formula (Boundary Roots) 3
x = \frac{-b \pm \sqrt{b^{2} - 4ac}}{2a}
Vertex of a Parabola 4
\left( \frac{-b}{2a},\; a\left(\frac{-b}{2a}\right)^{2} + b\left(\frac{-b}{2a}\right) + c \right)
Linear Inequality Solution 1
mx + b \; \lessgtr \; 0 \implies x \; \lessgtr \; \frac{-b}{m} \quad (\text{flip the sign if } m < 0)
Logarithm Change of Base 5
\log_{b}(x) = \frac{\ln(x)}{\ln(b)}
Quadratic Coefficient Fitting from Samples
a = \frac{f(1) + f(-1) - 2f(0)}{2}, \quad b = \frac{f(1) - f(-1)}{2}, \quad c = f(0)

Frequently asked questions

What does interval notation mean?

Interval notation is a short way to write a range of numbers. A parenthesis like ( or ) means the endpoint is not included. A bracket like [ or ] means the endpoint is included. For example, (2, 5] means all numbers greater than 2 and up to and including 5. The symbol ∞ always gets a parenthesis because infinity is not a real number you can reach.1

What does set-builder notation mean?

Set-builder notation describes a solution set using a rule.1 It looks like { x ∈ ℝ | x > 3 }. This reads as "the set of all real numbers x such that x is greater than 3." The vertical bar | means "such that," and ℝ stands for all real numbers.7

Why did the inequality sign flip in my solution?

When you multiply or divide both sides of an inequality by a negative number, the inequality sign flips.1 For example, if you divide both sides by −2, a < sign becomes a > sign. The calculator warns you when this happens in the step-by-step solution with a yellow alert box.

What does "No Solution" mean?

"No solution" means there is no value that makes the inequality true. For example, x² < −1 has no solution because a squared number can never be negative.7 The calculator shows this as the empty set symbol ∅.

What does "All Real Numbers" mean?

"All real numbers" means every possible number makes the inequality true. For example, x² ≥ 0 is always true because any number squared is zero or positive.7 In interval notation this is written as (−∞, ∞).

What is the difference between an open circle and a closed circle on the number line?

An open circle (hollow) means the value is not part of the solution. This happens with strict inequalities like < or >. A closed circle (filled) means the value is included. This happens with ≤ or ≥.

How do I test a specific number in the inequality?

Click the Evaluate tab. Enter a number for each variable and click Calculate. The calculator plugs your values into the inequality and tells you if the result is true or false.

What does the union symbol ∪ mean in the answer?

The ∪ symbol means "or." It joins two separate solution intervals.1 For example, (−∞, −3) ∪ (3, ∞) means x can be any number less than −3 or any number greater than 3. The values between −3 and 3 are not part of the solution.

What is a compound inequality?

A compound inequality joins two inequalities into one statement, like −3 < 2x + 1 ≤ 7. In a chain like this, both parts must be true at the same time.1 The solution is the overlap (intersection) of both individual solutions.6 When two inequalities are joined by "or," the solution is every number that makes either one true, which is the union of the two.6 You can solve a chain by splitting it into two inequalities, or by working on all three parts at the same time.1

Sources

  1. Abramson J. College Algebra 2e, 2.7 Linear Inequalities and Absolute Value Inequalities. OpenStax. 2021;§ 2.7. Accessed September 28, 2026.
  2. Marecek L, Honeycutt Mathis A. Intermediate Algebra 2e, 9.8 Solve Quadratic Inequalities. OpenStax. 2020;§ 9.8. Accessed September 28, 2026.
  3. Abramson J. College Algebra 2e, 2.5 Quadratic Equations. OpenStax. 2021;§ 2.5. Accessed September 28, 2026.
  4. Abramson J. College Algebra 2e, 5.1 Quadratic Functions. OpenStax. 2021;§ 5.1. Accessed September 28, 2026.
  5. Abramson J. College Algebra 2e, 6.5 Logarithmic Properties. OpenStax. 2021;§ 6.5. Accessed September 28, 2026.
  6. Marecek L, Honeycutt Mathis A. Intermediate Algebra 2e, 2.6 Solve Compound Inequalities. OpenStax. 2020;§ 2.6. Accessed November 22, 2026.
  7. Strang G, Herman E. Calculus Volume 1, 1.1 Review of Functions. OpenStax. 2016;§ 1.1. Accessed November 22, 2026.