Writing an inequality from a number line takes three decisions: whether each endpoint is open or closed, which direction the shading runs, and which variable symbol your class or textbook expects. Get those right and the translation takes under a minute. Get them wrong and the same picture can produce four different-looking answers that earn zero credit. This walks through the full process, the exact inequalities a typical line produces, and the failure cases that cost the most marks.

A number line drawing is an inch of ink carrying four separate signals β€” endpoint style, shading side, arrowhead, and number placement β€” and examiners check all four. Miss the arrowhead and a correct inequality becomes a ray pointing the wrong way.

Step 1: Read the Endpoint Style Before Anything Else

The first thing to look at is the dot at the boundary, because it decides the bracket type and nothing else on the line can override it. A filled, solid dot means the endpoint is included, so the matching symbol is ≀ or β‰₯. An open, hollow circle means the endpoint is excluded, so the symbol is < or >.

Zoom in if the image is photographically reproduced. Print quality often closes a hollow circle into a blob, and a filled dot at 300 dpi can look identical to an open one at 100 dpi. If you cannot tell, the surrounding context usually settles it: worksheets that pair an open circle with a strict inequality almost never mix styles on the same exercise set.

Check the number written under the dot. In algebra-level work that number is the boundary value, and it appears in the inequality exactly as written β€” not shifted by one. A dot at βˆ’2 produces a βˆ’2 in the answer. A dot at 0.5 produces 0.5.

Two exceptions break the pattern. Elementary number lines sometimes mark every integer and only the shaded region carries meaning, which shifts the boundary to the nearest marked tick. And compound-inequality diagrams use two dots, so apply this test to each one separately before moving on.

Step 2: Decide Which Side Is Shaded and What the Arrow Contributes

Shade to the right and the variable is greater than the boundary; shade to the left and it is less. That single rule resolves the answer's direction for the vast majority of textbook diagrams, and you should read the shaded span, not the arrowhead, to apply it.

The arrowhead extends the shaded region to infinity. Its presence tells you the solution is unbounded on that side, which every proper ray diagram should show. Sometimes it is missing because the diagram was cropped, and sometimes it is missing because the line is actually a segment β€” that is, a bounded interval between two values.

Treat a line that stops cleanly at a second unmarked point as a segment, not a ray. Segments produce compound inequalities such as βˆ’1 ≀ x < 4, which is a different animal from the single statements most early lessons drill. If both ends carry dots, you are working with a two-sided condition.

When the shading and the arrowhead disagree, trust the shading. Hand-drawn answer keys reverse arrows more often than they mis-shade regions, and the shaded span is what encodes the solution set.

Step 3: Build the Inequality in Four Fixed Moves

This sequence is deliberately narrow: it handles the single-variable statements that appear in pre-algebra through Algebra 1, and it produces one canonical form rather than the several equivalent forms floating around a classroom.

1: Write the variable symbol on the left: x, or whichever letter the diagram labels. 2: Choose the comparison symbol from the endpoint: solid dot gives ≀ or β‰₯, hollow gives < or >. 3: Choose the direction from the shading: right means greater, left means less. 4: Place the boundary number from the dot exactly as written, then test one convenient value from the shaded region to confirm.

Run the test with a number that is clearly inside the shading, not at the boundary. If the boundary is 3 and the shading runs right, try x = 4. A true statement confirms the arrangement; a false one means you swapped the direction.

If your school accepts it, add "with x in the real numbers" or write the interval in parentheses beside the statement. Many curricula require the domain phrase because an inequality without a stated domain is technically incomplete.

What the diagram shows The inequality you write Interval notation
Hollow dot at 2, shaded right x > 2 (2, ∞)
Solid dot at 2, shaded right x β‰₯ 2 [2, ∞)
Solid dot at βˆ’3, shaded left x ≀ βˆ’3 (βˆ’βˆž, βˆ’3]
Hollow dot at 0, shaded left x < 0 (βˆ’βˆž, 0)
Solid dots at βˆ’1 and 4, shaded between βˆ’1 ≀ x ≀ 4 [βˆ’1, 4]

Use this table as a spot-check, not a substitute for reading the diagram. Half the value of the four-move sequence is that it forces you to look at the dot and the shading separately rather than pattern-matching from memory.

Step 4: Handle Negative Boundaries and Flipped Variable Placement

Negative boundaries trip up more students than any other part of this topic, and the fix is mechanical. Read the number with its sign attached: a shaded region left of βˆ’5 is x < βˆ’5, and shading right of βˆ’5 is x > βˆ’5. The sign lives with the number; it does not suggest direction.

The real risk is rewriting the inequality with the variable on the right, as in 4 > x. Many teachers accept this, but some mark it wrong because it hides the comparison's direction, and rewriting it as x < 4 makes the shading side obvious. If you keep 4 > x, you must also keep your head straight about what it means.

If you need the variable isolated on the right for a specific reason, remember that flipping the sides of an inequality reverses the comparison symbol. So x β‰₯ βˆ’2 and βˆ’2 ≀ x are the same statement, and either is a correct read of a solid dot at βˆ’2 shaded right.

Test a negative case with numbers, not intuition. For a boundary at βˆ’7 shaded left, x = βˆ’8 should satisfy x < βˆ’7, and it does. For the same boundary shaded right, x = βˆ’6 satisfies x > βˆ’7, and it does too. That arithmetic check catches sign errors that visual inspection misses.

Step 5: Match the Answer Form to Your Grade Level

The same number line earns different answers in different grades, and writing the wrong form is a guaranteed deduction even with the correct underlying logic.

Level Expected answer form Note
Grade 6 (US Common Core 6.EE.B.8) Single inequality: x > 2 Inequality must represent infinitely many solutions
Grade 7 (7.EE.B.4.B) Inequality plus solving word problems Diagram reading usually embedded in word context
Grade 8 / Pre-Algebra Inequality plus interval notation Interval notation often introduced here
Algebra 1 Inequality, interval, and set-builder sometimes Check the district's preferred notation set
UK GCSE (Key Stage 3/4) Inequality; integer-list questions common "List the integers" is a frequent extra part

The Common Core grade 6 standard is explicit that the inequality represents infinitely many solutions, which is why the arrowhead and the shading together matter. A diagram without an arrow used to satisfy a grade 6 reader is a diagram with a mistake in it.

In England, WJEC and other boards test the same picture as an inequality and then ask for the integer values that satisfy it. That second part uses the same shading, but the answer is a list of whole numbers β€” another reason to read the diagram fully before writing.

Step 6: Write Compound Inequalities From Two-Endpoint Diagrams

When two dots sit on the line with shading between them, the solution is bounded and the answer is a chain. Read each endpoint separately, then assemble the chain in increasing order of the numbers.

For solid dots at βˆ’1 and 4 with shading between, the chain is βˆ’1 ≀ x ≀ 4. Swap one dot to hollow and only that side's symbol changes: βˆ’1 ≀ x < 4 if the 4 is hollow. Shading outside both dots is the opposite case, producing two separate statements joined by "or", such as x < 0 or x > 5.

The most common error is writing the chain with the variable in two places, as in x β‰₯ βˆ’1 and x ≀ 4, which is true but not the standard chain form. Combine constraints into βˆ’1 ≀ x ≀ 4 unless the diagram genuinely has a gap.

Check for a gap before assuming a chain. Two shaded bands on the same line are two inequalities with an "or", not one chain. Worksheets sometimes show this with a single line and a white gap, which is easy to miss at small print sizes.

Step 7: Grade Your Own Answer With the Boundary and Interior Test

Before you hand anything in, run a two-number check on every answer you produce. One test number should sit exactly at the boundary and one should sit inside the shaded span.

At the boundary, the result distinguishes a strict inequality from a non-strict one. If the answer is x β‰₯ 3 and you plug in x = 3, the statement should be true. If the answer is x > 3, plugging in 3 should be false. If that doesn't match your endpoint style, go back to Step 1.

Inside the shading, the result distinguishes the correct direction from its reverse. For shading right of 3, x = 10 must satisfy your inequality. For shading left, x = 0 must satisfy it. Both checks together take about fifteen seconds and catch swaps.

Do the check even when you're confident. The failure mode that costs the most marks is a correct read of the diagram with a flipped comparison symbol, and no amount of staring at the picture fixes that.

Step 8: Avoid the Five Errors That Cost Exam Points

The errors below account for most lost marks on this topic, and each has a specific correction rather than a vague "be careful."

Closed and open dots confused. If you cannot tell in a photocopy, ask the teacher to project the page rather than guessing. Guessing wrong converts a ≀ into a <, which changes the answer set by exactly one number and often the mark.

Arrowhead missing or ignored. Treat a diagram without an arrow as suspect and check whether it was cropped from a ray. The arrow belongs on any unbounded solution.

Shading misread after a mental flip. If you mentally reverse the inequality, the shading side reverses too. Say the direction out loud: "left of five, less than five."

Negative numbers forced into the wrong side. Write βˆ’4, not "four left." The sign is part of the number, not a decoration.

Answer form mismatched to the grade. Grade 6 wants x > 2; Algebra 1 may want (2, ∞) or set notation. Match the form your teacher drilled last week.

Step 9: Confirm Your Answer Represents Infinitely Many Solutions

The Common Core grade 6 standard asks students to recognize that an inequality represents infinitely many values, and that phrasing is a useful self-check. Ask whether your inequality has infinitely many solutions on the shaded side. If it does not, you have probably written a single value by mistake.

A diagram shaded right of 2 with a solid dot means x β‰₯ 2, and every real number 2 or greater satisfies it β€” 2, 2.5, 100, 1,000,000. That is an infinite set, and it's what the homework is testing.

A hollow dot at 2 shaded right gives x > 2, which also has infinitely many solutions but excludes 2. The difference between the two answers is exactly one number, and that one number is often the mark on the line.

If your final answer contains a single equals sign, stop. That is an equation, not an inequality, and the original diagram almost certainly had shading that you missed.

FAQ

Can an inequality be written with the variable on either side?

Yes, but some teachers mark one side's version wrong. Both x β‰₯ βˆ’2 and βˆ’2 ≀ x describe the same shading, so use whichever form your class last used in notes. If your teacher wrote 4 > x in class, write 4 > x on homework and keep the direction visible.

What's the difference between x < 3 and x ≀ 3 on a number line?

Exactly one point β€” 3 itself. The strict version uses an open circle at 3 and excludes 3 from the solution. The non-strict version uses a solid dot and includes it. If the exam tests this distinction, the dot style is the only evidence on the page.

How do I handle two dots on the same line?

Read both endpoints separately, then chain them from low to high, as in βˆ’2 ≀ x < 5. If the shading runs outside both dots rather than between them, write two statements joined by "or" instead of a chain. A white gap between shaded bands is the signal for the "or" form.

Do I need to add "where x is a real number"?

Increasingly, yes β€” many curricula require the domain phrase or the interval form as part of the answer. Ask what form your teacher accepts on the boundary problem. The phrase doesn't change the solution set, only the completeness of the notation.

Why does my answer look different from the answer key?

Common causes are an open circle read as closed, a shading misread after a mental flip, and the answer key using interval notation when you wrote an inequality. Compare the testing phrase before assuming the key is wrong. In some cases both forms are correct and the grader expects only one.

Can a number line show an inequality with two variables?

No β€” a single number line handles one variable by construction. Two-variable inequalities live on a coordinate grid as shaded half-planes. Attempting to encode two variables on a number line is a category error, not a notation choice.

What's the integer-list question that appears next to inequality worksheets?

UK and Commonwealth exams often follow the inequality with "list the integers that satisfy it," which uses the same diagram and the same logic. For βˆ’1 ≀ x < 3, the integers are βˆ’1, 0, 1, 2. The dot styles and shading rules carry over directly to this second part.

Is there a risk in writing the inequality from a blurry photo?

Yes β€” the endpoint style is the first thing lost at low resolution, and it flips the bracket. If the source is a camera photo, ask for a re-shot or find the matching page online. Reading a closed dot as open changes the answer by one point and often the mark, as noted in Step 7.