Explainer · Plain-language
Variable: Definition, Meaning & Examples | CASRAI
A variable is any characteristic, number, or quantity that can be measured and can take on different values across people, time, or conditions. Variables are the building blocks researchers manipulate, measure, and relate to one another.
The step most authors miss
Doing CRediT right? Don’t stop at the statement.
A CRediT statement credits you inside one paper. The recognition CRediT was built for happens when those roles are tied to you, persistently. Sign in with your ORCID — free — and claim your CRediT contributions on casrai.org, the home of the standard. They become a verified, portable part of your identity, not a line that disappears into one PDF.
Free: claim your contributions, then export a journal-ready CRediT statement, schema.org structured data, JATS XML, CSV or BibTeX — and preview your public profile. A membership publishes that profile publicly and verifies the journals you serve.
What counts as a variable
A variable is anything that varies — any property of the people, objects, or events under study that can differ from one case to the next or change over time. Height, income, mood, temperature, and political affiliation are all variables, because each can take more than one value. The opposite is a constant, which holds the same value throughout. Because almost everything a study measures or manipulates is a variable, the useful work lies not in spotting variables but in classifying them by the role they play and the kind of values they take.
Variables classified by role
The role a variable plays in a study determines how it is treated. An independent variable is the presumed cause, the factor manipulated or compared; a dependent variable is the outcome measured in response. A confounding variable is an outside factor related to both, which can distort the apparent relationship and threaten internal validity. A control variable is held constant deliberately so it cannot interfere, while any other influence left uncontrolled is an extraneous variable. Mapping each variable to its role is essential for sound causal reasoning.
Variables classified by type
Variables are also classified by the nature of their values, or level of measurement. Categorical (qualitative) variables sort cases into groups: nominal variables have unordered categories (blood type, nationality), while ordinal variables have ranked categories without equal spacing (a satisfaction rating). Numerical (quantitative) variables take meaningful numbers and split into interval scales, which lack a true zero (temperature in Celsius), and ratio scales, which have one (weight, age). Numerical variables may be discrete — countable, whole-number values such as number of children — or continuous, taking any value within a range.
Why classification matters
Naming a variable’s role and type is not bookkeeping; it drives the whole study. The role distinction decides what is manipulated, what is measured, and what must be controlled to support a causal claim. The measurement level decides which descriptive and inferential statistics are legitimate — a mean is meaningful for a continuous variable but not for an unordered category, and the right test depends on whether outcomes are categorical or numerical. Getting these classifications right at the design stage prevents invalid analyses and uninterpretable findings later.
Key facts
At a glance
- Definition: Any characteristic that can take on different values
- Opposite: A constant, which holds one value throughout a study
- Roles: Independent, dependent, confounding, control, extraneous
- Categorical: Nominal (unordered) and ordinal (ranked) groups
- Numerical: Interval and ratio; either discrete or continuous
- Why it matters: Role and type determine design and valid analysis
Common misconceptions
What people often get wrong
Often heard: A variable is just a number.
Actually: No — a variable is any attribute that can differ across cases, including categories such as nationality or blood type, not only numerical quantities.
Often heard: The independent variable is always the more important one.
Actually: No — independent and dependent are roles, not rankings. The same characteristic can be an independent variable in one study and a dependent variable in another.
Often heard: A variable’s type can be chosen freely when analysing data.
Actually: No — the level of measurement (nominal, ordinal, interval, ratio) is a property of the variable and dictates which statistics are valid.
Going deeper
Related CASRAI guidance
- What is a construct? →
- Independent variable →
- Dependent variable →
- Confounding variable →
- Research methods hub →
- Standards dictionary →








