ComparisonUnits and measurement

Independent vs Dependent Variables: Science Experiment Basics

Diagram of a four-stage scientific method shown as a sequence of steps
Diagram of a four-stage scientific method shown as a sequence of steps. Image: Brightyellowjeans (CC BY-SA 4.0), via Wikimedia Commons

The independent variable is the factor you deliberately change in an experiment, the dependent variable is the factor you measure in response, and control variables are everything else you keep the same. If you change the height of a ramp and measure how fast a toy car moves, the ramp height is the independent variable and the speed is the dependent variable.

Independent variable vs Dependent variable vs Control variable at a glance

FeatureIndependent variableDependent variableControl variable
RoleThe factor you change on purposeThe result you measureA factor kept the same to make the test fair
Position on a graphx-axis (horizontal)y-axis (vertical)Not plotted; written in the method
Ramp exampleRamp height in cmCar speed in m/sCar mass, ramp surface, release point
Sugar exampleWater temperature in °CTime for sugar to dissolve in sSugar mass, water volume, stirring
Question to askWhat did I change?What did I measure?What did I keep the same?
Common mistakeCalling time independent when it is only measuredPlotting the dependent variable on the x-axisChanging a control between runs

The main difference

In a fair test, each kind of variable has a clear job. The independent variable is chosen by the experimenter and changed on purpose, so it is the cause being tested. The dependent variable is the result, recorded after each change, so it depends on what was changed. Control variables are held constant, so they cannot explain any difference in the results.

Scientists plot the independent variable on the horizontal x-axis and the dependent variable on the vertical y-axis. Reading the graph from left to right shows the cause followed by the effect. Control variables do not appear on the graph. Instead, they are listed in the method so that another person can repeat the test under the same conditions.

A simple experiment changes one independent variable at a time and takes several dependent measurements at each setting. A test that changes two factors at once cannot show which one caused the result.

Independent variable: the factor you change

The independent variable is the input or cause. It is the single factor that the experimenter sets to different values, such as ramp height in centimeters, water temperature in degrees Celsius or the mass of an object in grams. The units should always be stated, and the values are usually spaced evenly, such as 5 cm, 10 cm, 15 cm and 20 cm.

Consider a toy car rolling down a ramp. The height of one end of the ramp is the independent variable, because the student sets it before each run. The SI unit of length is the meter (m), so a height of 10 cm is the same as 0.10 m, even though a classroom ruler usually shows centimeters.

In a second experiment, the independent variable is water temperature. Warm water at 60 °C, room-temperature water at 20 °C and cold water at 5 °C give three settings to compare. The temperature of the water is set on purpose, so it is the cause being tested.

Dependent variable: the factor you measure

The dependent variable is the outcome, the number you record for each setting. It depends on the independent variable, which is why it is called dependent. In the ramp test, the dependent variable is the speed of the car at the bottom of the ramp, which can be calculated as distance divided by time. If the car travels 1.00 m in 2.5 s, its average speed is 0.40 m/s. Speed is explained in more detail on the velocity page.

In the sugar test, the dependent variable is the time it takes for the sugar to dissolve completely, measured with a timer. A single reading is weak evidence, so each temperature should be repeated three times and the results averaged. The units belong in the table heading, such as time (s), so that every value can be read without guessing.

If an outcome cannot be measured with a number, it can still be recorded as a description. Descriptive results of this kind are called qualitative data, and they are useful when no measuring scale exists.

Control variable: what you keep the same

Control variables are all the other factors that could affect the result. Keeping them constant means that any change in the dependent variable must come from the independent variable. In the ramp test, the car, the surface of the ramp, the starting point and the way the car is released should be the same every time. If a student uses a heavier car for one run, the test is unfair, because mass could change the result.

In the sugar test, the amount of sugar, the volume of water, the type of sugar and the stirring method are control variables. The same spoon and the same stirring speed should be used for every temperature. If one jar is stirred hard and another is not, a difference in dissolving time may come from the stirring rather than the temperature.

Control variables are sometimes called constants. They are not the same as a control experiment, which is a separate run with no change at all, used as a comparison.

What they have in common

All three kinds of variable appear in every fair experiment, and all three should be stated clearly in the method. They are linked: a dependent variable is chosen because it changes in response to the independent variable, and a control variable is any factor that is not allowed to change. Students mix them up because the words sound alike and because they often write the outcome first in a list.

The clearest way to avoid confusion is to ask three questions. What did I change? What did I measure? What did I keep the same? The answers map directly onto the three kinds of variable.

A common mistake is to call time the independent variable. Time is usually a dependent variable when a student measures how long something takes. It becomes independent only when the experimenter chooses the time points, such as recording a temperature at 0, 5 and 10 minutes.

How to tell them apart in an experiment

A rule of thumb: the independent variable goes on the x-axis, the dependent variable goes on the y-axis, and the control variables are written in the method.

QuestionIndependent variableDependent variableControl variables
What is it?The factor you changeThe result you measureEverything else kept the same
Where does it go on a graph?x-axisy-axisNot plotted
Ramp exampleRamp height (cm)Car speed (m/s)Car mass, surface, release point
Sugar exampleWater temperature (°C)Dissolving time (s)Sugar mass, water volume, stirring

Worked example: suppose a student tests whether a steeper ramp makes a toy car faster. Five heights are tested, and the speed is measured three times at each height. If the average speeds rise as the height increases, the student draws a graph with height on the x-axis and speed on the y-axis. The line shows the trend, and the control variables are listed in the method so that the test can be repeated by someone else.

Frequently asked questions

What is the independent variable in an experiment?

The independent variable is the factor the experimenter changes on purpose. It is the cause being tested, such as the height of a ramp or the temperature of water.

What is the dependent variable?

The dependent variable is the factor you measure after each change. Its value depends on the independent variable, such as the speed of a car or the time for sugar to dissolve.

Where does the independent variable go on a graph?

The independent variable goes on the horizontal x-axis, and the dependent variable goes on the vertical y-axis. Reading left to right then shows the cause followed by the effect.

What is a control variable?

A control variable is any factor kept constant so that it cannot change the result. Examples include the mass of the car, the volume of water or the stirring method.

Is time an independent or a dependent variable?

Time is usually a dependent variable when you measure how long something takes. It is independent only when the experimenter chooses the time points, such as measuring a temperature every five minutes.

Sources and further reading

  • OpenStax, "College Physics 2e"
  • BIPM, "The International System of Units (SI) Brochure"
  • Encyclopaedia Britannica, "Scientific method"

Cite this page

“Independent vs Dependent Variables: Science Experiment Basics.” Atoms & Forces, https://science.bigworldlist.com/compare/independent-vs-dependent-variables/.

More about Speed