Ask Mallard
Analysis method

Paired t-test: testing a mean change

4 min read

A paired t-test asks whether the population mean of within-pair differences is zero.

Fit

When to use it, and when not to

Use it when

  • Each person has two continuous measurements, or each observation has a prespecified matched partner.
  • You want the average difference, using one difference per complete pair.

Not when

Before you start

What you need

Decide these first
  1. The pair identifier and subtraction orderKeep each pair together. State whether the difference is after minus before or the reverse.
  2. The complete-pair count, mean difference and standard deviation of differencesThe standard deviations at each visit cannot replace the spread of within-pair changes.
  3. Which pairs lack a measurementExplain why data are missing and how this may change the population being described.
It rests on these
  1. Differences from separate pairs are independent.How to check: Check for family, clinic or other shared sources of dependence.
  2. Differences are roughly normal for small-sample t inference.How to check: Plot the differences. Do not require each raw measurement to have a normal distribution.
  3. The measured difference represents the intended change.How to check: Check units, timing, and floor or ceiling effects before treating the scale as continuous.

Plain language

How it works

Subtract the first value from the second for each pair. The paired t-test is a one-sample t-test on those differences. Divide their mean by their standard error. The degrees of freedom equal the number of complete pairs minus one.

What the sources show

Wang and Li’s simulations show that ceiling or floor effects can distort paired inference. Guo and colleagues study partially paired data. A complete-pair analysis can lose information; using unpaired observations needs an appropriate model.

The method at a glance
Paired t-test: Measurements kept in pairs. Then One difference per complete pair. Then Mean difference and paired t test.Paired t-testMeasurements kept in pairsOne difference percomplete pairMean difference and pairedt test
Conceptual diagram. It shows the structure of the idea, not data from any study.

Worked example

A worked example

Invented for illustration
Setting
A clinic records blood pressure before and after a care change in 25 complete pairs.
Question
What is the mean within-person change?
Approach
Pairs: n = 25, mean difference = -4.6, SD of differences = 7.9. Differences are after minus before.
Result
The mean change is -4.60 mmHg; t = -2.91, df = 24, p = 0.008. The calculator’s approximate interval is -7.70 to -1.50 mmHg.
What it means
The interval uses 1.96 standard errors; final paired t inference uses a t critical value. Without a concurrent control, the change does not establish causation.

In practice

Recent studies PubMed search · not vetted

Searching PubMed…

Watch out

Common mistakes

The one to remember

The normality assumption concerns within-pair differences, not the two raw measurements. A before-after change alone does not establish a treatment effect.

  • Entering the standard deviation from the final visit.Instead: Compute each person’s difference, then take the standard deviation of those differences.
  • Dropping incomplete pairs without discussing selection.Instead: Describe the missing-data assumption and assess how losses could change the result.

Inside Mallard

How Mallard uses this

Mallard links this article to its paired t-test calculator. Its displayed interval uses a normal approximation. The method registry links this method to its published analysis article and code.

Code example in Mallard: Paired t-test for a within-person change (paired-t-test).
Sample size: Mallard sizes the main comparison with paired. It does not size adjustment or any secondary analysis.
Calculators: Paired t-test (§2.5).
Atlas node analysis.paired_t_test, the id a plan cue records.
Code for this method
Loading…

Work it out

Related Learn pages

Related designs and methods

Evidence

Sources & further reading

  1. Tobit modeling for dependent-sample t-tests and moderated regression with ceiling or floor data (opens in a new tab) · Behav Res Methods · doi 10.3758/s13428-025-02904-y
  2. Optimal weighted two-sample t-test with partially paired data in a unified framework (opens in a new tab) · J Appl Stat · doi 10.1080/02664763.2020.1753027
Prepared with AI assistance. Source records verified by PMID, title, authors, year and DOI on 2026-11-06. No independent professional approval is claimed. The indexed studies support the measurement-scale and incomplete-pair cautions. They do not make a simple complete-pair analysis valid under all missing-data mechanisms.
Last source review: 2026-11-06
AI-generated educational content
Mallard uses reputable methodological and reporting sources, but this material may contain errors or omit important context. Verify important methodological decisions with the cited sources and, when appropriate, a qualified research methodologist or statistician.