Dependent Variable

Definitionnoun phrase

What is a dependent variable in math?

A dependent variable is the output value that changes based on the input. It responds to changes in the independent variable: in y = 2x + 1, y is the dependent variable because its value depends on x. On a graph it goes on the vertical axis, because its value depends on what the input was.

In Spanish
variable dependiente
Also called
output variable, response variable, output
Grade level
6-8
Grade 6Grade 7Grade 8Algebra 1CCSS 6.EE.C.9SATACT

Dependent Variable in a picture

Independent and dependent variablesA flow diagram: n tickets, which you choose, goes into the rule C = 5n, and out comes C dollars, which depends on n. The input n is the independent variable and the output C is the dependent variable. Below, a graph shows the points (1, 5), (2, 10), (3, 15) and (4, 20), with tickets on the horizontal axis and cost on the vertical axis.n ticketsyou chooseruleC = 5nC dollarsdepends on nindependentthe inputdependentthe output051015201234tickets n: independent, horizontal axiscost C: dependent(4, 20)
You pick the number of tickets; the cost follows from the rule. The cost is the dependent variable, so it goes on the vertical axis.

Formal definition and notation

When two quantities change in relation to each other, the quantity whose value is determined by the other is the dependent variable, and the quantity that can be chosen freely is the independent variable. An equation writes the dependent variable in terms of the independent one, as in C = 5n. For a function y = f(x), y is the dependent variable and its possible values form the range.

Symbol Read it as Meaning
y y the usual letter for the dependent variable
f(x) f of x function notation for the output, the dependent variable, when the input is x
C = 5n C equals five n the dependent variable C written in terms of the independent variable n

Key facts

  • Ask ‘which one depends on the other?’ The answer to that question is the dependent variable.
  • In an equation solved for one letter, that letter is usually the dependent variable: in d = 60t, d depends on t.
  • In a table, the dependent variable is usually the second column or row; on a graph, it is the vertical axis.
  • In an experiment, the dependent variable is what you measure; the independent variable is what you change.
  • The same quantity can be dependent in one problem and independent in another, depending on the question.

Try it: feed the machine

Interactive

Type an input (the independent variable) and press Run. The output is the dependent variable: it depends on the input you chose.

This interactive needs JavaScript. The worked examples below show the same ideas step by step.

Dependent Variable examples, step by step

Example 1: Pay for hours worked

Warm-up

A lifeguard earns P = 15h dollars for h hours. Which variable is dependent? Find P when h = 6.

  1. The pay depends on the hours worked, so P is the dependent variable and h is independent.
  2. Substitute h = 6: P = 15 × 6.
  3. 15 × 6 = 90.

Answer: P is the dependent variable. For 6 hours, the pay is 90 dollars.

Example 2: Write the equation

Core

A plant is 4 cm tall and grows 1.5 cm each day. Write an equation for its height H after d days, and find H after 10 days.

  1. The height depends on the number of days, so H is dependent and d is independent.
  2. Start at 4 and add 1.5 for each day: H = 4 + 1.5d.
  3. For d = 10: H = 4 + 1.5 × 10 = 4 + 15 = 19.

Answer: H = 4 + 1.5d; after 10 days the plant is 19 cm tall.

Example 3: Variables in an experiment

Test-style

A student tests how grams of fertilizer f affect plant height H in centimeters and finds H = 20 + 3f. Name the dependent variable, then find H for 4 grams.

  1. The student chooses the amount of fertilizer, so f is independent.
  2. The height is measured as a result, so H is dependent.
  3. H = 20 + 3 × 4 = 20 + 12 = 32.

Answer: The dependent variable is the plant height H; with 4 grams of fertilizer, H = 32 cm.

Common mistakes

✗ Mistake‘Hours studied depends on the test score,’ so hours is the dependent variable.
✓ InsteadThe test score depends on hours studied, so the score is dependent.

The dependent variable is usually the output, not the value you choose first. Read the relationship as ‘score depends on hours’.

✗ MistakeGraphing cost on the horizontal axis and number of tickets on the vertical axis.
✓ InsteadPut the independent variable (tickets) across and the dependent variable (cost) up.

By convention the dependent variable goes on the vertical axis, so a graph reads ‘as x grows, y does this’.

✗ MistakeIn d = 60t, t is dependent because it comes last.
✓ Insteadd is dependent: the distance is found from the time.

Look at which letter the equation is solved for and which value is found from the other, not at the order of the letters.

Not to be confused with

Dependent Variablevs.Independent variable

The independent variable is the input you choose or control; the dependent variable is the output that results. In C = 5n, n is independent and C is dependent.

Dependent Variablevs.Output

An output is one particular value, like C = 15 for n = 3. The dependent variable is the quantity that takes all those output values.

Quick check: 3 questions

Question 1 of 3

In C = 5n, the cost C depends on the number of tickets n. Which variable is dependent?

Show answer and explanation

Answer: C. C is found from n, so C is dependent. n is the independent variable you choose, and 5 is a constant, not a variable.

Question 2 of 3

For y = 3x − 2, what is the value of the dependent variable when x = 4?

Show answer and explanation

Answer: A. y is dependent: y = 3 × 4 − 2 = 10. Choice B is the input itself, choice C adds 2 instead of subtracting, and choice D solves 3x − 2 = 4 for x.

Question 3 of 3

On a graph of distance traveled against time, where does distance belong?

Show answer and explanation

Answer: D. Distance depends on time, so distance is the dependent variable and goes on the vertical axis. Time, the independent variable, goes on the horizontal axis.

Dependent Variable: frequently asked questions

How do you identify the dependent variable?

Make a sentence with ‘depends on’: ‘The cost depends on the number of tickets’ sounds right, while ‘the number of tickets depends on the cost’ usually does not. The quantity before ‘depends on’ is the dependent variable. In an equation, it is usually the letter the equation is solved for, alone on one side, such as y in y = 4x + 3.

Is y always the dependent variable?

Usually, but not always. With x and y, y is dependent by convention. Real problems use letters that fit the story, such as d = 60t, where d is dependent. If you rewrite y = 2x as x = y2, then x becomes dependent. Decide from the relationship, not from the letter.

What is the difference between a dependent and an independent variable?

The independent variable is the input: you choose it or it changes on its own, like time or the number of items bought. The dependent variable is the output: it changes because the independent variable changed, like distance traveled or total cost. On a graph, independent goes across (horizontal) and dependent goes up (vertical).

Practice and tools

Sources

  1. Common Core State Standards, Grade 6 Expressions and Equations (6.EE.C.9)
  2. OpenStax, Intermediate Algebra 2e, 3.5 Relations and Functions

Updated November 2026·Reviewed by the Effortless Math team·Standards: CCSS 6.EE.C.9

Cite this entry

Effortless Math Team. “Dependent Variable.” Effortless Math Dictionary. Updated November 2026. https://www.effortlessmath.com/math-dictionary/dependent-variable/

Flashcard

TermDependent Variablethe output that depends on the input
DefinitionThe variable whose value depends on another. In C = 5n, cost C depends on tickets n; it goes on the vertical axis.
Study the full deck

Browse all terms in the Math Dictionary · More functions terms · Random term