Anyone learning how to run an independent t-test in SPSS for a dissertation or lab report will find the clicking takes a minute, while deciding which row of the output to read and how to write it up takes rather longer. This guide follows the Kent State University Libraries SPSS tutorial for the procedure and the APA numbers and statistics guide for reporting, and it uses the tutorial's own worked example so that every figure quoted comes from a real output.

Check that your data meet the test's requirements

The independent samples t-test compares the means of two independent groups to judge whether the population means differ, and it needs a continuous dependent variable and a categorical independent variable with two groups (Kent State University Libraries, n.d.). The groups must be independent, so nobody can appear in both, and the tutorial also lists a random sample, an approximately normal outcome in each group, roughly equal variances and no outliers as assumptions. With three or more groups you would move to an ANOVA, and when the assumptions fail badly the tutorial points to the Mann-Whitney U test.

Look at descriptive statistics for each group

Before the test, run Analyze, Compare Means and Proportions, Means, or use Explore for a boxplot by group, to see what to expect (Kent State University Libraries, n.d.). The tutorial's example compares mile run times for athletes and non-athletes, and its boxplot shows a much wider spread for non-athletes, an early hint that the equal-variance assumption may not hold. The article on descriptive statistics in a dissertation covers which summaries to report alongside the test.

How to run an independent t-test in SPSS from the menus

Choose Analyze, Compare Means and Proportions, Independent-Samples T Test, then move the outcome into Test Variable(s) and the group variable into Grouping Variable (Kent State University Libraries, n.d.). If the grouping variable shows two question marks, its groups have not been defined yet, and the OK button stays inactive until they are.

Define the two groups and switch on Levene's test and effect sizes

Click Define Groups, choose Use specified values and type the two codes, such as 0 and 1, that you set up when entering your data in SPSS. SPSS subtracts the Group 2 mean from the Group 1 mean, so the order affects the sign of the result and leaves its size unchanged (Kent State University Libraries, n.d.). In the main dialog, tick the homogeneity of variance test to add Levene's test, and tick the option to estimate effect sizes so that Cohen's d appears in the output.

Read Levene's test and choose the correct row of results

The output gives two rows, one for equal variances assumed and one for equal variances not assumed, which uses the Welch statistic (Kent State University Libraries, n.d.). Look at Levene's test first, because a significant result, below .05, means you read the equal variances not assumed row, and a non-significant result means you read the equal variances assumed row.

In the tutorial's example, Levene's test gives F = 102.975 with p < .001, so the second row applies, showing t = 15.047 on 315.846 degrees of freedom, a two-sided p below .001 and a mean difference of 2 minutes 14 seconds (Kent State University Libraries, n.d.). The effect size table reports a Cohen's d of 1.377, which describes how far apart the group means sit in standard deviation units.

Report the result in APA style

APA guidance is to report inferential statistics such as t to two decimals, to give exact p values to two or three decimals, to write p < .001 for anything smaller, to drop the leading zero for p, and to italicise statistical symbols such as t and p (American Psychological Association, 2024). Applied to the example, the write-up could read: mile times were longer for non-athletes than for athletes, t(315.85) = 15.05, p < .001, d = 1.38, with the group means and standard deviations given in the text or a table but not both.

If you are unsure which row applies to your data or how the result fits your research question, data analysis support and dissertation support can work through your own output with you.

Frequently asked questions

What if Levene's test is significant?

Read the equal variances not assumed row, which reports the Welch version of the test and does not rely on equal variances between the groups (Kent State University Libraries, n.d.).

Can I use an independent t-test for more than two groups?

The test compares two groups only, and with more groups the tutorial recommends an ANOVA instead (Kent State University Libraries, n.d.).

Should I report the one-sided or two-sided p value?

Use the two-sided value unless your hypothesis predicted a direction before you collected the data, and check your module guidance, since supervisors often expect two-sided tests by default.

References

American Psychological Association. (2024). APA Style numbers and statistics guide.

Kent State University Libraries. (n.d.). Independent samples t test. SPSS Tutorials.