Result
Enter data and click Calculate
Perform one-sample, two-sample, paired, or Welch t-tests with full results.
No recently used tools
Loading categories...
Free online t-test calculator for one-sample, two-sample, paired, and Welch t-tests. Compute t-statistic, p-value, degrees of freedom, critical value, confidence interval, Cohen’s d effect size, interactive t-distribution chart, and Python scipy export.
Perform one-sample, two-sample, paired, or Welch t-tests with full results.
A t-test is a statistical hypothesis test used to determine whether there is a significant difference between the means of one or two groups. It uses the t-distribution, which accounts for small sample sizes and unknown population standard deviations.
Compare a sample mean to a known value or compare two group means to determine if the difference is statistically significant.
The p-value tells you the probability of observing your data under the null hypothesis. Small p-values suggest significant results.
Cohen’s d measures the practical significance of the difference. A result can be statistically significant but have a small effect.
| Scenario | Test Type | When to Use |
|---|---|---|
| Compare sample mean to a known value | One-Sample | Testing if a batch mean equals the specification value |
| Compare two independent groups with similar variances | Two-Sample | Treatment vs control, males vs females |
| Before and after measurements on same subjects | Paired | Pre-test vs post-test, left eye vs right eye |
| Two independent groups with unequal or unknown variances | Welch | Default choice when unsure about equal variances |
Tip: When in doubt, use the Welch t-test. It is robust to unequal variances and performs well even when variances are actually equal.
When p < α, reject the null hypothesis. The observed difference is unlikely due to random chance alone. Report the t-statistic, df, and p-value.
When p ≥ α, fail to reject the null hypothesis. There is insufficient evidence of a significant difference. This does not prove the groups are equal.
Small: d ≈ 0.2, Medium: d ≈ 0.5, Large: d ≈ 0.8. A significant p-value with tiny d may lack practical importance.
The CI for the mean difference shows the range of plausible values. If it excludes zero, the result is significant at that confidence level.
Non-parametric alternatives: If your data violates normality with small samples, consider the Mann-Whitney U test (for independent samples) or Wilcoxon signed-rank test (for paired samples). For comparing more than two groups, use ANOVA instead.