Using a Table to Write down a Two-Variable Equation
How to using a table to write down a two-variable equation, step by step: the rule in plain language, solved examples worked one line at a time, and practice questions so you can try it yourself before moving on.
An input-output table (also called an x-y table) is one of the most direct ways to discover the rule connecting two variables. Once you find the pattern in a table, you can write a two-variable equation that describes every pair of values — and then use that equation to find any missing value. This is a key skill for GED Math, graphing, and real-world problem solving.
What Is a Two-Variable Equation?
A two-variable equation shows how two quantities are related. The most common form is (color{blue}{y = text{ mx } + b}), where x is the input (independent variable), y is the output (dependent variable), m is the rate of change (constant difference), and b is the starting value (y-intercept).
Example: (color{blue}{y = 2x + 1}) means “multiply the input by 2, then add 1 to get the output.”
How to Write a Two-Variable Equation from a Table
Step 1: Identify the pattern in the output column
Find the constant rate of change by subtracting consecutive y-values. If the x-values increase by 1 each row, the difference in y-values is the coefficient of x (the rate m).
Step 2: Find the starting value (b)
Use one row from the table and substitute x and y into (color{blue}{y = text{ mx } + b}) to solve for b.
Step 3: Write the equation
Fill in m and b to write (color{blue}{y = text{ mx } + b}).
Inline Example: Table for (color{blue}{y = 2x + 1})
| x | y |
|---|---|
| 0 | 1 |
| 1 | 3 |
| 2 | 5 |
| 3 | 7 |
Rate of change: y increases by 2 each time x increases by 1, so m = 2.
When (color{blue}{x = 0}), (color{blue}{y = 1}), so b = 1.
Equation: (color{blue}{y = 2x + 1}).
Step-by-Step Summary
- Find the constant difference in the y-values as x increases by 1 — this is m.
- Identify the y-value when (color{blue}{x = 0}) — this is b. (If (color{blue}{x = 0}) is not in the table, substitute any row’s values into (color{blue}{y = text{ mx } + b}) to find b.)
- Write the equation: (color{blue}{y = text{ mx } + b}).
- Verify using a second row from the table.
Watch: Two-Variable Linear Equations and Their Graphs (Khan Academy)
This Khan Academy lesson connects tables, equations, and graphs for two-variable equations:
Worked Examples
Example 1: Write the equation for this table.
| x | y |
|---|---|
| 1 | 1 |
| 2 | 4 |
| 3 | 7 |
Rate (color{blue}{m = (4-1) = 3}). Use (1, 1): (color{blue}{1 = 3(1) + b}) → (color{blue}{b = -2}).
Equation: (color{blue}{y = 3x – 2}). Verify (color{blue}{x=3}): (color{blue}{3(3)-2 = 7}) ✓
Example 2: Find the equation for a table where x goes 0, 1, 2, 3 and y goes 5, 8, 11, 14.
Rate (color{blue}{m = 3}). (color{blue}{b = 5}) (when (color{blue}{x = 0}), (color{blue}{y = 5})).
Equation: (color{blue}{y = 3x + 5}).
Example 3: A phone plan charges a flat fee of $10 plus $5 per gigabyte. Write the two-variable equation and complete the table.
Equation: (color{blue}{y = 5x + 10}) where (color{blue}{x = text{ gigabytes }}), (color{blue}{y = text{ total }}) cost.
(color{blue}{x = 0}): $10; (color{blue}{x = 1}): $15; (color{blue}{x = 2}): $20; (color{blue}{x = 3}): $25.
Example 4: Given the equation (color{blue}{y = 2x + 1}), find y when (color{blue}{x = 4}).
(color{blue}{y = 2(4) + 1 = 9}).
More Practice: Solving Equations (Math with Mr. J)
Math with Mr. J reviews the skills you need to substitute and solve in two-variable contexts:
Exercises
Write the two-variable equation for each table, then use it to find the missing value.
- x: 0, 1, 2, 3 | y: 3, 5, 7, 9. What is y when (color{blue}{x = 5})?
- x: 1, 2, 3, 4 | y: 2, 5, 8, 11. What is y when (color{blue}{x = 6})?
- x: 0, 1, 2, 3 | y: 0, 4, 8, 12. What is y when (color{blue}{x = 10})?
- x: 2, 4, 6, 8 | y: 7, 11, 15, 19. Write the equation.
- Use (color{blue}{y = 5x – 3}): find y when (color{blue}{x = 4}).
- Use (color{blue}{y = 2x + 6}): find x when (color{blue}{y = 20}).
Answers
- (color{blue}{y = 2x + 3}); when (color{blue}{x = 5}): (color{blue}{y = 13})
- (color{blue}{y = 3x – 1}); when (color{blue}{x = 6}): (color{blue}{y = 17})
- (color{blue}{y = 4x}); when (color{blue}{x = 10}): (color{blue}{y = 40})
- (color{blue}{y = 2x + 3}) ((color{blue}{m = frac{(11-7)}{(4-2)} = 2}); b: (color{blue}{7 = 2(2)+b}) → (color{blue}{b = 3}))
- (color{blue}{y = 5(4)-3 = 17})
- (color{blue}{20 = 2x+6 rightarrow x = 7})
Frequently Asked Questions
How do you write an equation from a table of values?
Check how y changes each time x goes up by 1; that change is the slope m. Then find b, the y-value when x = 0, or substitute one row into y = mx + b. For the table (0, 1), (1, 3), (2, 5), y rises by 2 each row and starts at 1, so the equation is y = 2x + 1. Test it on another row to confirm.
How do you write a linear equation from a table?
A table is linear when the y-values change by the same amount for equal steps in x. If x goes up by 2 and y goes up by 6, the slope is 6 ÷ 2 = 3. Plug a point such as (2, 4) into y = 3x + b: 4 = 6 + b, so b = −2. The equation is y = 3x − 2.
How do you write a function from a table?
Find the rule that turns each input into its output, then write it in function notation. If the table shows f(1) = 7, f(2) = 11 and f(3) = 15, the outputs grow by 4, and working backward gives f(0) = 3. So f(x) = 4x + 3. A real-world version: a gym charges a $3 fee plus $4 per class, and f(x) gives the cost of x classes.
How do you write an exponential equation from a table?
Instead of differences, look at ratios. If each y-value is multiplied by the same number when x goes up by 1, the table is exponential: y = a × bˣ. For (0, 5), (1, 15), (2, 45), each output is 3 times the last, and the value at x = 0 is 5, so y = 5 × 3ˣ. If the differences are constant instead, use a linear equation.
How do you write a quadratic equation from a table?
First check the differences between y-values. If the first differences are not constant but the second differences are, the table is quadratic. For (0, 0), (1, 1), (2, 4), (3, 9), the first differences 1, 3, 5 change by 2 each time, which gives y = x². In general, half of the second difference is the coefficient of x² in y = ax² + bx + c.
Related Topics
Related to This Article
More math articles
- Characteristics and Organization of Life
- The Best Grade 3 ELA Practice Tests for Wisconsin Students
- Enhanced ACT Composite Score: Read Your English, Math and Reading Results (2027 Prep)
- Arkansas ATLAS Grade 4 Math Free Worksheets: Free PDF Worksheets with Friendly Answer Keys
- How to Pass the HiSET Math Test: 2026 Strategy Guide
- What Are the Applications of Inverse Trigonometric Functions?
- 49 Free Grade 3 Math Worksheets for Montana MAST Prep, Built Around the Real Skill List
- Biological Indicators and Process Challenge Devices
- How to Compare Numbers Up to a Billion: A Step-by-Step Guide
- Top 10 Free Websites for ISEE Math Preparation





What people say about "Using a Table to Write a Two-Variable Equation"?
No one replied yet.