How to Run an Independent Samples T-Test in SPSS (With Output Interpretation)
The independent samples t-test is one of the most frequently used statistical tests in research. It answers a simple question: is there a statistically significant difference between the means of two independent groups? If you are comparing test scores between males and females, satisfaction ratings between two products, or blood pressure between a treatment and control group, this is the test you need.
When to Use an Independent Samples T-Test
Use this test when:
- You have one continuous dependent variable (e.g., exam score, salary, reaction time)
- You have one categorical independent variable with exactly two groups (e.g., male/female, treatment/control, Group A/Group B)
- The two groups are independent — different people in each group, no pairing or matching
- You want to test whether the group means are significantly different
If the same participants are measured twice (before and after), use a paired samples t-test instead. If you have three or more groups, use one-way ANOVA.
Assumptions to Check
Before running the test, verify these four assumptions:
1. Independence of Observations
Each participant belongs to only one group, and no participant's score influences another's. This is ensured by your research design, not by a statistical test.
2. Continuous Dependent Variable
Your outcome variable must be measured on an interval or ratio scale. Likert scale data (e.g., 1-5 agreement scale) is debatable — many researchers treat it as continuous when there are enough scale points (5 or more) and the distribution is reasonable.
3. Normality
The dependent variable should be approximately normally distributed within each group. Check with:
- Shapiro-Wilk test: Analyze > Descriptive Statistics > Explore > Plots > check "Normality plots with tests"
- If Shapiro-Wilk p > .05, normality is satisfied
- With samples larger than 30 per group, the t-test is robust to moderate violations (Central Limit Theorem)
If normality is severely violated and your sample is small, use the Mann-Whitney U test instead.
4. Homogeneity of Variances
The spread of scores should be similar in both groups. SPSS automatically tests this with Levene's test as part of the t-test output — you do not need to run it separately.
Step-by-Step in SPSS
Step 1: Set Up Your Data
Your SPSS data file needs two columns:
- Grouping variable — A categorical variable coded numerically (e.g., 1 = Male, 2 = Female). Make sure to add value labels in Variable View.
- Test variable — Your continuous dependent variable (e.g., Exam_Score)
Each row is one participant. Do not put the two groups in separate columns — that is a common data entry mistake.
Step 2: Run the Test
- Go to Analyze > Compare Means > Independent-Samples T Test
- Move your continuous variable into the "Test Variable(s)" box
- Move your grouping variable into the "Grouping Variable" box
- Click Define Groups and enter the values for each group (e.g., Group 1 = 1, Group 2 = 2)
- Click Continue, then OK
Step 3: Read the Output
SPSS produces two tables.
Table 1: Group Statistics
| Group | N | Mean | Std. Deviation | Std. Error Mean | |-------|---|------|----------------|-----------------| | Male | 32 | 78.41 | 10.23 | 1.81 | | Female | 28 | 71.86 | 12.67 | 2.39 |
This tells you the sample size, mean, and standard deviation for each group. Already you can see that males scored higher on average (78.41 vs 71.86). But is this difference statistically significant, or could it be due to chance?
Table 2: Independent Samples Test
This table has two rows:
- "Equal variances assumed" — Use this row if Levene's test is NOT significant (p > .05)
- "Equal variances not assumed" — Use this row if Levene's test IS significant (p < .05)
The key columns are:
| | Levene's Test | | t-test for Equality of Means | | | | |---|---|---|---|---|---|---| | | F | Sig. | t | df | Sig. (2-tailed) | Mean Difference | | Equal variances assumed | 1.42 | .238 | 2.24 | 58 | .029 | 6.55 | | Equal variances not assumed | | | 2.19 | 52.3 | .033 | 6.55 |
Step 4: Interpret the Results
First, check Levene's test:
- F = 1.42, Sig. = .238
- Since .238 > .05, variances are equal — use the "Equal variances assumed" row
Then, read the t-test results from that row:
- t = 2.24
- df = 58
- Sig. (2-tailed) = .029
- Mean Difference = 6.55
Since p = .029 is less than .05, the difference is statistically significant. Males scored significantly higher than females by an average of 6.55 points.
Step 5: Calculate Effect Size
SPSS does not automatically report effect size for t-tests. Calculate Cohen's d manually:
Cohen's d = Mean Difference / Pooled Standard Deviation
Pooled SD = sqrt[((n1-1)*SD1² + (n2-1)*SD2²) / (n1+n2-2)]
Pooled SD = sqrt[((31 × 104.65) + (27 × 160.53)) / 58] = sqrt[(3244.15 + 4334.31) / 58] = sqrt[130.66] = 11.43
Cohen's d = 6.55 / 11.43 = 0.57
Interpretation:
- Small effect: d = 0.2
- Medium effect: d = 0.5
- Large effect: d = 0.8
A Cohen's d of 0.57 indicates a medium effect — the difference is not just statistically significant but practically meaningful.
Reporting in APA Format
An independent samples t-test was conducted to compare exam scores between male and female students. There was a statistically significant difference in scores, t(58) = 2.24, p = .029, d = 0.57. Male students (M = 78.41, SD = 10.23) scored significantly higher than female students (M = 71.86, SD = 12.67).
Key elements:
- Test name
- t value with degrees of freedom in parentheses
- Exact p-value
- Effect size (Cohen's d)
- Both group means and standard deviations
- Direction of the difference
What If Levene's Test Is Significant?
If Levene's test shows p < .05, the variances are unequal. In that case:
- Use the "Equal variances not assumed" row in the output
- The degrees of freedom will be a decimal (e.g., 52.3) because SPSS applies the Welch correction
- Report it the same way, but note the adjusted df
t(52.3) = 2.19, p = .033, d = 0.57
What If the Result Is Not Significant?
If p > .05, you do not conclude that the groups are the same. You conclude that there is insufficient evidence to say they differ. Report it honestly:
An independent samples t-test revealed no statistically significant difference in exam scores between male (M = 78.41, SD = 10.23) and female students (M = 71.86, SD = 12.67), t(58) = 1.52, p = .134, d = 0.37.
Never say "the groups are equal" or "there is no difference." The test cannot prove equality — only failure to detect a difference.
Common Mistakes
- Putting groups in separate columns — SPSS needs one column for the grouping variable and one for the scores. Not two score columns.
- Using this test for three or more groups — Run ANOVA instead. Running multiple t-tests inflates your Type I error rate.
- Ignoring Levene's test — Always check which row to read first.
- Forgetting effect size — A significant p-value with a tiny effect size means the difference exists but may not matter practically.
- One-tailed vs two-tailed confusion — SPSS reports two-tailed by default. If your hypothesis is directional, you can divide the p-value by 2, but justify this in your methodology.
Next Steps
If your t-test is significant and you want to go deeper:
- ANOVA if you add more groups
- ANCOVA if you need to control for a covariate
- Multiple regression if you want to predict scores from several variables simultaneously
Running a t-test is straightforward, but interpreting it correctly and reporting it in APA format requires attention to detail. If you need your group comparisons analyzed professionally with full assumption checking and formatted reporting, Insighter Digital handles the complete process — from raw data to results chapter.
Keep Reading
Need This Analysis Done For You?
Save time and get accurate results. Our experts handle the analysis while you focus on your research.
Get a Free Quote