<img src="https://d5nxst8fruw4z.cloudfront.net/atrk.gif?account=iA1Pi1a8Dy00ym" style="display:none" height="1" width="1" alt="" />
Skip Navigation

Linear Inequalities in Two Variables

Graph inequalities like 2x + 3 < y on the coordinate plane

Atoms Practice
Estimated16 minsto complete
Practice Linear Inequalities in Two Variables
Estimated16 minsto complete
Practice Now
Graphing Linear Inequalities

Let’s Think About It

Credit: Ryan Basilio
Source: https://www.flickr.com/photos/thetalesend/4678011584/in/photolist-88o2S9-88o7D1-88o4dN-88nVCf-88nU6N-88o7M3-88jHd6-88nToU-88k2Tx-88o6B1-88jNoP-88k2gn-88o7nN-88nTNb-88jD1Z-88k2dP-88jGNg-88og3s-88odgm-88jQSD-88jL3t-88jKan-88jHzk-88jSZg-88nUh5-88k2r8-88k23K-88o37j-88nSx3-88jE8z-88jDVp-88jDan-88nVbE-88jFBH-88nX1A-88jLSX-88nZF7-88jRAD-88k4nk-88o7Qm-88k2QF-88o1im-88jLhP-88jTmP-88jLL4-88jJGF-88nRFL-88k2k6-88k4gK-88k2Zt
License: CC BY-NC 3.0

You are invited to a party and asked to bring chips and dips. Chips cost $2.50 a bag and a soda costs $1.50. If you only have $20.00 to spend, how many of each can you buy?

In this concept, you will learn to graph linear inequalities.


The solutions to an inequality can be listed as ordered pairs. However, listing the ordered pairs would take a long time. Another way to represent the solution to an inequality is by graphing it on a number line. If the symbol shown in the inequality is  or < the endpoint is displayed using an open circle (an outline of a circle) since that value is not included in the solution. When the symbol shown in the inequality is  or  the endpoint is displayed using a closed circle since that value is included in the solution.

Let’s look at an example.

Show the solution set for the given inequality on a number line,

First, draw a number line that shows numbers that are less than 2. Since 2 is the endpoint, 2 must be shown on the number line. It is a good idea to show at least one number to the right of the endpoint to create a clearer picture of the solution.

Next, mark the endpoint of 2 using an open circle.

Then, draw a line to the left with an arrow on the end to indicate the direction of the values in the solution set. The following diagram is the number line graph that models the given inequality:

License: CC BY-NC 3.0

This is only one method of visually displaying the solution set of an inequality and is used most often when the inequality consists of a single variable.

A linear inequality that has two variables can be plotted on a Cartesian grid the same way a linear equation can be plotted. The inequality can be written in slope-intercept form the same way an equation can be expressed in this form. The plotted line modeling a linear inequality serves as the boundary line between the solution set and the rest of the Cartesian grid. If the inequality displays the symbol  or < the boundary line will be a broken or dashed line. However, if the inequality displays the symbol   or   the boundary line will be a solid line.

To determine which side of the boundary line contains the solution set, an ordered pair will be selected from one side of the line and its coordinates will be substituted into the given inequality. Do not use a point that the line passes through. If the ordered pair makes the inequality true then the side from which the point was selected will be shaded to show where the solution set is located on the graph. If the ordered pair does not make the inequality true, then the other side of the boundary line will be shaded.

Let’s look at an example.

Graph the solution set of the following inequality. 

Notice the inequality is written in slope-intercept form  with an inequality symbol replacing the equal sign.

First, plot the ‘’ value, which is the -intercept, and from here move horizontally one to the right and up one which is the value of the slope’.

Next, join the two points using a broken line since the inequality symbol  is displayed.

Then, choose an ordered pair from one side of the boundary line to determine if it makes the inequality true.


The number 1 is not greater than 4. The test point  did not make the inequality true. Therefore, the other side of the boundary line must be shaded to indicate the location of the solution set.

License: CC BY-NC 3.0

An inequality that has two variables can be plotted in this way. Remember to display the boundary line with the correct style of line (broken or solid) as indicated by the inequality symbol. Then, shade the correct side of the boundary line according to the result of the test point.

Guided Practice

Graph the solution set of the following inequality. 

First, write down the information given by the inequality.

The -intercept of the line is  and the slope of the line is 2. The boundary line will be a solid line since the inequality sign is .

Next, test the point .

The test point of  makes the inequality true. Therefore, the side of the boundary line containing the test point must be shaded.

License: CC BY-NC 3.0


Example 1

Does the test point  make the inequality  true?

First, substitute  and  into the given inequality.

Next, simplify the right side of the inequality.

The number 1 is greater than the number -1. The test point makes the inequality true.

Example 2

What type of boundary line will be displayed on the graph of the inequality ?

The inequality symbol displayed in the given inequality is < which means the boundary line will be a dashed or broken line.

Example 3

What does the shaded area on the graph of an inequality indicate?

The shaded area on the graph of an inequality indicates the location of the solution set for the inequality.

Follow Up

Credit: Keith McDuffee
Source: https://www.flickr.com/photos/gudlyf/4301710212/in/photolist-7y8ozs-5aXZvJ-88nTVo-4p8KcG-q9ofLW-55bwLp-8jqgov-qbAmhJ-f6XQZm-3BpAZN-azwimL-3BkAkM-88oaE5-azwihw-88jMVx-4kxBNU-7Y1cn2-qQeFfg-55fQJo-9sr8Tn-c7Xf3W-88k4wv-c7Xbh7-c7XegA-88jDkB-88o6F3-88o61G-adcPFn-5yaJNz-88oeYy-c7XbCj-c7X6P5-c7XdkA-c7X7Nb-c7XcB7-c7X8nb-c7X7q1-c7Xaeo-c7XaQN-c7X9zj-c7X8WY-88ofdh-88jDg2-88jNTa-88k1ST-88oeBY-88nSs7-88ogXh-88oeVb-88jNbk
License: CC BY-NC 3.0

Remember your invitation to a party? You have to figure out how many bags of chips and how many bottles of soda you can buy with your $20.00.

You can figure this out by writing an inequality to model the information given in the story.

First, write down what you know from the given information.

A bag of chips costs $2.50 and a bottle of soda costs $1.50. The number of bags of chips you buy and the number of bottles of sodas must be less than or equal to $20.00.

Next, name the variables for the inequality.

Let ‘’ = the number of bags of chips

Let ‘’ = the number of sodas

Next, write the inequality using the two variables.

Next, test the point . Substitute  and  into the given inequality and simplify.

The point  makes the inequality true. The location of the test point with respect to the boundary line will be shaded.

Next, graph the inequality using a solid line, on a Cartesian grid.

License: CC BY-NC 3.0

With your $20.00 you can buy any combination of soda and chips shown in the shaded area of the graph. Some possible purchases you could make are  sodas and 2 bags of chips;  sodas and 4 bags of chips; and  sodas and 5 bags of chips.

Video Review


Explore More

Write an inequality for each graph.


License: CC BY-NC 3.0

License: CC BY-NC 3.0

License: CC BY-NC 3.0

License: CC BY-NC 3.0

Graph the following inequalities on the coordinate plane.







Answer each question true or false.

11. You can’t shade less than a vertical line.

12. A dotted line can only be used in an inequality with greater than.

13. A dotted line is used when the inequality sign does not include an equals.

14. You can shade less than or greater than a horizontal line.

15. You can graph a linear inequality in two variables.


Cartesian Plane

Cartesian Plane

The Cartesian plane is a grid formed by a horizontal number line and a vertical number line that cross at the (0, 0) point, called the origin.


An inequality is a mathematical statement that relates expressions that are not necessarily equal by using an inequality symbol. The inequality symbols are <, >, \le, \ge and \ne.
Linear Inequality

Linear Inequality

Linear inequalities are inequalities that can be written in one of the following four forms: ax + b > c, ax + b < c, ax + b \ge c, or ax + b \le c.
Slope-Intercept Form

Slope-Intercept Form

The slope-intercept form of a line is y = mx + b, where m is the slope and b is the y-intercept.

Explore More

Sign in to explore more, including practice questions and solutions for Linear Inequalities in Two Variables.


Please wait...
Please wait...

Original text