Run the Right T-Test in SPSS

SPSS makes t-test calculations straightforward. This guide covers one-sample, independent samples, and paired samples t-tests with step-by-step instructions and output interpretation.

3 Types of T-Tests
4-5 Steps per Test
95% Confidence Level
Group Statistics (Example)
GroupNMeanSDSE Mean
Online Teaching4278.409.621.48
In-Person Teaching4271.9510.841.67
Independent Samples Test
Levene's FSig.tdfp (2-tail)Mean Diff
2.34.1302.9382.0046.45

Which T-Test Do You Need?

Choose the correct t-test based on your research design and data structure

One-Sample T-Test

Compares the mean of a single sample against a known population mean or hypothesized value.

When to Use Compare sample mean to population norm. Example: Is student IQ different from population average (μ = 100)?
t = (x̄ − μ₀) / (s / √n)
Independent Samples T-Test

Compares means between two unrelated (independent) groups on a continuous outcome variable.

When to Use Compare two different groups. Example: Compare exam scores between treatment and control groups.
t = (x̄₁ − x̄₂) / √(s₁²/n₁ + s₂²/n₂)
Paired Samples T-Test

Compares means from the same participants measured at two different times or under two conditions.

When to Use Repeated measures design. Example: Compare pre-test and post-test scores for the same group.
t = d̄ / (s_d / √n)

Running T-Tests in SPSS

Follow these instructions for each t-test type

One-Sample T-Test in SPSS

1
Open Analyze Menu

Go to Analyze → Compare Means → One-Sample T Test.

Analyze → Compare Means → One-Sample T Test
2
Move the Test Variable

Select the continuous variable you want to test and move it to the Test Variable(s) box.

3
Enter the Test Value

Enter the population or hypothesized mean you are comparing against (e.g., 100 for IQ).

4
Click OK and Read Output

Review One-Sample Statistics (mean, SD) and One-Sample Test (t, df, p-value, mean difference).

Independent Samples T-Test in SPSS

1
Navigate to Compare Means

Go to Analyze → Compare Means → Independent-Samples T Test.

Analyze → Compare Means → Independent-Samples T Test
2
Assign Test and Grouping Variables

Move your continuous outcome to Test Variable(s). Move your categorical grouping variable to Grouping Variable.

3
Define Group Values

Click Define Groups and enter the numeric codes for your two groups (e.g., 1 and 2 for treatment/control).

4
Check Levene's Test in Output

Use Levene's test (Sig. column) to decide which t-value row to report. If Sig. > .05, use equal variances assumed row.

Paired Samples T-Test in SPSS

1
Open Paired-Samples T Test

Go to Analyze → Compare Means → Paired-Samples T Test.

Analyze → Compare Means → Paired-Samples T Test
2
Select Paired Variables

Select the pre-test variable, then hold Ctrl and click the post-test variable. Click the arrow to pair them.

3
Run and Review Statistics

Click OK. Examine Paired Samples Statistics (means), Paired Samples Correlations, and Paired Samples Test (t, df, p).

4
Calculate Cohen's d Effect Size

SPSS does not report effect size. Calculate manually: d = t / √n (paired) or using means/SD.