🧮
🧮 Math & statistics

Paired t-Test Calculator

Results update as you type.

Your numbers

Understanding the paired t-test — concept and principle

A paired t-test compares two measurements taken on the same units: blood pressure before and after a treatment, scores on a pre-test and post-test, or two instruments measuring the same samples. Because each pair shares the same subject, the test works on the differences within pairs, which removes the large person-to-person variation and makes it far more sensitive than an independent two-sample test.

Paired before and after scores for five peopleEach person improves: +4, +4, +1, +6, +3. The mean change is 3.6 with a standard error of 0.812, so t = 4.43 with 4 degrees of freedom and p = 0.011.Same people, before and afterbeforeafterchange8084+47579+49091+16874+67275+3mean change = 18 ÷ 5 = 3.6SE = 1.817 ÷ √5 = 0.812t = 3.6 ÷ 0.812 = 4.43p = 0.011
Only the five changes matter: they average 3.6, giving t = 4.43 and p = 0.011.

How it is calculated

  1. For each pair compute the difference d = After − Before.
  2. Mean difference d̄ and standard deviation of the differences s_d (divisor n − 1).
  3. Standard error: SE = s_d ÷ √n, where n is the number of pairs.
  4. t = d̄ ÷ SE, with n − 1 degrees of freedom.
  5. Two-tailed p-value = 2 × P(T > |t|).

A positive mean difference means the "After" values are higher on average. The result is in the units of the measurements.

The principle

A paired t-test is simply a one-sample t-test applied to the differences, testing H₀: mean difference = 0. Stable traits of each subject (some people always score high, others low) appear in both measurements and cancel when you subtract, so only the change is left. The smaller the spread of the differences, the smaller the standard error and the easier it is to detect a real change.

Worked example

  1. Before: 80, 75, 90, 68, 72. After: 84, 79, 91, 74, 75 (n = 5 pairs).
  2. Differences: 4, 4, 1, 6, 3. Mean difference d̄ = 18 ÷ 5 = 3.6.
  3. s_d = 1.816590; SE = 1.816590 ÷ √5 = 0.812404.
  4. t = 3.6 ÷ 0.812404 = 4.431293675, with df = 4.
  5. Two-tailed p = 0.0114105717.

How to read the result

Where does your result fall?Not significant0.05SignificantNot significantYour result: 0.0114106 · SignificantReference: Conventional α = 0.05 significance level
Where does your result fall?

Every participant improved, by 3.6 points on average. With 4 df the 5% critical value is about 2.776, and t = 4.43 exceeds it, so p ≈ 0.011 < 0.05: the improvement is statistically significant. Whether 3.6 points matters in practice depends on the scale; a 95% confidence interval for the mean change (d̄ ± 2.776 × 0.812, about 1.3 to 5.9) is a useful companion.

Common mistakes

Keep in mind: The test assumes the pairs are independent of each other and that the differences are roughly normal. It shows that a change occurred, not that the treatment caused it; without a control group, practice effects or time trends may explain the change.

Frequently asked questions

What if one value of a pair is missing?

That pair must be dropped; the calculator needs the same number of Before and After values in matching order.

Is there a non-parametric alternative?

Yes, the Wilcoxon signed-rank test works on the ranks of the differences.

Can I use it for two different but matched people?

Yes, if they were deliberately matched (twins, matched age and sex), the pairs can be analysed this way.

Sources: Student (1908). The probable error of a mean. Biometrika, 6(1), 1–25. · NIST/SEMATECH e-Handbook of Statistical Methods.

Checked 8 Nov 2026. Standard formulas, computed in your browser with double-precision numbers.

🧮 All math & statistics tools →🌍 Calculators by country →