Blog
Analysis made easy

t-tests: which one, and how to report it

One-sample, independent or paired; assumptions, Welch, Cohen’s d, reading the output and the APA sentence.

Skari team6 min

When you want to compare the means of two groups, one method comes to mind first.

"Two groups — so a t-test, right?"

But once you start, there are three of them — one-sample, independent-samples and paired — and it is easy to get stuck choosing. Here is when to use each t-test, step by step, from checking assumptions to reading the output and writing the sentence for your paper.

What a t-test is

A t-test checks whether a difference in means is too large to put down to chance.

Draw the sample again and the mean shifts a little; the size of that wobble is the standard error. So t is computed as t = mean difference ÷ standard error, and the larger it is, the harder it is to call the difference chance.

Which t-test?

What you compareTest
One mean against a reference valueOne-sample t-test
Two different groupsIndependent-samples t-test
The same people measured twicePaired t-test
Three or more groupsANOVA (next post)

The key question is "are the same people in the data twice?" Analyse the same people's before and after scores as independent samples and you throw away what the pairing tells you.

Today's examples

  • Independent — morning quiz scores of 34 students who ate breakfast vs 31 who did not (student volunteers)
  • Paired — sit-and-reach scores (cm) before and after 4 weeks of stretching, 24 people
  • One-sample — whether 65 volunteers' mean quiz score differs from a benchmark of 70

Check the assumptions first

① Independence — one person's score must not affect another's. In an independent design, each person belongs to one group only.

② Normality — check with the Shapiro-Wilk test that scores in each group are roughly normal. For a paired test only the differences (post − pre) need to be normal, not the two scores. Above about 30 per group this matters little, but with a small, clearly skewed sample also run the Mann-Whitney U test (independent) or the Wilcoxon signed-rank test (paired).

③ Equal variances (independent only) — check with Levene's test that the two groups are similarly spread. If p is below .05 and the variances differ, use Welch's t-test, which does not assume equal variances. Welch gives almost the same answer when variances are equal, so some argue for using it from the start.

Always add an effect size

The p-value only says whether there is a difference. How big it is comes from an effect size, Cohen's d.

  • d = mean difference ÷ standard deviation (0.2 small · 0.5 medium · 0.8 large)
  • For paired data, dz = mean change ÷ SD of the change

With small samples, Hedges' g, a slightly corrected d, is also used.

Reading the output

Here are the results of the independent example.

ItemResult
BreakfastM = 78.15, SD = 10.30 (34)
No breakfastM = 72.42, SD = 9.52 (31)
Levenep = .623 → equal variances → Student t
Testt(63) = 2.32, p = .024
Mean difference5.73 points, 95% CI [0.80, 10.66]
Effect sized = 0.58
  • df (degrees of freedom) — 34 + 31 − 2 = 63 for Student t; Welch t gives a decimal such as 62.99
  • p = .024 — below .05, so the difference is significant
  • 95% CI — it does not include 0, same conclusion; the gap is somewhere between 0.8 and 10.7 points
  • d = 0.58 — a medium-sized difference

Read the other two examples the same way and you get this.

  • Paired — 10.36 cm before → 13.42 cm after, a mean gain of 3.06 cm. t(23) = 4.60, p < .001, dz = 0.94 (large)
  • One-sample — mean quiz score 75.42 vs benchmark 70. t(64) = 4.25, p < .001, d = 0.53 (medium)

How to write it up

In APA style the usual order is mean and SD → t(df) → p → effect size → confidence interval.

Students who ate breakfast (M = 78.15, SD = 10.30) scored significantly higher on the morning quiz than those who did not (M = 72.42, SD = 9.52), t(63) = 2.32, p = .024, d = 0.58, 95% CI [0.80, 10.66].

After four weeks of stretching, sit-and-reach scores improved significantly from before (M = 10.36, SD = 6.91) to after (M = 13.42, SD = 7.37), t(23) = 4.60, p < .001, dz = 0.94.

Example sentences · the numbers are made up

If you used Welch's test, say so — for example "Welch's t-test showed…" — so readers know which test you ran.

In Skari

Open Comparison → T-Tests in Skari's statistics app and all three are there: one-sample, independent-samples and paired. Each analysis runs Variables → Settings → Validation → Result.

For an independent-samples t-test you only pick a grouping variable and an outcome variable.

Pick the grouping and outcome variables — breakfast example data, 65 students
Pick the grouping and outcome variables — breakfast example data, 65 students

In Settings you choose the direction of the hypothesis (two- or one-sided); in Validation you check the sample size and missing values, then press Run Analysis. Levene's test for equal variances runs automatically.

The result is laid out as a report. The top shows sample size, test statistic, effect size and 95% CI as key figures, followed by a paragraph that spells out the result.

The report opens with key figures and a results paragraph — example result (mtcars fuel economy by transmission)
The report opens with key figures and a results paragraph — example result (mtcars fuel economy by transmission)

Try it with your own data

Open Comparison → T-Tests in the statistics app

Open t-test

Skari computes both Student's and Welch's t and marks the one to report as Recommended, based on Levene's test. The report's Assumption checks table puts Shapiro-Wilk normality for each group and the Levene and Bartlett variance tests together.

Student and Welch results with assumption checks — unequal variances, so Welch is Recommended
Student and Welch results with assumption checks — unequal variances, so Welch is Recommended

The effect-size table shows Cohen's d with Hedges' g and Glass's Δ, and robust methods — bootstrap, permutation test and Yuen's trimmed-mean t — show whether the conclusion holds.

For a paired t-test, pick Variable 1 (e.g. before) and Variable 2 (e.g. after) and you get dz, its confidence interval and the correlation between the two measures. For a one-sample t-test, just enter the test value (population mean).

Switch tables to APA under Table style; the report downloads as Word or PDF and tables as Excel.

Wrapping up

Choosing a t-test comes down to whether you compare against a reference value, another group, or the same people. Report the equal-variance check (Welch) and the effect size d alongside it and your result stands much firmer. Next time: one-way ANOVA and post hoc tests, for three or more groups.

Want the theory behind it?The Academy's group comparison guide shows how to pick the test that fits your design and data →

Keep reading

Every feature free through Dec 31, 2026

Run the analyses from these posts on your own data