Unit 3 · Compare groups

How to run a one-way ANOVA in SPSS

Run a one-way ANOVA in SPSS, read the ANOVA table, calculate eta squared and report F in APA style.

Free tutorialPro practiceAbout 5 minutes6 practice questions

Quick answer: How do you run a one-way ANOVA in SPSS?

  1. Click Analyze › Compare Means › One-Way ANOVA.
  2. Move the outcome into Dependent List and the group variable into Factor.
  3. Under Options… tick Descriptive and Homogeneity of variance test.
  4. Under Post Hoc… tick Tukey, then click OK.

Report it in APA style: Teaching method affected scores, F(2, 57) = 6.53, p = .003, η² = .19.

Last updated November 2026 · Not sure this is the right test? Try the Which statistical test? tool.

What is a one-way ANOVA?

A one-way analysis of variance (ANOVA) compares the means of three or more independent groups on one Scale outcome. It answers one question: is at least one group mean different from the others?

When to use it

  • One grouping variable with three or more levels, such as Lecture, Seminar and Online.
  • Different people in each group.
  • A Scale outcome.
  • If the outcome is ordinal or non-normal, use Kruskal-Wallis.

How it works

ANOVA splits the total variation in scores into two parts: variation between groups (how far group means sit from the overall mean) and variation within groups (how far people sit from their own group mean). F is the ratio of the two mean squares. If groups really don’t differ, F is around 1; a large F means the group differences are big compared with the noise. Eta squared (η² = SS between ÷ SS total) is the proportion of variance explained by group.

Assumptions

  • Scale outcome, roughly normal within each group.
  • Independent groups.
  • Similar variances (Levene’s test). If violated, use Welch’s ANOVA.

Worked example

Teaching method affected exam scores, F(2, 57) = 6.53, p = .003, η² = .19. The ANOVA doesn’t say which groups differ; post hoc tests do that.

Key terms

Factor
The grouping variable.
Levels
The groups within a factor.
Sum of squares
Total squared deviations, split into between and within.
F ratio
Mean square between ÷ mean square within.
Omnibus test
A test of whether any difference exists, without saying where.

Common mistakes

  • Running several t-tests instead of one ANOVA, which inflates false positives.
  • Concluding that all groups differ because F is significant.
  • Reporting the dfs the wrong way round: between first, then within.

How to do it in SPSS

One-way ANOVA

Use it to compare the means of three or more independent groups, such as exam scores under Lecture, Seminar and Online teaching.

One-Way ANOVA
Variables
Participant ID [id]
Age in years [age]
▶
Dependent List:1
Exam score (%) [score]
▶
Factor:2
Teaching method [method]
Contrasts…Post Hoc…3Options…4Bootstrap…
✓Estimate effect size for overall tests5
OKPasteResetCancelHelp
  1. 1
    Dependent ListThe Scale outcome, such as score.
  2. 2
    FactorThe grouping variable with three or more groups.
  3. 3
    Post Hoc…Follow-up tests that tell you which groups differ. That's the next lesson.
  4. 4
    Options…Tick Descriptive, Homogeneity of variance test and Means plot. Welch is your backup if variances are unequal.
  5. 5
    Estimate effect sizeAdds eta squared (η²): how much of the variation in scores the groups explain.

Reading the ANOVA table

The ANOVA table splits the variation in scores into the part explained by group and the part left over.

Output1 [Document1] – SPSS Statistics Viewer
FileEditViewDataTransformAnalyzeGraphsUtilitiesExtensionsWindowHelp
Output
Log
Oneway
Descriptives
Test of Homogeneity of Variances
ANOVA
ANOVA · score
Sum of Squaresdf3Mean Square4F5Sig.6
Between Groups11240.002620.006.53.003
Within Groups25415.005795.00
Total6655.0059
  1. 1
    Between GroupsVariation explained by which group people are in.
  2. 2
    Within GroupsVariation inside each group that the groups don't explain (error).
  3. 3
    dfBetween = number of groups − 1 (2). Within = total N − number of groups (57).
  4. 4
    Mean SquareSum of Squares ÷ df.
  5. 5
    FMean Square Between ÷ Mean Square Within. The bigger it is, the more the groups differ.
  6. 6
    Sig.Below .05 means at least one group mean differs from another.

The SPSS syntax

Prefer typing to clicking? Open File › New › Syntax, paste this in, select it and choose Run › Selection. Every dialog's Paste button writes the same kind of code.

ONEWAY score BY method
  /ES=OVERALL
  /STATISTICS DESCRIPTIVES HOMOGENEITY
  /MISSING ANALYSIS
  /POSTHOC=TUKEY ALPHA(0.05).

Practice data

Download the file used in this lesson and run it yourself in SPSS: you should get the same results as the screens above.

  • teaching.savExam scores by teaching method: Lecture, Seminar, Online (N = 60)

Now practise it interactively →

Reading is only half of it. Tap through the real SPSS menus, read the output and pick the right write-up in 6 quick questions, with instant feedback on every answer.

Practice for this lesson is part of Pro, with every unit, unlimited hearts and saved progress.

More in Compare groups