Skip to main content

Within vs Between Subjects Design: Examples and Trade-offs

Within subjects design vs between: for 80% power at d = 0.5, a between-subjects study needs 128 people, a within-subjects one 34 when scores correlate at .5.

Within vs Between Subjects Design: Examples and Trade-offs

In a within-subjects design, every participant takes part in every condition and the comparison is made inside each person. In a between-subjects design, each participant takes part in one condition and the comparison is made between groups. The first needs fewer people but has to manage order effects; the second avoids order effects but needs more people and has context problems of its own.

Key Takeaways

  • Within-subjects experiments test the same people under all conditions; between-subjects experiments put different people in each condition.
  • To detect a difference of d = 0.5 with 80% power (alpha .05, two-sided), a between-subjects study needs 128 people. A within-subjects study needs 65, 46, 34, 21 or 9 as the correlation between a person’s two scores rises from 0 to .9.
  • Testing people more than once brings practice, fatigue, carryover and sensitization. Counterbalancing cannot fix carryover that runs one way.
  • Between-subjects ratings mislead too: in Birnbaum’s 1999 study, the group that rated 9 gave it a mean of 5.13 on a 10-point scale, and the group that rated 221 gave it 3.10.
  • Tests: independent-samples t or one-way ANOVA between subjects; paired t or repeated-measures ANOVA within; mixed ANOVA for mixed designs.

What is the difference between within and between subjects designs?

The difference is who sees which condition. In a between-subjects design, each person experiences one level of the independent variable, and conditions are compared across groups formed by random assignment. In a within-subjects study, each person experiences every level and serves as their own comparison. That choice sets the sample size, the threats to watch and the statistical test.

The open textbook Research Methods in Psychology (Jhangiani, Chiang, Cuttler and Leighton, 4th edition) defines the pair in two sentences: “In a between-subjects experiment, each participant is tested in only one condition,” and “In a within-subjects experiment, each participant is tested under all conditions.” Both are experiments, which Papero’s glossary entry on research design sets beside correlational and descriptive studies.

Between-subjects designWithin-subjects design
Also calledIndependent groups, independent measuresRepeated measures
Who gets whatEach participant is in one conditionEach participant is in every condition
What makes conditions comparableRandom assignment of people to conditionsRandom assignment of people to orders (counterbalancing)
Participants for 80% power at d = 0.5, two conditions128 (64 per group)9 to 65, depending on the correlation between a person’s scores
Main threatsChance differences between groups; each group judges in its own contextPractice, fatigue, carryover, sensitization, guessing the hypothesis
Analysis, two conditionsIndependent-samples t testPaired t test
Analysis, three or more conditionsOne-way ANOVARepeated-measures ANOVA
ExampleHalf the volunteers read a passage on paper, half on a screenEvery volunteer reads one passage on paper and one on a screen, in counterbalanced order

What is a within-subjects design?

A within-subjects design is an experiment in which each participant is measured under every condition of the independent variable. Because the same people appear in all conditions, differences in age, ability or motivation are the same across conditions, and the analysis removes them from the error term. The cost is that conditions come in a sequence, and the order itself can affect the results.

The textbook calls this control “the primary advantage of this approach”: the conditions share the same mean IQ “because they are the very same people.” Anthony Greenwald’s 1976 review in Psychological Bulletin gives the statistical side: when each subject provides data for several treatments, “treatment differences are not confounded with subject differences,” which, to the extent that subjects differ a lot from one another, yields “substantially more sensitivity to treatment effects (power)” than a between-subjects design with the same number of observations.

A within subjects design example. A researcher asks whether people read faster on paper than on a screen. Each of 40 volunteers reads two passages of similar length and difficulty, one on paper and one on a tablet. Half start on paper, half on the tablet, and passages are swapped between media too. Each volunteer yields one difference in words per minute. The study is invented for illustration.

When two similar people are paired and each takes one condition, the study is a matched pairs design, which shares the paired analysis.

What is a between-subjects design?

A between-subjects design is an experiment in which each participant is assigned to one condition only, and conditions are compared across groups. Random assignment makes the groups comparable on average, including on characteristics nobody measured. Since nobody experiences more than one condition, there is no practice, fatigue or carryover from one condition to the next.

Research Methods in Psychology gives two examples: 100 university students, half writing about a traumatic event and half about a neutral one; or 60 people with severe agoraphobia, 20 assigned to each of three treatments. A between-subjects version of the reading study would let a computer place 64 volunteers on paper and 64 on screen, each reading one passage once. Nothing done in one condition leaks into the other. Our guide to random assignment simulates how far apart two chance-formed groups can start.

How many participants does each design need?

For two conditions, 80% power and a two-sided alpha of .05, detecting a difference of half a standard deviation (d = 0.5) takes 128 participants between subjects. A within-subjects study needs 65 when a person’s two scores are uncorrelated, 34 when they correlate at .5 and 9 when they correlate at .9. The correlation between conditions decides almost everything.

Our Python script computed exact power from the noncentral t distribution for an independent-samples t test (between) and a paired t test (within), and found the smallest sample reaching 80%.

Correlation between a person’s two scores (r)dzWithin-subjects: participantsBetween-subjects: participantsWithin as a share of between
00.3565128 (64 per group)51%
.30.424612836%
.50.503412827%
.70.652112816%
.91.1291287%

How the within column is computed. A paired t test works on difference scores, and its effect size is dz, the mean difference divided by the standard deviation of the differences. When both conditions have the same standard deviation, the differences vary √(2(1 − r)) times as much, so dz = d ÷ √(2(1 − r)). Daniël Lakens’s primer on effect sizes gives Cohen’s formula for the standard deviation of the differences (his equation 8), and with equal standard deviations it reduces to this factor. The script checked the formula on a million simulated pairs per correlation (all within 0.002), matched each sample size against the statsmodels power solvers, and ran 20,000 simulated studies per row, each within a percentage point of its exact power.

What the table assumes. Normal scores with the same standard deviation in both conditions, d measured in that standard deviation, equal groups, and no order or carryover effects in the within-subjects study. Real studies break that last assumption, so the within column is a best case.

What it shows. At r = 0 the within-subjects study needs 65 people, one more than half of 128: each person gives two scores (130 against 128), and the paired test has fewer degrees of freedom. Every saving beyond half comes from the correlation. Greenwald wrote that testing everyone in every treatment “might often reach a desired level of power while using fewer than 1/k times the number of subjects” needed between subjects, k being the number of treatments. Our script puts a number on “often”: fewer than half as many people suffice once the correlation passes about .03, and Lakens says positive correlations are typical in experimental psychology.

One trap: a within-subjects effect size worked out from a paired t and the number of people is dz, not d, and at r = .9 a dz of 1.12 is only d = 0.5. Lakens notes that power software such as G*Power takes dz for paired tests; feeding it a d, or feeding a dz to a between-subjects calculation, gives the wrong sample size.

What are the limitations of a within-subjects design?

The main limitation is order: earlier conditions change how people respond to later ones. Practice makes later conditions look better, fatigue or boredom makes them look worse, a lasting treatment carries over into the next condition, and seeing several conditions side by side lets participants guess the hypothesis. Treatments that cannot be undone rule the design out entirely.

Research Methods in Psychology names these order effects: carryover in general, practice, fatigue and context effects, such as an average-looking defendant being “judged more harshly when participants have just judged an attractive defendant.” Greenwald’s review sorts them under practice, sensitization and carry-over.

EffectWhat happensUsual remedy
PracticePerformance improves with each test, so later conditions look betterCounterbalance, or train everyone to a stable level before the first condition
Fatigue or boredomPerformance drops with each testCounterbalance; shorter sessions and breaks
CarryoverA treatment’s effect lasts into the next conditionSeparate conditions in time; if the effect is permanent, test between subjects
Sensitization and demandSeeing several conditions shows participants what is varied, and they respond to their guessDisguise the manipulation or add filler conditions; or test between subjects

Greenwald’s remedy for carryover: “The chief means of reducing carry-over effects is to separate the treatments in time.” That works only when the effect fades. In the textbook’s study of reducing prejudice, participants treated first “would no longer be suitable for testing in the control condition” if the treatment worked. Therapy and teaching studies share the problem.

Gary Charness, Uri Gneezy and Michael Kuhn, reviewing the choice for experimental economics, write that “Demand effects are likely to be stronger in a within design,” and describe a study by Gneezy (2005) in which people judged a car salesman who hides a repair cost. Between subjects, 36% called the behavior very unfair when the cost was low and 62% when it was high, a gap of 26 percentage points. Within subjects, the figures were 18% and 68%, a gap of 50 points. The within gap was nearly twice as large, which Gneezy put down to the comparison that seeing both versions invites, and possibly to experimenter demand.

Can a between-subjects design give a wrong answer?

A between-subjects design can give a wrong answer when the outcome is a rating. Each group judges its one stimulus against whatever comparison it brings to mind, so the groups use the scale differently. In Michael Birnbaum’s 1999 study, people who rated the number 9 gave it a mean of 5.13 on a 10-point scale, and people who rated 221 gave it 3.10. Between groups, 9 came out larger than 221.

Birnbaum, of California State University, Fullerton, recruited people online for a “1-minute judgment study” and published the result in Psychological Methods as “How to show that 9 > 221.” Birth month decided the condition, odd months one number and even months the other, and the rule was reversed after 40 participants “to counterbalance any effects of birth month.” Each person judged one number on a scale from very very small to very very large. In his words, “The only difference between conditions was the number to be judged (9 or 221).”

GroupParticipantsMean judgment (10-point scale)Standard deviation
Judged 9455.133.58
Judged 221403.101.88
Women435.76 for 9, 2.78 for 221Not reported
Men424.35 for 9, 3.36 for 221Not reported

The paper reports t(83) = 3.52, p < .001, and says the difference held within each sex, within each education level, and with only the first 10 people per condition. Recomputing from the printed means and standard deviations gives t(83) = 3.21 (p = .002), or 3.32 with the Welch correction for unequal variances. We could not reproduce 3.52 from the printed figures, but every version is far below the .05 line.

Birnbaum’s explanation is context: 9 calls to mind small numbers, among which it seems average or even large, and 221 three-digit numbers, among which it seems small. “Remember, no individual ever said 9 is greater than 221.” Greenwald had made the general point in 1976: one treatment per subject “does not really achieve the absence of context, but rather the presence of the context provided by the single treatment.”

The argument has a limit. Birnbaum writes: “My criticism does not apply to BS [between-subjects] experiments with objective dependent measures,” such as an achievement test or days with fever. For ratings, he suggests a counterbalanced within-subjects study, or judges who rate participants from both groups without knowing who received what.

How do you counterbalance a within-subjects design?

Counterbalancing means testing different participants in different orders, with people assigned to orders at random. Complete counterbalancing uses every possible order equally often. A Latin square uses as many orders as there are conditions, each condition once in each position. Random counterbalancing draws an order for each participant and suits studies with many conditions.

MethodOrders usedWith 2 conditionsWith 4 conditionsWhen to use it
Complete counterbalancingEvery possible order, equally often2 (AB, BA)24Two or three conditions
Latin squareOne order per condition, each condition once per position24Four or more conditions
Random counterbalancingA random order per participantRandomRandomMany conditions, small order effects

The textbook calls complete counterbalancing “the best method,” notes that five conditions have 120 orders, and warns that random counterbalancing “will result in more random error.” Counterbalancing stops order from being a confounding variable, because each condition comes first for some people and later for others, and it lets you analyze each order separately to see whether order mattered.

Use a balanced Latin square. The 4 × 4 square printed in the textbook is cyclic (ABCD, BCDA, CDAB, DABC). Each condition appears once in each position, but B follows A directly in three of the four rows, even though the text says each condition precedes and follows every other one once. A balanced square has that property for an even number of conditions: ABDC, BCAD, CDBA, DACB. Our script confirmed that in it, every condition is immediately followed by every other exactly once.

What counterbalancing cannot do. It averages order effects out of the comparison without removing them. Symmetric practice effects cancel and leave extra noise; one-way carryover biases the result. David Lane’s public-domain textbook Online Statistics Education takes the case of condition B going much better after A while A is unaffected by B: “With this kind of carryover effect, it is probably better to use a between-subjects design.” Greenwald calls counterbalancing “an only partially adequate solution” to carryover, “since the interference effects may not be bidirectional.”

What is a mixed design?

A mixed design manipulates at least one independent variable between subjects and at least one within subjects. One form tests every participant under several conditions but assigns people at random to one of two treatments or to one of two orders. In a counterbalanced study, order can enter the analysis as a between-subjects factor, which makes it a mixed design.

Greenwald’s example is a motor-skill task under three noise levels, studied across levels of practice: each subject “provides data for performance at several levels of practice under only a single treatment condition.” Practice is within subjects; noise is between.

Charness, Gneezy and Kuhn recommend a mixed layout as a hedge: “A population of 400 individuals can be split into two treatments, A and B for 200 observations in each cell of a between-subjects design.” If group A answers question A and then B, and group B answers B and then A, the researcher has a within-subjects comparison on all 400 people with order controlled, plus a between-subjects comparison of 200 per cell on the first answers alone. If order effects turn out to be large, the first-answer comparison still stands.

How do you analyze each design?

Match the test to the design. Two independent groups take an independent-samples t test, and three or more a one-way ANOVA. Two repeated conditions take a paired t test, and three or more a repeated-measures ANOVA. A mixed design takes a mixed ANOVA, with separate error terms for its between and within factors.

DesignTwo conditionsThree or more conditionsAssumption to check
Between-subjectsIndependent-samples t testOne-way ANOVASimilar variances across groups
Within-subjectsPaired t test on the difference scoresRepeated-measures ANOVASphericity, with three or more conditions
MixedNot applicableMixed (split-plot) ANOVASphericity for the within factor

Sphericity. A repeated-measures ANOVA assumes, in Greenwald’s words, “equality of the variances of differences between pairs of treatments.” Lane describes it as roughly all the correlations being equal and all the variances being equal, warns that “Violating the assumption of sphericity leads to a substantial increase in the Type I error rate,” and adds that it “is rarely met in practice.” The fixes he describes are the Greenhouse-Geisser or Huynh-Feldt correction to the degrees of freedom, or a multivariate analysis. With two conditions there is only one set of difference scores, so the question does not arise.

Mixed designs. In Lane’s example, gender is between subjects and three tasks are within. The summary table has two error terms, one for the between-subjects variable and one shared by the within-subjects variable and the interaction, and the between-subjects error is typically the larger. Adding order as a between-subjects factor to a counterbalanced study shows whether order mattered; with two conditions an order-by-condition interaction cannot tell practice or fatigue from carryover, so also compare the conditions on first answers alone.

How do you choose between within and between subjects designs?

Test everyone in every condition when each person can complete all conditions in the time available, the treatments leave no lasting effects, and seeing several conditions will not change how people respond. Test each person once when a treatment is permanent, when one condition would change behavior in another, or when you have only a few minutes with each participant.

Research Methods in Psychology offers a rule of thumb: when a counterbalanced within-subjects experiment fits the time available per participant and carryover is not a serious concern, that design “is probably the best option.” Charness, Gneezy and Kuhn lean the other way: “We ourselves tend to prefer between designs whenever these are practical, as we believe these represent more conservative tests and we would rather err on the side of caution.” They grant within designs “a substantial boost in statistical power.”

Five questions settle most cases:

  1. Can the treatment be undone? Learning, therapy and attitude change cannot, so test between subjects.
  2. Is the outcome a rating? Birnbaum’s result says a between-subjects comparison of ratings can mislead; test within subjects or use raters who score both groups.
  3. Will seeing all conditions reveal the hypothesis? If that would change behavior, test between subjects or disguise the manipulation.
  4. How many participants can you recruit? With a correlation of .3 or more between conditions, the within version needs well under half the people (46 instead of 128 at .3).
  5. Where will the results apply? Greenwald argues that testing everyone in every condition can have more external validity when people meet several versions of a treatment in daily life, such as advertisements from different sources. Our guide to internal vs external validity covers that trade-off.

When unsure, the mixed layout above gives both comparisons in one study. The methods section names the design, the counterbalancing scheme and the analysis; our guide on how to write a methodology section shows where each goes.

Where Papero fits

Papero is an AI academic writing assistant. It does not choose a design, counterbalance orders or run a power analysis; it helps you write up the plan and find studies that used each design.

Describe your paper, pick a citation style and a structure, and Papero gives you a two-level outline with a prompt for every section, including the methods section where the design is justified. One click finds papers for the sentence you are writing, and the Find papers page searches more than 250 million papers through OpenAlex, so you can find published experiments in your field that used either design. Search results mark retracted papers and preprints, and references format in over 10,000 citation styles, including APA 7. The research proposal page shows how a study idea becomes a proposal with a heading and a prompt for each part. What each plan includes is on the pricing page.

Frequently Asked Questions

What is a between-subjects design example?

A between-subjects design example is a study that assigns 100 students at random, half to write about a traumatic event and half about a neutral one, then compares the two groups. Each student is in one condition only. Michael Birnbaum’s 1999 study is a famous cautionary example: one group rated the size of 9, another the size of 221, and 9 came out larger.

What are the limitations of a within-subjects design?

A within-subjects design is limited by order effects. Practice improves later performance, fatigue worsens it, a lasting treatment carries over into the next condition, and seeing several conditions lets participants guess the hypothesis. Counterbalancing does not fix one-way carryover, and treatments with permanent effects, such as therapy, cannot be tested this way.

What is the difference between within and between?

Within and between describe where the comparison is made. A within-subjects comparison is made inside each person, who is measured under every condition. A between-subjects comparison is made across groups of different people, each measured once. Within-subjects studies need fewer participants and remove individual differences from the comparison; between-subjects studies avoid order effects.

What are the three types of experimental design?

In A-level psychology, the three types of experimental design are repeated measures, independent groups and matched pairs, listed together in AQA’s specification. Repeated measures is the within-subjects version, independent groups the between-subjects version, and matched pairs puts different but paired participants in each condition. Other courses group experiments into true, quasi-experimental, pre-experimental and factorial designs; Papero’s glossary entry on experimental design describes both groupings.

Is repeated measures the same as within subjects?

Repeated measures is another name for testing within subjects, when each participant is measured under every condition. David Lane’s Online Statistics Education notes that a within-subjects factor “is sometimes referred to as a repeated-measures factor since repeated measurements are taken on each subject.” The term also covers studies that measure the same people several times, such as before and after one treatment.

Sources

Papero Team

Papero

The Papero team builds an AI writing assistant for students, scholars and researchers, and writes about academic writing from what the product does.

Follow along on Instagram at @papero.ai for campaign breakdowns.

Your next paper, with real citations.

Describe your paper and get an outline in a minute. The Free plan needs no card.

Write your paper with the sources attached.