T-Test Calculator
A t-test calculator is a statistical utility used to determine if there is a significant difference between the means of two groups. It supports the one-sample t-test (comparing a sample mean to a known population mean), the independent two-sample t-test (comparing two unrelated groups), and the paired t-test (comparing related measurements from the same group). The calculator computes the t-value, degrees of freedom, and the p-value. Researchers use this tool to perform hypothesis testing and verify experimental findings.
Pick one-sample or two-sample independent. Enter the means, standard deviations, and sample sizes, and the calculator returns the t statistic, the degrees of freedom (Welch-Satterthwaite for two-sample), and the standard error.
Quick Answer
Perform hypothesis testing on your datasets. Enter your sample means, standard deviations, and sample sizes to compute t-values and p-values.
Tail
e.g. 105
e.g. 100
e.g. 12
e.g. 30
For a p-value from the t statistic and degrees of freedom, consult statistical software or a t-distribution table. The calculator returns t and df; convert to a p-value with the tools you use for formal analysis.
Two-tailed · df 29
t = 2.2822
x̄ − μ₀ = 5
The sample mean is above the hypothesized mean. Compare |t| to a two-tailed critical value to evaluate significance.
Examples
One-sample: x̄ = 105, μ₀ = 100, s = 12, n = 30
t ≈ 2.28, df = 29
Two-sample: m₁ = 75, s₁ = 10, n₁ = 25 vs m₂ = 70, s₂ = 11, n₂ = 28
t ≈ 1.74, df ≈ 50.6 (Welch)
One-sample: x̄ = 100, μ₀ = 100
t = 0, sample equals hypothesized
How it works
For a one-sample test, divide the difference between the sample mean and the hypothesized mean by the standard error of the mean. Degrees of freedom equal n minus 1. For a two-sample Welch test, the standard error combines both groups, and the degrees of freedom come from the Welch-Satterthwaite formula.
One-sample t · (x̄ − μ₀) ÷ (s ÷ √n) · df = n − 1
Two-sample t (Welch) · (m₁ − m₂) ÷ √(s₁²/n₁ + s₂²/n₂)
Welch df ≈ (s₁²/n₁ + s₂²/n₂)² ÷ ((s₁²/n₁)²/(n₁−1) + (s₂²/n₂)²/(n₂−1)).
Related statistics calculators
- P-value calculator for converting a z- or t-score into a tail probability.
- Standard deviation calculator for the spread underlying the standard error.
- Z-score calculator for standardizing a value against a known mean and SD.
- Confidence interval calculator for a range around a sample mean.
- Mean, median, mode calculator for basic descriptive statistics on a list of values.
- All education calculators.
Related Calculators
More tools from Education



