Graphing Basics

How to Make a Table of Values for a Graph

A table of values lists chosen x-values in one row or column and the matching y-values in the other. To make one, pick x-values that cover the interesting part of the graph, substitute each into the equation to get y, then plot every (x, y) pair. The pattern in the y-values also tells you what kind of function it is.

Table of values for y = 2x − 1 mapped to five plotted points on a straight line.

Check it yourself: every example here can be loaded into the Graphing Calculator.

Open the Graphing Calculator

Step by step

Make a table for y = 2x − 1.

  1. Choose x-values. For a line, a few small integers are enough: −2, −1, 0, 1, 2.
  2. Substitute each one.
    • x = −2: y = 2(−2) − 1 = −5
    • x = −1: y = −3
    • x = 0: y = −1
    • x = 1: y = 1
    • x = 2: y = 3
  3. Write the table.
x −2 −1 0 1 2
y −5 −3 −1 1 3
  1. Plot each pair (−2, −5), (−1, −3), … on the coordinate plane.
  2. Connect — here with a straight line, because the function is linear.
Try it in the calculator

Choosing x-values well

The table is only as good as the x-values you choose.

  • Lines: any three points (two plus a check).
  • Quadratics: centre the values on the vertex x = −b ⁄ (2a) so the symmetry shows.
  • Square roots: start at the domain’s edge and use values that give perfect squares.
  • Exponentials: include a few negative values to see the curve approach its asymptote.
  • Rational functions: add values close to each vertical asymptote on both sides.
Graph of y = x² − 2x with the table points (−1, 3), (0, 0), (1, −1), (2, 0) and (3, 3) plotted symmetrically around the vertex (1, −1).
Each row of the table becomes one point; the symmetric pattern shows a parabola.
Text description of this figure

Graph of y = x² − 2x with the table points (−1, 3), (0, 0), (1, −1), (2, 0) and (3, 3) plotted symmetrically around the vertex (1, −1).

  1. Choose x-values centred on the vertex (x = 1).
  2. Compute y = x² − 2x for each one.
  3. Plot the pairs; the matching y-values show the symmetry.

Reading patterns in the table

With evenly spaced x-values, look at the differences between consecutive y-values:

Pattern Function type Example
First differences constant linear y = 2x − 1: differences 2, 2, 2, 2
Second differences constant quadratic y = x² − 2x: 3, 0, −1, 0, 3 → −3, −1, 1, 3 → 2, 2, 2
Constant ratio exponential y = 3·2ˣ: 3, 6, 12, 24 → ratio 2

This is a quick way to identify a function from data.

Try it in the calculator

Using the calculator’s table

In the graphing calculator, the Table of values section under Results lets you pick a line, a start x and a step. It lists eleven rows and shows “undefined” where the function has no value — for example at x = 0 for y = 1⁄x. This is ideal for checking your own table.

Common mistakes

  • Squaring a negative incorrectly. (−3)² = 9, but −3² = −9. When substituting, use brackets: y = (−3)² − 2(−3) = 15.
  • Choosing only positive x-values and missing half the graph.
  • Missing the turning point because no x-value is near it.
  • Plotting (y, x) instead of (x, y).

Next, put it into practice with how to graph a function.

Questions

How many rows should a table have?

Five to seven points is typical. Use more near turning points or asymptotes.

Do the x-values have to be evenly spaced?

Not for plotting, but even spacing makes it easy to see patterns such as a constant difference (linear) or constant second difference (quadratic).

Can the calculator make the table for me?

Yes. Under Results, choose a function, a start value and a step to see eleven x and y values.

Graph your own example with the Graphing Calculator — free, in your browser.

Try it now

Sources and further reading

Worked examples and figures were produced and checked with the Graphing Calculator Lab engine. See the editorial policy.

Related guides

More in Graphing Basics · All guides