The method is short, but points are lost in three places: the wrong line style, a bad test point, and a sign that should have flipped. Each one is covered below with the reason behind it.
How do you graph a linear inequality step by step?
A linear inequality in two variables, such as , is satisfied by a whole region of points, not just a single line. The related equation acts as a fence. It cuts the plane into two half-planes, and the solutions live in exactly one of them (plus the fence itself, if equality is allowed).
- Replace the inequality sign with and graph that boundary line.
- Choose solid or dashed from the symbol.
- Pick a test point that is not on the line and substitute it.
- Shade the side that gives a true statement.
Take . The equation is already in standard form, so graphing with intercepts is fastest. Setting gives , so . Setting gives , so . Plot the points and and join them. The symbol allows equality, so the line is solid.
Now test :
That is true, so shade the side containing the origin, which is below and to the left of the line. If intercepts are awkward for a given line, a table of values produces the same boundary.
Solid or dashed line: what does the boundary mean?
The line style answers one question: are points on the line solutions? With or , equality is allowed, so they are, and the line is solid. With or , equality is not allowed, so the line is dashed to show it is a border you can approach but not stand on. This is the same idea as a closed or open circle on a number line.
You can prove the style to yourself with a single point. For , the point lies exactly on the boundary because . Substituting gives , which is false, so that point is not a solution and the line must be dashed. A mental anchor: the symbol has a bar underneath it, like a line drawn solid beneath the symbol.
Word problems are where the style usually goes wrong, so translate the phrase before drawing anything:
- “At least” and “no less than” mean (solid).
- “At most” and “no more than” mean (solid).
- “More than” and “greater than” mean (dashed).
- “Fewer than” and “less than” mean (dashed).
When the inequality is already solved for , slope-intercept form gives the line instantly: start at the -intercept , then use rise over run for the slope .
Quick check
Answer: Solid
How do you pick a test point, and why does it work?

Move everything to one side and the inequality becomes a question about the sign of . This expression changes smoothly as you move across the plane, and it equals zero only on the boundary line. It cannot switch from positive to negative without passing through zero, which means it cannot switch without crossing the line. So every point on one side shares the same sign, and one test point speaks for an entire half-plane.
The classic trap is a boundary that passes through the origin. Graph . The boundary is , which contains . Testing the origin gives , which is true but only because the origin is on the line, so it says nothing about either side. Use instead:
That is true, so shade the side containing , which is below and to the right of the line. A second test confirms it: gives , which is false, and lies above the line. Solving the original for agrees, since becomes , meaning below.
Points like and need almost no arithmetic and miss most lines through the origin. Reach for them whenever sits on the boundary.
Graphing linear inequalities with negative or fractional slopes
The shortcut “greater than means shade above, less than means shade below” works only when is alone with a positive coefficient. If the inequality is in another form, the shortcut can lie. Dividing by a negative number reverses the symbol, because multiplying by reflects the number line: , yet . Forget that flip and the shading lands on the wrong side.
Graph . Divide every term by and flip the symbol:
The boundary is dashed with -intercept . The slope is , so from go right 3 and down 2 to reach , or left 3 and up 2 to reach . Because is less than the line, shade below. Verify with the origin in the original inequality: becomes , which is false. The origin lies above the line, so it should be unshaded, and it is.
Try this: Graph by solving for first (watch the flip), then test in the original inequality to confirm which side you shaded.
Fractions are easier than they look. For , multiply every term by the positive number to get . Multiplying by a positive number never flips the symbol, so clearing denominators is safe. Only negatives are dangerous.
Quick check
Answer:
How do you graph x > a or y < b on the coordinate plane?
When only one variable appears, the boundary is a vertical or horizontal line. For , draw a solid vertical line through . The other variable is unconstrained, so any is allowed, and the test point gives , which is true. Shade everything to the left. For , draw a dashed horizontal line through and shade above.
The trap is applying “above” and “below” to a vertical line. A vertical line has no above or below, only left and right. When is the variable, think left and right. When is the variable, think down and up.
On a number line, is a ray. On the coordinate plane, the same inequality is a half-plane, because can be anything.
These cases also explain the sign patterns of the four quadrants. The inequalities and together shade exactly Quadrant I, with both axes drawn dashed.
How do you graph a system of linear inequalities?

A system asks for points that satisfy every inequality at once. Graph each inequality with its own line style and shading, then keep only the overlap. Take and . The first is a solid line with slope and intercept , shaded below. The second is a dashed line with slope and intercept , shaded above. The solution is the wedge where both shadings overlap.
The corner of the wedge is where the boundaries meet. Set them equal:
The corner is . It lies on the dashed line , where is false, so the corner itself is excluded even though the other line is solid. To check the region, gives and , both true, so it is inside. The point gives , which is false, so it is outside.
Systems can also have no solution. The inequalities and describe regions bounded by parallel lines, since both slopes equal , and the shadings face away from each other. They never overlap. This corner-finding skill matters later: in linear programming, the best value of a linear quantity always occurs at a corner of the region.
Quick check
Answer:
How do you check a graph and use inequalities in real life?
A reliable check uses three points. Pick one inside the shaded region, which must satisfy the inequality. Pick one clearly outside, which must fail. Then pick one on the line: it should satisfy a solid-line inequality and fail a dashed one. Thirty seconds of this catches nearly every shading and line-style error.
The same logic runs backward when you must write an inequality from a graph. Read the line style for the symbol, find the line’s equation (from the intercept and slope, from point-slope form, or from two points on the line), and read the shading for the direction. Test one shaded point to confirm.
Real constraints are inequalities. Suppose notebooks cost $3 each and pens cost $2 each, and the budget is $24. With notebooks and pens, the constraint is , together with and . The intercepts are and , and the region is a triangle. The slope of is the trade-off rate of change: each extra notebook costs pens. Since you cannot buy half a pen, only whole-number points in the triangle count. The point costs and works, while costs and does not.
Practice problems
0 of 5 solved
- Decide whether is a solution of .
Answer: Yes
Substitute and : . The right side is . Since is true, is a solution. - Graph . State the line type and which side is shaded.
Answer: Solid line, shade above
The boundary has intercept and slope . The symbol means a solid line. Test : is true, and the origin lies above the line, so shade above. - Graph . State the line type and which side is shaded.
Answer: Dashed line, shade below
The boundary has intercepts and , and means dashed. Test : is false, so do not shade the origin's side. Solving gives , which confirms shading below the line. - A solid line passes through and , and the region above it is shaded. Write the inequality.
Answer:
The slope is and the -intercept is , so the line is . A solid line means the symbol includes equality, and shading above means is greater. The inequality is . - Find the corner point of the solution region of and , and say whether it belongs to the solution set.
Answer: , not included
Set the boundaries equal: , so and . Then . The corner lies on the dashed line , where is false, so the corner is not included.
Common questions
Is the line solid or dashed for greater than or equal to?
Solid. The symbol includes equality, so points on the boundary line are solutions and the line is drawn as part of the region. Only the strict symbols and call for a dashed line.
How do you know which side of the line to shade?
Substitute a point that is not on the line into the original inequality. If the statement is true, shade the side containing that point. If false, shade the other side.
Why does the inequality sign flip when you divide by a negative number?
Multiplying or dividing by a negative reflects numbers across zero, which reverses their order. For example, but . Skipping the flip puts the shading on the wrong side.
Can you always use (0, 0) as the test point?
No. If the boundary line passes through the origin, the test gives an equality and settles nothing about the side. Use another point such as or instead.
What is the difference between graphing an inequality and graphing an equation?
An equation such as is satisfied only by points on a line. An inequality such as is satisfied by every point in a whole half-plane, so the graph needs shading as well as a line.
How do you graph two linear inequalities together?
Graph each one with its own line style and shading, then keep only the overlap. Every point in the overlap satisfies both inequalities. If the shaded regions never meet, the system has no solution.