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
- d̄
- 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
| Scenario | Use | Example |
|---|---|---|
| Same subjects before/after | Paired t-test | Blood pressure before and after medication |
| Matched pairs by characteristic | Paired t-test | Twins assigned to different diets |
| Same unit measured twice | Paired t-test | Left vs right eye visual acuity |
| Two independent, unrelated groups | Two-sample t-test | Male vs female heights |
| Differences are non-normal | Wilcoxon signed-rank | Pain 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.
Related Calculators
Test a mean against a known constant
T-Test Calculator (two-sample)Compare two independent groups
Wilcoxon Signed-Rank TestNon-parametric alternative to paired t-test
Effect Size CalculatorCohen's d and other effect sizes
Normality Test CalculatorCheck if difference scores are normal
Sample Size CalculatorHow many pairs needed for desired power
Statistics HubAll statistics calculators
Disclaimer
For educational and exploratory use only. Consult a qualified statistician before drawing conclusions from hypothesis tests.