← Back to Blog
Psychology Research Methods

One-Way ANOVA in SPSS: Example, Assumptions, Post Hoc Tests and APA Reporting

14 min readBy Dr. Keith Dzirasa
One-way ANOVA from data to APA write-up: dot plot of time to approach a customer in dressy, sloppy and casual clothing with group means, and four steps: check assumptions, run the F test, Tukey post hoc tests and report in APA 7
Quick answer

A one-way ANOVA (analysis of variance) tests whether the means of three or more independent groups differ on a continuous outcome, using one independent variable (the factor). It produces a single F test: if p < .05, at least one group mean differs from the others, and post hoc tests such as Tukey's HSD show which ones. In SPSS, run it from Analyze > Compare Means > One-Way ANOVA, tick Tukey under Post Hoc and Descriptive under Options, then report it in APA style as F(df between, df within) = value, p = value, with an effect size such as η² and the mean and standard deviation of every group, for example: F(2, 21) = 4.71, p = .020, η² = .31.

Working on a psychology methods assignment or lab report? Get one-to-one support from a specialist. Get a free quote →

What is a one-way ANOVA?

A one-way analysis of variance compares the average score of several groups that differ on one independent variable. "One-way" refers to that single factor; the factor can have three, four or more levels (conditions), but there is still only one of them. Typical psychology examples include comparing anxiety scores across three therapy types, reaction times across four levels of sleep deprivation, or exam scores across three teaching methods (Field, 2024).

The test works by comparing two sources of variability in the data:

The F ratio is the between-groups variance divided by the within-groups variance. When the groups do not really differ, F is close to 1; the larger F is, the less likely it is that differences this big arose by chance. Because the F test looks at all the groups at once, it is called an omnibus test: a significant result tells you that the means are not all equal, but not which ones differ. That is the job of post hoc tests.

One-way ANOVA vs t-test vs two-way ANOVA

A common question is why you cannot simply run several t-tests. With three groups, you would need three t-tests (A vs B, A vs C, B vs C), and each one carries a 5% risk of a false positive. Across three tests, the chance of at least one false positive rises to about 14% (1 − .95³ = .14), and it keeps climbing as you add groups. The ANOVA tests all the groups in one analysis at α = .05, and post hoc tests then make the pairwise comparisons while controlling this inflated Type I error rate.

Choosing between related tests
TestIndependent variablesGroups or conditionsUse when
Independent-samples t-testOneExactly twoComparing two separate groups
One-way ANOVAOneThree or moreComparing three or more separate groups
Two-way (factorial) ANOVATwoEvery combination of levels, e.g. 2 × 2 = 4Testing two factors and their interaction
Repeated-measures ANOVAOne (within subjects)Three or more measurementsThe same people are measured in every condition
Welch's ANOVAOneThree or moreGroup variances are unequal
Kruskal-Wallis testOneThree or moreThe outcome is ordinal or strongly non-normal

If your design has two independent variables, see our guide to main effects and interactions in a 2 × 2 factorial ANOVA. For a wider decision guide covering chi-square, correlation and regression, see which statistical test I should use.

One-way ANOVA assumptions (and what to do if they are violated)

Assumptions of the one-way ANOVA
AssumptionHow to check itIf it is violated
The dependent variable is continuous (interval or ratio)Look at how it was measured: a rating scale, a time, a test scoreUse a chi-square test for categories, or Kruskal-Wallis for ranks
Observations are independent: each person is in one group onlyCheck the designUse a repeated-measures or mixed ANOVA
Scores are roughly normal within each groupHistograms or Q-Q plots of each group; avoid relying on significance tests of normality in small samplesANOVA is fairly robust, especially with similar group sizes; with severe skew, consider Kruskal-Wallis
Group variances are similar (homogeneity of variance)Levene's test (Homogeneity of variance test in SPSS Options) and the group standard deviationsReport Welch's F and use Games-Howell post hoc tests
No extreme outliersBox plots of each groupCheck for data entry errors; report analyses with and without genuine outliers

Two recent papers are worth knowing. Blanca et al. (2017) simulated a wide range of non-normal distributions and found that the F test kept its false-positive rate under control in most conditions, so mild non-normality is rarely a reason to abandon ANOVA. Unequal variances are a bigger problem, particularly when group sizes also differ. Delacre et al. (2019) therefore recommend using Welch's F by default: it performs almost as well as the classic F when variances are equal and much better when they are not.

A dependent variable also needs a precise operational definition so readers know exactly what was measured and how it was scored.

Worked example: does a customer's clothing change how fast they are served?

This example comes from a classic textbook study (Smith & Davis, 2016). Salespeople were randomly assigned to see a customer who was dressy, sloppy or casually dressed, and the researchers timed how many seconds passed before the salesperson approached. The independent variable is clothing (three levels), the dependent variable is time to approach in seconds, and there are eight salespeople per group (N = 24). Higher times mean slower service.

Time to approach the customer (seconds)
DressySloppyCasual
Scores37, 38, 44, 47, 49, 49, 54, 6950, 46, 62, 52, 74, 69, 77, 7639, 38, 47, 44, 50, 48, 70, 55
Sum (Σ)387506391
Mean (M)48.3863.2548.88
Standard deviation (SD)10.1112.5410.20

Each mean is the sum divided by the number of scores: for the dressy group, 387 / 8 = 48.38 seconds. Looking at the means, salespeople seem to approach dressy and casual customers at about the same speed (48.38 and 48.88 seconds) but much more slowly when the customer is sloppily dressed (63.25 seconds). Whether those differences are bigger than chance is what the ANOVA tests.

How to run a one-way ANOVA in SPSS

Enter the data with one row per participant: one column for the group (coded 1 = dressy, 2 = sloppy, 3 = casual, with value labels) and one column for the time in seconds. Then:

  1. Choose Analyze > Compare Means > One-Way ANOVA.
  2. Move the outcome (Time to help) into the Dependent List and the grouping variable (Clothes) into Factor. SPSS calls the dependent variable the Dependent List and the independent variable the Factor.
  3. Click Post Hoc, tick Tukey, and also tick Games-Howell so you have a post hoc test ready if the variances turn out to be unequal. Click Continue.
  4. Click Options and tick Descriptive, Homogeneity of variance test, Welch and Means plot. Click Continue, then OK.
SPSS Analyze menu open at Compare Means with One-Way ANOVA highlighted
Step 1: Analyze > Compare Means > One-Way ANOVA.
SPSS One-Way ANOVA dialog with Time to help in the Dependent List and the clothing variable (Dressy 1, Sloppy 2, Casual 3) in the Factor box
Step 2: the outcome goes in Dependent List; the grouping variable goes in Factor.
SPSS One-Way ANOVA Post Hoc Multiple Comparisons dialog with Tukey ticked under Equal Variances Assumed and Games-Howell ticked under Equal Variances Not Assumed, significance level .05
Step 3: Tukey for equal variances, Games-Howell as the back-up when variances differ.
SPSS One-Way ANOVA Options dialog with Descriptive and Means plot ticked; Homogeneity of variance test and Welch are also available in the Statistics list
Step 4: In Options, tick Descriptive and Means plot; ticking Homogeneity of variance test and Welch as well is recommended.

How to interpret one-way ANOVA output in SPSS

SPSS produces three tables you need and a plot. Read them in this order.

1. Descriptives

This table gives N, the mean, standard deviation, standard error and 95% confidence interval for each group and for everyone combined. Copy the means and standard deviations into your write-up; they show the direction of any difference the ANOVA finds. See our guide to descriptive statistics in SPSS for what each one means.

SPSS Descriptives table for time to help: Dressy N = 8, mean 48.38, SD 10.113; Sloppy N = 8, mean 63.25, SD 12.544; Casual N = 8, mean 48.88, SD 10.204; Total N = 24, mean 53.50
Descriptives: 8 salespeople per group, with the mean and standard deviation of each.

2. The ANOVA table

This is the omnibus test. Read across the Between Groups row:

SPSS ANOVA table for time to help: Between Groups sum of squares 1141.750, df 2, mean square 570.875, F 4.708, Sig. .020; Within Groups sum of squares 2546.250, df 21, mean square 121.250; Total 3688.000, df 23
The ANOVA table: F(2, 21) = 4.71, p = .020.

If you ticked Homogeneity of variance test, SPSS also prints Levene's test. Here it is not significant, F(2, 21) = 0.95, p = .404, so the equal-variances assumption is reasonable and Tukey is the right post hoc test.

3. Multiple Comparisons (post hoc tests)

Because the ANOVA was significant, the Tukey HSD table shows which pairs of groups differ. Each pair appears twice (A vs B and B vs A), so read each comparison once. Significant differences are marked with an asterisk in the Mean Difference column.

SPSS Multiple Comparisons table, Tukey HSD: Dressy vs Sloppy mean difference −14.875, standard error 5.506, Sig. .034; Dressy vs Casual −0.500, Sig. .995; Sloppy vs Casual 14.375, Sig. .041, with 95% confidence intervals
Tukey HSD: sloppy differs from both dressy (p = .034) and casual (p = .041); dressy and casual do not differ (p = .995).
Reading the Tukey comparisons
ComparisonMean difference (s)pConclusion
Dressy vs sloppy−14.88.034Dressy customers approached significantly faster
Casual vs sloppy−14.38.041Casual customers approached significantly faster
Dressy vs casual−0.50.995No difference

4. The means plot

The means plot shows the three group means. It makes the pattern obvious: the sloppy group sits well above the other two. Note that SPSS joins the points with lines even though the groups have no natural order; for a report, a dot plot with confidence intervals is clearer. Our guide to making figures for a scientific paper explains why.

SPSS means plot of mean time to help by clothing condition, rising from about 48 seconds for dressy to about 63 seconds for sloppy and falling to about 49 seconds for casual
The SPSS means plot: sloppy clothing stands out from dressy and casual.

Effect size for a one-way ANOVA: eta squared and omega squared

A p-value tells you whether the groups differ; an effect size tells you by how much. Report one with every ANOVA (American Psychological Association, 2020).

Cohen's (1992) benchmarks for ANOVA are expressed as f: .10 small, .25 medium and .40 large, which correspond roughly to η² of .01, .06 and .14. Here f = .67, a large effect, although with only eight people per group the estimate is imprecise. Benchmarks are a rough guide; judge the size of an effect against what matters in your field. You can convert between η², ω², f and d with our effect size calculator.

How to report a one-way ANOVA in APA 7

An APA results paragraph for a one-way ANOVA states the test, the F ratio with both degrees of freedom, the exact p value, an effect size, the post hoc test used and the means and standard deviations of every group (American Psychological Association, 2020; Appelbaum et al., 2018). Italicise statistical symbols and give p without a leading zero; our guide to reporting statistics in APA 7 covers the details.

Example APA results paragraph

A one-way between-subjects ANOVA was conducted to compare the time salespeople took to approach customers in dressy, sloppy and casual clothing. There was a significant effect of clothing, F(2, 21) = 4.71, p = .020, η² = .31. Tukey HSD post hoc tests showed that customers in sloppy clothing (M = 63.25 s, SD = 12.54) were approached significantly more slowly than customers in dressy clothing (M = 48.38 s, SD = 10.11), p = .034, and casual clothing (M = 48.88 s, SD = 10.20), p = .041. Approach times for dressy and casual customers did not differ, p = .995.

Report a non-significant result in the same format, for example F(2, 21) = 1.12, p = .345, η² = .10, and do not run or report post hoc tests after a non-significant omnibus test unless you planned specific comparisons in advance. If you used Welch's test, report its adjusted degrees of freedom, as in the next section.

When assumptions are violated: Welch's ANOVA and Kruskal-Wallis

Welch's ANOVA (unequal variances)

Welch's F adjusts the within-group degrees of freedom to allow for unequal variances, so the second df is usually a decimal. Delacre et al. (2019) argue it should be the default. For the example data, Welch's test gives F(2, 13.88) = 3.91, p = .045: the same conclusion as the classic F, with a slightly larger p-value. Pair Welch's F with Games-Howell post hoc tests, which do not assume equal variances.

Kruskal-Wallis test (ordinal or severely non-normal data)

The Kruskal-Wallis test compares groups using the ranks of the scores instead of the scores themselves (Kruskal & Wallis, 1952). Run it from Analyze > Nonparametric Tests > Independent Samples in SPSS. For the example, H(2) = 6.68, p = .035, with mean ranks of 9.50 (dressy), 17.75 (sloppy) and 10.25 (casual). Follow a significant result with Dunn's pairwise tests, which SPSS provides with a Bonferroni adjustment.

Common one-way ANOVA mistakes

Getting help with ANOVA in your statistics course

If you would like a specialist to check your SPSS setup, help you interpret your output or give feedback on your APA results section, see our psychology research methods and statistics support. We explain each step so you can apply it confidently in your own work.

Frequently asked questions

What is a one-way ANOVA used for?

It tests whether the means of three or more independent groups differ on a continuous outcome when there is one independent variable, for example comparing anxiety scores across three types of therapy.

What is the difference between a one-way ANOVA and a t-test?

A t-test compares two group means; a one-way ANOVA compares three or more in a single test. Running several t-tests instead raises the chance of a false positive, which the ANOVA and its post hoc tests control.

What is the difference between a one-way and a two-way ANOVA?

A one-way ANOVA has one independent variable. A two-way ANOVA has two independent variables and also tests whether they interact.

How do I interpret one-way ANOVA results in SPSS?

Check the Sig. value in the Between Groups row of the ANOVA table. If it is below .05, the group means are not all equal. Then use the Multiple Comparisons table (for example Tukey HSD) to see which pairs of groups differ, and the Descriptives table for each group's mean and standard deviation.

Which post hoc test should I use after a one-way ANOVA?

Tukey HSD is the usual choice when group variances are similar. If Levene's test shows unequal variances, use Games-Howell.

How do you report a one-way ANOVA in APA 7?

Give F with the between- and within-groups degrees of freedom, the exact p value and an effect size, for example F(2, 21) = 4.71, p = .020, η² = .31, followed by the post hoc results and the mean and standard deviation of each group.

What is a good effect size for a one-way ANOVA?

Using Cohen's benchmarks, eta squared of about .01 is small, .06 medium and .14 large. Omega squared is less biased than eta squared, especially in small samples.

What if the assumptions of a one-way ANOVA are violated?

If variances are unequal, use Welch's ANOVA with Games-Howell post hoc tests. If the outcome is ordinal or severely non-normal, use the Kruskal-Wallis test. ANOVA is fairly robust to mild non-normality.

Sources

  1. Field A. Discovering Statistics Using IBM SPSS Statistics. 6th ed. London: Sage; 2024
  2. Delacre M, Leys C, Mora YL, Lakens D. Taking parametric assumptions seriously: arguments for the use of Welch's F-test instead of the classical F-test in one-way ANOVA. Int Rev Soc Psychol 2019;32(1):13
  3. American Psychological Association. Publication Manual of the American Psychological Association. 7th ed. Washington, DC: American Psychological Association; 2020
  4. Albers C, Lakens D. When power analyses based on pilot data are biased: inaccurate effect size estimators and follow-up bias. J Exp Soc Psychol 2018;74:187-195
  5. Appelbaum M, Cooper H, Kline RB, et al. Journal article reporting standards for quantitative research in psychology: the APA Publications and Communications Board task force report. Am Psychol 2018;73:3-25
  6. Blanca MJ, Alarcón R, Arnau J, Bono R, Bendayan R. Non-normal data: is ANOVA still a valid option? Psicothema 2017;29(4):552-557
  7. Lakens D. Calculating and reporting effect sizes to facilitate cumulative science: a practical primer for t-tests and ANOVAs. Front Psychol 2013;4:863
  8. Cohen J. A power primer. Psychol Bull 1992;112(1):155-159
  9. Kruskal WH, Wallis WA. Use of ranks in one-criterion variance analysis. J Am Stat Assoc 1952;47(260):583-621
  10. Smith RA, Davis SF. The Psychologist as Detective: An Introduction to Conducting Research in Psychology. Updated ed. Boston, MA: Pearson; 2016
Research Scientist, Psychology · PhD in Psychology, MSc in Research Methods
Keith has 17 years of experience in experimental psychology and cognitive and behavioral research. He brings an experimental research perspective to projects that examine cognition, perception, and behavior. Areas of expertise Experimental and behavioral studies Quantitative research projects and data analysis…
Need help with Psychology Research Methods? See how our specialists can support you.View Service Page →

Need help with your psychology research methods course?

Tell us what you need and a specialist will reply with a free, itemized quote within 2-4 business hours.