Two-Sample Student’s t-Test & Confidence Interval Analyzer

An interactive analytical tool that computes the independent two-sample Student’s t-test statistic, standard error of the mean difference, exact degrees of freedom, and (1−α)(1 - \alpha) confidence interval bounds with full mathematical transparency.

Your data

Group 1

Group 2

Results

Reject H0H_0: the difference is statistically significant.

The observed ∣t∣=5.784|t| = 5.784 exceeds the two-tailed critical value tcrit=2.074t_{crit} = 2.074 at α=0.05\alpha = 0.05 (p-value < 0.0001 (exact: 8.08e-6)).

Mean difference xˉ1−xˉ2\bar{x}_1 - \bar{x}_2+9.95
Pooled standard deviation sps_p4.214
Standard error SE\text{SE}1.720
Degrees of freedom ν=n1+n2−2\nu = n_1 + n_2 - 222
Test statistic tt5.784
Margin of error EE± 3.57
95% confidence interval for μ1−μ2\mu_1 - \mu_2[6.382, 13.518]

The confidence interval excludes zero, so the data show a real difference between the population means at this level.

Report: An independent two-sample t-test compared the group means. The difference between Group 1 (M = 85.08, SD = 4.88) and Group 2 (M = 75.13, SD = 3.42) was statistically significant, t(22)=5.78t(22) = 5.78, p < 0.0001 (exact: 8.08e-6).

Assumes independent random samples from normal populations with equal variances (σ12=σ22\sigma_1^2 = \sigma_2^2).

How this calculator works

Designed for statistics students and academic researchers to verify hand calculations, explore sensitivity to sample size and dispersion, and review plain-language hypothesis conclusions.

Inputs: Sample sizes (n1,\text{(}n_1\text{,} n2),n_2\text{),} sample means (xˉ1,\text{(}\bar{x}_1\text{,} xˉ2),\bar{x}_2\text{),} sample standard deviations (s1,\text{(}s_1\text{,} s2),s_2\text{),} and confidence level (90%, 95%, 99%).

Outputs: Pooled standard deviation (sp),\text{(}s_p\text{),} degrees of freedom (df), test statistic (t),\text{(}t\text{),} standard error (SE), margin of error (ME), confidence interval [lower, upper], and rejection decision rule.

Formula:

t=xˉ1−xˉ2sp1n1+1n2,sp=(n1−1)s12+(n2−1)s22n1+n2−2t = \frac{\bar{x}_1 - \bar{x}_2}{s_p \sqrt{\frac{1}{n_1} + \frac{1}{n_2}}}, \quad s_p = \sqrt{\frac{(n_1 - 1)s_1^2 + (n_2 - 1)s_2^2}{n_1 + n_2 - 2}}

← All calculators