Independent and Dependent Variables: Equations and Examples

#6th Grade Math#Expressions and Equations#Independent and Dependent Variables
TL;DR
Independent and dependent variables are two linked quantities: you choose the independent one, and the dependent one is found from it. Sixth graders write the rule as an equation, then check tables and graphs.
Bhanzu TeamLast updated on December 2, 202616 min read

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 d=65td = 65t for a car at 65 miles per hour.
  • Most 6th-grade tables follow one of two rule shapes, multiplying by a rate as in c=3tc = 3t 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.

Independent and dependent variables in the thunder rule, with seconds counted going in and miles coming out.
An input-output table for the thunder rule, where 5, 10, 15 and 20 seconds counted become 1, 2, 3 and 4 miles, with an arrow labeled divide by 5.

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 tt 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 d=t÷5d = t \div 5 Seconds counted, tt Miles away, dd

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 d=65td = 65t.

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).

  1. Name the two quantities that change, such as movie tickets and total cost.
  2. Try both orders, "cost depends on tickets" and "tickets depend on cost."
  3. Keep the order that fits the problem. Here, cost depends on tickets.
  4. Give each quantity a letter and write what it stands for, such as tt = tickets and cc = 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 h=2wh = 2w
"65 miles per hour" Multiply by the rate, as in d=65td = 65t
"4 years older than" Add a fixed number, as in k=s+4k = s + 4
"$7 for every dog" Multiply by the rate, as in e=7de = 7d
"how many dogs to earn $56" Output given, so solve for the input
"divide your count by 5" Divide, as in d=t÷5d = t \div 5

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.

c=3tc = 3t

Writing cc 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, tt 0 1 2 3 4 5
Cost in dollars, cc 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.

Graph of c = 3t with tickets on the horizontal axis and cost in dollars on the vertical axis.
A coordinate graph with tickets bought, t, from 0 to 6 on the x-axis and total cost in dollars, c, from 0 to 18 on the y-axis, showing the separate points (0, 0), (1, 3), (2, 6), (3, 9), (4, 12) and (5, 15) for the rule c = 3t, with (4, 12) labeled and a note that the points are not joined.

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.

A multiply rule and an add rule compared in two tables of independent and dependent variables.
Two input-output tables side by side, where the left table turns inputs 1, 2, 3 and 4 into 4, 8, 12 and 16 with the rule y = 4x, and the right table turns them into 5, 6, 7 and 8 with the rule y = x + 4, with +4 and +1 marks showing each jump.
  1. Find the jump. In the left table, the outputs go up by 4 each row. In the right table, they go up by 1.
  2. If the outputs jump by more than 1, try multiplying the input by that jump. The left table gives y=4xy = 4x.
  3. If the outputs go up by 1, like the inputs, add the fixed gap between them. The right table gives y=x+4y = x + 4.
  4. 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 y=2x+1y = 2x + 1, 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 ww = number of weeks (independent) and hh = height in inches (dependent).

h=2wh = 2w
h=2×6=12h = 2 \times 6 = 12

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 dd, because 65 is a number of miles. That gives t=65dt = 65d.

Check it with a trip you already know. In 2 hours the car goes 130 miles, so put d=130d = 130 into that equation.

t=65×130=8,450t = 65 \times 130 = 8{,}450

That's 8,450 hours, nearly a year of driving, for a 2-hour trip. The variables are backward. Distance depends on time, so dd goes alone on the left.

d=65td = 65t

Now 65×2=13065 \times 2 = 130 miles matches the known trip.

d=65×3=195d = 65 \times 3 = 195

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, ss 6 7 8 9
Kai's age, kk 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.

k=s+4k = s + 4
k=15+4=19k = 15 + 4 = 19

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 dd = dogs walked (independent) and ee = earnings in dollars (dependent).

e=7de = 7d

This time the output is given, so you work back to the input, as in one-step equation word problems.

56=7d56 = 7d

Divide both sides by 7, the inverse operation of multiplying by 7.

d=56÷7=8d = 56 \div 7 = 8

Lucia must walk 8 dogs, and 7×8=567 \times 8 = 56 confirms it.

Example 5

A graph of a small pool filling from empty has minutes, mm, on the x-axis and gallons, gg, 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.

10÷2=5,20÷4=5,30÷6=510 \div 2 = 5, \quad 20 \div 4 = 5, \quad 30 \div 6 = 5

The pool gains 5 gallons each minute.

g=5mg = 5m
g=5×9=45g = 5 \times 9 = 45

After 9 minutes, the pool holds 45 gallons.

Example 6

Ming uses the thunder rule d=t÷5d = t \div 5. 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?

d=20÷5=4d = 20 \div 5 = 4
d=8÷5=1.6d = 8 \div 5 = 1.6
4−1.6=2.44 - 1.6 = 2.4

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 c=3tc = 3t 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 t=3ct = 3c, 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 b=2cb = 2c.

The correct way: Flour depends on batches, so batches, bb, is independent and cups of flour, cc, is dependent. The rule is c=2bc = 2b, and 3 batches need 2×3=62 \times 3 = 6 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 y=x+2y = x + 2. The second row breaks it, because 2+2=42 + 2 = 4 but the table says 6.

The correct way: The outputs jump by 3 each time the input goes up by 1, so try y=3xy = 3x. Every row fits, since 3×1=33 \times 1 = 3, 3×2=63 \times 2 = 6, 3×3=93 \times 3 = 9 and 3×4=123 \times 4 = 12.

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.

Wrong rule y = x + 2 versus right rule y = 3x, checked against every row of a table.
A wrong-versus-right panel for the table with inputs 1, 2, 3, 4 and outputs 3, 6, 9, 12, where the wrong side guesses y = x + 2 from the first row and breaks at input 2 with 4 instead of 6 and at every row after it, while the right side shows y = 3x fitting all four rows.

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 c=3×7=21c = 3 \times 7 = 21 dollars. "How many tickets can $24 buy?" hands you the cost instead. Dividing both sides of c=3tc = 3t by 3, the inverse operation, turns the rule around, and t=24÷3=8t = 24 \div 3 = 8 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.

A Practical Next Step

Solve these three problems on paper, naming the independent and dependent variables before you write any equation.

  1. A printer prints 12 pages each minute. Write an equation for pages and minutes.
  2. A table has inputs 2, 3, 4 and 5 with outputs 9, 10, 11 and 12. Write the equation.
  3. A hose fills a pool at 8 gallons per minute. How many minutes does it take to put 96 gallons in the pool?

Answers: p=12mp = 12m, with minutes independent and pages dependent. y=x+7y = x + 7. 12 minutes, because 96÷8=1296 \div 8 = 12.

Practice these to solidify your understanding. If choosing which quantity comes first catches you, return to Mistake 1. Want a live Bhanzu trainer to walk through more independent and dependent variables problems? Book a free demo class, online globally, or in person at our McKinney, TX center.

Read More

Research Behind This Article

  1. National Weather Service, Understanding Lightning: Thunder (2026). weather.gov
  2. Common Core State Standards Initiative, Grade 6 Expressions and Equations (2010). thecorestandards.org
  3. National Center for Education Statistics, NCES Kids' Zone: What are Independent and Dependent Variables? (2026). nces.ed.gov
  4. OpenStax, Prealgebra 2e, 11.1 Use the Rectangular Coordinate System (2020). openstax.org
  5. 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?
Hours spent biking is one when you find distance from it, as in d=12hd = 12h at 12 miles per hour, and most independent and dependent variables examples share that shape.
What is a dependent variable in a scientific experiment?
It's the quantity you measure after changing something on purpose. Water plants by different amounts and record their heights, and height is the dependent variable. Science treats the independent variable and dependent variable just as math does, though experiments rarely give a neat equation.
What is a dependent variable in statistics?
The same idea with messier data. Statisticians call it the response variable and plot it on the y-axis, as with independent and dependent variables on a graph in math class.
Are independent variables really independent?
No. In dependent vs independent variables in math, "independent" only names the job a quantity does in one rule. That job can change with the question.
How do I teach independent and dependent variables at home?
Start with rules your child already lives with, such as allowance per chore, and ask which one depends on the other before any letters appear. If your child sorts the pair out loud but freezes on word problems, the gap is usually reading rather than math, so read problems aloud together. When the trouble is confidence, ask your child's teacher which examples the class used and redo those at home. A tutor makes sense mainly when your child is about two grade levels behind on a foundation skill such as one-step equations.
Is an independent and dependent variables worksheet enough practice?
It's a start, but a worksheet repeats the same numbers. The Quick Quiz: Check Yourself section gives fresh numbers at three levels.
✍️ Written By
Bhanzu Team
Bhanzu Team
Content Creator and Editor
Bhanzu’s editorial team, known as Team Bhanzu, is made up of experienced educators, curriculum experts, content strategists, and fact-checkers dedicated to making math simple and engaging for learners worldwide. Every article and resource is carefully researched, thoughtfully structured, and rigorously reviewed to ensure accuracy, clarity, and real-world relevance. We understand that building strong math foundations can raise questions for students and parents alike. That’s why Team Bhanzu focuses on delivering practical insights, concept-driven explanations, and trustworthy guidance-empowering learners to develop confidence, speed, and a lifelong love for mathematics.
Related Articles
Book a FREE Demo ClassBook Now →