Linear Inequality Calculator - Solve & Graph Inequalities Online

Enter coefficients for: ax + b < c

Solving: 2x - 3 < 7

Solution

Inequality Notation

x < 5

Interval Notation

(-∞, 5)

Set-Builder Notation

{x | x < 5}

Number Line

-2-10123456789101112

Open circle at x = 5boundary not included

Step-by-Step Solution

  1. 1

    Start with the original inequality

    2x - 3 < 7

  2. 2

    Subtract (-3) from both sides

    2x < 10

  3. 3

    Divide both sides by 2

    x < 5

Inequality Symbols Reference

SymbolMeaningNumber LineInterval
<Less thanOpen circle ○(-∞, a)
Less than or equalClosed circle ●(-∞, a]
>Greater thanOpen circle ○(a, ∞)
Greater than or equalClosed circle ●[a, ∞)

How to Use This Calculator

  1. Choose your input mode — use "Coefficients" to enter a, b, operator, and c directly, or "Type Inequality" to type the full expression
  2. Enter the inequality — in coefficient mode, fill in the values for ax + b ⩽ c; in free-form mode, type expressions like "3x + 5 < 14"
  3. View the solution — see the answer in inequality, interval, and set-builder notation simultaneously
  4. Read the number line — an open circle (○) means the boundary is excluded; a filled circle (●) means it is included
  5. Follow the steps — review the step-by-step solution to understand the solving process

Share this calculator

Help others solve their calculations

Found this calculator helpful? Share it with your friends, students, or colleagues who might need it!

Linear Inequality Calculator: How to Solve & Graph Inequalities Step by Step

About the Author

Marko Šinko - Co-Founder & Lead Developer

Marko Šinko

Co-Founder & Lead Developer, AI Math Calculator

Lepoglava, Croatia
Advanced Algorithm Expert

Croatian developer with a Computer Science degree from University of Zagreb and expertise in advanced algorithms. Co-founder of award-winning projects, ensuring precise mathematical computations and reliable calculator tools.

📅 Published:
Linear Inequality Calculator showing step-by-step solution with number line graph, interval notation, and set-builder notation for solving linear inequalities

A linear inequality calculator solves expressions like 3x + 5 < 14 in seconds, showing you the exact solution, interval notation, and a number line graph — all with step-by-step work. Whether you are checking homework, preparing for a test, or solving real-world constraint problems, this tool replaces tedious manual algebra with instant, verified results.

In this guide, you will learn the rules for solving linear inequalities by hand, see fully worked examples with real numbers, and understand how to read interval notation and number line graphs. Every concept is demonstrated with the same approach your textbook uses, so the steps transfer directly to paper-and-pencil work.

What Is a Linear Inequality?

A linear inequality is a mathematical statement that compares a linear expression to a value using one of four operators: < (less than), (less than or equal to), > (greater than), or (greater than or equal to). The general form is:

ax + b < c   or   ax + b ≤ c   or   ax + b > c   or   ax + b ≥ c

Unlike an equation (which has one answer), an inequality has infinitely many solutions — an entire range of numbers that satisfy the condition. For example, x > 3 means every number larger than 3 works: 3.001, 4, 100, and so on. This is why we express solutions as intervals rather than single values.

Linear inequalities appear constantly in real life. Budget constraints ("spend less than $500"), minimum grade requirements ("score at least 70%"), and speed limits ("drive no more than 65 mph") are all inequality problems. Our inequality calculator handles more complex types including quadratic and absolute value inequalities, while this page focuses specifically on linear (first-degree) ones.

How to Solve a Linear Inequality (The Method)

Solving a linear inequality follows the same steps as solving a linear equation with one critical difference: when you multiply or divide both sides by a negative number, you must flip the inequality sign. Here is the step-by-step method:

  1. Isolate the variable term — subtract or add the constant from both sides to get the ax term alone
  2. Divide by the coefficient — divide both sides by the coefficient of x
  3. Flip the sign if dividing by a negative — this is the rule most students forget, and it changes the entire answer
  4. Write the solution — express in inequality notation, interval notation, or on a number line

The flipping rule exists because multiplying by a negative reverses the order of numbers. Since -1 × 3 = -3 and -1 × 5 = -5, the larger original number (5) becomes the smaller result (-5). The inequality direction must reverse to stay true.

Worked Examples with Step-by-Step Solutions

Example 1: Simple inequality (no sign flip)

Solve 3x + 5 < 14

  1. Subtract 5 from both sides: 3x < 9
  2. Divide both sides by 3: x < 3

Solution: x < 3, or in interval notation: (-∞, 3). The number line shows an open circle at 3 with shading to the left, meaning 3 itself is not included.

Example 2: Negative coefficient (sign flip required)

Solve -2x + 1 ≥ 7

  1. Subtract 1 from both sides: -2x ≥ 6
  2. Divide by -2 and flip ≥ to ≤: x ≤ -3

Solution: x ≤ -3, or (-∞, -3]. The square bracket at -3 means -3 is included. This is the example that trips up most students — forgetting to flip ≥ to ≤ gives the wrong answer x ≥ -3, which is the opposite half of the number line.

Example 3: Variables on both sides

Solve 5 - x ≤ 3x + 1

  1. Subtract 3x from both sides: 5 - 4x ≤ 1
  2. Subtract 5 from both sides: -4x ≤ -4
  3. Divide by -4 and flip ≤ to ≥: x ≥ 1

Solution: x ≥ 1, or [1, ∞). You can verify by testing x = 0 (should fail): 5 - 0 = 5 ≤ 3(0) + 1 = 1? No, 5 is not ≤ 1. Testing x = 2 (should pass): 5 - 2 = 3 ≤ 3(2) + 1 = 7? Yes, 3 ≤ 7. ✓

Interval Notation and Number Line Graphs

Interval notation is a compact way to write the solution set. There are two symbols to know: parentheses ( ) mean "not included" (open boundary), and square brackets [ ] mean "included" (closed boundary). Infinity always uses parentheses because you cannot reach infinity.

InequalityInterval NotationNumber LineBoundary
x < a(-∞, a)Arrow left from open circleNot included
x ≤ a(-∞, a]Arrow left from filled circleIncluded
x > a(a, ∞)Arrow right from open circleNot included
x ≥ a[a, ∞)Arrow right from filled circleIncluded

Our calculator above generates both the interval notation and a visual number line graph automatically. For more complex interval problems, you can also use our interval notation calculator which handles unions and intersections of multiple intervals.

Common Mistakes to Avoid

  • Forgetting to flip the sign when dividing by a negative. This is the #1 error. Dividing -2x ≥ 6 by -2 gives x ≤ -3, not x ≥ -3. The wrong answer represents the opposite half of the number line — every single value is wrong.
  • Confusing open and closed circles. Strict inequalities (<, >) use open circles (boundary excluded). Non-strict (≤, ≥) use closed circles (boundary included). Writing x < 5 with a closed circle at 5 means 5 is in the solution — but plugging in x = 5 gives equality, not "less than."
  • Distributing a negative incorrectly. In -2(x - 3) > 4, students often write -2x - 6 > 4 instead of -2x + 6 > 4. The negative must distribute to both terms inside the parentheses: -2 × (-3) = +6.
  • Swapping sides without flipping. If 5 < x, that is the same as x > 5 — reading the inequality from the variable's perspective. When you swap sides, the operator must also flip.

Linear Inequality vs. Linear Equation

FeatureLinear EquationLinear Inequality
Symbol=<, ≤, >, ≥
Solution countExactly one valueInfinite values (a range)
GraphA single point on the lineA ray or segment on the line
Multiply by negativeNo special ruleMust flip the inequality sign
Notationx = 5x > 5 or (5, ∞)

If you need to solve equations rather than inequalities, our linear equation calculator handles standard form, slope-intercept form, and two-variable systems. For finding the exact value of x in an equation, try the solve for x calculator.

Tips for Solving Inequalities Accurately

  • Always verify by substitution. Pick a number from your solution set and plug it back into the original inequality. If x > 3, test x = 4. If the original inequality holds true, you likely solved correctly.
  • Test the boundary point. If your answer is x < 5, plug in x = 5. It should make the two sides equal (not satisfy the strict inequality). This confirms you found the right boundary.
  • Test a number from the excluded region. If x > 3, test x = 0. The original inequality should be false. If it is true, you made an error — likely a missed sign flip.
  • Simplify both sides first. Before isolating x, combine like terms and distribute. Errors in arithmetic cascade into wrong answers.
  • Keep the variable on the left. While mathematically equivalent, writing x > 5 is clearer than 5 < x for most students and reduces reading errors.

When to Use This Calculator

  • Homework verification — solve the inequality by hand first, then use the calculator to check your work and compare each step
  • Test preparation — practice with the example buttons to build fluency with all four inequality types before an exam
  • Interval notation practice — the calculator shows inequality, interval, and set-builder notation side by side so you can learn to convert between them
  • Understanding the sign-flip rule — try examples with negative coefficients and watch the step-by-step solution show exactly when and why the sign flips

For compound inequalities like 2 < 3x + 1 < 10, use our compound inequality calculator which handles AND/OR logic and double inequalities. For systems of multiple inequalities with two variables, a graphing approach with shaded regions works better than a number line.

Frequently Asked Questions

Still Have Questions?

The detailed content on this page provides comprehensive explanations and examples to help you understand better.