Blog › Guide
One-way ANOVA in SPSS: how to run, read and report it (with post hoc tests)
To run a one-way ANOVA in SPSS, put one numeric outcome (such as an exam score) and one grouping variable with three or more groups (such as school or faculty) in your data file, then choose Analyze > Compare Means > One-Way ANOVA. Move the outcome into the Dependent List and the grouping variable into Factor, and tick Estimate effect size for overall tests. Under Options, tick Descriptive, Homogeneity of variance test and Welch. Under Post Hoc, tick Tukey and Games-Howell. Click OK. Read Levene’s test first: if the variances look similar, report the ordinary ANOVA F and the Tukey comparisons; if they do not, report the Welch test and the Games-Howell comparisons. Finish with an effect size such as eta squared.
This guide explains each step, with menu paths and syntax checked against IBM’s SPSS Statistics 30 documentation. It shows how to read every output table, what to do when the assumptions fail, and how to report the result in APA style, using one clearly labelled illustrative example from start to finish. (SPSS uses the US spelling Analyze in its menus; the steps are the same everywhere.)
What is a one-way ANOVA, and when should you use it?
A one-way analysis of variance (ANOVA) tests whether the means of three or more independent groups are equal. IBM describes it as “an extension of the two-sample t test”: one quantitative dependent variable, one factor that splits the cases into groups. “One-way” means there is only one grouping variable. Two grouping variables at once (for example school and gender) need a two-way ANOVA, which is a different procedure.
Typical research objectives that lead to a one-way ANOVA:
- “To compare exam scores across three schools.”
- “To determine whether job satisfaction scores differ by level of education (secondary, first degree, postgraduate).”
- “To compare the weekly hours of social media use of students in four faculties.”
| Your question | Outcome | Use |
|---|---|---|
| Do 3 or more independent groups differ? | Numeric, roughly normal in each group | One-way ANOVA (this guide) |
| Do 3 or more independent groups differ? | Ranks, or numeric but clearly skewed | Kruskal-Wallis test |
| Do 2 independent groups differ? | Numeric | Independent-samples t-test |
| Are two categorical variables related? | Categories (counts) | Chi-square test of independence |
| Do the same people differ across 3 or more times? | Numeric | Repeated measures ANOVA |
If you are not sure which row fits your objective, our guide on how to choose the right statistical test walks through the decision.
Why not just run several t-tests?
With three groups you could run three t-tests (A vs B, A vs C, B vs C), but each test carries its own 5% risk of a false positive, and the risks add up. Kim (2017), in the Korean Journal of Anesthesiology, shows that with a 0.05 significance level the chance of at least one false positive rises to about 0.143 with three comparisons and about 0.265 with six. ANOVA tests all the groups in one go. Only if that overall test is significant do you move on to post hoc tests, which adjust for the number of comparisons.
The assumptions, and how to check them in SPSS
IBM lists the assumptions for the One-Way ANOVA procedure: the dependent variable should be quantitative (interval level), each group should be an independent random sample from a normal population, and the groups should come from populations with equal variances. IBM adds that ANOVA is robust to departures from normality, although the data should be symmetric. In practice, check five things:
| Assumption | What it means | How to check in SPSS |
|---|---|---|
| Numeric outcome | Scores, hours, ages, scale totals or averages | Variable View: Measure = Scale |
| Independent groups | Each person is in one group only | Your research design, not a test |
| Roughly normal in each group | No strong skew within any group | Explore with the group as Factor: histograms, Q-Q plots, skewness, Shapiro-Wilk |
| Similar variances | The spread is similar in every group | Levene’s test in One-Way ANOVA > Options |
| No problem outliers | No data-entry errors or extreme values driving the result | Explore boxplots; check flagged cases against the questionnaires |
Our guide to descriptive statistics in SPSS shows how to run Explore by group and how to read skewness, boxplots and normality tests. Do not judge normality from a single test: in large samples, normality tests flag tiny departures that do not matter, and in small samples they miss real ones. Look at the plots as well.
About equal variances: the classic advice is to run Levene’s test and switch to the Welch test only if it is significant. Some methodologists go further. Delacre and colleagues (2019), in the International Review of Social Psychology, ran simulations and recommend using Welch’s ANOVA by default when comparing means, because the classic F-test can give biased results when variances are unequal. Ticking Welch every time costs nothing, so this guide asks for it in every run. If your department or supervisor has a set rule, follow it and say so in your methods.
How to set up your data
SPSS needs the data in “long” format: one row per person, one column for the group and one column for the outcome. Do not put each school in its own column.
| id | school | score |
|---|---|---|
| 1 | 1 | 61 |
| 2 | 1 | 55 |
| 3 | 2 | 70 |
| 4 | 3 | 78 |
Illustrative layout only. Code the groups as numbers (1, 2, 3) and add value labels (1 = School A, 2 = School B, 3 = School C) in Variable View, so the output shows names rather than codes. Set the group variable’s Measure to Nominal and the outcome’s to Scale, and declare any missing-value codes such as 99. Our guide on how to enter questionnaire data into SPSS covers coding, value labels and missing values. If your outcome is a total or average of Likert items, build and check the scale first, as explained in how to analyse Likert scale data.
How to run a one-way ANOVA in SPSS: step by step
Step 1: Open the One-Way ANOVA dialog
- Choose Analyze > Compare Means > One-Way ANOVA. Menu names can shift a little between SPSS versions (some recent versions say Compare Means and Proportions); the dialog is the same.
- Move the outcome (for example score) into the Dependent List. You can add several outcomes; SPSS runs a separate ANOVA for each.
- Move the grouping variable (for example school) into Factor.
- Tick Estimate effect size for overall tests. IBM documents that this adds an “ANOVA Effect Sizes” table to the output. The option and the matching
/ESsyntax were introduced in SPSS 27; in older versions, see the effect-size section below.
Step 2: Options
- Click Options.
- Tick Descriptive (the N, mean, standard deviation, standard error, 95% confidence interval, minimum and maximum for each group).
- Tick Homogeneity of variance test (Levene’s test). IBM notes that this test does not depend on the assumption of normality.
- Tick Welch. You can also tick Brown-Forsythe; IBM describes both as preferable to the ordinary F statistic when the assumption of equal variances does not hold.
- Tick Means plot if you want a quick picture of the group means.
- Leave Missing Values on Exclude cases analysis by analysis unless you have a reason to change it. Click Continue.
Step 3: Post Hoc
- Click Post Hoc.
- Under Equal Variances Assumed, tick Tukey.
- Under Equal Variances Not Assumed, tick Games-Howell.
- Keep the significance level at 0.05 unless your study set another. Click Continue.
You ask for both now and decide which one to read after you have seen Levene’s test. That way you do not need to run the analysis twice.
Step 4: Run it, and save the syntax
Click Paste instead of OK to send the commands to a syntax window, then run them from there. Saving the syntax gives you an exact record of what you ran, which helps when a supervisor or reviewer asks you to re-run the analysis. The commands below use IBM’s documented ONEWAY syntax; replace the variable names with your own.
* One-way ANOVA: score by school, with Levene, Welch,
* Brown-Forsythe, a means plot, effect sizes and two post hoc tests.
ONEWAY score BY school
/ES=OVERALL
/STATISTICS=DESCRIPTIVES HOMOGENEITY WELCH BROWNFORSYTHE
/PLOT MEANS
/MISSING=ANALYSIS
/POSTHOC=TUKEY GH ALPHA(0.05).
In the syntax, GH is Games-Howell. Other post hoc keywords include BONFERRONI, SCHEFFE, DUNNETT and T2 (Tamhane’s T2).
How to read the one-way ANOVA output in SPSS
Read the tables in this order. The figures below come from one illustrative example: invented exam scores (out of 100) for 20 students in each of three schools. They are not real data; they are there only to show where each number sits.
1. Descriptives
| School | N | Mean | Std. Deviation | Std. Error | 95% CI for mean | Min | Max |
|---|---|---|---|---|---|---|---|
| School A | 20 | 58.70 | 6.85 | 1.53 | 55.49 to 61.91 | 43 | 70 |
| School B | 20 | 63.60 | 10.16 | 2.27 | 58.85 to 68.35 | 49 | 87 |
| School C | 20 | 72.30 | 6.84 | 1.53 | 69.10 to 75.50 | 61 | 86 |
Illustrative output, simplified. Check N first: does each group have the number of cases you expect? Then check the minimum and maximum for impossible values, and only then look at the means and standard deviations. Here School C has the highest mean and School B the widest spread.
2. Test of Homogeneity of Variances (Levene’s test)
SPSS prints several rows; read the one labelled Based on Mean. In the illustrative example the Levene statistic is 1.04 with df1 = 2 and df2 = 57, and Sig. = .359.
- Sig. above .05: no evidence that the variances differ. Read the ordinary ANOVA table and the Tukey comparisons.
- Sig. .05 or below: the variances differ. Read the Welch row in Robust Tests of Equality of Means and the Games-Howell comparisons.
3. The ANOVA table
| Sum of Squares | df | Mean Square | F | Sig. | |
|---|---|---|---|---|---|
| Between Groups | 1897.73 | 2 | 948.87 | 14.45 | .000 |
| Within Groups | 3743.20 | 57 | 65.67 | ||
| Total | 5640.93 | 59 |
Illustrative output. What each column means:
- Between Groups df is the number of groups minus one (3 − 1 = 2). Within Groups df is the total sample minus the number of groups (60 − 3 = 57). You report both, in that order.
- Mean Square is the sum of squares divided by its df.
- F is the between-groups mean square divided by the within-groups mean square (948.87 / 65.67 = 14.45). As Kim (2017) explains, ANOVA compares the variation between the group means with the variation inside the groups: the larger F, the more the groups stand apart.
- Sig. is the p value. SPSS shows .000 when p is very small. Never write p = .000; write p < .001.
A significant F tells you that at least one group mean differs from another. It does not tell you which. That is the job of the post hoc tests.
4. Robust Tests of Equality of Means (Welch and Brown-Forsythe)
In the illustrative example the Welch statistic is 19.65 with df1 = 2 and df2 = 37.08, Sig. < .001. Note that the second df is not a whole number; report it to two decimals. Because Levene’s test was not significant here, the ordinary F is the main result, and the Welch test simply agrees with it. If Levene’s test had been significant, the Welch line would be the one to report.
5. ANOVA Effect Sizes
When you tick Estimate effect size for overall tests, SPSS prints a table with point estimates and 95% confidence intervals for eta squared, epsilon squared and omega squared (in fixed-effect and random-effect versions). In the illustrative example the point estimates are about .34 for eta squared, .31 for epsilon squared and .31 for fixed-effect omega squared. See the effect-size section below for which one to report.
6. Multiple Comparisons (post hoc tests)
| Comparison (Tukey HSD) | Mean difference | Sig. | 95% CI |
|---|---|---|---|
| School A vs School B | −4.90 | .145 | −11.07 to 1.27 |
| School A vs School C | −13.60 | < .001 | −19.77 to −7.43 |
| School B vs School C | −8.70 | .004 | −14.87 to −2.53 |
Illustrative output, simplified. SPSS lists every pair twice (A vs B and B vs A), and marks significant mean differences with an asterisk. Read each pair once. Here School C scored higher than both School A and School B, but Schools A and B did not differ significantly. A confidence interval that does not cross zero matches a significant difference. SPSS also prints a Homogeneous Subsets table, which groups together the means that do not differ; it tells the same story in a different layout.
Which post hoc test should you choose?
SPSS offers many post hoc tests. IBM’s documentation groups them by whether they assume equal variances. For most student projects, the first two rows are enough.
| Test | Use when | Notes (from IBM’s descriptions) |
|---|---|---|
| Tukey (HSD) | Equal variances; you want every pair compared | Compares all pairs and sets the error rate for the whole set of comparisons |
| Games-Howell | Unequal variances (significant Levene) | Designed for unequal variances; IBM notes it can be “sometimes liberal” |
| Bonferroni | Equal variances; only a few planned comparisons | Divides the error rate by the number of tests, so it becomes strict with many groups |
| Dunnett | You only want each group compared with one control group | Set whether the control is the first or last category |
| Scheffé | You want to test more complex combinations of means | Can test any linear combination of means, not just pairs |
| LSD | Rarely the right choice | Makes no adjustment for multiple comparisons |
Choose your post hoc test in advance, ideally in your proposal or methods chapter, and name it in your write-up. Picking whichever test gives the result you like is a form of selective reporting.
Effect size: eta squared and omega squared
The p value tells you whether a difference is likely to be more than chance. The effect size tells you how big it is. APA-style reports and most examiners expect both.
- Eta squared (η2) is the between-groups sum of squares divided by the total sum of squares: the share of the variation in the outcome that is linked to group membership. In the illustrative example, 1897.73 / 5640.93 = .34, or about 34%.
- Omega squared (ω2) corrects eta squared for bias. Lakens (2013), in Frontiers in Psychology, explains that omega squared is the less biased version of eta squared, so it is slightly smaller (.31 here).
- Partial eta squared. If you run the analysis through General Linear Model > Univariate instead, SPSS labels the effect size “partial eta squared”. Lakens notes that in a one-way ANOVA partial eta squared equals eta squared.
How big is big? Lakens reports Cohen’s (1988) benchmarks of .01 (small), .06 (medium) and .14 (large) for eta squared, and warns that they were developed for particular kinds of comparisons. Use them as a rough guide, and judge size against earlier studies in your field where you can. Whichever measure you choose, name it in the text. In versions before SPSS 27, you can calculate eta squared by hand from the ANOVA table as shown above.
What if the assumptions are not met?
Unequal variances: Welch’s ANOVA and Games-Howell
If Levene’s test is significant, report the Welch statistic from Robust Tests of Equality of Means, with both df values, and use Games-Howell for the pairwise comparisons. The open textbook Statistics: Open for Everyone gives the same advice: when variances are not equal, consider Welch’s ANOVA with a Games-Howell post hoc test instead of a standard ANOVA with Tukey.
Clearly non-normal data or ranks: the Kruskal-Wallis test
If the outcome is badly skewed within groups, has strong outliers you cannot explain, or is a single Likert item, use the Kruskal-Wallis H test. IBM describes it as the non-parametric analogue of one-way ANOVA. It works on ranks and, according to IBM, requires the groups to be similar in shape.
- Choose Analyze > Nonparametric Tests > Legacy Dialogs > K Independent Samples.
- Move the outcome into the Test Variable List and the group variable into Grouping Variable.
- Click Define Range and enter the lowest and highest group codes (for example 1 and 3).
- Make sure Kruskal-Wallis H is ticked, then click OK.
* Kruskal-Wallis H test: score by school, groups coded 1 to 3.
NPAR TESTS K-W=score BY school(1,3).
SPSS shows the mean rank of each group in the Ranks table, and the chi-square statistic, df and significance in the Test Statistics table; IBM notes that Kruskal-Wallis H has approximately a chi-square distribution. Report the median of each group alongside it, because means are not the focus of a rank-based test.
How to report one-way ANOVA results in APA style
The APA Style Numbers and Statistics Guide (7th edition) gives the rules that matter most here:
- Italicise statistical symbols such as F, p, M and SD, but not Greek letters such as η.
- Put a space either side of the equals sign: F(2, 57) = 14.45.
- Report inferential statistics such as F to two decimals, and exact p values to two or three decimals (p = .004). Report very small values as p < .001.
- Do not put a zero before the decimal point for values that cannot exceed 1, such as p values and eta squared (η2 = .34, not 0.34).
- Do not repeat the same statistics in the text and in a table.
A complete one-way ANOVA report usually has four parts: what you tested and how; the group means and standard deviations (in the text or a table); the overall test with its effect size; and the post hoc results in plain words.
Illustrative write-up (standard ANOVA)
Illustrative example only; the data are invented. Replace every number with your own.
A one-way ANOVA was conducted to compare exam scores across three schools. Levene’s test indicated that the assumption of equal variances was met, F(2, 57) = 1.04, p = .359. There was a statistically significant difference in exam scores between the schools, F(2, 57) = 14.45, p < .001, η2 = .34. Tukey post hoc comparisons showed that students in School C (M = 72.30, SD = 6.84) scored higher than students in School A (M = 58.70, SD = 6.85), p < .001, and School B (M = 63.60, SD = 10.16), p = .004. Schools A and B did not differ significantly, p = .145.
Illustrative write-up (Welch’s ANOVA)
Because Levene’s test showed unequal variances, Welch’s ANOVA was used. Exam scores differed significantly between the schools, Welch’s F(2, 37.08) = 19.65, p < .001. Games-Howell post hoc comparisons showed …
Illustrative wording only: in the invented example Levene’s test was not significant, so this second version shows the format, not a finding.
Illustrative results table
Table 1
Exam Scores by School (Illustrative Data)
| School | n | M | SD |
|---|---|---|---|
| School A | 20 | 58.70 | 6.85 |
| School B | 20 | 63.60 | 10.16 |
| School C | 20 | 72.30 | 6.84 |
Note. Scores are out of 100. One-way ANOVA: F(2, 57) = 14.45, p < .001, η2 = .34. School C differed from Schools A and B (Tukey HSD, p ≤ .004).
If you put the means in a table like this, do not repeat them in the paragraph; point to the table instead. Some departments use Harvard or another style for the reference list but still expect statistics laid out in this way. Check your own handbook.
Where the ANOVA goes in a dissertation
- Methodology chapter: name the test, the post hoc test, the effect size, the software and version, the significance level, and how you checked the assumptions. Our guide on how to write a dissertation methodology shows where this fits.
- Results chapter: start with descriptive statistics, then the assumption checks in one or two sentences, then the ANOVA and post hoc results, organised by research objective or hypothesis.
- Discussion chapter: explain what the difference means in practice and compare it with earlier studies. Say how large the effect is, not only whether it was significant.
- Appendix: if your supervisor wants it, add the full SPSS output there, not in the main chapter.
Common mistakes to avoid
- Running several t-tests instead of one ANOVA, which inflates the false-positive rate.
- Using a one-way ANOVA for related groups, such as the same students tested three times. That needs a repeated measures ANOVA or the Friedman test.
- Putting groups in separate columns instead of one group variable and one outcome variable.
- Treating a single Likert item as interval data without justification. For single items, Kruskal-Wallis is usually safer.
- Skipping Levene’s test, or reading the ordinary F when Levene’s test is significant.
- Running post hoc tests after a non-significant F and reporting a “significant” pair as a finding.
- Writing p = .000. Write p < .001.
- Leaving out the effect size, or reporting “partial eta squared” without saying what it is.
- Forgetting both df values, or rounding Welch’s second df to a whole number.
- Pasting raw SPSS tables into the results chapter instead of building a clean table.
Quick-reference table
| Task | Where in SPSS |
|---|---|
| Run a one-way ANOVA | Analyze > Compare Means > One-Way ANOVA |
| Group means and SDs | One-Way ANOVA > Options > Descriptive |
| Levene’s test | One-Way ANOVA > Options > Homogeneity of variance test |
| Welch’s ANOVA | One-Way ANOVA > Options > Welch |
| Effect size | One-Way ANOVA dialog > Estimate effect size for overall tests (SPSS 27+) |
| Post hoc tests | One-Way ANOVA > Post Hoc > Tukey (equal variances) or Games-Howell (unequal) |
| Normality by group | Analyze > Descriptive Statistics > Explore (group in Factor List) |
| Kruskal-Wallis test | Analyze > Nonparametric Tests > Legacy Dialogs > K Independent Samples |
| Syntax | ONEWAY; NPAR TESTS K-W |
Checklist before you report your one-way ANOVA
- My outcome is numeric and my groups are independent, with three or more groups.
- The data are in long format with one group variable, value labels and declared missing codes.
- I checked normality within each group with plots, not only a test.
- I read Levene’s test and chose the ordinary F or Welch accordingly.
- I ran post hoc tests only after a significant overall test, and named the test.
- I reported F, both df values, the exact p value (or p < .001) and an effect size.
- Means and SDs appear in the text or a table, not both.
- My methods chapter names the test, the post hoc test and the SPSS version.
- I saved the syntax and the output file.
What to do next
If you have not described your data yet, start with descriptive statistics in SPSS. If you are still deciding between ANOVA, a t-test or a chi-square test, use our guide on how to choose the right statistical test. For questionnaire data, see how to enter questionnaire data into SPSS and how to analyse Likert scale data.
Need help with your ANOVA or SPSS analysis?
Erudite Digital Team is a research consultancy led by Eliakim Anzizi, PhD. We help students, researchers and organisations plan the analysis, check the assumptions, run ANOVA and other tests in SPSS, Stata, R and Excel, build clear results tables and explain every number in plain English, so you understand and can defend what you report. See our data analysis service and our reports, plans and proposals support, or start with our free services. Finishing your degree and applying for jobs? Try our free CV checker.
Sources
- IBM. One-Way ANOVA, One-Way ANOVA Options and One-Way ANOVA Post Hoc Tests. IBM SPSS Statistics 30 documentation.
- IBM. ONEWAY and ES subcommand (ONEWAY command). IBM SPSS Statistics 30 Command Syntax Reference.
- IBM. Tests for Several Independent Samples, Tests for Several Independent Samples Test Types and K-W subcommand (NPAR TESTS command). IBM SPSS Statistics 30 documentation.
- American Psychological Association (2024). APA Style numbers and statistics guide (7th edition).
- Kim, T. K. (2017). Understanding one-way ANOVA using conceptual figures. Korean Journal of Anesthesiology, 70(1), 22–26.
- Lakens, D. (2013). Calculating and reporting effect sizes to facilitate cumulative science: a practical primer for t-tests and ANOVAs. Frontiers in Psychology, 4, 863.
- Delacre, M., Leys, C., Mora, Y. L., & Lakens, D. (2019). Taking parametric assumptions seriously: arguments for the use of Welch’s F-test instead of the classical F-test in one-way ANOVA. International Review of Social Psychology, 32(1), 13.
- Peter, C. R. Statistics: Open for Everyone (Los Angeles Valley College; LibreTexts, CC BY-NC-SA 4.0): 10.5 Addressing violations to assumptions and 10.6 Using SPSS.
Frequently asked questions
How do I run a one-way ANOVA in SPSS?
Choose Analyze > Compare Means > One-Way ANOVA. Put the numeric outcome in the Dependent List and the grouping variable in Factor, and tick Estimate effect size for overall tests. Under Options tick Descriptive, Homogeneity of variance test and Welch; under Post Hoc tick Tukey and Games-Howell. Click OK, then read Levene’s test before the ANOVA table.
Which post hoc test should I use after a one-way ANOVA?
Use Tukey when Levene’s test suggests equal variances and you want to compare every pair of groups. Use Games-Howell when the variances are unequal. Use Dunnett if you only want each group compared with one control group. Choose the test in advance and name it in your write-up.
What should I do if Levene’s test is significant?
A significant Levene’s test (Sig. of .05 or below) means the group variances differ. Report the Welch statistic from the Robust Tests of Equality of Means table, with both degrees of freedom, and use Games-Howell for the pairwise comparisons.
How do I report one-way ANOVA results in APA style?
Name the test, give the group means and standard deviations, then report F with both degrees of freedom, the p value and an effect size, for example F(2, 57) = 14.45, p < .001, η² = .34, with F and p in italics. Then describe the post hoc results in words. Write p < .001 instead of p = .000.
What is the non-parametric alternative to one-way ANOVA in SPSS?
The Kruskal-Wallis H test. Choose Analyze > Nonparametric Tests > Legacy Dialogs > K Independent Samples, move the outcome and grouping variable across, define the range of group codes and tick Kruskal-Wallis H. Report the chi-square statistic, df, p value and the median of each group.
Want your ANOVA run, checked or written up? Send a short description of your data and research objectives on WhatsApp or by email. We reply with a clear plan. See our data analysis service.
Write it Right, Choose Erudite.