What is a Variable?
In research, a variable is any characteristic, number or quantity that can vary across individuals or observations. It is what researchers measure, manipulate or control in a study.
Variables are the building blocks of quantitative (and sometimes qualitative) research because hypotheses typically propose relationships between variables.
Types of Variables
- Independent variable: the one you manipulate or that is assumed to influence another variable.
- Dependent variable: the outcome you measure, assumed to be influenced by the independent variable.
- Continuous vs categorical variables: Continuous can take many values (e.g., weight, height); categorical classify into groups (e.g., gender, yes/no).
- Confounding variables: Variables that may influence both independent and dependent variables and need to be controlled.
Mediators, Moderators and Control Variables
- Mediator: explains how the independent variable affects the dependent one (exercise improves mood through better sleep).
- Moderator: changes the strength or direction of the effect (the effect of exercise on mood is stronger for older adults).
- Control variable: held constant or measured so it does not distort the result, such as age or prior attainment.
- Extraneous variable: any other factor that could affect the outcome; when it is linked to both variables, it becomes a confounder.
Showing how these fit together is the job of a conceptual framework.
Levels of Measurement
- Nominal: categories with no order (degree subject, blood type).
- Ordinal: ordered categories (agree, neutral, disagree; class rank).
- Interval: equal steps, no true zero (temperature in °C).
- Ratio: equal steps and a true zero (height, reaction time, income).
The level decides which statistics and tests you can use in data analysis.
Five Examples of Variables
In "Does background music affect memory in Year 10 pupils?": the type of music (independent, nominal), the number of words recalled (dependent, ratio), age (control), prior test scores (control) and room noise (extraneous). In an experiment, the control group receives the "no music" level of the independent variable.
How to Identify Variables
Read the research question: what is changed or compared (independent), what is measured as the outcome (dependent), and what else could affect the outcome (control and extraneous). Then write down how you will measure each one.
Operationalisation of Variables
To measure a variable, you need to define how it will be observed or quantified (the operational definition). For example, if your variable is “stress,” you might operationalise it by “score on the Perceived Stress Scale.” Clear operationalisation ensures the variable is measurable and meaningful.
Why Variables Matter in Research Design
Because your study’s design, measurement, analysis and interpretation all hinge on how well your variables are defined and measured. Poor variable definitions lead to ambiguous findings or invalid conclusions.
Best Practices for Variables
- Define variables clearly: both conceptually and operationally.
- Choose measurement scales appropriate to the variable’s nature.
- Control or account for confounding variables.
- Ensure your measures are reliable and valid (see validity).
Variable FAQ
Can a variable be both independent and dependent?
Yes: in different analyses. For example, in one study a variable may serve as independent, in another as dependent.
Are categorical variables less ‘good’ than continuous ones?
Not necessarily: they simply require different analytic methods. The key is choosing the correct type for your research question and measurement plan.
Full guide: Independent vs Dependent Variables: 8 Real Studies
Use case: AI for research paper writing