Repeated Measures ANOVA Calculator

Repeated Measures ANOVA Calculator

Test whether the same participants change across conditions — with Mauchly's test of sphericity and Greenhouse–Geisser / Huynh–Feldt corrections.

One row per participant, one value per condition, separated by commas or spaces. Every row needs the same number of values. You need at least 3 participants and 2 conditions.

Condition means

The line joins the mean of each condition, so you can see the pattern at a glance.

Post-hoc: if the conditions effect is significant, run pairwise comparisons with a Bonferroni correction, or use the Tukey HSD calculator. If your data are ordinal or badly non-normal, use the Friedman test instead — it compares ranks rather than means.

Repeated measures ANOVA tests the same people under several conditions — before, during and after a treatment, for example. It is more powerful than a between-groups ANOVA because each person acts as their own control, but it assumes sphericity. This calculator checks that assumption and applies the Greenhouse–Geisser or Huynh–Feldt correction when it fails.

How to use the repeated measures ANOVA calculator

  1. Choose the number of conditions (2–6) and rename them if you like — the calculator starts with three: Before, During and After.
  2. Paste your data in the wide format: one participant per line, one value per condition, separated by commas or spaces. The calculator needs at least 3 participants and 2 conditions.
  3. Choose your significance level (α), usually 0.05, then press Calculate. The calculator also runs automatically as you type.
  4. Read the headline F statistic and p-value, then check the sphericity banner — it tells you whether to report the uncorrected F or a corrected one.
  5. Use the ANOVA table, the sphericity table, the condition means and the ledger to check every step, and the chart to see the pattern of means.

Try it now: the calculator is pre-loaded with the reaction-time data from Worked Example 1 below — 8 participants in 3 conditions. It gives F(2, 14) = 61.4172, p < 0.0001 and partial η² = 0.8977, with Mauchly's W = 0.6026 (p = 0.2188), so sphericity holds and the uncorrected F is the one to report.

When should you use a repeated measures ANOVA?

Use a repeated measures ANOVA when the same participants are measured under every condition — a before/during/after design, a set of time points, or the same people trying several treatments. It is the right test when:

  • The same people, animals or items appear in every condition (the design is within-subjects).
  • Your outcome is measured on a continuous (interval or ratio) scale.
  • Each participant has one score in each condition — no missing cells.
  • The differences between pairs of conditions are approximately normal (check with the Shapiro–Wilk test calculator).
  • Sphericity holds, or you are willing to apply a correction when it does not — the calculator checks this for you.

Because each person acts as their own control, differences between people are removed from the error term, which makes the test more powerful than a one-way ANOVA on the same data. If your data are ordinal, or the differences are badly non-normal, use the Friedman test instead — it compares ranks rather than means. If different people are in each group, use a one-way ANOVA (one factor) or the two-way ANOVA calculator (two factors).

How repeated measures ANOVA works

Repeated measures ANOVA splits the total variation into three parts:

SStotal = SSconditions + SSsubjects + SSerror

  • SSconditions = n × Σ(meanj − grand mean)² — how much the condition means differ.
  • SSsubjects = k × Σ(participant mean − grand mean)² — how much people differ from each other. This is the part a between-groups ANOVA cannot remove.
  • SSerror = whatever is left — the variation within people across conditions.

The test statistic is F = MSconditions / MSerror, with df = (k − 1, (n − 1)(k − 1)) for k conditions and n participants. The effect size is partial eta-squared, partial η² = SSconditions / (SSconditions + SSerror). Roughly, 0.01 is small, 0.06 is medium and 0.14 is large. The F-distribution calculator looks up any F value, and the eta-squared calculator works out effect sizes from an ANOVA table.

Sphericity: Mauchly's test and the corrections

Sphericity means the variances of the differences between every pair of conditions are equal. It is the within-subjects equivalent of the homogeneity-of-variance assumption, and it matters because the F-test above assumes it. When sphericity fails, the ordinary F is too liberal — it rejects the null too often.

Mauchly's test checks the assumption. It compares the observed covariance pattern with a perfectly spherical one and returns W (1 = perfectly spherical) with a chi-squared statistic and a p-value. If p < 0.05, sphericity is violated.

When Mauchly's test is significant, correct the degrees of freedom by multiplying them by epsilon (ε), a number between 1/(k − 1) and 1 that measures how far from spherical the data are:

  • Greenhouse–Geisser ε — the more conservative correction. Use it when ε < 0.75.
  • Huynh–Feldt ε — less conservative. Use it when ε ≥ 0.75.
Decision rule: Mauchly's p ≥ 0.05 → report the uncorrected F. Mauchly's p < 0.05 and ε < 0.75 → report the Greenhouse–Geisser corrected F. Mauchly's p < 0.05 and ε ≥ 0.75 → report the Huynh–Feldt corrected F. With only 2 conditions sphericity always holds, so no correction is ever needed.
SituationReport
Mauchly's p ≥ 0.05Uncorrected F
Mauchly's p < 0.05, ε < 0.75Greenhouse–Geisser corrected F
Mauchly's p < 0.05, ε ≥ 0.75Huynh–Feldt corrected F
Only 2 conditionsUncorrected F (sphericity always holds)

Worked examples

Example 1 — reaction time falls across three conditions

Eight participants complete a reaction-time task before, during and after a training session. Reaction times (ms) are:

ParticipantBeforeDuringAfter
1412375354
2418355355
3414391364
4417398376
5409399341
6431409368
7433401377
8440393374

Condition means: Before 421.75 (SD 11.34), During 390.13 (SD 17.27), After 363.63 (SD 12.75); grand mean 391.83.

SourceSSdfMSFpPartial η²
Conditions13549.083326774.541761.4172< 0.00010.8977
Subjects2580.00007368.5714
Error1544.250014110.3036
Total17673.333323

Sphericity: Mauchly's W = 0.6026, χ²(2) = 3.0390, p = 0.2188 — not violated, so the uncorrected F is reported. Greenhouse–Geisser ε = 0.7156 (corrected df 1.4312, 10.0186, p < 0.0001) and Huynh–Feldt ε = 0.8485 (corrected df 1.6969, 11.8785, p < 0.0001) are shown for reference. Reaction time falls sharply across conditions (421.75 → 390.13 → 363.63 ms), a very large effect (partial η² = 0.8977). Load this data with the 'Load Example 1' button above to reproduce every number.

Example 2 — memory scores across four sessions

Ten participants take a memory test in four weekly sessions. Condition means: Session 1 18.5, Session 2 20.7, Session 3 23.8, Session 4 21.9; grand mean 21.225.

SourceSSdfMSFpPartial η²
Conditions147.875349.291716.8732< 0.00010.6521
Subjects274.225930.4694
Error78.875272.9213
Total500.97539

Sphericity: Mauchly's W = 0.8023, χ²(5) = 1.7012, p = 0.8888 — sphericity holds, so the uncorrected F is reported. Greenhouse–Geisser ε = 0.862 (corrected df 2.5859, 23.2729) and Huynh–Feldt ε = 1.0. Scores rise to session 3 (23.8) then dip slightly (21.9), a large effect (partial η² = 0.6521).

How to interpret the results

  • F and p: if p < α, the condition means differ more than chance alone would produce. Report the F from the row the sphericity banner points to (uncorrected, or the named correction).
  • Partial η²: the share of the within-subjects variation the conditions explain. 0.01 is small, 0.06 medium, 0.14 large. In Example 1, 0.8977 means the conditions explain almost 90% of it — a very large effect.
  • Mauchly's W and p: W near 1 means near-perfect sphericity. Only the p-value decides whether a correction is needed.
  • ε (GG and HF): 1 means perfectly spherical; values near 1/(k − 1) mean badly violated. The correction shrinks the degrees of freedom, which raises the p-value.
  • Condition means and the chart: always look at the pattern, not just the p-value — a significant F with a flat chart means a small, possibly trivial difference; a big drop or rise (as in Example 1) is what matters in practice.
  • What next: a significant F says at least one pair of conditions differs, not which pair. Run pairwise comparisons with a Bonferroni correction, or use the Tukey HSD calculator.

Assumptions

  • The same participants (or matched units) are measured in every condition, with one score per condition.
  • The outcome is continuous (interval or ratio scale).
  • The differences between each pair of conditions are approximately normally distributed — check them with the Shapiro–Wilk test calculator.
  • Sphericity: the variances of the differences between all pairs of conditions are equal. The calculator tests this with Mauchly's test and corrects the degrees of freedom when it fails.
  • No extreme outliers in any condition — a single wild score can distort the means and the covariance pattern.
If an assumption fails: badly non-normal differences or ordinal data call for the Friedman test (ranks, not means). A sphericity violation is handled by the Greenhouse–Geisser or Huynh–Feldt correction above — it does not force you to abandon the ANOVA. If some participants are missing a condition, the wide-format ANOVA cannot run — you need a mixed model or to analyse the complete cases only.

How to report a repeated measures ANOVA (APA)

Report the F statistic with its degrees of freedom, the exact p-value (or p < .001), the effect size, and the Mauchly's test result. If you used a correction, report the corrected degrees of freedom and say which correction you used. Copy the sentence below and fill in your own numbers:

A one-way repeated measures ANOVA showed a significant effect of condition on reaction time, F(2, 14) = 61.42, p < .001, partial η² = .90. Mauchly's test indicated that the assumption of sphericity had not been violated, χ²(2) = 3.04, p = .219.

Reporting checklist: (1) the design (within-subjects, k conditions, n participants); (2) the F statistic with df; (3) the p-value; (4) partial η²; (5) Mauchly's W, χ², df and p; (6) which correction, if any, and the corrected df; (7) the condition means (with SDs) so the reader can see the direction of the effect.

Cite this tool

If you use this calculator in your work, cite it as:

Shafiq, A. (2026). Repeated Measures ANOVA Calculator. Empirical Rule Calculators. https://empiricalrulecalculators.com/repeated-measures-anova-calculator/

Method: Mauchly, J. W. (1940). Significance test for sphericity of a normal n-variate distribution. Annals of Mathematical Statistics, 11(2), 204–209. Greenhouse, S. W., & Geisser, S. (1959). On methods in the analysis of profile data. Psychometrika, 24(2), 95–112. Huynh, H., & Feldt, L. S. (1976). Estimation of the Box correction for degrees of freedom from sample data in randomised block and split-plot designs. Journal of Educational Statistics, 1(1), 69–82.

Frequently asked questions

When do I use repeated measures ANOVA instead of one-way ANOVA?

Use repeated measures ANOVA when the same participants are measured in every condition. A one-way ANOVA is for different people in each group. Because repeated measures removes the variation between people from the error term, it is more powerful — the same effect is easier to detect with fewer participants. Use the one-way ANOVA calculator when each group contains different people.

What is sphericity and why does it matter?

Sphericity means the variances of the differences between every pair of conditions are equal. The repeated measures F-test assumes it. When it fails, the ordinary F rejects the null too often, so the p-value is too small. Mauchly's test checks the assumption, and the Greenhouse–Geisser or Huynh–Feldt correction fixes the degrees of freedom when it fails.

Greenhouse–Geisser or Huynh–Feldt — which correction?

Use Greenhouse–Geisser when its epsilon is below 0.75 — it is the more conservative correction and the safer choice when sphericity is badly violated. Use Huynh–Feldt when epsilon is 0.75 or above — it keeps more power when the violation is mild. The calculator's banner makes the choice for you and reports the corrected F.

What if my data violate normality?

The test assumes the differences between pairs of conditions are approximately normal, not the raw scores. Check the differences with the Shapiro–Wilk test calculator. If the differences are badly non-normal, or your data are ordinal, use the Friedman test instead — it compares ranks rather than means and needs no normality or sphericity assumption.

How many conditions can I compare?

The calculator handles 2 to 6 conditions. With 2 conditions, sphericity always holds and the test is equivalent to a paired t-test. With more conditions the sphericity check matters more, because there are more pairs of differences to compare. There is no upper limit in principle, but very wide designs are harder to interpret and to keep sphericity in.

Method: Mauchly (1940) for the sphericity test; Greenhouse & Geisser (1959) and Huynh & Feldt (1976) for the corrections. Worked Example 1 was verified against the hand-computed sums of squares (F = 61.4172, partial η² = 0.8977, Mauchly's W = 0.6026, Greenhouse–Geisser ε = 0.7156, Huynh–Feldt ε = 0.8485).

See all 106 free statistics tools on Empirical Rule Calculators.

Next steps

Keep going with the ANOVA family and the F-distribution — the tools that pair with repeated measures ANOVA.

📊● LiveANOVA

One-Way ANOVA Calculator

Compare three or more independent groups — the between-groups version of this test.

Try Calculator →


📊● LiveANOVA

Two-Way ANOVA Calculator

Test two factors at once and their interaction, with eta-squared and an interaction plot.

Try Calculator →


📈● LiveProbability

F-Distribution Calculator

Look up any F value, p-value or critical F for your degrees of freedom.

Try Calculator →

More Tools to Explore

Keep going with the calculators that pair with repeated measures ANOVA — ANOVA, effect sizes, normality and distributions.