Key Points
- Independent and dependent variables change together, and the dependent variable's value is always worked out from the independent variable's value.
- The sentence "the ___ depends on the ___" sorts the pair, since only one order makes sense, such as cost depending on tickets.
- A sixth-grade equation puts the dependent variable alone on the left, as in for a car at 65 miles per hour.
- Most 6th-grade tables follow one of two rule shapes, multiplying by a rate as in or adding a fixed number.
- On a graph, the independent variable runs along the horizontal x-axis and the dependent variable climbs the vertical y-axis.
Counting seconds after a lightning flash
Lightning flashes, and you start counting seconds until the boom. That count is real math. The National Weather Service explains that thunder takes about 5 seconds to travel a mile, so dividing your count by 5 gives the distance to the strike in miles.
Count 10 seconds and the strike was about 2 miles away. You can't measure the miles from your window, but you can count, so the count goes into the rule and the miles come out.
That one-way trip, from a number you have to a number you work out, is what independent and dependent variables describe. Scientists use rules like this to turn a measurement into an answer, and game designers use them to set how many points a stack of coins earns.

What are independent and dependent variables?
Independent and dependent variables are the two quantities in a relationship that change together. The independent variable is the input you choose or are given, and the dependent variable is the output worked out from it. A variable is a letter that stands for a quantity that can change, such as for seconds counted.
| Independent variable | Dependent variable | |
|---|---|---|
| Other name | Input | Output |
| Place in the equation | Inside the rule, on the right | Alone, on the left |
| Place on a graph | Horizontal x-axis | Vertical y-axis |
| Thunder rule | Seconds counted, | Miles away, |
Common Core standard 6.EE.C.9 expects your child to write an equation for the dependent variable in terms of the independent variable, then link it to tables and graphs. The standard's own example is motion at a constant speed, written .
The short page on the independent variable covers the vocabulary. This lesson goes on to the equations and graphs that 6th grade asks for.
How do you tell which variable is which?
Say the relationship as a sentence with "depends on" in the middle, and keep the order that sounds true. The quantity before "depends on" is the dependent variable (the NCES Kids' Zone graphing guide uses a similar fill-in sentence).
- Name the two quantities that change, such as movie tickets and total cost.
- Try both orders, "cost depends on tickets" and "tickets depend on cost."
- Keep the order that fits the problem. Here, cost depends on tickets.
- Give each quantity a letter and write what it stands for, such as = tickets and = cost in dollars.
Kids often skip step 4, then forget which letter was which by the third line of work.
The sentence check has one limit. It only works when a rule links the two quantities. Your shoe size and your spelling score both change over a year, but neither depends on the other.
Word problems signal the rule with a few phrases, taken here from the examples below.
| Words in the problem | Math it means |
|---|---|
| "2 inches each week" | Multiply by the rate, as in |
| "65 miles per hour" | Multiply by the rate, as in |
| "4 years older than" | Add a fixed number, as in |
| "$7 for every dog" | Multiply by the rate, as in |
| "how many dogs to earn $56" | Output given, so solve for the input |
| "divide your count by 5" | Divide, as in |
How do tables and graphs show the same rule?
A table and a graph both show pairs of input and output values, and the equation is the rule that makes every pair. Movie tickets cost $3 each, so the total cost follows this rule.
Writing alone on the left turns the equation into a machine. Put in any number of tickets, multiply by 3, and the cost comes out. An input-output table lists what the machine does.
| Tickets, | 0 | 1 | 2 | 3 | 4 | 5 |
|---|---|---|---|---|---|---|
| Cost in dollars, | 0 | 3 | 6 | 9 | 12 | 15 |
If this looks like one of your ratio tables, that's because it is one, with every column keeping 1 ticket to $3.
Each column also becomes an ordered pair, written (input, output), so 4 tickets gives (4, 12). On the coordinate plane, the input runs along the horizontal x-axis and the output up the vertical y-axis, so (4, 12) sits 4 across and 12 up, as with ratios on the coordinate plane.

The points rise 3 for every step to the right (that steady climb is the "times 3" in the rule, drawn as a picture). In 7th grade, straight-line patterns through (0, 0) like this one get a name of their own.
Which equation fits a table?
Look at how much the output changes each time the input goes up by 1, guess the rule, then check it on every row. Most 6th-grade tables follow one of two shapes.

- Find the jump. In the left table, the outputs go up by 4 each row. In the right table, they go up by 1.
- If the outputs jump by more than 1, try multiplying the input by that jump. The left table gives .
- If the outputs go up by 1, like the inputs, add the fixed gap between them. The right table gives .
- Check every row. One row that doesn't fit means the rule is wrong.
Both tables start in almost the same place, 4 and 5, which is why one row is never enough. In 8th grade, some tables need a multiply and an add together, like , and only the every-row check catches them.
Try It Yourself
Move the slider to choose how many tickets you buy, and watch the cost fill the table and a new point land on the graph. Then switch the rule to plus 4 and notice how the points climb by 1 instead of 3.
Examples of independent and dependent variables
Example 1
A bean plant grows 2 inches each week after it sprouts. Write an equation and find the height after 6 weeks.
Height depends on weeks, so let = number of weeks (independent) and = height in inches (dependent).
After 6 weeks, the plant is 12 inches tall.
Example 2
A car drives at a steady 65 miles per hour. Write an equation for distance and time, then find the distance after 3 hours.
The tempting move is to pair 65 with , because 65 is a number of miles. That gives .
Check it with a trip you already know. In 2 hours the car goes 130 miles, so put into that equation.
That's 8,450 hours, nearly a year of driving, for a 2-hour trip. The variables are backward. Distance depends on time, so goes alone on the left.
Now miles matches the known trip.
After 3 hours, the car has gone 195 miles.
Example 3
Kai is 4 years older than his sister Rosa. Use the table to write an equation for Kai's age, then find it when Rosa is 15.
| Rosa's age, | 6 | 7 | 8 | 9 |
|---|---|---|---|---|
| Kai's age, | 10 | 11 | 12 | 13 |
The question gives Rosa's age, so it is the independent variable. The outputs go up by 1 as the inputs do, and each is 4 more than its input.
When Rosa is 15, Kai is 19.
Example 4
Lucia earns $7 for every dog she walks. How many dogs must she walk to earn $56?
Let = dogs walked (independent) and = earnings in dollars (dependent).
This time the output is given, so you work back to the input, as in one-step equation word problems.
Divide both sides by 7, the inverse operation of multiplying by 7.
Lucia must walk 8 dogs, and confirms it.
Example 5
A graph of a small pool filling from empty has minutes, , on the x-axis and gallons, , on the y-axis, with points (2, 10), (4, 20) and (6, 30). Write the equation and find the gallons after 9 minutes.
Each point is (minutes, gallons), so divide the output by the input in each pair.
The pool gains 5 gallons each minute.
After 9 minutes, the pool holds 45 gallons.
Example 6
Ming uses the thunder rule . After one flash Ming counts 20 seconds, and after a later flash only 8 seconds. How far away was each strike, and how much closer was the second one?
The first strike was about 4 miles away and the second about 1.6 miles away, so the second was about 2.4 miles closer.
The reason one quantity goes first
A rule can't predict anything until you know which number goes in. Deciding the input and the output is what turns a description into a tool.
- Planning ahead, since prices 9 tickets at $27 before you reach the counter.
- Fair pay, because pay that depends on hours worked follows one rule at a given rate. The federal minimum wage has been $7.25 per hour since July 24, 2009, according to the US Department of Labor (some states set a higher one), so 20 hours at that rate pays $145.
- Science experiments, where you change one thing on purpose and measure what happens to another.
- Graphs that any classmate can read, because math and science put the input on the horizontal axis by shared convention, not by a law of nature.
Put the letters in the wrong places, as in , and the arithmetic still runs. Every answer it gives is wrong, though.
Where do kids mix up independent and dependent variables?
Mistake 1: Picking the quantity named first
Where it slips in: Word problems that name the output first, such as "A recipe uses 2 cups of flour for every batch of cookies."
Don't do this: Calling cups of flour the independent variable because it comes first, and writing .
The correct way: Flour depends on batches, so batches, , is independent and cups of flour, , is dependent. The rule is , and 3 batches need cups.
Kids reading fast tend to grab the first noun in the sentence and build from it, and saying the "depends on" sentence out loud breaks that habit.
Mistake 2: Building the rule from the first row only
Where it slips in: Tables such as inputs 1, 2, 3, 4 with outputs 3, 6, 9, 12.
Don't do this: Seeing 1 become 3, deciding the rule is "add 2", and writing . The second row breaks it, because but the table says 6.
The correct way: The outputs jump by 3 each time the input goes up by 1, so try . Every row fits, since , , and .
At an input of 1, multiplying by 3 and adding 2 give the same output, so the first row alone can't tell the two rules apart.

Mistake 3: Swapping the axes
Where it slips in: Plotting points from an input-output table, such as the $3 movie tickets.
Don't do this: Plotting 1 ticket that costs $3 as the point (3, 1), with cost along the bottom.
The correct way: The input comes first in an ordered pair and runs along the x-axis, so 1 ticket at $3 is the point (1, 3).
This slip often happens because the cost is the number you just worked out, so it feels like it belongs first. The swapped graph climbs far too gently, 1 up for every 3 across instead of 3 up for every 1.
What most guides miss about independent and dependent variables
The question you're asked decides which quantity is the input, so one relationship can run in both directions.
With $3 tickets, "How much do 7 tickets cost?" hands you the tickets, so dollars. "How many tickets can $24 buy?" hands you the cost instead. Dividing both sides of by 3, the inverse operation, turns the rule around, and tickets. This is the genuinely confusing part, because the same two quantities swap jobs between two sentences.
Inputs also have limits. You can't buy 2.5 tickets, so the ticket graph is a row of separate dots, while driving time can be any amount.
Key Takeaways
- The independent variable is whatever you are given or pick, and the dependent variable is whatever you then calculate.
- At an input of 1, multiplying and adding can match, so a rule earns trust only after it fits every row.
- An equation with the dependent variable alone on the left works like a machine, taking an input and returning an output.
- In math and science, graphs of independent and dependent variables put the input on the horizontal axis, so a reader can see at a glance which quantity drives the other.
- For more practice writing equations from tables, with a teacher who catches a rule that only fits the first row, explore Bhanzu's 6th grade math curriculum or an algebra tutor.
Read More
- Evaluating Expressions With Variables
- Rate Problems and Comparing Rates
- Identifying Proportional Relationships
- Equations of Proportional Relationships
- Graphing Linear Equations
Research Behind This Article
- National Weather Service, Understanding Lightning: Thunder (2026). weather.gov
- Common Core State Standards Initiative, Grade 6 Expressions and Equations (2010). thecorestandards.org
- National Center for Education Statistics, NCES Kids' Zone: What are Independent and Dependent Variables? (2026). nces.ed.gov
- OpenStax, Prealgebra 2e, 11.1 Use the Rectangular Coordinate System (2020). openstax.org
- US Department of Labor, Wage and Hour Division, Minimum Wage (2026). dol.gov
Quick Quiz: Check Yourself
Three levels with new numbers every time: find an output from an equation, find a missing output in a table, then work out how far the output moves between two inputs.
Was this article helpful?
Your feedback helps us write better content
Frequently Asked Questions
What is an example of an independent variable?
What is a dependent variable in a scientific experiment?
What is a dependent variable in statistics?
Are independent variables really independent?
How do I teach independent and dependent variables at home?
Is an independent and dependent variables worksheet enough practice?




