How-to guide

How to make a table of values

How to make a table of values: pick x-values, substitute each into the equation and record y. Linear and quadratic examples, graphing and practice.

6 minutesBy Hira Noor, mathematicianUpdated
Quick answerTo make a table of values, write the equation as y = …, choose some x-values, substitute each one into the equation and write the matching y-value next to it. For y=2x+1y = 2x + 1, the x-values 0, 1 and 2 give y = 1, 3 and 5. Each row is an ordered pair (x, y) that you can plot on a graph.

A table of values, also called an x and y table, an input–output table or a function table, lists inputs in one column and the outputs a rule gives for them in the next. The method is the same for a linear equation, a quadratic or any other function, so this guide starts with a line, then a parabola, and finishes with practice questions you can check in the table of values calculator.

How to make a table of values in 5 steps

  1. Write the equation with y on its own

    A table is easiest when the rule reads y=…y = \ldots or f(x)=…f(x) = \ldots. If it does not, solve for y first: 2x+y=62x + y = 6 becomes y=6−2xy = 6 - 2x.

  2. Choose the x-values

    Pick a start, an end and a step. For a line, five values around 0, such as −2, −1, 0, 1 and 2, are enough. For a curve, cover the part you care about. With step h the table has (end − start)/h + 1 rows.

  3. Substitute each x-value

    Replace x with the number and work out y, one row at a time. Put negative inputs in parentheses, so x=−2x = -2 in x2x^2 is written (−2)2=4(-2)^2 = 4.

  4. Write the pairs in the table

    Put x in the first column and y in the second. Each row is one ordered pair (x, y). Add a third column if you want to compare a second function.

  5. Plot the points and check the pattern

    Plot every pair and join them: a straight line for a linear equation, a smooth curve otherwise. A point that is off the pattern usually means an arithmetic slip in that row.

Example 1: a table of values for a linear equation

Make a table of values for y=2x+1y = 2x + 1 with x from −2 to 2 and a step of 1. That is (2 − (−2))/1 + 1 = 5 rows. The first row is:

y=2(−2)+1=−4+1=−3y = 2(-2) + 1 = -4 + 1 = -3
Table of values for y = 2x + 1
xy = 2x + 1Ordered pair
−2−3(−2, −3)
−1−1(−1, −1)
01(0, 1)
13(1, 3)
25(2, 5)

Every time x goes up by 1, y goes up by 2. That constant difference is the slope, and the row x = 0 gives the y-intercept, 1. Plot the five points and they lie on one straight line, which is the graph of y=2x+1y = 2x + 1.

Example 2: a table of values for a quadratic function

Now take f(x)=x2−2x−3f(x) = x^2 - 2x - 3 from −2 to 4 with step 1, which gives (4 − (−2))/1 + 1 = 7 rows. Each value is a direct substitution:

f(−2)=(−2)2−2(−2)−3=4+4−3=5f(-2) = (-2)^2 - 2(-2) - 3 = 4 + 4 - 3 = 5

A second column for the line g(x)=x+1g(x) = x + 1 lets you compare the two functions row by row:

Table of values with start −2, end 4 and step 1
xf(x) = x² − 2x − 3g(x) = x + 1
−25−1
−100
0−31
1−42
2−33
304
455

Here is what the table tells you:

  • Roots. f(x) = 0 at x = −1 and x = 3, so these are the x-intercepts. Indeed, x2−2x−3=(x+1)(x−3)x^2 - 2x - 3 = (x + 1)(x - 3).
  • Turning point. The values fall to −4 at x = 1 and then rise again, symmetrically: f(0) = f(2) and f(−1) = f(3). The vertex is (1, −4).
  • Where f and g are equal. The columns match at x = −1 (both 0) and x = 4 (both 5). Solving x2−2x−3=x+1x^2 - 2x - 3 = x + 1 gives x2−3x−4=(x−4)(x+1)=0x^2 - 3x - 4 = (x - 4)(x + 1) = 0, which confirms both.
  • Where f is below g. In every row between those two, f(x) is smaller than g(x), so f(x) < g(x) for −1 < x < 4.

From the table to the graph

Plot each row as a point (x, y), then join the points. To tell which shape to draw before you plot, look at how the y-values change from row to row when the x-values are equally spaced:

  • Equal first differences mean a line. For y=2x+1y = 2x + 1 the y-values −3, −1, 1, 3, 5 go up by 2 each time, so join the points with a ruler.
  • Equal second differences mean a parabola. For f(x)=x2−2x−3f(x) = x^2 - 2x - 3 the first differences are −5, −3, −1, 1, 3, 5, and the differences of those are all 2. Draw a smooth U-shaped curve through the points.
  • Anything else means a different curve. Use more rows, or a smaller step, until the shape is clear, then check it on the graphing calculator.

How to write the equation from a table of values

You can also work backwards. If the x-values go up by 1 and the y-values go up by the same amount d each time, the rule is linear with slope d. The y-value in the row x = 0 is the intercept b, so the equation is y=dx+by = dx + b. For the table x = 0, 1, 2, 3 and y = 4, 7, 10, 13, the y-values rise by 3 and start at 4, so y=3x+4y = 3x + 4. Check one more row: 3(3)+4=133(3) + 4 = 13. When x goes up in steps of h instead of 1, the slope is d/h.

Zooming in with a smaller step

Roots are not always whole numbers. For h(x)=x2−2h(x) = x^2 - 2, a step of 1 shows a sign change between x = 1 (value −1) and x = 2 (value 2). Rerun that interval with step 0.1 and the sign changes between x = 1.4 (−0.04) and x = 1.5 (0.25). A step of 0.01 narrows it further to between 1.41 (−0.0119) and 1.42 (0.0164), consistent with 2≈1.41421\sqrt{2} \approx 1.41421.

Make a table of values with a calculator

  • Table of values calculator: enter the function, the start, the end and the step, then choose Calculate. It shows the substitution for the first rows, keeps exact fractions, marks roots and turning points, and can add a second function as a comparison column.
  • Graphing calculator: plot y = x^2 - 2x - 3 and y = x + 1 to see the same story as curves. The Key points panel lists the intercepts, the minimum (1, −4) and the intersections (−1, 0) and (4, 5).
  • Scientific calculator: for a handful of rows, define f(x) := x^2 - 2x - 3 once, then evaluate f(-2), f(-1) and so on.
  • A handheld calculator. On a TI-84 Plus, type the function in Y=, set the start and step in TBLSET (2nd WINDOW) and open TABLE (2nd GRAPH). On a TI-36X Pro, press table, choose Edit function, then enter the start and step.

Make a table of values for one or two functions with any start, end and step.

Open the function table

Practice: make these tables of values

Make each table by hand, then open the link to check every row in the calculator.

  1. y = 3x − 2, x = −1 to 3, step 1. Answer: y = −5, −2, 1, 4, 7. Check y = 3x − 2 in the calculator
  2. y = 4 − x, x = −2 to 2, step 1. Answer: y = 6, 5, 4, 3, 2. The line falls by 1 per row, so its slope is −1. Check y = 4 − x in the calculator
  3. 2x + y = 6, x = 0 to 3, step 1. Solve for y first: y=6−2xy = 6 - 2x. Answer: y = 6, 4, 2, 0. Check y = 6 − 2x in the calculator
  4. y = x², x = −3 to 3, step 1. Answer: y = 9, 4, 1, 0, 1, 4, 9. The table is symmetric about x = 0. Check y = x² in the calculator
  5. f(x) = x³ − 4x, x = −3 to 3, step 1. Answer: f(x) = −15, 0, 3, 0, −3, 0, 15, with roots at x = −2, 0 and 2. Check x³ − 4x in the calculator

Common mistakes

  • Not solving for y first. In 2x+y=62x + y = 6, substituting x = 1 does not give y directly; rewrite it as y=6−2xy = 6 - 2x before you start the table.
  • Squaring negative inputs without parentheses. (−2)2=4(-2)^2 = 4, but −22=−4-2^2 = -4. When you type a row by hand, write (-2)^2.
  • A step that is too large. If two roots fall between neighboring rows, both rows can have the same sign and the roots go unnoticed. x2−xx^2 - x is 0 at x = 0 and x = 1, yet with start −0.5 and step 2, the rows x = −0.5 and x = 1.5 both show 0.75.
  • The wrong angle unit for trigonometric functions. sin(30) is 0.5 in degrees but about −0.988 in radians. The table of values calculator uses radians, so enter 30° as pi/6.
  • Reading every sign change as a root. 1/x1/x changes sign between x = −1 and x = 1 but has no root at all; it is undefined at 0.

Frequently asked questions

What is a table of values?

A table of values lists chosen x-values (inputs) next to the y-values (outputs) that an equation or function gives for them. Each row is an ordered pair (x, y), and plotting the rows draws the graph.

How do you complete a table of values for a function?

Substitute each x-value in the table into the function and write the result in the y column. For y = 2x + 1 and x = 3, the missing value is 2(3) + 1 = 7.

How many x-values should a table of values have?

For a straight line, three points are enough and five make a good check. For a curve, use 7 to 20 rows over the range, then a smaller step around interesting rows such as a sign change or the lowest value. The row count is (end − start)/step + 1.

How do you find the equation of a line from a table of values?

If the x-values rise by 1 and the y-values rise by the same amount each time, that amount is the slope m and the y-value at x = 0 is the intercept b, so y = mx + b. For y = 4, 7, 10, 13 at x = 0 to 3, the equation is y = 3x + 4.

Is a table more accurate than a graph?

A table gives precise values at the chosen x-values, which a graph cannot, but it says nothing about what happens between rows. Use both: the graph for the overall shape, the table for the numbers.

Tools used in this guide

Function Table Calculator

Tables of values for one or two functions with exact fractions, roots, turning points, a graph and CSV.

Graphing Calculator

Plot functions, equations, inequalities, parametric and polar curves; find roots and intersections.