Skip to content
ihateDesmos

Graphing inequalities

6 min read · Updated 6 November 2026

To graph an inequality, draw its boundary line as if it were an equation, make it solid or dashed, then shade the side where the inequality is true. A quick test with one point tells you which side that is.

How to graph a linear inequality

To graph y < 2x + 1:

  1. Draw the boundary. Graph y = 2x + 1, as you would any straight line.
  2. Choose solid or dashed. With < or >, use a dashed line, since points on the line aren’t included. With ≤ or ≥, use a solid line.
  3. Test a point. Try (0, 0): is 0 < 2(0) + 1? Yes, 0 < 1.
  4. Shade. The test was true, so shade the side containing (0, 0). If it had been false, you would shade the other side.

If the line passes through (0, 0), test a different point, like (1, 0).

−4−224−4−2240
Open in calculator
y<2x+1
: a dashed boundary, with the region below it shaded.

Above or below?

Once y is alone on the left, there is a shortcut: y > means shade above the line, and y < means shade below.

Be careful when you rearrange. Dividing or multiplying by a negative number flips the inequality sign. For −2y < 4x − 6, dividing by −2 gives y > −2x + 3.

Inequalities on a number line

With only one variable, like x > 3, you can use a number line:

  • An open circle means the value isn’t included (< and >).
  • A closed circle means it is included (≤ and ≥).
  • Shade or draw an arrow in the direction of the values that work.

On a coordinate plane, x > 3 is everything to the right of the vertical line x = 3, and y ≤ −1 is everything on or below the horizontal line y = −1.

−4−2246−4−2240
Open in calculator
x>3
in blue, with a dashed boundary, and
y≤−1
in red, with a solid one.

Systems of inequalities

Graph each inequality on the same axes. The solution is the region where all the shading overlaps. Every point in it satisfies every inequality.

Systems like this are the basis of linear programming: finding the best value of something within a set of constraints. The optimum is always at a corner of the region.

−2246−2240
Open in calculator
Three inequalities. The solution is the triangle where all three shaded regions overlap.

Curved inequalities

The same steps work for curves. For y ≥ x² − 4, draw the parabola with a solid line, and shade above it, since y is greater. For x² + y² < 9, draw a dashed circle of radius 3, and shade inside. The inequality graphing calculator shades any of these for you.

Common mistakes

  • Using a solid line for a strict inequality. < and > need a dashed line.
  • Not flipping the sign after dividing or multiplying by a negative.
  • Trusting “above” and “below” for a vertical boundary. For x > 3, you shade to the right.
  • Testing a point on the line. The boundary itself can’t tell you which side to shade.

Frequently asked questions

When do you use a dashed line?
For strict inequalities, < and >, because points on the line don’t satisfy them. Use a solid line for ≤ and ≥.
How do you know which side to shade?
Test a point that isn’t on the line. If it satisfies the inequality, shade its side. Otherwise, shade the other side.
What does y > mean on a graph?
Shade above the boundary line, once y is by itself on the left.
What is the solution to a system of inequalities?
The region where all the shaded areas overlap.
Why does the inequality flip when I divide by a negative?
Because multiplying by a negative reverses order. 2 < 3, but −2 > −3.

Keep going

Try it in the calculator

Every figure on this page opens in ihateDesmos, where you can drag sliders and watch the graph respond.

Open the calculator