Worksheets · Algebra 1

Vertical line test worksheet for Algebra 1

A relation is a function when every x goes to exactly one y. On a graph, that means no vertical line crosses it more than once. In a mapping diagram it means no input has two arrows leaving it; two inputs pointing at the same output is fine.

Also taught in Algebra 2, at its own level and with its own examples.

Select your difficulty

Pick more than one for a sheet that mixes them.

The preview can look cramped on a phone. The PDF and printed sheet come out normal.

Free math worksheets at sigmaprep.io/worksheets© 2026 Sigma Prep

Sigma Prep · sigmaprep.io/worksheets

Name

The Vertical Line Test

Date Period

Decide whether each relation is a function.

  1. Use the vertical line test

    Does this graph show y as a function of x?−10−10−5−5551010
  2. Does this graph show y as a function of x?−10−10−5551010−5
  3. Does this graph show y as a function of x?−10−10−551010−55
  4. Does this graph show y as a function of x?−10−10−5−5551010
  5. Does this graph show y as a function of x?−10−10−5−5551010
  6. Does this graph show y as a function of x?−10−10−5551010−5
  7. Does this graph show y as a function of x?−10−10−5−5551010
  8. Does this graph show y as a function of x?−10−10−5−5510105
  9. Does this graph show y as a function of x?−10−10−5−5510105
  10. Does this graph show y as a function of x?−10−10−5551010−5
  1. Decide if a mapping shows a function

    Is this relation a function?xy−5−2267−4−3−110
  2. Tell whether this relation is a function.xy0348−345810
  3. Does this mapping diagram show a function?xy−5236−289
  4. Is y a function of x in this mapping diagram?xy−30173458
  5. Decide whether the mapping shows a function. If it does not, name an input that breaks the rule.xy−5−4−148−5249
  6. Does each input in the diagram have exactly one output? Is the relation a function?xy−4−2−168−267810
  7. Does this mapping diagram show a function?xy−4−3−169−6−4−2011
  8. Tell whether this relation is a function.xy−5−4−28−50135
  9. Is this relation a function?xy−33467−6−5−17
  10. Is y a function of x in this mapping diagram?xy−4−2−19−6−37

Free math worksheets at sigmaprep.io/worksheets© 2026 Sigma Prep

Sigma Prep · sigmaprep.io/worksheets

Name

The Vertical Line TestAnswer keyVersion 1

Date Period

Decide whether each relation is a function.

  1. Use the vertical line test

    Does this graph show y as a function of x?−10−10−5−5551010No
  2. Does this graph show y as a function of x?−10−10−5551010−5Yes
  3. Does this graph show y as a function of x?−10−10−551010−55No
  4. Does this graph show y as a function of x?−10−10−5−5551010Yes
  5. Does this graph show y as a function of x?−10−10−5−5551010No
  6. Does this graph show y as a function of x?−10−10−5551010−5Yes
  7. Does this graph show y as a function of x?−10−10−5−5551010No
  8. Does this graph show y as a function of x?−10−10−5−5510105Yes
  9. Does this graph show y as a function of x?−10−10−5−5510105No
  10. Does this graph show y as a function of x?−10−10−5551010−5Yes
  1. Decide if a mapping shows a function

    Is this relation a function?xy−5−2267−4−3−110Yes
  2. Tell whether this relation is a function.xy0348−345810No, x=4 has two arrows
  3. Does this mapping diagram show a function?xy−5236−289No, x=3 has two arrows
  4. Is y a function of x in this mapping diagram?xy−30173458Yes
  5. Decide whether the mapping shows a function. If it does not, name an input that breaks the rule.xy−5−4−148−5249Yes
  6. Does each input in the diagram have exactly one output? Is the relation a function?xy−4−2−168−267810No, x=8 has two arrows
  7. Does this mapping diagram show a function?xy−4−3−169−6−4−2011Yes
  8. Tell whether this relation is a function.xy−5−4−28−50135No, x=−5 has two arrows
  9. Is this relation a function?xy−33467−6−5−17Yes
  10. Is y a function of x in this mapping diagram?xy−4−2−19−6−37No, x=−1 has two arrows

Free math worksheets at sigmaprep.io/worksheets© 2026 Sigma Prep

How to do these

A circle centered at the origin with radius 3

  1. The vertical line x = 0 crosses it at y = 3 and at y = -3.
  2. One x with two y-values.

The answer is Not a function.

Where students go wrong

Rejecting two inputs that share an output. That is still a function; only one input with two outputs breaks the rule, which is why a horizontal line passes and a vertical one does not.

Also called vertical line test, is it a function, function or not a function or mapping diagram.

What you can put on this worksheet

The vertical line test on a graph
Does this graph show y as a function of x? → No
A mapping diagram
Is y a function of x in this mapping diagram? — a mapping diagram with 5 arrows → No, x=2 has two arrows
Is the relation a function
Is this relation a function? {(5,5), (7,2), (5,6), (4,3)} → No: x=5 has two outputs
Tables, graphs and mapping diagrams
Graph the relation, and say whether it is a function:
{(−6,0), (1,−4), (7,−2), (5,1), (7,−6), (−6,2)}
→ Not a function
Connected segments
Is this graph a function? → No

Questions about these worksheets

Yes. Every vertical line test sheet is free to print and free to download as a PDF. There is no account to make, no email to hand over and no limit on how many you take.

Yes. The answer key prints on a second page, and you can choose whether it shows each question beside its answer or just the answers in a list.

Yes. Print straight from the page, or download the PDF and print that. The sheet is laid out for paper rather than squeezed off a screen, so there is room to work under each question, and the answer key comes out on its own page.

Algebra 1 is usually taken around 8th or 9th grade, though schools vary and plenty of students meet it earlier or later. Pick the difficulty rather than the grade: the easy level suits a first lesson on it, the hard level suits review before a test.

Yes, as many as you like. The questions are built fresh each time rather than picked from a fixed set of files, so pressing Generate gives a new sheet. That is what you want for a second class, a retake, or two students sitting next to each other.

That is the closest comparison, and Kuta Software is good software. It is also paid software you install on a computer. These worksheets run in a browser tab for free, with no account and nothing to install. Like Kuta, the vertical line test questions are generated when you ask for them rather than pulled from a fixed set of files, so two classes never get the same sheet, and the answer key comes with it.

Yes. There are three levels, and you can tick more than one for a sheet that mixes them, in which case the questions come out easiest first. The harder levels are not just larger numbers: they ask for something the easy ones do not.

You pick from 5: the vertical line test on a graph, a mapping diagram, is the relation a function, tables, graphs and mapping diagrams and connected segments. Tick as many as you want and set how many of each, or let it spread them evenly.

Rejecting two inputs that share an output. That is still a function; only one input with two outputs breaks the rule, which is why a horizontal line passes and a vertical one does not.