Paired T-Test Calculator

Reviewed by CalcMulti Editorial Team·Last updated: ·Statistics Hub

The paired t-test (also called the dependent samples or repeated measures t-test) tests whether the mean difference between two related measurements is significantly different from zero. Use it when the same subjects are measured twice — before and after a treatment, or under two conditions.

Enter your two matched datasets (one value per line or comma-separated). The calculator computes the difference scores, mean difference, t-statistic, degrees of freedom, p-value, and Cohen's d effect size.

Formula

t = d̄ / (s_d / √n) where d_i = x_i − y_i

mean of the difference scores d_i = x_i − y_i
s_d
standard deviation of the difference scores
n
number of pairs
df
degrees of freedom = n − 1

Enter Paired Data

When to Use Paired vs Independent t-Test

ScenarioUseExample
Same subjects before/afterPaired t-testBlood pressure before and after medication
Matched pairs by characteristicPaired t-testTwins assigned to different diets
Same unit measured twicePaired t-testLeft vs right eye visual acuity
Two independent, unrelated groupsTwo-sample t-testMale vs female heights
Differences are non-normalWilcoxon signed-rankPain ratings (1–10 scale)

Why Pairing Increases Power

By computing difference scores, the paired t-test eliminates between-subject variability. If subjects naturally vary a lot (e.g., baseline blood pressure ranges from 100–160 mmHg), this noise can mask real treatment effects in a two-sample test. The paired design removes this noise by looking only at within-subject changes.

The gain in power is largest when the correlation between before and after measurements is high (ρ > 0.5). Variance of differences = Var(X) + Var(Y) − 2·Cov(X,Y). High correlation → low variance of differences → smaller SE → larger |t| → smaller p-value.

Disclaimer

For educational and exploratory use only. Consult a qualified statistician before drawing conclusions from hypothesis tests.

Frequently Asked Questions