Inequality Calculator
Home/Calculator/Linear Inequality Calculator
Free with steps and graph

Linear Inequality Calculator

Solve one-variable linear inequalities step-by-step — and never forget to flip the sign again.

linear inequality calculator with stepslinear inequality calculator with graphlinear inequality calculator interval notation

What This Page Covers

Focused on one-variable linear inequalities such as 2x + 3 > 7.
Makes the negative divide sign-flip rule visually hard to forget.
Pairs every answer with steps, number-line meaning, interval notation, and verification.

Looking to graph a two-variable inequality like y > 2x + 3 with a shaded region?

This page solves one-variable inequalities. Use the graphing calculator for coordinate-plane shading.

One-Variable Linear Solver

Built for one-variable linear inequalities with explicit term collection, sign-flip detection, a number line, interval notation, and direct verification.

Live parse preview
2x + 3 > 7

Supported Input Styles

  • 2x+3>7 solves a basic positive-coefficient inequality.
  • -3x+1<=10 triggers the negative-divide sign flip.
  • 3x+2>5x-4 collects variables from both sides before dividing.
  • x/3+1>-2 keeps fractional coefficients in the linear workflow.

Math Keyboard

Tap symbols, numbers, or actions for fast linear-inequality input.

Result

The linear inequality isolates x > 2.

Solution2x+3 > 7
Interval(2, ∞)
1

Step 1

Move all terms to one side

Rewrite the inequality so the right-hand side is zero.

Before

After

2

Step 2

Isolate x

Add or subtract the constant term so that the x-term stands alone.

Before

After

3

Step 3

Divide by the coefficient of x

Dividing both sides by a positive number keeps the inequality direction the same.

Before

After

Use the tabs to move between the algebra, graph, notation, and verification views.

Recent History

Saved locally in this browser so you can revisit recent one-variable linear inequalities.

Solve a few linear inequalities and the latest ones will appear here.

Calculator Types

Switch to another inequality tool in one tap

Zone 4

How to Use the Linear Inequality Calculator

The fastest way to use the linear inequality calculator is to type the inequality exactly as you would write it in class. You can enter forms such as 2x + 3 > 7, 5 - x <= 2, 3(x + 2) >= 12, or x/2 - 3 > 1. The parser accepts common keyboard input, so you do not need special math markup just to get started.

After you enter a problem, the page keeps the result area tightly focused on the four views that matter most for linear work: algebraic steps, the graph, interval notation, and verification. That structure is intentional. Many calculator pages stop after they isolate x, but students usually need one more layer of interpretation. They want to know what the answer means on a number line and whether a test value really works.

If you are checking homework, begin with the Steps tab and compare each transformation to your own work. If you are learning the topic for the first time, switch to the Graph and Interval Notation tabs right after that. Seeing the algebra and the visual answer together is the quickest way to understand why x > 2 becomes an open endpoint with shading to the right, while x <= 5 becomes a closed endpoint with shading to the left.

01

Enter a one-variable linear inequality such as 2x + 3 > 7, -3x + 1 <= 10, or 3x + 2 > 5x - 4.

02

Review the step cards to see terms move, like terms combine, and the coefficient of x get checked before division.

03

Open the graph, interval notation, and verify tabs to confirm the final answer from several angles.

Signature Visual

Flip-the-Sign Rule Dynamic Demo

The rule is simple but easy to forget: multiplying or dividing by a negative number reverses order. Replay the contrast below until negative means flip automatically.

Negative divisor

Divide by -2

Left side

-2x

>

Right side

6

You divided by a NEGATIVE number (-2), so the inequality sign must FLIP.

Animation is CSS transform only, so this teaching moment stays lightweight on mobile.

What Is a Linear Inequality?

A linear inequality compares two first-degree expressions. Instead of asking when two expressions are equal, it asks when one side is greater than, less than, or equal to the other in an inequality sense. That is why a problem like 2x + 3 > 7 usually has many correct values. Every real number larger than 2 works, so the answer is a set of values, not a single solution.

This is the key distinction between a linear equation and a linear inequality. An equation such as 2x + 3 = 7 has one exact answer, x = 2. The related inequality 2x + 3 > 7 has an entire ray of answers, x > 2. The variable still has degree one, the algebra rules are still familiar, but the final interpretation is different because the result describes a range.

You will most often see four symbols in linear inequality work: >, <, >=, and <=. Strict symbols, > and <, exclude the boundary value. Inclusive symbols, >= and <=, include the boundary value. That inclusion rule shows up everywhere: in the final isolated statement, in interval notation, and on the graph where the endpoint changes from an open circle to a closed circle.

Equation example

Inequality example

Comparison pointLinear equationLinear inequality
GoalFind the exact value that makes both sides equal.Find every value that keeps the comparison true.
Typical answerA single value such as x = 2.A range such as x > 2 or -1 <= x < 4.
GraphOne point on a number line.A shaded ray or interval.
NotationUsually a single algebraic statement.Often written in inequality, interval, and set notation.

How to Solve Linear Inequalities Step by Step

The algebra behind linear inequalities is familiar on purpose: combine like terms, isolate the variable, and read the final statement carefully. The difference is in interpretation. Every move must preserve the truth of the comparison, and one rule matters more than any other rule on the page: dividing by a negative number reverses the inequality symbol.

Add or subtract the same number on both sides

Adding or subtracting the same value keeps the balance of the comparison. The inequality direction does not change because you are shifting both sides by the same amount.

Example

Multiply or divide by a positive number

When the number is positive, the order of values stays the same. Dividing 6 > 2 by 2 gives 3 > 1, so the inequality symbol remains unchanged.

Example

Multiply or divide by a negative number

This is the most common source of mistakes. Negative multiplication reverses order, so the symbol must flip direction. If -4x < 8, then x > -2 after dividing by -4.

Example

Dividing by a negative number reverses the inequality sign. If you forget that flip, the final answer is wrong even if the algebra around it looks clean.

Move variable terms to one side

If x appears on both sides, gather the variable terms first. This makes the structure easier to read and reveals whether the remaining coefficient of x is positive or negative.

Example

Expand parentheses before isolating the variable

A distributed form is much easier to solve correctly. Expand, combine like terms, then continue with the usual add, subtract, multiply, or divide steps.

Example

Forgetting to reverse the sign

If you divide by a negative coefficient and keep the original symbol, you reverse the meaning of the answer. Always pause before the last step when the coefficient of x is negative.

Mixing up open and closed endpoints

Strict inequalities use open circles and parentheses. Inclusive inequalities use closed circles and brackets. Matching these consistently keeps the graph and interval notation aligned.

Making sign errors while moving terms

Students often change +3 into +3 again instead of -3 when moving it across the inequality. The cleaner habit is to add or subtract the same value on both sides rather than relying on an informal move-term shortcut.

Expanding parentheses incorrectly

A missed negative sign during distribution can break the whole solution. Expand slowly, then combine like terms before you isolate the variable.

Linear Inequality Examples

The three examples below cover the classroom patterns this page is built around: a positive divisor where the sign stays put, a negative divisor where the sign flips, and variables on both sides where collecting terms and flipping the sign happen in sequence.

Example 1Basic linear formTry this example

This is the simplest linear-inequality pattern. The variable is already on one side, so you only need one subtraction step and one division step.

1

Subtract 3 from both sides

Before

After

2

Divide both sides by 2

Before

After

Answer

Interval

Set notation

Number line

Example 2Divide by a negative coefficientTry this example

This is the core sign-flip case. The sign does not flip when you subtract 1, but it must flip when you divide by -3.

1

Subtract 1 from both sides

Before

After

2

Divide both sides by -3

Before

After

Dividing by -3 reverses the inequality sign from \le to \ge.

Answer

Interval

Set notation

Number line

Example 3Variables on both sidesTry this example

This is the common two-action trap: first move the x-terms, then notice the remaining coefficient is negative before you divide.

1

Subtract 5x from both sides

Before

After

2

Subtract 2 from both sides

Before

After

3

Divide both sides by -2

Before

After

Dividing by -2 reverses the inequality sign from > to <.

Answer

Interval

Set notation

Number line

Linear Inequalities on a Number Line

A number line translates algebra into a picture. Once you isolate x, the graph answers two quick questions: where is the boundary, and which side should be shaded? For x > 2, the boundary is 2 and the shading extends to the right because larger values satisfy the inequality. For x < 2, the boundary is still 2, but the shading moves left because smaller values work instead.

The endpoint style matters just as much as the direction. Open circles match strict symbols, > and <, because the boundary itself does not belong to the solution. Closed circles match inclusive symbols, >= and <=, because the endpoint is part of the answer. If you can read a number line correctly, interval notation becomes much more intuitive because you can see why (2, infinity) excludes 2 while [2, infinity) includes it.

Strict inequality

Use an open circle when the endpoint is excluded, as in x > 2 or x < -1.

Inclusive inequality

Use a closed circle when the endpoint is included, as in x >= 2 or x <= -1.

Interval Notation for Linear Inequalities

Interval notation is the compact form of a graph. Parentheses mean an endpoint is excluded, and brackets mean an endpoint is included. Infinity is never written with a bracket because infinity is not a reachable endpoint on the real line.

A good habit is to read interval notation out loud. For example, [3, infinity) means every real number from 3 upward, with 3 included. That verbal check helps you catch mistakes before you turn in homework or copy the final answer into another system.

InequalityInterval notationNumber lineMeaning
Values greater than a, but not including a.
Values greater than a, including a.
Values less than a, but not including a.
Values less than a, including a.

Frequently Asked Questions

Why do you flip the inequality sign when dividing by a negative number?

Multiplying or dividing by a negative reverses the order of numbers. For example, 6 > 2 is true, but after multiplying both sides by -1 the true statement is -6 < -2, so the sign must flip.

What happens if the variable appears on both sides of the inequality?

Move the x-terms to one side and the constants to the other side first. After the inequality is simplified to ax > b, ax < b, ax >= b, or ax <= b, divide by a and flip the sign only if a is negative.

How do you write a linear inequality solution in interval notation?

Use parentheses for strict inequalities and brackets for inclusive inequalities. For example, x > 2 becomes (2, infinity), while x >= 2 becomes [2, infinity).

Is this calculator for one-variable or two-variable inequalities?

This page is optimized for one-variable linear inequalities such as 2x + 3 > 7. If you are graphing a two-variable inequality such as y > 2x + 3 with a shaded region, use the graphing inequalities calculator instead.

What's the difference between a linear inequality and a linear equation?

A linear equation asks for the exact value that makes two sides equal. A linear inequality asks for every value that keeps one side greater than, less than, greater than or equal to, or less than or equal to the other.

Can a linear inequality have no solution or all real numbers as a solution?

Yes. If the x-terms cancel and the remaining statement is false, there is no solution. If the remaining statement is always true, every real number is a solution.

Zone 6

Related calculators for the next step

This flip-the-sign rule applies to every inequality type. See how it supports rational, quadratic, and compound inequalities, then convert final answers with interval notation.