T-Test Calculator
StatisticsRun a two-sample t-test in seconds. Enter each group's mean, standard deviation, and sample size to get the t-statistic, degrees of freedom, and a significance verdict.
T-Statistic
What is a T-Test?
The T-Test Calculator compares the means of two independent groups and tells you whether the observed difference is statistically significant, using Welch's two-sample t-test. Enter each group's mean, standard deviation, and sample size, plus your chosen significance level (α = 0.05 or 0.01), and the calculator returns the t-statistic, degrees of freedom, critical value, and a plain-language significance verdict.
The t-test is one of the most widely used hypothesis tests in statistics, letting you answer questions like "did the new checkout design actually increase average order value?" or "is there a real difference in test scores between two teaching methods?" — while accounting for the natural variability and limited sample size that could otherwise produce a misleading difference by chance alone.
This calculator uses Welch's t-test, which does not assume equal variances between the two groups — the more robust, generally recommended approach for real-world data. For comparing conversion rates or proportions instead of means, see the A/B Test Significance Calculator.
How to use this T-Test calculator
Enter Group 1's mean, standard deviation, and sample size — from your collected data or a prior report.
Enter Group 2's mean, standard deviation, and sample size — the group you're comparing against.
Choose your significance level — 0.05 (95% confidence) is standard for most research; 0.01 (99% confidence) for higher-stakes decisions.
Read the t-statistic and critical value — compare their absolute values to see whether your result crosses the significance threshold.
Check the verdict in the step-by-step breakdown — the calculator states in plain language whether to reject or fail to reject the null hypothesis of no difference.
Interpret alongside practical significance — a statistically significant t-test doesn't always mean the difference is large enough to matter in practice; always consider the mean difference value alongside the p-value verdict.
Formula & Methodology
Welch's t-statistic: t = (mean₁ − mean₂) / √(s₁²/n₁ + s₂²/n₂) Welch–Satterthwaite degrees of freedom: df ≈ (s₁²/n₁ + s₂²/n₂)² / [ (s₁²/n₁)²/(n₁−1) + (s₂²/n₂)²/(n₂−1) ] Variable definitions: - mean₁, mean₂ — sample means of each group - s₁, s₂ — sample standard deviations of each group - n₁, n₂ — sample sizes of each group Worked example: Comparing average scores between two study groups: Group 1 (mean = 82, sd = 8, n = 30) vs Group 2 (mean = 77, sd = 9, n = 30), at α = 0.05. Step 1 — Standard error: √(8²/30 + 9²/30) = √(2.133 + 2.7) = √4.833 ≈ 2.198 Step 2 — t-statistic: (82 − 77) / 2.198 ≈ 2.275 Step 3 — Degrees of freedom (Welch–Satterthwaite): ≈ 57.6 Step 4 — Critical value at α = 0.05, df ≈ 58: ≈ 2.00 Step 5 — Verdict: |t| = 2.275 > 2.00 → statistically significant at the 5% level. Reject the null hypothesis of no difference. Assumption: This calculator assumes both groups are independent random samples and that the sampling distribution of each group's mean is approximately normal (a safe assumption for n ≥ 30 per group, per the Central Limit Theorem). No assumption of equal variances is required, since Welch's method is used throughout.
Frequently Asked Questions