How to run a one-way ANOVA in SPSS, with a worked example

How to run a one-way ANOVA in SPSS, check assumptions, read F, p and eta-squared, choose Tukey or Games-Howell post hoc tests, and report it in APA style.

By the Twin Statistics teamUpdated 2026-11-157 min read

A one-way ANOVA (analysis of variance) tests whether the means of three or more independent groups differ. Use it when you have one categorical grouping variable and one continuous outcome. If the ANOVA is significant, post hoc tests tell you which groups differ.

When to use a one-way ANOVA

Use a one-way ANOVA when:

  • Your outcome is continuous (for example a test score or a scale total).
  • Your grouping variable has three or more levels (for example three teaching methods).
  • Each participant belongs to only one group.

With only two groups, a one-way ANOVA gives the same p value as a pooled t test (F = t²). Our t test in SPSS guide covers that case. If you have two grouping variables, or the same people measured more than once, see the note on other ANOVA designs below.

Assumptions

Independence of observations

Each person appears in one group only, and scores do not influence each other. This is a design issue. SPSS cannot test it.

Approximate normality within each group

The outcome should be roughly normal in each group. ANOVA is fairly robust to mild non-normality, especially with equal group sizes of 20 or more. Check histograms and Q-Q plots via Analyze > Descriptive Statistics > Explore, with your grouping variable in the Factor List.

Homogeneity of variance

The groups should have similar variances. SPSS tests this with Levene's test. If Levene's test is significant, use Welch's ANOVA and the Games–Howell post hoc test instead of the standard F and Tukey.

No extreme outliers

Outliers can distort group means. Check boxplots and investigate any flagged cases before you decide what to do with them.

How to run a one-way ANOVA in SPSS

There are two routes. Both give the same F test.

Route 1: Compare Means > One-Way ANOVA

  1. Go to Analyze > Compare Means > One-Way ANOVA. In recent versions the menu may be labelled Compare Means and Proportions.
  2. Move your outcome into Dependent List and your grouping variable into Factor.
  3. In SPSS 27 and later, tick Estimate effect size for overall tests.
  4. Click Options and tick Descriptive, Homogeneity of variance test, Welch and Means plot.
  5. Click Post Hoc and tick Tukey (equal variances assumed) and Games-Howell (equal variances not assumed).
  6. Click OK.

This route is the simplest, and it is the only one of the two that gives Welch's ANOVA directly.

Route 2: General Linear Model > Univariate

  1. Go to Analyze > General Linear Model > Univariate.
  2. Move your outcome into Dependent Variable and your group variable into Fixed Factor(s).
  3. Click Options, then tick Descriptive statistics, Estimates of effect size and Homogeneity tests.
  4. Use Post Hoc (or EM Means) to request comparisons, then click OK.

Use this route when you plan to add covariates (ANCOVA) or a second factor later. It reports partial eta-squared, which equals eta-squared in a one-way design.

How to read the output

Read the tables in this order.

TableWhat to look for
Descriptivesn, mean and SD for each group
Tests of Homogeneity of VariancesLevene's Sig. above .05 suggests equal variances
ANOVAF, df between, df within, Sig.
Robust Tests of Equality of MeansWelch's F and its p value, if variances are unequal
ANOVA Effect SizesEta-squared and omega-squared (SPSS 27 and later)
Multiple ComparisonsPairwise mean differences, p values and confidence intervals

F, degrees of freedom and p

F is the ratio of between-group variance to within-group variance. The degrees of freedom are k − 1 (between) and N − k (within), where k is the number of groups. A Sig. value below .05 means at least one group mean differs from another. It does not tell you which ones.

Eta-squared

Eta-squared = SSbetween / SStotal. It is the proportion of variance in the outcome explained by group membership. Cohen (1988) gave .01, .06 and .14 as small, medium and large. Omega-squared is a less biased alternative and is slightly smaller. Our effect size guide explains the differences.

Post hoc tests

  • Tukey HSD controls the familywise error rate when variances are roughly equal.
  • Games–Howell does not assume equal variances or equal group sizes. Use it when Levene's test is significant.

Run post hoc tests only when the overall F is significant, unless you planned specific comparisons in advance.

Worked example

Example (invented data). A researcher compares reading scores across three teaching methods, with 20 students in each group.

MethodnMeanSD
Traditional2014.24.0
Phonics2017.84.5
Mixed2016.14.2

Levene's test is not significant (Sig. = .78), so equal variances can be assumed. The ANOVA table shows:

SourceSum of SquaresdfMean SquareFSig.
Between Groups129.73264.873.61.033
Within Groups1023.915717.96
Total1153.6459

Eta-squared = 129.73 / 1153.64 = .11. Omega-squared is about .08. Welch's ANOVA gives a similar result, F(2, 37.91) = 3.55, p = .039.

Tukey's post hoc test shows:

ComparisonMean differencep95% CI
Phonics vs Traditional3.60.025[0.37, 6.83]
Mixed vs Traditional1.90.339[−1.33, 5.13]
Phonics vs Mixed1.70.419[−1.53, 4.93]

Only the phonics and traditional groups differ significantly.

How to report a one-way ANOVA in APA 7 style

Report F with both degrees of freedom, the exact p value, the effect size and the post hoc results. Italicise the statistical symbols in your final document.

A one-way ANOVA showed that reading scores differed by teaching method, F(2, 57) = 3.61, p = .033, η² = .11. Tukey post hoc tests indicated that the phonics group (M = 17.8, SD = 4.5) scored higher than the traditional group (M = 14.2, SD = 4.0), p = .025. The mixed group (M = 16.1, SD = 4.2) did not differ significantly from either group.

A table of means and SDs for each group helps when you have several outcomes. See our APA results section guide for layout.

Two-way and repeated-measures ANOVA

  • Two-way ANOVA has two grouping variables, such as teaching method and gender. Run it via Analyze > General Linear Model > Univariate with both variables as fixed factors. Interpret the interaction first. If it is significant, the effect of one factor depends on the other, and simple effects analysis is the next step.
  • Repeated-measures ANOVA is for the same people measured three or more times. Run it via Analyze > General Linear Model > Repeated Measures. It adds the sphericity assumption, tested with Mauchly's test. If sphericity is violated, report the Greenhouse–Geisser correction.

Common mistakes

  • Running several t tests instead of one ANOVA, which inflates the Type I error rate.
  • Reporting a significant F without saying which groups differ.
  • Using Tukey when Levene's test is significant. Use Welch's ANOVA with Games–Howell instead.
  • Reporting "p = .000". Write p < .001.
  • Leaving out the effect size.
  • Using a one-way ANOVA for repeated measures from the same participants.

Getting help with ANOVA

If your design has several factors, covariates or repeated measures, the choices get harder. Our SPSS help service can run and check your ANOVA and explain every table, so you can write up and defend the results yourself. If you are unsure ANOVA is the right test, send your research questions for a free methods check.

FAQ

What if my ANOVA is significant but no post hoc test is?

This can happen when the overall effect is spread across several small differences. Report the overall F and say that no pairwise comparison reached significance. Look at the means and confidence intervals to describe the pattern, without over-interpreting it.

Should I use Tukey or Games–Howell?

Use Tukey when variances are roughly equal, which Levene's test helps you judge. Use Games–Howell when variances or group sizes differ noticeably. Some researchers report Games–Howell by default because it holds up in both cases.

What is the non-parametric alternative to one-way ANOVA?

The Kruskal–Wallis test compares three or more independent groups using ranks. In SPSS, find it under Analyze > Nonparametric Tests > Independent Samples. Follow a significant result with pairwise comparisons that use an adjusted p value.

Is eta-squared the same as partial eta-squared?

In a one-way ANOVA they are equal. In designs with two or more factors, partial eta-squared is larger because it removes the variance explained by other factors. Say clearly which one you report.

How many participants do I need for ANOVA?

It depends on the expected effect size and the number of groups. For three groups, a medium effect (f = 0.25), 80% power and alpha = .05, you need about 159 participants in total, or 53 per group. Our G*Power sample size guide walks through the calculation.

Need help with this analysis?

A statistician can run, check and explain it with you. Fixed quote before we start.