The variable you manipulate, control, or vary in an experimental study to explore its effects.

  1. Career development
  2. 10 Types of Variables in Research and Statistics

By Indeed Editorial Team

Updated May 25, 2022 | Published February 8, 2021

Updated May 25, 2022

Published February 8, 2021

The Indeed Editorial Team comprises a diverse and talented team of writers, researchers and subject matter experts equipped with Indeed's data and insights to deliver useful tips to help guide your career journey.

Researchers and statisticians use variables to describe and measure the items, places, people or ideas they're studying. Many types of variables exist, and you must choose the right variable to measure when designing studies, selecting tests and interpreting results. A strong understanding of variables can lead to more accurate statistical analyses and results.

In this article, we describe the types of variables and answer some frequently asked questions with regards to variables, experimental design and how to design a study.

What are variables?

Variables are things you measure, manipulate and control in statistics and research. All studies analyze a variable, which can describe a person, place, thing or idea. A variable's value can change between groups or over time. For example, if the variable in an experiment is a person's eye color, its value can change from brown to blue to green from person to person.

Related: 6 Types of Research Studies (Advantages and Disadvantages)

Types of variables

Researchers organize variables into a variety of categories, the most common of which include:

1. Independent variables

An independent variable is a singular characteristic that the other variables in your experiment cannot change. Age is an example of an independent variable. Where someone lives, what they eat or how much they exercise are not going to change their age. Independent variables can, however, change other variables. In studies, researchers often try to find out whether an independent variable causes other variables to change and in what way.

Related: How To Become a Research Scientist

2. Dependent variables

A dependent variable relies on and can be changed by other components. A grade on an exam is an example of a dependent variable because it depends on factors such as how much sleep you got and how long you studied. Independent variables can influence dependent variables, but dependent variables cannot influence independent variables. For example, the time you spent studying (dependent) can affect the grade on your test (independent) but the grade on your test does not affect the time you spent studying.

When analyzing relationships between study objects, researchers often try to determine what makes the dependent variable change and how.

Related: Independent vs. Dependent Research Variables

3. Intervening variables

An intervening variable, sometimes called a mediator variable, is a theoretical variable the researcher uses to explain a cause or connection between other study variables—usually dependent and independent ones. They are associations instead of observations. For example, if wealth is the independent variable, and a long life span is a dependent variable, the researcher might hypothesize that access to quality healthcare is the intervening variable that links wealth and life span.

4. Moderating variables

A moderating or moderator variable changes the relationship between dependent and independent variables by strengthening or weakening the intervening variable's effect. For example, in a study looking at the relationship between economic status (independent variable) and how frequently people get physical exams from a doctor (dependent variable), age is a moderating variable. That relationship might be weaker in younger individuals and stronger in older individuals.

5. Control variables

Control or controlling variables are characteristics that are constant and do not change during a study. They have no effect on other variables. Researchers might intentionally keep a control variable the same throughout an experiment to prevent bias. For example, in an experiment about plant development, control variables might include the amounts of fertilizer and water each plant gets. These amounts are always the same so that they do not affect the plants' growth.

Read more: What Is a Control in an Experiment? (With Definition and Guide)

6. Extraneous variables

Extraneous variables are factors that affect the dependent variable but that the researcher did not originally consider when designing the experiment. These unwanted variables can unintentionally change a study's results or how a researcher interprets those results. Take, for example, a study assessing whether private tutoring or online courses are more effective at improving students' Spanish test scores. Extraneous variables that might unintentionally influence the outcome include parental support, prior knowledge of a foreign language or socioeconomic status.

7. Quantitative variables

Quantitative variables are any data sets that involve numbers or amounts. Examples might include height, distance or number of items. Researchers can further categorize quantitative variables into two types:

  • Discrete: Any numerical variables you can realistically count, such as the coins in your wallet or the money in your savings account.

  • Continuous: Numerical variables that you could never finish counting, such as time.

Related: What Is Quantitative Data? (With Methods, Benefits and Examples)

8. Qualitative variables

Qualitative, or categorical, variables are non-numerical values or groupings. Examples might include eye or hair color. Researchers can further categorize qualitative variables into three types:

  • Binary: Variables with only two categories, such as male or female, red or blue.

  • Nominal: Variables you can organize in more than two categories that do not follow a particular order. Take, for example, housing types: Single-family home, condominium, tiny home.

  • Ordinal: Variables you can organize in more than two categories that follow a particular order. Take, for example, level of satisfaction: Unsatisfied, neutral, satisfied.

Related: 14 Tools for Qualitative Data Analysis (With Descriptions)

9. Confounding variables

A confounding variable is one you did not account for that can disguise another variable's effects. Confounding variables can invalidate your experiment results by making them biased or suggesting a relationship between variables exists when it does not. For example, if you are studying the relationship between exercise level (independent variable) and body mass index (dependent variable) but do not consider age's effect on these factors, it becomes a confounding variable that changes your results.

10. Composite variables

A composite variable is two or more variables combined to make a more complex variable. Overall health is an example of a composite variable if you use other variables, such as weight, blood pressure and chronic pain, to determine overall health in your experiment.

Related: Types of Research: Definitions and Examples

Variable FAQs

Commonly asked questions about variables include:

How many variables are in an experiment?

Every experiment has at least two variables—an independent variable and a dependent variable. The independent variable is what you are testing, and the dependent variable is the result. Any other variables in your experiment build on or affect the independent or dependent variables. Most experiments also include a controlled variable.

Related: The 4 Levels of Measurement Explained (With Examples)

How do you control confounding variables?

Ways to control confounding variables so they do not affect the results of your experiment include:

  • Adjustment: Adjust study parameters to account for the confounding variable and minimize its effects.

  • Matching: Compare study groups with the same degree of confounding variables.

  • Multivariate analysis: Use when analyzing multiple variables at once.

  • Randomization: Spread confounding variables evenly between study groups.

  • Restriction: Remove subjects or samples that have confounding factors.

  • Stratification: Create study subgroups in which the confounding variable does not vary or vary much.

What is experimental design?

Experimental design is how you plan to analyze the relationships between variables in your study.

Related: Designing an Experiment: 8 Steps Plus Experimental Design Types

How do I design an experiment?

When designing an experiment, you should:

  • Determine the question you are trying to answer.

  • List your independent and dependent variables, plus any controlled, confounding or additional variables.

  • Write a hypothesis that you believe your experiment will prove.

  • Decide how much you want to manipulate your independent variable.

  • Determine the number of samples or subjects in your study.

  • Assign subjects into treatment groups.


What type of variable that is manipulated in an experimental study?

Independent variables (IV): These are the factors or conditions that you manipulate in an experiment. Your hypothesis is that this variable causes a direct effect on the dependent variable.

What do you manipulate in experimental research?

An experiment is a type of empirical study that features the manipulation of an independent variable, the measurement of a dependent variable, and control of extraneous variables.