Math calculators

Inequality Calculator

Updated Jul 15, 2026 By Jehan Wadia
Rate Formulas
Looking at the finding, the root cause is that `katex.render` reads `el.textContent`, but after the first render KaTeX mutates `textContent` to contain MathML glyphs + `\annotation` source + HTML glyphs. Every subsequent `renderKatex()` / `renderKatexEl()` call re-parses that garbled concatenation. **Fix**: introduce a `data-latex` attribute to persist the original LaTeX source. Both render helpers read from `data-latex` (falling back to `textContent` only for fresh/unseen elements, then immediately storing the source there). Every site that explicitly sets new content also updates `data-latex` so the next render cycle uses the updated source, not stale rendered output. Changes made (4 minimal, localised edits): 1. `renderKatex()` — read/store `data-latex` 2. `renderKatexEl()` — read/store `data-latex` 3. `ineqInput` `input` handler — set `data-latex` before calling `renderKatexEl` 4. `calculate()` origEl block — set `data-latex` before calling `renderKatexEl`
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 gives you a range of values that make the statement true.

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. Whether you are studying for a test or working through homework, 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 the type of inequality from the dropdown menu. Choose "Auto-Detect" if you are not sure. The calculator will figure out the type for you.

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. You can also click Simplify, Factor, Expand, Find Domain, Find Intercepts, or Find Vertex for 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: You can upload a .txt, .pdf, .doc, .png, or .jpg file that contains an inequality. Text files will fill the input box automatically.

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.

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 have a variable with no exponent, 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.
  • Compound inequalities join two inequalities together, like −3 < 2x + 1 ≤ 7. Both parts must be true at the same time.
  • Absolute value inequalities use absolute value bars, like |x − 2| < 5. These measure distance from a point on the number line.
  • Rational inequalities have a variable in the denominator, like 1/(x − 2) > 0. You may also need a fraction calculator when working with complex rational expressions.

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. 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 three main 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.
  • 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. You can find specific points on the line using a midpoint calculator or a distance calculator.

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. For related algebra tools, try our slope calculator, polynomial calculator, or system of equations calculator.


Formulas used

Discriminant of a Quadratic
\Delta = b^{2} - 4ac
Quadratic Formula (Boundary Roots)
x = \frac{-b \pm \sqrt{b^{2} - 4ac}}{2a}
Vertex of a Parabola
\left( \frac{-b}{2a},\; a\left(\frac{-b}{2a}\right)^{2} + b\left(\frac{-b}{2a}\right) + c \right)
Linear Inequality Solution
mx + b \; \lessgtr \; 0 \implies x = \frac{-b}{m} \quad (\text{flip sign if } m < 0)
Logarithm Change of Base
\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 inequality symbols can I type into the calculator?

Use > for greater than, < for less than, >= for greater than or equal to (≥), <= for less than or equal to (≤), and != for not equal to (≠). You can also click the math keyboard button to insert these symbols with one tap.

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.

What does set-builder notation mean?

Set-builder notation describes a solution set using a rule. 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.

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. 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. 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. In interval notation this is written as (−∞, ∞).

How do I enter an absolute value inequality?

You can type absolute value bars using the pipe symbol | | on your keyboard. For example, type |2x - 1| < 5. You can also type abs(2x - 1) < 5. Both forms work the same way.

How do I type exponents and square roots?

Use the ^ symbol for exponents. For example, type x^2 for x squared or x^3 for x cubed. For square roots, type sqrt(x). You can also click the button on the math keyboard.

How do I enter a logarithmic inequality?

Type log(x) for base-10 logarithm, log2(x) for base-2 logarithm, or ln(x) for natural logarithm. For example, enter log2(x) < 4 to find all values of x where the base-2 log is less than 4.

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 .

Can this calculator solve inequalities with two variables?

Yes. When your inequality has more than one variable, the calculator solves for one variable at a time. Use the Solve for dropdown to pick which variable you want to isolate. The other variables are treated as constants, and you can adjust their values using the variable sliders.

How do I check if my own answer is correct?

Click the Verify tab in the results section. Type your answer into the input box, then click Check My Answer. The calculator compares your answer to the correct solution and tells you if it matches or not.

How do I test a specific number in the inequality?

Click the Evaluate tab. Enter a number for each variable and click Evaluate. 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. 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 the colorblind-safe mode?

The colorblind-safe mode changes the colors on the number line and graph so they are easier to see for people with color vision differences. Turn it on by checking the Colorblind-safe mode box under the number line or graph tab.

Can I upload a photo of my inequality problem?

You can upload image files (PNG, JPEG, JPG) using the file upload area, but automatic text reading from images is not supported. For best results, upload a .txt file and the calculator will read the inequality and fill it in automatically. For other file types, you will need to type the inequality yourself.

What is a compound inequality?

A compound inequality joins two inequalities into one statement, like −3 < 2x + 1 ≤ 7. Both parts must be true at the same time. The solution is the overlap (intersection) of both individual solutions. This calculator splits it into two parts, solves each one, then finds where they overlap.

How do I read the graph in the Graph tab?

The graph plots each side of the inequality as a separate line. The shaded region along the x-axis shows where the inequality is true. You can change the x and y range using the input boxes above the graph and click Redraw to zoom in or out.