Inequality Calculator
Home/Calculator/Two-Variable Inequality Calculator
Test point method, shaded regions, and system overlap

Two-Variable Inequality Calculator

Graph linear inequalities step-by-step — see exactly which side to shade and why.

graph linear inequality shaded regiontest point method inequalitysolid vs dashed line graph

Why this page is different

It teaches why a side is shaded instead of only drawing the finished half-plane.
The graph swaps away from (0,0) when the boundary line passes through the origin.
System mode layers each half-plane and makes the final overlap visually darker.

Calculator Input

Single mode graphs the first linear two-variable inequality and explains the test point method.

Math Keyboard

Tap symbols if you do not want to use the keyboard.

Single Inequality Result

y > 2x+3

The boundary line is dashed, and the shaded half-plane excludes the origin side.

Boundary: dashed line

Test point: (0, 0)

Test Point Shading Demonstrator

Drag to pan, scroll to zoom, or tap the grid to test a point.

-10-505-4-20246(0, 0)Test point substitution-3 > 0 is FALSE
Constraint 1dashed

The tapped point is outside the full solution.

(0, 0) is checked against 1 constraint.

Step-by-Step Breakdown

1. Move all terms to one side

Graphing starts from the standard-form boundary line and the sign of the half-plane around it.

-2x + y - 3 > 0

2. Solve for y to read the boundary line

Writing the inequality in y-form makes the slope and intercept easy to see.

y > 2x + 3

3. Choose the shaded side

The test point (0, 0) does not satisfy the inequality, so shade the other side.

-3 > 0

Constraint Details

Constraint 1

dashed boundary
y > 2x + 3

Test point (0, 0) makes -3 > 0 false.

Core Method

The Test Point Method Decides Which Side to Shade

After the boundary line is drawn, the line splits the coordinate plane into two sides. A test point tells you which side contains the solution.

Use (0,0) when it is not on the boundary. If the boundary passes through the origin, switch to a nearby simple point like (1,0) or (0,1), then substitute that point into the original inequality.

If the statement is true, shade the side containing the test point. If the statement is false, shade the opposite side.

False test point

Shade away from the origin.

True test point

Shade the side containing the origin.

Step-by-Step Rules

1

Rewrite the inequality as a boundary equation.

2

Use a dashed line for < or > and a solid line for <= or >=.

3

Pick a test point that is not on the boundary line.

4

Substitute the test point and shade the side that makes the inequality true.

5

For systems, keep only the overlapping shaded region.

Boundary Rules

Line style and overlap rules at a glance

< or >

Dashed boundary

Points on the line are not solutions.

y > 2x + 3 uses a dashed line.

<= or >=

Solid boundary

Points on the line are included in the solution.

y <= -x + 4 uses a solid line.

AND logic

System overlap

A point must satisfy every inequality in the system.

The final answer is the shared shaded region.

Graphing Checklist

Before trusting the shaded answer

1

Convert standard form such as 2x + 3y >= 6 into a boundary line.

2

Decide dashed versus solid before shading.

3

Choose a test point that is not on the line.

4

Substitute the point into the original inequality, not a rearranged version with sign mistakes.

5

For systems, verify a sample point in the overlap against every inequality.

Common Examples

Systems of inequalities use the same AND/intersection logic as compound inequalities. See the number line version in the compound inequality calculator.
Need to find the exact vertices for linear programming? Try our System of Inequalities Calculator →

Frequently Asked Questions

How do you know which side of the line to shade?

Use the test point method. Pick a point not on the boundary line, often (0,0), substitute it into the original inequality, and shade that point's side if the statement is true. If it is false, shade the other side.

What's the difference between a solid line and a dashed line?

A solid boundary line is used for <= or >= because points on the line are included. A dashed boundary line is used for < or > because points on the line are excluded.

Why do we use the origin (0,0) as a test point?

The origin is usually easiest to substitute because both coordinates are zero. The only time to avoid it is when the boundary line passes through (0,0).

What if the boundary line passes through the origin?

Choose another simple point that is not on the boundary, such as (1,0) or (0,1). The calculator automatically switches to a safe backup test point.

How do you graph a system of two-variable inequalities?

Graph each inequality separately, shade each correct half-plane, and keep only the region where all shaded areas overlap. That overlap is the solution to the full system.

What's the difference between a linear inequality with one variable and two variables?

A one-variable linear inequality shades a ray or interval on a number line. A two-variable linear inequality shades a region of the coordinate plane because each solution is an ordered pair (x,y).

Can a point on the boundary line be a solution?

Only when the inequality uses <= or >=. Strict inequalities use dashed boundaries because equality is excluded.

How do you check a point in a shaded region?

Substitute the point's x and y values into the original inequality. For systems, the point must make every inequality true.