Independent and Dependent Variables: From Definition to Survey Questions
Research methods
Mike Taylor Nov 22, 2026 Reading time ≈ 18 min
Contents
- What are independent and dependent variables?
- How to tell the independent and dependent variable apart
- Control, confounding and other variables
- Operationalization: how to turn variables into survey questions
- Levels of measurement: choose the answer format on purpose
- From variables to hypothesis and statistical test
- Common mistakes when turning variables into questions
- How to build the questionnaire in SurveyNinja
- Frequently asked questions
Independent and dependent variables are the two core variables of most studies: the independent variable is the factor you think explains a change, and the dependent variable is the outcome you measure to see that change. In "Does paid work raise students' stress?", hours of work are independent and stress is dependent. This guide shows how to tell them apart, which other variables to measure, and how to turn each one into survey questions.
Most explanations stop at plants and sunlight. In a survey you cannot water anything: you write questions, and every variable in your hypothesis has to become one or more of them. So the article follows a single study from the research question to the analysis plan. The study asks university students whether paid work during the semester goes with higher academic stress.
Key points
- The independent variable is the presumed cause or explanation; the dependent variable is the outcome you want to explain.
- Roles come from the research question: the same variable can be dependent in one study and independent in another.
- Measure control and confounding variables in the same questionnaire, because you cannot adjust for something you never asked.
- Operationalization turns each variable into dimensions, indicators and questions with a fixed answer format.
- The level of measurement of both variables decides the test: t-test, ANOVA, chi-square or correlation.
What are independent and dependent variables?
The independent variable (IV) is the one you change, select or compare groups by. The dependent variable (DV) is the result you measure, and you expect its values to depend on the independent one. In an experiment the researcher sets the IV, for example by showing half the respondents one version of a page. In a survey the IV is usually measured, like age, work arrangement or hours of paid work, and you compare people who differ on it.
You will meet other names for the same pair. The IV is also called the explanatory, predictor or exposure variable. The DV is the outcome, response or criterion variable. On a chart the IV goes on the horizontal axis and the DV on the vertical one. Math class uses the same pair for functions: in y = f(x), x is the independent variable and y the dependent one, so the price of a print order (y) depends on the number of copies (x).
| Question | IV | DV |
|---|---|---|
| Does paid work during the semester go with higher academic stress? | Hours of paid work per week | Academic stress score |
| Are remote employees more satisfied than office staff? | Remote, hybrid or office work | Job satisfaction on a 1–5 scale |
| Do customers who had an onboarding call recommend us more? | Onboarding call: yes or no | Likelihood to recommend, 0–10 |
| Does delivery time affect the intention to buy again? | Days from order to delivery | Intention to buy again, 5-point scale |
| Does a shorter survey get more people to finish it? | Survey length, 5 or 15 questions, assigned at random | Completion: finished or not |
A study can have several of each. Our student survey has two IVs (hours of work and shift type) and two DVs (stress and grades). Keep the list short: every extra variable adds questions, and every pair you plan to compare adds a test.
How to tell the independent and dependent variable apart
Ask which variable you are trying to explain. That one is dependent, and whatever you use to explain it is independent. When the answer is not obvious, four quick checks settle it.
- Time order. The IV happens or exists first. Age and the year someone started a job come before their current opinion.
- The sentence test. Put both into "[A] affects [B]". "Hours of work affect stress" makes sense; "stress affects hours of work" is possible but is a different study.
- The title pattern. In "the effect of X on Y", X is independent and Y is dependent.
- Can it be changed by the other? Satisfaction cannot change someone's age, so age is the IV.
One caution matters more than any definition. A survey observes people as they are, so it shows that two variables move together, and on its own it does not prove that one causes the other. Students who work more may be more stressed because of the work, or because they need the money, which is stressful by itself. To show cause, researchers use random assignment to groups, as in the survey-length example above. With survey data, write "is associated with" or "predicts", and pick a research design that fits the claim you want to make.
Control, confounding and other variables
Besides the IV and DV, a study has variables that can blur the relationship between them. You handle each type differently, but the practical rule for a survey is the same: if a variable may matter, ask about it, because it cannot be added after the data is in.
| Type | In the student study | What to do |
|---|---|---|
| Control variable. Kept constant or measured so you can compare like with like | Year of study, number of credits | Ask it, then compare students within the same year or add it to the model |
| Confounding variable. Affects both the IV and the DV, so it can fake or hide a link | Family financial support: students with less support work more and also worry about money | Ask it, keep it optional with "Prefer not to say", analyze within its groups |
| Mediator. Sits on the path from IV to DV and explains how the effect happens | Sleep: more work, less sleep, more stress | Ask it if you want to explain the mechanism |
| Moderator. Changes how strong the link is | Shift type: night shifts may hurt more than weekday afternoons | Ask it and compare the IV–DV link across its groups |
| Extraneous variable. Anything else that affects the DV | Exam week at the time of the survey | Control it through timing: field the survey in one ordinary week |
A confounder has to meet three conditions. Skelly, Dettori and Brodt summarize them in a 2012 paper on confounding: it is associated with the exposure, it predicts the outcome on its own, and it is not a step on the path between them. Sleep fails the third condition, which is why it is a mediator. Family support meets all three. The same paper lists the ways to deal with confounders: restrict the sample, compare within groups of the confounder, or adjust for several variables at once in a regression model.
Operationalization: how to turn variables into survey questions
Operationalization is the step that turns an abstract variable into something you can observe and count. A variable such as "academic stress" is broken into dimensions, each dimension gets indicators, and each indicator becomes a question with a fixed answer format. Without this step two researchers can study "stress" and measure two different things.
- Define the variable in one sentence. "Academic stress is the strain a student feels because of study demands."
- Split it into dimensions. Emotional (feeling overwhelmed), physical (sleep lost to worry), behavioral (deadlines missed).
- Choose an indicator per dimension. Something a respondent can report: a frequency, a count, a rating.
- Write the question and its answer format. Same time frame for every item, and a labeled scale.
- Check for an existing measure. A tested question beats a new one. The UK Office for National Statistics has asked "Overall, how satisfied are you with your life nowadays?" on a 0–10 scale in its Annual Population Survey since April 2011, so results can be compared with national figures.
- Pilot it. Ask five to ten people from the target group to answer aloud and say what each question means to them.
Here is the full operationalization table for the student study. It is the core of the questionnaire: each row is one question you can copy and adapt.
| Variable and indicator | Question and answer format |
|---|---|
| Paid work (IV). Dimension: amount. Indicator: hours per week. Level: ratio. | "In a typical week this semester, how many hours do you work for pay?" Answer: number, 0–80. |
| Paid work (IV). Dimension: timing. Indicator: shift type. Level: nominal. | "When do you usually work? Select all that apply." Answer: multiple choice (weekday daytime, weekday evenings, nights, weekends, my schedule varies). |
| Academic stress (DV). Dimension: emotional. Indicator: feeling overwhelmed. Level: ordinal. | "In the past month, how often have you felt overwhelmed by your coursework?" Answer: Never, Rarely, Sometimes, Often, Very often. |
| Academic stress (DV). Dimension: physical. Indicator: sleep lost to worry. Level: ordinal. | "In the past month, how often has worry about your classes kept you from sleeping?" Answer: Never, Rarely, Sometimes, Often, Very often. |
| Academic stress (DV). Dimension: behavioral. Indicator: missed deadlines. Level: ratio. | "How many assignment deadlines have you missed this semester?" Answer: number, 0–50. |
| Grades (DV). Dimension: performance. Indicator: last-term average. Level: interval. | "What was your grade average last term?" Answer: number on your school's scale, for example 0–4.0. |
| Year of study (control). Dimension: none. Indicator: program year. Level: ordinal. | "Which year of your program are you in?" Answer: single choice (1st, 2nd, 3rd, 4th, 5th or later). |
| Course load (control). Dimension: none. Indicator: credits enrolled. Level: ratio. | "How many credits are you taking this term?" Answer: number. |
| Family support (confounder). Dimension: financial. Indicator: share of living costs covered. Level: ordinal. | "About how much of your living costs does your family cover?" Answer: None, Less than half, About half, More than half, All of them, Prefer not to say. |
| Sleep (mediator). Dimension: none. Indicator: weeknight sleep. Level: ratio. | "On a typical weeknight, how many hours do you sleep?" Answer: number, 0–12. |
Decide how the indicators become one value before the data comes in. For stress, score Never as 1 and Very often as 5 and average the two frequency items; keep missed deadlines as a separate behavioral indicator, or convert all three to z-scores if you want a single index. Write the rule into your methods section. If you build a scale from several items, check its internal consistency in the pilot.
Levels of measurement: choose the answer format on purpose
The answer format fixes the level of measurement, and the level fixes what you can calculate. S. S. Stevens described the four levels in a 1946 paper in Science, and they are still the standard way to decide which statistics are allowed.
| Level | Example and summary to report |
|---|---|
| Nominal. Names of categories, no order | Example: shift type, faculty, work arrangement. Report: counts and percentages, mode. |
| Ordinal. Ordered categories, unequal or unknown gaps | Example: Never to Very often, year of study. Report: median, percentages per option. |
| Interval. Equal gaps, no true zero | Example: grade average on a 0–4.0 scale, a summed scale score. Report: mean and standard deviation. |
| Ratio. Equal gaps and a true zero | Example: hours worked, missed deadlines, credits. Report: mean, standard deviation, ratios ("twice as many hours"). |
Two rules save most theses. First, collect the most precise level you will need: ask for hours as a number, because you can group numbers into bands later but cannot turn "11–20 hours" back into a number. Second, a single 1–5 item is ordinal, so report its median and the share of each answer. A score built from several such items is usually treated as interval, which our guide to Likert scales explains in detail.
From variables to hypothesis and statistical test
A hypothesis states the expected link between the IV and the DV in a form the data can reject. For the student study: "Students who work more hours per week report higher academic stress." The null hypothesis says there is no association. If you need help phrasing hypotheses for your own variables, the free AI hypothesis generator turns a short description of your problem into testable hypotheses, each with a null hypothesis, a survey question and a metric, and the glossary entry on hypothesis testing covers the logic of p-values.
The test follows from the level of measurement of the two variables.
| Variables | Test and example from the study |
|---|---|
| IV: categorical, two groups. DV: interval or ratio. | Independent-samples t-test. Works for pay or not, compared on the stress score. |
| IV: categorical, three or more groups. DV: interval or ratio. | One-way ANOVA. Year of study compared on the stress score. |
| IV: categorical. DV: categorical. | Chi-square test on a two-way table. Works or not, by missed at least one deadline or not. |
| IV: interval or ratio. DV: interval or ratio. | Pearson correlation, or regression. Hours of work and the stress score. |
| IV: ordinal or skewed numbers. DV: ordinal or skewed numbers. | Spearman correlation. Hours of work and "felt overwhelmed" (1–5). |
| Several IVs plus controls. DV: interval or ratio. | Multiple regression. Hours, shift type, year and family support predicting stress. |
You can run the first steps without statistical software. Paste two columns into the Pearson correlation calculator, compare two groups with the t-test calculator, or enter a 2×2 table into the chi-square calculator. Before you report a coefficient, read how to use correlation on survey data without overclaiming, and how to compare groups in a two-way table of survey results with the right percentage base. To check the confounder, run the same comparison separately within each family-support group: if the link between hours and stress shrinks a lot, support was doing part of the work.
Common mistakes when turning variables into questions
Most problems with variables show up in the questionnaire, long before the analysis. These are the ones that come up again and again in student and workplace surveys.
- Asking respondents to test your hypothesis for you: "Does your job affect your stress?" Measure work and stress separately and let the data show the link.
- Putting the IV and the DV into one double-barreled question, such as "How stressful are your work and studies?"
- Collecting bands when you need numbers, then finding you cannot compute a correlation.
- Measuring a complex variable like stress or engagement with one question.
- Using different time frames: hours "this semester" against stress "in general".
- Leaving out the confounder, so the analysis cannot separate its effect from the IV.
- Writing the operationalization table before the questionnaire, and keeping it in the methods chapter.
How to build the questionnaire in SurveyNinja
Start with the operationalization table: every row is a question. In the survey maker, use a number question for hours, credits and missed deadlines, a single choice for year of study, a multiple choice for shift type and a labeled 5-point scale for the stress items. You can also paste the table into Ninja AI in the builder and ask it to draft the survey; it shows each change and waits for you to apply it. Put the sensitive family-support question near the end, keep it optional and leave "Prefer not to say" as an option. If you teach the students you survey, say that taking part is voluntary and has no effect on grades, and turn on anonymous mode, which is available on every plan.
If you already know a group variable, such as the course section or the campus a link was sent to, pass it through hidden variables in the survey link instead of asking it again (available from the Basic plan). Skip logic works on every plan, so students who do not work can skip the shift questions. When responses are in, export them to CSV, XLSX or SPSS on any plan, and run the tests above in your statistics package or in the free calculators linked in this article.
Frequently asked questions
What is the difference between independent and dependent variables?
The independent variable is the factor you change, select or compare groups by, and it is the presumed cause or explanation. The dependent variable is the outcome you measure to see whether it changes with the independent one. In a study of paid work and stress, hours of work are independent and stress is dependent.
How do you identify the independent and dependent variable?
Ask which variable you want to explain: that is the dependent one. Then check time order, because the independent variable comes first, and try the sentence "A affects B". In a title like "the effect of X on Y", X is independent and Y is dependent.
Can a variable be both independent and dependent?
Yes, across studies or in one model. Satisfaction is the dependent variable when you study what drives it and the independent variable when you study whether it predicts renewals. In a chain such as work, then sleep, then stress, sleep is the outcome of work and the predictor of stress, which makes it a mediator.
What is a control variable in research?
A control variable is one you keep constant or measure so that the comparison between groups is fair. In a survey you usually cannot hold it constant, so you ask about it, then compare respondents within the same category or add it to a regression model. Year of study and course load are typical examples.
What is a confounding variable, with an example?
A confounding variable affects both the independent and the dependent variable and can create or hide a link between them. In a study of student work and stress, family financial support is a confounder: students with less support tend to work more hours and also worry more about money.
What is operationalization of variables?
Operationalization turns an abstract variable into something you can measure. You define the variable, split it into dimensions, choose an observable indicator for each dimension and write a survey question with a fixed answer format. The result is an operationalization table that links every question to a variable in your hypothesis.
Published: Nov 22, 2026
Google Forms Limits: Responses, File Uploads, Timers and Logic, With Workarounds 
