T-Test: Types, When to Use It and How to Interpret SPSS Output (Project Guide)

Independent, paired and one-sample t-tests explained simply: when to use each, how to run them in SPSS, how to read Levene's test and how to report the result.

Mohammad Jamiu
Published on Nov 26, 2026
Example SPSS Independent Samples Test output with Levene test

If your hypothesis says "there is no significant difference between" two groups, a t-test is usually the right tool. This guide explains the three types and how to read SPSS output without confusion.

Which t-test do you need?

TypeUse it whenExample
Independent samplesTwo different groupsDo male and female students differ in study habit scores?
Paired samplesThe same people measured twiceDid test scores improve after a revision programme?
One-sampleOne group compared with a fixed valueIs the mean Likert score different from 2.50?

For three or more groups, use one-way ANOVA instead.

Assumptions (in plain language)

  • The outcome is a continuous or scale score (such as a total or mean score).
  • Groups are independent (for the independent t-test).
  • Scores are roughly normally distributed, or the sample is reasonably large.
  • For the independent t-test, SPSS checks equal variances with Levene's test.

Independent samples t-test in SPSS

  1. Analyze → Compare Means → Independent-Samples T Test.
  2. Put your score in Test Variable(s).
  3. Put the group variable (e.g. gender) in Grouping Variable, click Define Groups and enter the codes (e.g. 1 and 2).
  4. Click OK.

Reading the output (example)

Group Statistics:

Male
N
95
Mean
3.12
Std. Deviation
0.54
Female
N
105
Mean
2.85
Std. Deviation
0.61

Independent Samples Test:

Equal variances assumed
Levene's F
1.84
Levene's Sig.
.177
t
3.30
df
198
Two-Sided p
.001
Equal variances not assumed
Levene's F
Levene's Sig.
t
3.32
df
197.6
Two-Sided p
.001

Step 1: Levene's test. Sig. = .177 is above .05, so variances are equal. Read the "Equal variances assumed" row. If Levene's Sig. were .05 or less, you would read the second row.

Step 2: the t-test. t = 3.30, df = 198, p = .001. Since p < .05, the difference is significant.

Newer SPSS versions show both "One-Sided p" and "Two-Sided p". Use the two-sided value unless your hypothesis is clearly one-directional and your supervisor agrees.

The figures above are an example for illustration.

How to report it

An independent samples t-test showed that male students (M = 3.12, SD = 0.54) had significantly higher study habit scores than female students (M = 2.85, SD = 0.61), t(198) = 3.30, p = .001. The null hypothesis is rejected.

Paired samples t-test

  1. Analyze → Compare Means → Paired-Samples T Test.
  2. Select the "before" and "after" variables as a pair.
  3. Read the Paired Samples Test table: mean difference, t, df and two-sided p.

Report: Scores increased from before (M = 45.2, SD = 8.1) to after the programme (M = 52.6, SD = 7.4), t(39) = 5.12, p < .001.

One-sample t-test

  1. Analyze → Compare Means → One-Sample T Test.
  2. Enter the comparison value in Test Value (for example, 2.50 for a 4-point Likert criterion mean).
  3. Read t, df and two-sided p.

See Likert scale mean decision rules for where 2.50 comes from.

Common mistakes

  • Reading the wrong row after Levene's test.
  • Using an independent t-test for before-and-after data from the same people.
  • Running several t-tests for three or more groups instead of ANOVA.
  • Reporting p = .000 instead of p < .001.

For the logic behind p-values, see hypothesis testing and p-values explained.

Frequently Asked Questions

When do I use an independent t-test?

When you compare the means of two separate groups, such as male and female students.

What is Levene's test in a t-test?

It checks whether the two groups have similar variances. If its Sig. is above .05, read the "equal variances assumed" row.

What is the difference between paired and independent t-tests?

Paired compares the same people twice; independent compares two different groups.

How do I report a t-test in APA style?

t(df) = value, p = value, with the means and standard deviations of each group.

Can I use a t-test for three groups?

No. Use one-way ANOVA for three or more groups.

About the Author

Mohammad-Jamiu B. Balogun, GMNSE

Mohammad-Jamiu B. Balogun, GMNSE

Founder & Product Architect, MonoEd Africa

Mohammad-Jamiu is a First-Class Telecommunications Engineer and Best Graduating Student of Bayero University, Kano (Class of 2024), and the founder of MonoEd Africa. An AI engineer and product architect, he designs and builds MonoEd's guided workflows for SIWES logbooks and reports, final year projects and academic tools such as the GPA calculator, helping students produce better work and build the skills the AI era demands. MonoEd's tools have reached more than 20,000 students across Nigeria.

Share this article