Math

Graphing inequalities calculator

Type a linear inequality such as 2x + 3 < 11, a compound inequality such as −3 ≤ 2x + 1 < 7, or two inequalities joined by "or" or "and", and the graphing inequalities calculator solves it step by step, flips the sign when it divides by a negative, and draws the solution on a number line with open and closed dots. It also gives the answer in interval and set-builder notation and checks a test point.

Runs in your browser. Nothing you type is sent to us.

Solution

x < 4

Interval notation: (−∞, 4)

012356784
Interval notation
(−∞, 4)
Set-builder notation
{x | x < 4}
4
Not included (open dot)
Check with x = 3
9 < 11 ✓

Working

StepInequality
Start2x + 3 < 11
Collect x terms on the left, numbers on the right2x < 8
Divide both sides by 2x < 4

Key facts

  • Solve an inequality like an equation, but flip the sign whenever you multiply or divide by a negative number.
  • 2x + 3 < 11 gives 2x < 8, so x < 4: an open dot at 4 with the line shaded to the left.
  • Open dot for < and >, closed dot for ≤ and ≥.
  • −3 ≤ 2x + 1 < 7 gives −2 ≤ x < 3, written [−2, 3) in interval notation.
  • "Or" combines solutions (a union); "and" keeps only the overlap (an intersection).

How to solve a linear inequality

  1. Simplify each side: expand brackets and combine like terms.
  2. Collect the x terms on one side and the numbers on the other, using addition and subtraction (the sign stays the same).
  3. Divide by the coefficient of x. If it is negative, reverse the inequality sign.
  4. Graph the solution and check a value from the shaded region.

How to graph the solution on a number line

InequalityDotShade
x < aOpen at aLeft
x ≤ aClosed at aLeft
x > aOpen at aRight
x ≥ aClosed at aRight
a < x ≤ bOpen at a, closed at bBetween

An open (hollow) dot means the endpoint is not part of the solution; a closed (filled) dot means it is.

How to use the graphing inequalities calculator

  1. Type the inequality. Use <, >, <= or ≤, >= or ≥. Fractions, decimals and brackets are fine, such as 3(x − 2) > x + 4 or x/2 + 1 ≥ 3/4.
  2. For compound inequalities, type a chain like −3 ≤ 2x + 1 < 7, or join two inequalities with "or" or "and".
  3. Read the solution, the number line, interval and set-builder notation, the step-by-step working and a check.

Worked examples: inequalities

Example 1: the default

2x + 3 < 11. Subtract 3: 2x < 8. Divide by 2: x < 4. Graph: open dot at 4, shaded left. Check x = 3: 9 < 11 ✓.

Example 2: flipping the sign

−2x + 5 ≥ 1. Subtract 5: −2x ≥ −4. Divide by −2 and flip: x ≤ 2. Check x = 0: 5 ≥ 1 ✓.

Example 3: variables on both sides

3(x − 2) > x + 4. Expand: 3x − 6 > x + 4. Collect: 2x > 10. x > 5.

Example 4: a compound inequality

−3 ≤ 2x + 1 < 7. Subtract 1 from every part: −4 ≤ 2x < 6. Divide every part by 2: −2 ≤ x < 3, which is [−2, 3).

Example 5: an "or" inequality

2x − 1 > 3 or −x > 4. The first gives x > 2, the second gives x < −4 (flip when dividing by −1). Solution: x < −4 or x > 2, two rays pointing away from each other.

Example 6: no solution and every solution

x < 1 and x > 3 has no solution, because no number is both below 1 and above 3. x + 1 > x is true for every real number.

Why the sign flips

Multiplying by a negative reverses order on the number line. 2 < 5 is true, but multiplying both by −1 gives −2 and −5, and −2 > −5. Dividing works the same way. Adding or subtracting any number, positive or negative, never changes the direction.

"And" versus "or"

  • And (intersection): x must satisfy both conditions. A chain like −2 ≤ x < 3 is an "and". On the graph, keep only where both shadings overlap.
  • Or (union): x may satisfy either condition. On the graph, keep everything shaded by either part.

Absolute value inequalities turn into these: |x| < 3 is −3 < x < 3 (and), while |x| > 3 is x < −3 or x > 3 (or). The absolute value equation calculator finds the boundary points.

Inequalities in real life

"You must be at least 18" is age ≥ 18 (closed dot). "Speed limit 50 km/h" is speed ≤ 50. "Keep the fridge between 1 °C and 4 °C" is 1 ≤ T ≤ 4. "Orders over $35 ship free" is total > 35 (open dot: exactly $35 does not qualify).

Pitfalls with inequalities

  • Forgetting to flip the sign when dividing by a negative.
  • Using the wrong dot, closed for < or open for ≤.
  • Flipping the sign when subtracting a negative number, which is not needed.
  • Writing −2 ≤ x < 3 as 3 > x ≥ −2 and then misreading it: they are the same, but writing the smaller number on the left avoids confusion.

Inequality symbols and the number line

The symbols < and > first appeared in print in *Artis Analyticae Praxis* (1631), the posthumously published algebra of the English astronomer and mathematician Thomas Harriot, who is also remembered for mapping the Moon by telescope months before Galileo. Symbols for "less than or equal to" and "greater than or equal to" came later; the French mathematician Pierre Bouguer used versions of them in 1734.

Graphing on a number line follows conventions taught in US schools: an open circle for a strict inequality (< or >) and a closed circle for ≤ or ≥, with an arrow showing the direction of the solutions. The key algebra rule is that multiplying or dividing both sides by a negative number reverses the inequality sign. In the Common Core standards, 6.EE.B.8 asks students to write and graph inequalities like x > c, and 7.EE.B.4b to solve and graph two-step inequalities. Inequalities model limits in daily life: speed limits, height requirements, budgets and dosage ranges. A test point, which this calculator shows, is a quick way to confirm the solution set. For the same set in interval form, use the interval notation calculator; for absolute value inequalities, the absolute value equation calculator; and for lines in two variables, the slope-intercept form calculator.

Related: the interval notation calculator, the absolute value calculator and the system of equations calculator.

How this calculator works

  • Solves linear inequalities in one variable, reversing the sign when multiplying or dividing by a negative.
  • The solution can be one interval or a union of intervals.
  • Shows the solution in interval notation and set-builder notation, with a number line using open or closed circles.
  • A test point from the solution set is substituted to check the answer.

Frequently asked questions

How do you solve an inequality?

Like an equation, using inverse operations, except that you reverse the sign whenever you multiply or divide by a negative number.

What is the solution of 2x + 3 < 11?

x < 4.

When do you flip the inequality sign?

When you multiply or divide both sides by a negative number.

Open dot or closed dot?

Open for < and >, because the endpoint is excluded. Closed for ≤ and ≥, because it is included.

How do I graph a compound inequality like −2 ≤ x < 3?

Closed dot at −2, open dot at 3, and shade the segment between them.

What is the difference between "and" and "or" inequalities?

"And" keeps values that satisfy both parts (overlap); "or" keeps values that satisfy at least one part (union).

Can an inequality have no solution?

Yes, for example x < 1 and x > 3, or x + 1 < x.

How do I write the answer in interval notation?

Use brackets for included endpoints and parentheses for excluded ones: x < 4 is (−∞, 4).

Sources

  1. OpenStax: College Algebra 2e, section 2.7 Linear Inequalities and Absolute Value Inequalities
  2. OpenStax: Intermediate Algebra 2e, section 2.6 Solve Compound Inequalities
  3. Math is Fun: Solving inequalities

Updated November 25, 2026. Formulas checked against published sources and worked examples.

Cite this page: CalcRoster. "Graphing inequalities calculator." calcroster.com/graphing-inequalities-calculator/. Updated November 25, 2026.

Results are estimates for general information. They are not financial, medical or legal advice. Check important decisions with a qualified professional.