Independent vs Dependent Variable: What Is the Difference?

The independent variable (IV) is the factor you change, manipulate or compare. The dependent variable (DV) is the outcome you measure, which may depend on the IV. In "Does sleep affect test scores?", sleep is the IV and test scores are the DV.

Updated 21 October 2026 · EssayWriting.com editorial team

Key takeaways
  • The independent variable is changed or compared; the dependent variable is measured.
  • The IV goes on the x-axis, the DV on the y-axis.
  • Control variables are held constant; confounders can mislead.

Independent vs dependent variable: the difference at a glance

Independent variableDependent variable
Rolecause / predictoreffect / outcome
Researcherchanges or groups by itmeasures it
Graph axisx-axis (horizontal)y-axis (vertical)
Examplehours of studyexam score

How to identify them

Put the variables into this sentence: "Changing [IV] causes a change in [DV]." The version that makes sense identifies them.

Control and confounding variables

Control variables are kept constant so they do not distort results (same test, same time of day). Confounding variables affect the DV and are linked to the IV, giving a false impression of cause; for example, students who study more may also sleep more.

In non-experimental research

In correlational studies, nothing is manipulated, so the terms predictor and outcome are often used instead.

How to remember the difference

The Dependent variable is the Data you collect. The independent variable is the one you are free (independent) to change.

Tricky cases and exceptions

Levels. An IV has levels or conditions: "caffeine: 0 mg, 100 mg, 200 mg". More than one IV gives a factorial design. Writing hypotheses: "Students who sleep 8 hours (IV) will score higher (DV) than students who sleep 5 hours."

Independent vs dependent variable in academic writing

State your IV and DV clearly in the methods section, and explain how each was operationalised (defined and measured). Use them to write testable hypotheses; see our null vs alternative hypothesis guide.

Practice quiz

Choose the correct option, then open each answer to check your reasoning.

1. Effect of music on concentration: which is the IV?

Music (IV); concentration is the DV.

2. Which axis shows the DV?

The y-axis.

3. Room temperature kept the same for everyone is a…

control variable.

Frequently asked questions

Can a variable be both?

Yes, in different studies, or as a mediator within one model.

How many IVs can an experiment have?

One or more; multiple IVs form a factorial design.

What is a confounding variable?

A variable related to both IV and DV that can distort the apparent relationship.

Helpful tools for this task

Independent picks chosen for usefulness. Links open in a new tab.

Want feedback on your draft? Talk to a tutor.