- Repeated measures ANOVA compares three or more measurements taken on the same subjects over time or across conditions — it is the multi-timepoint extension of the paired t-test.
- It carries one assumption unique to designs with 3+ repeated measurements: sphericity — roughly equal variances among all the pairwise differences between timepoints.
- Mauchly's test checks sphericity formally; when it's violated, the Greenhouse-Geisser correction adjusts the degrees of freedom rather than requiring a different test.
- A significant overall (omnibus) time effect only tells you that measurements differ somewhere — pairwise comparisons are needed to identify exactly where.
- Missing data is a real practical limitation — standard repeated measures ANOVA needs complete cases; a linear mixed model is often the better choice with dropout.
What Is Repeated Measures ANOVA?
Repeated measures ANOVA is a statistical test that compares the means of a continuous outcome measured three or more times, or under three or more conditions, on the same group of subjects. It tests a single overall question — does this outcome change significantly across the repeated measurements? — while correctly accounting for the fact that measurements from the same person are correlated with each other, unlike independent groups.
Because each subject is measured repeatedly and effectively serves as their own control, repeated measures ANOVA removes between-person variability from the error term used to calculate significance. This typically gives it more statistical power than an equivalent between-subjects design with the same total number of measurements, which is one of the main practical reasons longitudinal designs are so common in clinical research.
Instead of asking "do three separate groups of people differ?" (ordinary one-way ANOVA's question), repeated measures ANOVA asks "does the same group of people change significantly across three or more measurements?" — a question that requires modeling the correlation between each person's own repeated values.
When Should You Use Repeated Measures ANOVA?
Repeated measures ANOVA is the right test when your study meets all of the following conditions:
- Your outcome is continuous (a lab value, a symptom score, a physiological measurement).
- The same subjects are measured at three or more time points, or under three or more related conditions (such as three different drug doses given in sequence to the same patients).
- You want to test whether there is an overall change across the repeated measurements, not just a change between two specific points.
- The differences between repeated measurements are approximately normally distributed, without severe outliers.
If you only have two measurements per subject, this reduces to a paired t-test. If different subjects are measured in different groups (not the same people repeated), you need one-way ANOVA instead. If you have both a repeated (within-subject) factor and a separate grouping (between-subjects) factor — for example, comparing a treatment and control group, each followed over the same time points — you need a mixed-design ANOVA, which extends the logic covered here.
Repeated Measurements and Within-Subject Designs
A within-subject factor is a variable whose different levels are all experienced by the same subjects — most commonly, time (baseline, week 4, week 8). This is the defining feature of a repeated measures design, and it's different from a between-subjects factor, where different subjects occupy different levels (such as a treatment group versus a control group of different people).
The practical implication is that a within-subject design needs fewer total subjects to achieve the same statistical power as a between-subjects design, since each subject contributes multiple data points and acts as their own baseline comparison. The trade-off is added statistical complexity — the correlation between a subject's own repeated measurements must be explicitly modeled, which is exactly what introduces the sphericity assumption discussed later in this guide.
Repeated Measures ANOVA vs Ordinary ANOVA and the Paired T-Test
| Feature | One-Way ANOVA | Paired T-Test | Repeated Measures ANOVA |
|---|---|---|---|
| Groups/timepoints compared | 3+ independent groups | 2 related measurements | 3+ related measurements |
| Subjects | Different across groups | Same subjects, 2 timepoints | Same subjects, 3+ timepoints |
| Accounts for within-subject correlation | No | Yes | Yes |
| Unique assumption | Homogeneity of variance | None beyond normality of differences | Sphericity (3+ levels) |
| Test statistic | F | t | F |
Suitable Data Structure
Repeated measures ANOVA fits a specific data structure: a single group of subjects, each measured on the same continuous outcome at three or more fixed time points or conditions, with no subject appearing in more than one "arm" of the repeated factor. It's the natural test for pre-post-follow-up designs, dose-escalation studies within the same patients, and any longitudinal single-group study tracking change over multiple visits.
It is not the right test when different subjects belong to different groups (use one-way ANOVA), when only two timepoints exist (use a paired t-test), or when the study has both a repeated factor and a separate between-subjects group to compare (use a mixed-design ANOVA).
Assumptions, Especially Sphericity
Continuous outcome
Measured on an interval or ratio scale at every timepoint.
Independence between subjects
One subject's repeated measurements shouldn't influence another subject's.
Approximate normality
The differences between timepoints (or the model's residuals) should be roughly normally distributed.
No severe outliers
Extreme values at any single timepoint can distort that timepoint's mean and the overall result.
Sphericity
The variances of the differences between every pair of timepoints should be roughly equal — unique to designs with 3+ repeated measurements.
Sphericity is the assumption that gives repeated measures ANOVA its reputation for being trickier than other ANOVA variants. With three timepoints (Baseline, Week 4, Week 8), there are three possible pairs of differences: Week4−Baseline, Week8−Baseline, and Week8−Week4. Sphericity requires the variance of each of these three difference scores to be approximately equal across the group. With only two timepoints, there is only one pair of differences, so sphericity is automatically satisfied and never an issue — this is why it only becomes relevant once you have three or more repeated measurements.
Mauchly's Test and the Greenhouse-Geisser Correction
Mauchly's test formally tests the sphericity assumption. A non-significant result (conventionally p ≥ .05) means sphericity can be reasonably assumed and the standard, uncorrected repeated measures ANOVA result can be used directly. A significant Mauchly's test (p < .05) means sphericity is violated, and the standard F-test's p-value becomes anti-conservative — more likely to appear significant than it should.
The standard fix does not require switching to a different test — it corrects the degrees of freedom used to calculate the p-value. The most common correction is the Greenhouse-Geisser correction, which multiplies the original degrees of freedom by an estimated value called epsilon (ε), always between 0 (severe violation) and 1 (perfect sphericity). A smaller epsilon produces a larger downward adjustment to the degrees of freedom, producing a more conservative, appropriately cautious p-value. When epsilon is estimated above 0.75, some statisticians prefer the slightly less conservative Huynh-Feldt correction instead — both are reported automatically by most statistical software alongside the uncorrected result.
How to Prepare the Dataset
Repeated measures data is usually entered in wide format: one row per subject, with one column for each timepoint.
| Patient ID | Baseline SBP | Week 4 SBP | Week 8 SBP | Week 12 SBP |
|---|---|---|---|---|
| 001 | 158 | 150 | 142 | 134 |
| 002 | 146 | 140 | 136 | 128 |
| 003 | 162 | 153 | 145 | 137 |
| ... | ... | ... | ... | ... |
StatClinic and most modern statistical software accept this natural wide format directly and reshape it internally as needed. Two practical points matter most before analysis: confirm every subject has a value at every timepoint (standard repeated measures ANOVA needs complete cases), and document how many subjects were excluded due to missing follow-up visits, since this directly affects your sample size and generalizability.
A Realistic Longitudinal Medical Example
A clinic runs a 12-week lifestyle intervention program for patients with stage 1 hypertension, measuring systolic blood pressure (SBP) at baseline, week 4, week 8, and week 12 in the same 24 patients — a single-group, four-timepoint repeated measures design.
| Timepoint | Mean SBP (mmHg) | SD |
|---|---|---|
| Baseline | 152 | 9.1 |
| Week 4 | 145 | 8.7 |
| Week 8 | 138 | 8.3 |
| Week 12 | 130 | 7.9 |
Mean SBP falls steadily across all four visits, with the largest drop appearing between baseline and week 4. Whether this pattern is statistically reliable, and whether every consecutive pair of visits differs significantly, is exactly what the repeated measures ANOVA and its follow-up pairwise comparisons will confirm.
Step-by-Step Analysis Using StatClinic
Enter your data in wide format
One row per patient, with a separate column for SBP at each of the four visits.
Confirm your study design
Tell StatClinic these are repeated measurements on the same subjects across four timepoints — this routes the analysis correctly.
Let StatClinic run Mauchly's test automatically
StatClinic tests sphericity behind the scenes and flags a violation before you interpret the main result.
Apply the correction if needed
If sphericity is violated, StatClinic automatically applies the Greenhouse-Geisser correction to the degrees of freedom.
Review the omnibus time effect and effect size
You'll get the corrected F statistic, p-value, and partial η² for the overall effect of time.
Get pairwise comparisons and a written interpretation
StatClinic runs corrected pairwise comparisons between timepoints and generates ready-to-use Methods and Results text.
You can also run the calculation directly with the Repeated Measures ANOVA Calculator once your timepoint data are ready.
Interpreting the F Statistic, P Value, Effect Size, Time Effect, and Pairwise Comparisons
For the hypertension example, StatClinic's output might read: Mauchly's test χ² = 9.8, p = .03 (sphericity violated, ε = 0.70), followed by a Greenhouse-Geisser corrected omnibus result of F(2.1, 48.3) = 42.6, p < .001, partial η² = 0.65.
| Output | What It Tells You |
|---|---|
| F statistic (with corrected df) | The ratio of variance explained by time to residual variance, using degrees of freedom adjusted for the sphericity violation |
| P-value | The probability of seeing this much change across time if there were truly no overall time effect |
| Partial η² (effect size) | Proportion of variance explained by time; roughly 0.01 small, 0.06 medium, 0.14+ large |
| Time effect (omnibus result) | Confirms that SBP changed significantly across the four visits overall — not which specific visits differ |
| Pairwise comparisons | Identify exactly which timepoint pairs differ significantly, with a multiple-comparison correction applied |
Bonferroni-corrected pairwise comparisons for this example might show: Baseline vs Week 4, mean difference = 7 mmHg, 95% CI [3, 11], p = .002; Baseline vs Week 12, mean difference = 22 mmHg, 95% CI [17, 27], p < .001; Week 8 vs Week 12, mean difference = 8 mmHg, 95% CI [4, 12], p < .001 — confirming the reduction was significant at essentially every stage, with the cumulative effect by week 12 being by far the largest.
What to Use When Assumptions Are Violated
| Violated Assumption | What to Do |
|---|---|
| Sphericity (Mauchly's test significant) | Apply the Greenhouse-Geisser (or Huynh-Feldt) correction to the degrees of freedom — same test, corrected p-value |
| Severe non-normality | Use the Friedman test, the non-parametric equivalent for 3+ related measurements |
| Substantial missing data across timepoints | Use a linear mixed-effects model, which can include subjects with partial data |
| More than one within-subject factor, or an added between-subjects group | Use a mixed-design (split-plot) ANOVA or a more general mixed model |
How to Report the Methods and Results
A complete report states the design, whether sphericity held, the correction applied if needed, and the full result — omnibus test plus pairwise comparisons.
"Systolic blood pressure was measured at baseline and at weeks 4, 8, and 12 in the same 24 patients. Mauchly's test indicated a violation of sphericity (χ² = 9.8, p = .03); degrees of freedom were therefore corrected using the Greenhouse-Geisser estimate (ε = 0.70)."
"There was a statistically significant effect of time on systolic blood pressure, F(2.1, 48.3) = 42.6, p < .001, partial η² = 0.65. Bonferroni-corrected pairwise comparisons showed a significant reduction at every subsequent visit compared with baseline (all p < .01), with the largest reduction observed between baseline and week 12 (mean difference = 22 mmHg, 95% CI [17, 27])."
Common Mistakes
Mistake 1: Running Multiple Paired T-Tests Instead of One RM-ANOVA
Comparing baseline-vs-week4, week4-vs-week8, and baseline-vs-week8 as three separate paired t-tests, inflating the overall false-positive rate.
Mistake 2: Ignoring Sphericity Entirely
Always reporting the uncorrected p-value without ever checking Mauchly's test, risking a falsely significant result.
Mistake 3: Silently Dropping Subjects With Missing Visits
Excluding subjects with any missing timepoint without reporting how many were dropped or why, obscuring potential attrition bias.
Mistake 4: Stopping at a Significant Omnibus F
Reporting "there was a significant effect of time" without ever testing which specific timepoints actually differ from each other.
Mistake 5: Confusing a Within-Subject Factor With a Between-Subjects Group
Treating a design that actually compares two different groups over time as a simple repeated measures ANOVA, missing the need for a mixed-design model.
Mistake 6: Not Checking Outliers at Individual Timepoints
Failing to inspect each timepoint separately for extreme values that could be distorting that timepoint's mean and the overall time effect.
"Blood pressure decreased significantly over time (p < .001)" — reported without checking sphericity or specifying which visits actually differed.
"There was a significant effect of time, F(2.1, 48.3) = 42.6, p < .001 (Greenhouse-Geisser corrected), with significant reductions at every visit compared with baseline (all p < .01)."
Frequently Asked Questions
Related Articles
Once your repeated measures ANOVA is run, these guides take you through the surrounding decisions:
Ready to Run Your Repeated Measures ANOVA?
Let StatClinic's AI Statistical Assistant confirm the right test, check sphericity automatically, and write your results sentence. Free, no registration required.
Try StatClinic Free →