← study-guides

Dependent and Independent Variables: Definitions, Graphs, Control Variables, 12 Examples and a Quiz

Dependent and independent variables explained for science, psychology and statistics: quick tests to tell them apart, graph axes, control and confounding variables, 12 worked examples and a 10-question practice quiz.

25 November 2026
variablesscience practicalspsychology research methodsstatisticsgcse science

The independent variable is the one you change or choose in an experiment; the dependent variable is the one you measure, because its value depends on that change. If you test how temperature affects enzyme activity, temperature is independent and the rate of reaction is dependent. Everything else that could affect the result is a control variable, kept the same.

Students lose marks on variables in every science, in psychology and in statistics, usually because they mix up which is which under exam pressure. This guide from FLN Tutors (Freelancer Network) science and statistics tutors gives you a quick test for telling them apart, shows where each one goes on a graph, and explains control, extraneous and confounding variables in plain English.

Twelve worked examples cover biology, chemistry, physics, psychology, maths and economics, and a 10-question practice quiz at the end lets you check that the idea has stuck. Every number in the examples was recalculated by hand, and the units are written out in full.

What are dependent and independent variables?

A variable is any factor that can change or be changed in an investigation. In a fair experiment you deliberately change one factor, measure another, and keep the rest fixed. Those three roles have names, and the table below is the quickest summary you will need.

Key factIndependent variableDependent variableControl variable
What you do with itChange it or choose its valuesMeasure itKeep it the same
Question it answersWhat am I testing?What am I recording?What could spoil the test?
How many per experimentUsually oneUsually oneSeveral
Graph axisx axis (horizontal)y axis (vertical)Not plotted
Table columnLeft-hand columnRight-hand columnsStated in the method
Other namesManipulated, explanatory, predictor, inputResponding, outcome, response, outputControlled variable, fixed variable
Example (enzymes)TemperatureRate of reactionpH, enzyme concentration, substrate volume

The words come from the relationship itself. The dependent variable depends on the independent variable. The independent variable does not depend on anything in the experiment, because the investigator sets it.

In the language used by AQA in its GCSE science specifications, the independent variable is the one that is changed or selected by the investigator, and the dependent variable is the one measured for each change. The AQA working scientifically section also expects you to explain why control variables are kept the same.

How do you tell which variable is dependent or independent?

Under exam pressure, use one of these three quick tests.

  1. The cause and effect test. The independent variable is the suspected cause and the dependent variable is the effect. Ask which one could plausibly change the other.
  2. The sentence test. Put the two factors into the sentence "the effect of A on B". A is independent and B is dependent. "The effect of light intensity on the rate of photosynthesis" puts light intensity first, so it is independent.
  3. The "who decides" test. If the investigator picks the values before the experiment starts, it is independent. If the value is only known after a measurement, it is dependent.

A useful memory aid is that the dependent variable is the data you collect. Both start with D.

Question wording gives strong clues. Phrases such as "investigate how", "find out whether" and "the effect of" usually name the independent variable first. Words such as "measured", "recorded", "timed" and "counted" usually describe the dependent variable.

One warning: the order is not always cause then effect in a sentence. "Does the rate of a reaction change with temperature?" names the dependent variable first. Always apply the who-decides test rather than relying on word order alone.

What are control variables?

Control variables are all the other factors that could affect the dependent variable. You keep them the same so that any change you measure can be linked to the independent variable and nothing else. This is what makes a test fair, and it is the basis of a valid conclusion.

For each control variable, a strong answer says three things: what it is, how it will be kept the same, and why it matters. For example: "The volume of hydrochloric acid will be kept at 50 cm³ using a measuring cylinder, because a larger volume would contain more acid particles and could change the amount of gas produced."

Three terms are easy to confuse.

  • A control variable is a factor kept constant in every trial.
  • A control group or control experiment is a separate trial in which the independent variable is absent or set to a neutral value, such as a plant grown with no added fertiliser. It gives a baseline for comparison.
  • A constant is a quantity that does not change at all, such as the acceleration due to gravity in a school laboratory. In everyday science teaching, "constant" and "control variable" are sometimes used loosely, so follow the wording your teacher and exam board use.

Some factors cannot be fully controlled, especially in fieldwork. Weather on a field trip or the genetic variety of wild plants are examples. In that case, a good method monitors the factor, records it, and discusses it in the evaluation.

Does the independent variable go on the x axis or the y axis?

The independent variable goes on the x axis, which is horizontal, and the dependent variable goes on the y axis, which is vertical. A short way to remember it is "DRY MIX": the Dependent or Responding variable goes on the Y axis, and the Manipulated or Independent variable goes on the X axis.

The same rule shapes a results table. The independent variable goes in the first column, with its units in the heading. The repeat readings of the dependent variable go in the next columns, followed by a mean. Units belong in the column heading, not after every number.

Time is a special case worth learning. When you record how something changes over time, such as the temperature of a cooling liquid or the height of a plant over several weeks, time is the independent variable and goes on the x axis. You choose when to take readings, and time is not affected by anything in the experiment.

Plot the graph type that suits the data. If the independent variable is continuous, use a line graph or scatter graph. If it is categoric, such as type of fertiliser, use a bar chart with gaps between the bars.

What are examples of dependent and independent variables in biology, chemistry and physics?

Practical work at GCSE, IGCSE and A level is built around clear variables. The examples below are typical of school investigations; the exact practicals vary by exam board.

InvestigationIndependent variableDependent variableKey control variables
Enzyme activityTemperature or pHTime for starch to disappearEnzyme and starch volumes and concentrations
Osmosis in potatoSugar or salt concentrationPercentage change in massSize of potato pieces, time in solution
Photosynthesis in pondweedDistance from the lampBubbles of gas per minuteWater temperature, carbon dioxide level
Rate of reactionAcid concentrationVolume of gas in a fixed timeMass of metal, temperature, acid volume
ElectrolysisCurrentMass of metal depositedTime, electrode area, solution concentration
Specific heat capacityMaterial of the blockTemperature riseMass, energy supplied, insulation
PendulumLength of stringTime periodMass of bob, starting angle
Resistance of a wireLength of wireResistanceWire material, thickness, temperature

Notice that the dependent variable in osmosis is a percentage change, not the final mass. Pieces of potato never start at exactly the same mass, so a percentage change lets you compare them fairly. Our lab report guide shows how to present this kind of data.

What are independent and dependent variables in psychology?

Psychology uses the same two roles, but people make the variables harder to control. A level psychology courses expect you to use several extra terms accurately.

Operationalisation means defining a variable so precisely that it can be measured or set. "Memory" is too vague. "The number of words correctly recalled from a list of 20 within two minutes" is operationalised. Both the independent and dependent variable should be operationalised in a good hypothesis.

Extraneous variables are any factors other than the independent variable that might affect the dependent variable, such as noise in the room or the time of day. If an extraneous variable is not controlled and it does change the results, it becomes a confounding variable, because you can no longer tell whether the independent variable caused the effect.

Participant variables are differences between people, such as age or prior knowledge. Situational variables come from the setting, such as lighting or instructions. Demand characteristics are cues that might lead participants to guess the aim and change their behaviour.

The experimental design affects how participant variables are handled. In an independent groups design, different people do each condition, so random allocation is used. In a repeated measures design, the same people do every condition, which removes participant differences but introduces order effects, reduced by counterbalancing. A matched pairs design pairs similar participants across conditions.

Psychology students often find that the psychology subject page and our guide on how to write a hypothesis help them connect these terms to their own coursework or exam answers.

What are independent and dependent variables in maths and statistics?

In maths, a function such as y = 3x + 2 has x as the independent variable, often called the input, and y as the dependent variable, or output. You choose a value of x and the rule produces y. When a variable represents time, such as t in a formula for distance travelled, it is usually the independent variable.

In statistics the vocabulary shifts. In regression, the independent variable is called the explanatory variable or predictor, and the dependent variable is called the response or outcome variable. A regression line of y on x predicts the response from the explanatory variable.

Correlation is different. When you measure two variables without changing either one, such as hours of sleep and test scores in a survey, neither is truly independent. A level psychology calls these co-variables. A correlation tells you the variables move together, but it does not show that one causes the other, because a third variable could be driving both.

In data science and machine learning, the independent variables are usually called features and the dependent variable is called the target or label. The idea is the same: the features are used to predict the target.

For further support with regression, hypothesis tests and data analysis, see the statistics subject page or our SPSS data analysis guide.

What are categoric, discrete and continuous variables?

Variables are also classified by the kind of values they take, and this decides how you display the data.

  • Categoric variables have values that are labels, such as eye colour, type of fertiliser or blood group. Some categoric variables are ordered, such as small, medium and large; these are called ordinal.
  • Discrete variables are counted and take whole-number values, such as the number of seeds that germinated or the number of bubbles per minute.
  • Continuous variables are measured and can take any value within a range, such as temperature, mass, length or time.

A good dependent variable is usually continuous or discrete, because it can be measured precisely. Where the independent variable is categoric, you compare groups with a bar chart; where both variables are continuous, a line graph or scatter graph shows the pattern. Our guide to qualitative vs quantitative research explains how these choices affect research design more broadly.

How do variables fit into a hypothesis and a research question?

A hypothesis is a testable prediction about how the independent variable will affect the dependent variable. A clear hypothesis names both variables and the direction of the effect: "As the temperature increases from 20 °C to 40 °C, the rate of amylase activity will increase."

In psychology and statistics you will meet two forms. The alternative hypothesis predicts an effect or a difference. The null hypothesis predicts no effect, and the statistical test decides whether to reject it. A directional hypothesis states which way the effect will go; a non-directional hypothesis predicts a difference without saying which way.

Research questions for coursework, projects and dissertations work in the same way. "How does the length of daily screen time affect sleep duration in teenagers?" contains an independent variable (screen time) and a dependent variable (sleep duration). Our guide on how to write a research question shows how to tighten this kind of question until each variable is measurable.

What are some worked examples of dependent and independent variables?

Each example identifies the variables first and then, where numbers are involved, shows the working. Units are given in full.

Example 1: enzymes and temperature

A student times how long amylase takes to break down starch at 20, 30, 40, 50 and 60 °C. The independent variable is temperature, because the student chooses the five values. The dependent variable is the time taken for the starch to disappear, measured with a stopwatch and iodine solution. Control variables include the pH (set with a buffer), the volume and concentration of amylase, and the volume and concentration of starch.

Example 2: plant growth and light colour

Seedlings are grown under red, blue and green light for two weeks, and their heights are measured. The independent variable is light colour, which is categoric. The dependent variable is the increase in height in millimetres. Controls include light intensity, temperature, water given and seedling species. A bar chart is the correct graph, because light colour is categoric.

Example 3: timing a pendulum

A student changes the length of a pendulum and times 10 complete swings for each length. The independent variable is length and the dependent variable is the time period. For a length of 1.00 m, 10 swings take 20.1 s, so one period is 20.1 ÷ 10 = 2.01 s. Timing 10 swings and dividing reduces the effect of human reaction time on each reading.

Example 4: rate of reaction

Magnesium ribbon reacts with hydrochloric acid of different concentrations, and the gas is collected in a gas syringe for 60 s. The independent variable is acid concentration and the dependent variable is the volume of hydrogen collected. In one trial, 48 cm³ of gas is collected in 60 s, so the mean rate is 48 ÷ 60 = 0.8 cm³ per second. Controls include the length of magnesium, the acid volume and the temperature.

Example 5: stretching a spring

Weights are added to a spring and the extension is measured. The independent variable is the force applied, and the dependent variable is the extension. A force of 2 N gives an extension of 4 cm and a force of 6 N gives 12 cm. The gradient of the extension against force graph is (12 − 4) ÷ (6 − 2) = 2 cm per newton. Converting 12 cm to 0.12 m, the spring constant is 6 ÷ 0.12 = 50 N per metre.

Example 6: a cooling curve

A beaker of water is left to cool, and its temperature is recorded every minute. Time is the independent variable, plotted on the x axis, and temperature is the dependent variable. The water cools from 80 °C to 50 °C in 10 minutes, so the mean rate of cooling is (80 − 50) ÷ 10 = 3 °C per minute. Controls include the volume of water and the type of beaker.

Example 7: noise and memory in psychology

Two groups of participants learn a list of 20 words, one in silence and one with background noise, then recall as many as they can in two minutes. The independent variable is the noise condition, and the dependent variable is the number of words correctly recalled. The silent group has a mean of 14 words and the noise group a mean of 11, a difference of 3 words. As a percentage of the silent mean, that is 3 ÷ 14 × 100 = 21.4%, to one decimal place. Because different people took each condition, participant variables such as memory ability are possible confounders, so participants should be randomly allocated.

Example 8: a taxi fare as a function

A taxi charges a £3 fixed fee plus £2.50 per kilometre, so the fare in pounds is y = 2.5x + 3, where x is the distance in kilometres. Distance is the independent variable and fare is the dependent variable. For an 8 km journey, the fare is 2.5 × 8 + 3 = 20 + 3 = £23. The gradient, 2.5, is the cost per kilometre, and the y-intercept, 3, is the fixed fee.

Example 9: a regression line

A teacher records the weekly revision hours and test scores of 30 students and fits the line score = 4.2h + 38, where h is revision hours. Revision hours is the explanatory variable and test score is the response. For 10 hours, the predicted score is 4.2 × 10 + 38 = 42 + 38 = 80. This is a prediction, not proof of cause, and predicting well beyond the hours in the data set would be unreliable extrapolation.

Example 10: sleep and grades in a survey

A survey asks students how many hours they sleep and what grades they achieve. Nobody changes either variable, so this is a correlational study with two co-variables rather than a true experiment. Even a strong positive correlation would not prove that sleep improves grades, because a third factor, such as a stressful part-time job, could affect both. Calling sleep the independent variable here is a common error.

Example 11: price and demand in economics

An economist studies how the price of a product affects the quantity demanded. Price is treated as the independent variable and quantity demanded as the dependent variable. Yet economics diagrams traditionally put price on the vertical axis. This is a long-standing convention in the subject, so in economics follow the subject's diagram rules, and in science follow the x for independent rule.

Example 12: two independent variables

A biologist tests how both temperature and light intensity affect photosynthesis, using three temperatures and four light intensities. There are two independent variables and one dependent variable, the rate of oxygen production. To test every combination, 3 × 4 = 12 conditions are needed. At school level, you usually change one independent variable at a time, so that the effect of each can be seen clearly.

Practice quiz: can you identify the variables?

Try each question before reading the answer.

  1. A student investigates how the mass of a ball affects how high it bounces. Answer: independent variable, mass of ball; dependent variable, bounce height.
  2. Does the number of hours spent on social media affect self-reported mood? Answer: independent variable, hours on social media; dependent variable, mood score.
  3. A scientist measures the growth of bacteria at different concentrations of an antibiotic. Answer: independent variable, antibiotic concentration; dependent variable, bacterial growth, often measured as the area of clear zone around a disc.
  4. Heart rate is measured before and after one minute of step-ups. Answer: independent variable, exercise condition (before or after); dependent variable, heart rate in beats per minute.
  5. On a graph of distance against time for a cyclist, which variable is independent? Answer: time, on the x axis.
  6. In y = 5x − 1, which variable is dependent? Answer: y.
  7. Researchers test whether the colour of a classroom affects test scores. Name two control variables. Answer: any two of difficulty of the test, time of day, lighting level, time allowed and room temperature.
  8. Is "the type of soil" a categoric, discrete or continuous variable? Answer: categoric.
  9. A study records ice cream sales and sunburn cases each month and finds a correlation. Is ice cream the independent variable? Answer: no; both are co-variables, and hot sunny weather is a likely third variable behind both.
  10. A student changes the voltage across a resistor and records the current. What goes in the left-hand column of the results table? Answer: voltage, with the unit volts in the heading.

If you scored eight or more, you are secure. If not, reread the three quick tests and try writing your own "the effect of A on B" sentence for each question.

What mistakes do students make with variables?

  • Swapping the axes. The independent variable goes on the x axis in science graphs. Check this every time you draw one.
  • Listing the dependent variable as a control. You cannot keep the thing you measure the same.
  • Naming vague variables. "Temperature" is fine, but "the plant" or "how well it works" is not a variable. Name a measurable quantity with a unit.
  • Writing "amount" without saying how it is measured. Say "volume in cm³" or "mass in grams".
  • Calling a correlational variable independent. If nobody changed it, it is a co-variable.
  • Giving a control variable without the reason. Exam mark schemes often credit "why" as well as "what".
  • Changing more than one thing at once. If two factors change between trials, you cannot say which one caused the result.

Can a tutor help with experimental design and statistics?

Variables sit at the heart of practical write-ups, psychology research methods, statistics coursework (see statistics assignment help) and dissertation methodology chapters. A tutor can check that each variable is measurable, that your controls are realistic, and that your conclusion does not claim more than the data shows.

For research methods at university level, the research methodology subject page covers design, sampling and analysis.

Frequently asked questions

Is time a dependent or independent variable?

Time is almost always the independent variable. When you record how something changes over time, you choose when to take each reading, and nothing in the experiment can change time itself. So time goes on the x axis. The exception is when time is what you measure, such as the time taken for a reaction to finish; then it is dependent.

Which variable is manipulated in an experiment?

The independent variable is the manipulated variable. The investigator decides its values before the experiment starts, such as choosing five temperatures or three concentrations. The dependent variable is never manipulated directly; it is the responding variable whose value is measured after each change. Control variables are not manipulated either; they are deliberately held steady throughout.

Does the dependent variable go on the y axis?

Yes. In science graphs, the dependent variable goes on the vertical y axis and the independent variable goes on the horizontal x axis. The memory aid DRY MIX helps: dependent or responding on the y axis, manipulated or independent on the x axis. Economics diagrams are an exception, because price is traditionally drawn on the vertical axis.

How is a control variable different from a control group?

A control variable is a factor kept the same in every trial, such as temperature or volume. A control group is a separate set of subjects or trials that does not receive the independent variable, giving a baseline for comparison. An experiment usually has several control variables, but often only one control group or control experiment.

Can an experiment have more than one independent variable?

Yes, but each extra independent variable multiplies the number of conditions you need, and the analysis becomes more complex. Two temperatures and three light levels already create six combinations. In GCSE and most A level practicals, you change one independent variable at a time, so that any change in the dependent variable has only one possible cause.

Can a variable be both dependent and independent?

The same quantity can play different roles in different studies. Sleep duration could be the dependent variable in a study of screen time, then the independent variable in a separate study of reaction speed. Within a single experiment, though, each variable has one role. Decide by asking whether you set its values or measure them.

What is a confounding variable?

A confounding variable is an uncontrolled factor that changes along with the independent variable and also affects the dependent variable. Because of it, you cannot be sure what caused the result. For example, if a noisy condition is always tested late in the day, tiredness could confound the effect of noise on memory scores.

What is an extraneous variable?

An extraneous variable is any factor, other than the independent variable, that could affect the dependent variable. Room temperature, participant mood and equipment differences are typical. Good design controls or monitors extraneous variables. If one is left uncontrolled and actually changes the results, it is then described as a confounding variable.

What is the dependent variable in psychology research?

In psychology, the dependent variable is the behaviour or response that the researcher measures, such as words recalled, reaction time in milliseconds or a score on a questionnaire. It must be operationalised, meaning defined precisely enough to measure. The independent variable is usually a condition the researcher sets, such as noise level or type of instruction.

What are dependent and independent variables in regression?

In regression, the dependent variable is called the response or outcome, and the independent variables are called explanatory variables or predictors. A simple linear regression uses one predictor to estimate the response with a straight line. Multiple regression uses several predictors at once. Regression shows association and prediction, not automatically cause and effect.

Is age an independent variable?

Age can be treated as an independent variable, but the researcher cannot assign it; they can only select participants of different ages. That makes it a quasi-independent variable, and the study is a quasi-experiment or a natural comparison. Because participants are not randomly allocated, other differences between age groups could affect the results.

How do you operationalise a variable?

To operationalise a variable is to define it in terms of exactly how it will be set or measured. "Stress" becomes "heart rate in beats per minute after a timed arithmetic task". Clear operational definitions make an investigation repeatable, allow results to be compared, and turn a vague idea into a testable hypothesis.

What is the easiest way to remember the difference?

Remember that the dependent variable is the data you collect, and that the independent variable is the one you decide. Then use the sentence "the effect of A on B", where A is independent and B is dependent. For graphs, DRY MIX puts the dependent variable on the y axis and the independent variable on the x axis.

Why do control variables matter?

Control variables make a test fair. If they changed between trials, you could not tell whether a change in the dependent variable came from the independent variable or from something else. Keeping them constant improves the validity of your conclusion, and explaining why each one matters is often worth marks in practical and exam questions.

Want a subject expert to help with this?

Book a tutor →

Money-Back Guarantee

Full refund if we miss the agreed deadline, can't find a suitable expert, or major errors can't be fixed by revision.

How the money-back guarantee works →

100% Confidential

Your identity, order details and institution are never shared with any third party.

How we keep your order confidential →

Deadline-Backed Delivery

Every order has an agreed deadline. If we don't deliver by it, you can claim a full refund.

Read the refund policy →

Get started today

Ready to get expert help?

Tell us what you need and get matched with a tutor who teaches your subject. Delivered on time, every time.

See how it works
Instant quoteNo account needed to get a priceFree revisions100% confidential