Variables in Research

A variable is any characteristic, quantity or condition that can take different values across people, organisations or time, and that a study measures, manipulates or controls. The main types are independent, dependent, control, moderating, mediating and confounding variables, each defined by the role it plays in your research question.

For a dissertation, the practical question is not only “what is a variable?” It is:

Which things in my study cause, change, explain or distort the outcome I care about, and how will I handle each one?

This page explains what variables are, the types you are expected to recognise, how moderators, mediators and confounders differ, and how to identify and report the variables in your own study. One invented business study is followed from a research question to a variable map, and the page ends with an annotated extract and an exam tip. Variables are part of the wider research methodology process, and they appear first in your research questions and your conceptual framework.

On this page:

The table below summarises the main types of variable by role. Each row is explained in the sections that follow.

Type Role in the study Invented example
Independent The factor thought to influence the outcome Hours of staff training
Dependent The outcome being explained Customer satisfaction score
Mediating Explains how or why the independent variable affects the outcome Staff service quality
Moderating Changes the strength or direction of the relationship Store size
Control Held constant or adjusted for on purpose Region, staff tenure
Confounding Related to both cause and outcome, so it distorts the result Manager quality

Variables Explained Simply

Think of a garden. You want to know whether a new fertiliser makes tomatoes grow bigger. The fertiliser is what you change. The size of the tomatoes is what you watch. But sunlight, water and soil also change how big tomatoes grow, so you either keep them the same for every plant or measure them and allow for them. If the sunniest plants also got the fertiliser, you cannot tell which one made the difference.

Research variables work in the same way. Some are what you change or compare, one is what you watch, and others are things you must handle so that they do not confuse the answer. The skill is not memorising the names. It is deciding the role each factor plays in your own question.

In short, a variable is a thing that varies, and its type is its job in your study.

Dudovskiy Research Assistant

Unsure which of your variables are mediators, moderators or controls?

Enter your topic to receive a free, tailored methodology preview.

Free · No account required
Learn more about Dudovskiy Research Assistant

What Is a Variable?

A variable is a characteristic that differs between the cases you study, or changes over time. Age, income, job satisfaction, the price of a product and the number of complaints in a month are all variables. A constant is the opposite: something that does not vary in your study. If every participant is a nurse, “occupation” is a constant, not a variable.

Two points often cause confusion. First, whether something is a variable depends on your study, not on the thing itself. Gender is a variable in a survey of all staff but a constant in a study of women entrepreneurs only. Second, many variables in social science are abstract ideas such as motivation or brand loyalty. These cannot be observed directly, so you must define how you will measure them. This step is called operationalisation, and it is what turns a concept in your conceptual framework into something you can collect data about.

Types of Variables by Role

The most useful way to classify variables is by what they do in your research question. Terms vary between disciplines. Some fields say predictor or exposure for an independent variable, and outcome or response for a dependent variable. Use the terms your supervisor and your field use, and define them on first use.

  • Independent variable (IV). The factor you expect to influence the outcome. In an experiment you manipulate it. In a survey you observe it, so it is better described as a predictor.
  • Dependent variable (DV). The outcome you want to explain. It is the variable that is measured and compared.
  • Mediating variable. A variable that lies on the path between the IV and the DV and explains how or why the effect occurs.
  • Moderating variable. A variable that changes the strength or direction of the relationship between the IV and the DV, so that the effect is larger or smaller for different groups or conditions.
  • Control variable. A factor that you hold constant or include in your analysis on purpose, so that it cannot explain the result.
  • Extraneous variable. Any other factor that could influence the DV and is not the one you are studying. When it is also related to the IV, it becomes a confounding variable.
  • Confounding variable. A factor related to both the IV and the DV that can create a false relationship or hide a real one.

The diagram below shows how these roles fit together in one invented study.

Path diagram of research variables: an independent variable leads to a dependent variable directly and through a mediating variable, a moderating variable acts on the relationship, a confounding variable influences both, and control variables are held constant, shown with an invented staff training example.
Figure 1. The roles of variables in one invented study (original drawing).

Moderators, Mediators and Confounders: What Is the Difference?

These three are the most commonly confused. Baron and Kenny (1986) argued that researchers should not use the terms moderator and mediator interchangeably, because they play different conceptual and statistical roles. The table gives the practical differences.

Question Mediator Moderator Confounder
What does it answer? How or why does the effect happen? For whom or when is the effect stronger or weaker? Is the relationship real, or created by something else?
Where does it sit? Between the IV and the DV On the relationship itself Behind both the IV and the DV
Is it caused by the IV? Yes No No
What do you do with it? Test it as part of your explanation Test whether the effect differs across its levels Control for it or rule it out

A quick test: ask whether the factor is a consequence of the independent variable. If it is, it may be a mediator. If it exists regardless of the independent variable and changes the size of the effect, it is a moderator. If it influences both the independent and the dependent variable, treat it as a possible confounder. Hayes (2022) covers how mediation and moderation are estimated with regression and how they can be combined. The internal validity page explains why confounders threaten causal claims, and the correlation and regression page shows how variables enter an analysis.

Types of Variables by Measurement

Variables can also be described by the kind of values they take, which decides which analysis is possible.

  • Categorical (qualitative) variables take values that are groups, such as industry, department or whether a customer returned. When the categories have no order they are nominal; when they can be ranked, such as a satisfaction rating from “poor” to “excellent”, they are ordinal.
  • Numerical (quantitative) variables take values that are numbers, such as monthly sales or age. A discrete variable takes whole counts, such as the number of complaints. A continuous variable can take any value in a range, such as time spent on a website.

Many concepts in business research are latent: they cannot be observed directly and are measured through several questions, as with job satisfaction measured by a set of statements on a rating scale. Check that the way you measure a variable fits the concept and the planned analysis before you collect data. The questionnaires page covers how survey items are written.

Identifying the Variables in Your Study: Five Steps

  1. Start from the research question. Underline the outcome and the factor you think influences it. These are your DV and IV.
  2. Ask how and for whom. If your conceptual framework includes a process, add the mediator. If you expect the effect to differ between groups, add the moderator.
  3. List what else could explain the outcome. Use previous studies to find factors that affect the DV, such as age, size or sector. Decide which you will hold constant, measure and control for, or accept as a limitation.
  4. Define and measure each one. Write an operational definition for every variable: what exactly will you measure, with what instrument, and in what units or scale.
  5. Match variables to hypotheses and analysis. Each hypothesis should name its variables, and the analysis should fit their types. See quantitative data analysis for how the choice of test follows from the data.

Worked Example: Staff Training and Customer Satisfaction

The example below is invented for illustration. A student asks: Does staff training improve customer satisfaction in retail branches?

  • Independent variable: hours of customer-service training completed per branch in the past year (numerical).
  • Dependent variable: average customer satisfaction score for each branch from a standard post-purchase survey (numerical).
  • Mediating variable: service quality as observed by mystery shoppers. Training may improve service quality, which then improves satisfaction.
  • Moderating variable: branch size. Training may help more in small branches, where each employee serves more customers.
  • Control variables: region and average staff tenure, included in the analysis so that they cannot explain the result.
  • Possible confounder: manager quality. Better managers may both send staff on more training and run branches that satisfy customers, which would create an apparent training effect even if training did nothing.

Writing the study this way shows the student what must be measured, which analysis fits and where the design is weak. Manager quality cannot be removed by wording; it must be measured and controlled for, or acknowledged as a limitation. If it could not be measured at all, the claim must be softened to an association. Designs that allow stronger causal claims are discussed on the experiments and quasi-experimental research pages, and instrument-based approaches on the instrumental variables page.

Variables in Qualitative Research

The language of independent and dependent variables belongs mainly to quantitative research. Qualitative studies usually explore meanings, experiences and processes in depth and do not set out to test the effect of one measured factor on another. If your study is qualitative, you will usually not have a variables section in the same sense. You may still describe the characteristics of participants and the concepts that guide your questions, but calling them independent or dependent variables would be misleading. In a mixed-methods study the quantitative strand may use variables while the qualitative strand does not. The page on qualitative versus quantitative research explains how the two approaches differ.

Advantages and Limitations of Thinking in Variables

Identifying variables forces precision. It makes you say what you will measure, supports clear hypotheses, helps you choose an analysis that fits the data and lets another researcher repeat your study. It also exposes weak design early, for example when you realise that an important confounder has no measure.

Its limits are real. Reducing a rich idea such as culture or trust to a score loses detail, and the choice of measure shapes the result. A neat variable map can also give a false sense of causal certainty, because naming a mediator or control does not prove it works that way. Finally, many variables interact in ways that a simple diagram does not show.

Common Mistakes

  • Confusing moderators and mediators. A mediator explains how an effect happens; a moderator changes how strong it is.
  • Calling every other factor a control. A control variable is one you deliberately hold constant or adjust for, not simply any other factor you thought of.
  • Using “independent variable” for a survey factor and claiming causation. If you did not manipulate it, say predictor and avoid causal language unless the design supports it.
  • Too many variables. A small sample cannot support a long list of predictors. Keep the model to variables your theory and your sample size justify.
  • No operational definitions. “Performance” or “engagement” means little until you say how it is measured.
  • Ignoring confounders. Leaving them out of the discussion lets an examiner raise them for you.
  • Mismatch between variable type and test. A categorical outcome and a method for numerical data do not fit together.

Variables in Business Research

Business studies often combine behavioural and organisational variables. Typical independent variables include leadership style, training, price or advertising spend, and typical dependent variables include employee retention, customer loyalty, sales or financial performance. Common moderators are firm size, industry, age or culture, and common mediators are satisfaction, trust or commitment. Because firms are not assigned at random, confounding is a constant risk: larger firms differ from smaller ones in many ways at once.

Business data are also often collected for other purposes, for example company records or published accounts. In that case a variable has to be built from what exists, and you should say plainly how closely it matches the concept you intend to measure. If a measure was originally designed by someone else, cite its source and report how it was scored.

Variables in the Age of AI and Digital Research

Digital sources give researchers hundreds of ready-made variables, such as clicks, dwell time, purchase history and engagement scores. The temptation is to include everything and let the software find relationships. A study built this way has no clear roles for its variables, and its findings may be patterns without an explanation. Decide the IV, DV and likely confounders from theory first, then choose the data.

Machine-learning models often call independent variables “features” and the dependent variable the “target”. The vocabulary differs, but the same caution applies: a feature that predicts well is not necessarily a cause. Platform data can also change over time as the platform alters its design, which changes what a variable measures. If you use AI tools to suggest or code variables, check each output yourself, follow your institution’s rules on AI use and describe in your methodology how the tools were used.

Dissertation Example: An Annotated Variables Section

The extract below shows how the invented training study might describe its variables in a methodology chapter. The notes explain what each sentence does.

“(1) The independent variable is training intensity, measured as the hours of customer-service training completed per branch in the past year. (2) The dependent variable is customer satisfaction, measured as each branch’s mean score on a post-purchase survey. (3) Service quality, rated by mystery shoppers, is tested as a mediator, and branch size as a moderator. (4) Region and average staff tenure are included as control variables. (5) Manager quality may confound the relationship because it could influence both training and satisfaction; it is therefore measured and included as a covariate, and its remaining effect is discussed as a limitation.”

  • Sentence 1 defines the independent variable and how it is measured.
  • Sentence 2 does the same for the outcome.
  • Sentence 3 assigns the roles of mediator and moderator, which link back to the conceptual framework.
  • Sentence 4 names the controls.
  • Sentence 5 names the main threat to validity and how it is handled, which pre-empts an examiner’s question.

The extract is about 95 words. A full section would add the survey instrument, its source and the scale used for each variable.

Exam Tip

If an exam or viva question asks you to explain the variables in your study, name the independent and dependent variables first, then show how each was measured. Examiners often follow with “What else could explain your result?” Be ready to name your main confounders and say how you controlled for them. If asked for the difference between a mediator and a moderator, say that a mediator explains how an effect happens and lies on the path between cause and outcome, whereas a moderator changes the strength of the effect for different groups or conditions, and give one example from your own study.

Not sure which of your factors are mediators, moderators or controls? Dudovskiy Research Assistant can review your topic and research questions, check whether your variables, hypotheses and design fit together, and flag likely confounders you have not addressed. It supports your own judgement; the final decisions remain yours and your supervisor’s.

John Dudovskiy

References

Baron, R.M. and Kenny, D.A. (1986). The moderator-mediator variable distinction in social psychological research: conceptual, strategic, and statistical considerations. Journal of Personality and Social Psychology, 51(6), 1173–1182. https://doi.org/10.1037/0022-3514.51.6.1173

Hayes, A.F. (2022). Introduction to Mediation, Moderation, and Conditional Process Analysis: A Regression-Based Approach. 3rd edn. New York: Guilford Press.

Last reviewed: December 2026.

[]