T-Test Calculator
One-sample, independent two-sample (Student & Welch), and paired t-tests with p-value, confidence interval, effect size, and a live t-distribution chart.
Inputs
Order: mean, standard deviation, n.
Hypothesis & results
t-distribution & rejection region
Group means & standard error
How this is calculated
A t-test calculator tells you whether a difference between means is large enough to be unlikely under chance alone, or whether it could plausibly be random variation. This calculator runs the three most common forms of the test and reports the full set of statistics you need to interpret and report a result.
When to use each test. Use a one-sample t-test when you compare the mean of a single group against a fixed reference value, such as testing whether the average score in your sample differs from a published norm. Use an independent two-sample t-test when you compare the means of two separate, unrelated groups, such as a treatment group against a control group. Use a paired t-test when the same subjects are measured twice, such as before-and-after scores or matched pairs, because the two measurements are linked and that connection has to be accounted for.
Welch versus pooled. For two independent groups you can assume the groups share a common variance (the pooled, or Student, test) or allow the variances to differ (the Welch test). Welch is the safer default in most real research because it does not require equal variances and performs almost as well when they happen to be equal. Choose the pooled test only when you have a good reason to believe the spread is the same in both groups.
How to read the output. The t-statistic measures how many standard errors separate your observed difference from the value expected under the null hypothesis. The degrees of freedom describe how much information the sample carries. The p-value is the probability of seeing a difference at least this large if the null hypothesis were true; when it falls below your significance level (commonly 0.05), the result is called statistically significant. The confidence interval gives the plausible range for the true difference, and Cohen’s d expresses the size of the effect independently of sample size, which matters because a small, unimportant difference can still be significant in a very large sample.
One-tailed or two-tailed. A two-tailed test asks whether the means differ in either direction and is the standard choice. A one-tailed test asks only whether the difference goes in a specific predicted direction and should be chosen before seeing the data, never afterward.
Assumptions. The t-test assumes the data, or the paired differences, are roughly normally distributed, that observations are independent, and for the pooled test that the two groups have similar variances. With small samples these assumptions matter more; with larger samples the test is fairly robust to mild departures from normality. If your data are heavily skewed or your groups are very unequal in size and spread, consider a nonparametric alternative such as the Mann-Whitney U or Wilcoxon signed-rank test.
How the calculation works. The calculator computes the t-statistic from your means, standard deviations, and sample sizes, derives the degrees of freedom (using the Welch-Satterthwaite formula for unequal variances), and converts the t-value into a p-value using the Student t-distribution. The same distribution is inverted to find critical values and build the confidence interval. You can enter raw numbers and let the tool compute the descriptive statistics, or type in summary statistics directly. Results are indicative for learning and exploration; for formal reporting, confirm them in dedicated statistical software.
