Home › Statistics & Probability Calculators › Paired T-Test Calculator (With Steps)
Paired T-Test Calculator
A paired t-test is used when each observation in one sample is naturally linked to one in the other: the same students before and after tutoring, the same patients on two treatments, or matched pairs of products. Instead of comparing two group means, it tests whether the mean of the pairwise differences is zero.
Enter the two samples in the same order. The calculator lists each difference, finds the mean and standard deviation of the differences, computes the standard error, the t statistic with n − 1 degrees of freedom and the p-value, and reports a confidence interval for the mean difference and the effect size dz. The conclusion is stated in plain language for the alternative you chose.
Pairing removes the variation between subjects, so a paired test is usually far more powerful than an independent two-sample t-test on the same numbers. If the differences are clearly non-normal with a small n, the Wilcoxon signed-rank test is the non-parametric alternative.
Separate values with commas, spaces or new lines.
Same order as sample 1, one value per pair.
Result and step-by-step solution
- State the hypothesesH₀: μd = 0 H₁: μd ≠ 0 (two-tailed test) where d = sample 1 − sample 2
- Compute the differences
Pair Sample 1 Sample 2 d 1 72 76 −4 2 68 70 −2 3 75 79 −4 4 80 84 −4 5 66 68 −2 6 71 75 −4 7 78 80 −2 8 74 77 −3 - Mean and SD of the differencesd̄ = Σd ÷ n = −25 ÷ 8 = −3.125; sd = √(6.875 ÷ 7) = 0.991
- Standard errorSE = sd ÷ √n = 0.991 ÷ √8 = 0.3504
- Test statistict = d̄ ÷ SE = −3.125 ÷ 0.3504 = −8.9188, df = 7
- p-value2 × P(T ≥ |−8.9188|) = < 0.0001
- Decisionp = < 0.0001 < α = 0.05. critical values ±2.3646 (reject when |t| > 2.3646).
| 95% CI for the mean difference | −3.9535 to −2.2965 |
|---|---|
| Effect size (Cohen’s dz) | −3.153 |
Frequently asked questions
- What is the difference between a paired and an independent t-test?
- A paired test uses the differences within each pair, so it requires the two samples to be linked one-to-one and equal in size. An independent test compares two unrelated groups that can be different sizes.
- Which way round should I subtract?
- The calculator uses d = sample 1 − sample 2. For before-and-after data with sample 1 = before, a negative mean difference means values increased. One-tailed alternatives refer to this direction.
- What are the degrees of freedom?
- n − 1, where n is the number of pairs, not the total number of measurements.
- What is Cohen's dz?
- The mean difference divided by the standard deviation of the differences. It is the standard effect size for paired designs.
Last reviewed: September 25, 2026. Calculations run in your browser and were validated against SciPy.
