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 and a significance verdict.
Reviewed by the thecalcu.com team · Last updated July 31, 2026
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.
Why Use a T-Test Calculator?
Computing a t-test by hand requires calculating pooled or Welch-adjusted standard errors, deriving degrees of freedom via the WelchâSatterthwaite equation, and looking up a critical value from a t-distribution table, several error-prone steps even for an experienced analyst.
This calculator performs the full computation instantly and shows every step, including the exact critical value used and a clear verdict on statistical significance. Because it uses summary statistics (mean, standard deviation, sample size) rather than requiring raw data upload, it works even when you only have published or reported summary figures from another source.
Who Should Use This Calculator?
Data analysts and product managers running A/B tests on continuous metrics (like average session duration, average order value, or average time-on-task) rather than simple conversion rates.
Researchers and graduate students comparing experimental and control group outcomes in academic studies, theses, or dissertations.
Quality control engineers comparing average measurements (like tensile strength or fill weight) between two production batches or two machines to detect a meaningful process shift.
UX researchers comparing task completion times or satisfaction scores between two design variants tested with separate user groups.
Students in statistics, psychology, or business analytics courses learning hypothesis testing and the practical application of the t-distribution.
What Insights Does This Calculator Give You?
T-Statistic, the headline result: how many standard errors apart your two group means are. Larger absolute values indicate a more reliable difference relative to the data's natural variability.
Degrees of Freedom, the Welch-adjusted degrees of freedom used to select the correct critical value from the t-distribution, reflecting both groups' sample sizes and variances.
Critical T-Value, the threshold your t-statistic must exceed (in absolute value) to be considered statistically significant at your chosen α level.
Mean Difference, the raw difference between the two group means, useful context alongside the statistical significance verdict, a statistically significant difference can still be practically small.
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.
Show formula & methodology âShow less â
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