When to Use a t-Test: A Simple Guide for Thesis Students
7 min read
When to use a t-test is one of the first decisions every thesis student faces after collecting data. The t-test compares means — but only under specific conditions, and there are three different versions depending on your research design. This guide explains which type fits your situation, the four conditions your data must meet, and how to report results in APA format.
Key takeaways
- Use the independent samples t-test when comparing two different groups on a metric variable.
- Use the paired samples t-test when the same participants are measured twice (pre-post design).
- Use the one-sample t-test when comparing a group mean to a known reference value.
- Check normality with Shapiro-Wilk (n < 50) and homogeneity of variance with Levene’s test before running any t-test.
- When normality is violated and n < 30, switch to Mann-Whitney U (independent) or Wilcoxon signed-rank (paired).
What Is a t-Test? Plain English, No Formulas
A t-test answers one question: are the means of two groups (or time points) significantly different from each other, or could the difference be due to chance?
You have two stress scores — one for students who exercise regularly, one for those who don’t. The t-test tells you whether the gap between those averages is large enough to be real.
It does not require you to understand the formula. What matters is knowing which version to use, whether your data qualifies, and how to read the output.
The 3 Types of t-Test and When Each Applies
Choose based on your research design, not your data shape:
Independent samples t-test: two separate groups, different participants in each. Example: exercise group vs. no-exercise group. This is the most common t-test in thesis research.
Paired samples t-test (dependent t-test): the same participants measured at two time points. Example: stress score before and after an intervention. Also called a repeated-measures design.
One-sample t-test: one group compared against a known benchmark. Example: testing whether your sample’s mean differs significantly from the population average of 50. Less common in student theses.
| Type | When to use | Example |
|---|---|---|
| Independent samples | Two separate groups | Exercisers vs. non-exercisers |
| Paired samples | Same participants, two time points | Pre-test vs. post-test |
| One-sample | One group vs. known reference value | Your sample vs. population norm |
When to Use t-Test vs. ANOVA vs. Mann-Whitney
Use the t-test when you have exactly two groups or two time points. The moment you have three or more groups, switch to ANOVA (parametric) or Kruskal-Wallis (non-parametric).
Use Mann-Whitney U instead of the independent t-test when Shapiro-Wilk is significant (p < .05) and your sample is small (n < 30 per group). Use Wilcoxon signed-rank instead of the paired t-test under the same normality conditions.
| Situation | Use this test |
|---|---|
| 2 groups, metric DV, normality holds | Independent samples t-test |
| 2 groups, metric DV, normality violated, n < 30 | Mann-Whitney U |
| Same participants, 2 time points, normality holds | Paired samples t-test |
| Same participants, 2 time points, normality violated | Wilcoxon signed-rank |
| 3+ groups | One-way ANOVA or Kruskal-Wallis |
Checklist: 4 Conditions That Must Be Met Before Running a t-Test
Before you run any t-test, confirm these four conditions:
1. Metric dependent variable: your DV must be measured on an interval or ratio scale (e.g. a computed score, reaction time, grade). Ordinal data (e.g. a single Likert item) does not qualify.
2. Normal distribution: check with Shapiro-Wilk (Analyze → Descriptive Statistics → Explore → Plots → Normality plots with tests). If p > .05, normality is not significantly violated. With n > 100 per group, rely on the Q-Q plot and the Central Limit Theorem instead.
3. Homogeneity of variance (independent samples only): check Levene’s test in the t-test output. If Levene’s p < .05, use the "Equal variances not assumed" row (Welch’s t-test) instead.
4. Independence of observations: each participant contributes only one data point per group. If the same person appears in both groups, use the paired design instead.
[TIP] SPSS runs Levene’s test automatically when you request a t-test. You do not need a separate step — just read the correct row in the output.
Step-by-Step Example: Independent Samples t-Test in SPSS
Research question: Do students who exercise ≥3 times per week have lower perceived stress scores than those who do not exercise?
SPSS path: Analyze → Compare Means → Independent-Samples T Test → move PSS score to "Test Variable", physical activity group to "Grouping Variable" → Define Groups → OK.
- Reading the output:
- Step 1 — Levene’s test: p = .269 (not significant) → use "Equal variances assumed" row.
- Step 2 — t-test result: t(119) = 3.42, p = .001 → significant difference.
- Step 3 — Effect size: Cohen’s d = (M1 − M2) ÷ SDpooled. d = 0.62 = medium effect.
Conclusion: Exercising students (M = 21.4, SD = 5.1) had significantly lower stress than non-exercising students (M = 24.8, SD = 5.6), t(119) = 3.42, p = .001, d = 0.62.
How to Report t-Test Results in APA Format
- Significant result:
- "Students who exercised regularly (M = 21.4, SD = 5.1) reported significantly lower stress than non-exercising students (M = 24.8, SD = 5.6), t(119) = 3.42, p = .001, d = 0.62."
- Non-significant result:
- "No significant difference in stress was found between exercising and non-exercising students (M = 21.4, SD = 5.1 vs. M = 22.1, SD = 5.3), t(119) = 0.81, p = .418, d = 0.13."
- For paired samples t-test — significant:
- "Stress scores decreased significantly from pre-test (M = 26.3, SD = 4.8) to post-test (M = 22.7, SD = 5.0), t(44) = 4.11, p < .001, d = 0.74."
[INFO] Always report: group means and SDs, t-statistic, degrees of freedom, p-value, and Cohen’s d. A result without effect size is incomplete in APA 7th edition.
Common Mistakes Students Make With t-Tests
Using a t-test with three or more groups: run ANOVA instead. A t-test on groups A vs. B, then B vs. C, then A vs. C inflates the Type I error rate.
Ignoring Levene’s test: always check which row to read. Using the wrong row can change whether your result is significant.
Reporting p = .000: SPSS shows .000 when p is very small, but the true value is never exactly zero. Always write p < .001.
Omitting effect size: t-statistic and p-value alone are not enough. Calculate Cohen’s d and report it. A p = .03 with d = 0.08 is statistically significant but practically meaningless.
Frequently asked questions
When should I use a paired t-test instead of an independent samples t-test?
â–¾
What is the difference between a t-test and ANOVA?
â–¾
How do I check normality for a t-test in SPSS?
â–¾
What do I do if my data fails the normality check for a t-test?
â–¾
How do I calculate Cohen’s d for an independent samples t-test?
â–¾
Can I use a t-test with Likert scale data?
â–¾
Further reading
Which Statistical Test to Use for Your Thesis: A Complete Decision Guide
· Test selectionWhen to Use the Mann-Whitney U Test (vs. t-Test)
· Statistical testsOne-Way ANOVA for Your Thesis: Complete Guide with Post-Hoc Tests, Effect Size, and APA Templates
· Statistical testsAPA Statistics Reporting: Copy-Paste Templates for Every Test in Your Thesis
· APA reporting
Free tool
Not sure which statistical test to use?
Answer 5 quick questions about your research design and get the right test - with an explanation of why - in under two minutes.
Statoria Team
Statistics educators & software developers
We build Statoria to help bachelor and master students get through their thesis data analysis without stress. Our guides are written by researchers with experience in social science statistics and student supervision.
Related guides

