One-Sample T-Test Calculator
Reviewed by CalcMulti Editorial Team·Last updated: ·← Statistics Hub
The one-sample t-test determines whether your sample mean is significantly different from a hypothesised population mean (μ₀). It is one of the most fundamental inferential statistics tests, used in research, quality control, and A/B testing.
Enter your data values and the hypothesised mean. This calculator computes the t-statistic, degrees of freedom, two-tailed and one-tailed p-values, Cohen's d effect size, and a 95% confidence interval for the true population mean.
Formula
t = (x̄ − μ₀) / (s / √n)
- x̄
- sample mean
- μ₀
- hypothesised population mean
- s
- sample standard deviation
- n
- sample size
- df
- degrees of freedom = n − 1
Enter Data
Interpretation Guide
| p-value | Interpretation | Decision (α = 0.05) |
|---|---|---|
| p < 0.001 | Very strong evidence against H₀ | Reject H₀ |
| 0.001 ≤ p < 0.01 | Strong evidence against H₀ | Reject H₀ |
| 0.01 ≤ p < 0.05 | Moderate evidence against H₀ | Reject H₀ |
| 0.05 ≤ p < 0.10 | Weak evidence against H₀ | Fail to reject H₀ |
| p ≥ 0.10 | Little to no evidence against H₀ | Fail to reject H₀ |
Effect Size (Cohen's d) Reference
| d value | Effect size | Practical meaning |
|---|---|---|
| < 0.2 | Negligible | Difference too small to be practically meaningful |
| 0.2–0.5 | Small | Noticeable but modest effect |
| 0.5–0.8 | Medium | Visible effect in most contexts |
| > 0.8 | Large | Substantial, clearly perceptible difference |
One-Sample t-Test Step by Step
- 1State hypotheses: H₀: μ = μ₀ vs H₁: μ ≠ μ₀ (or directional alternative)
- 2Compute the sample mean x̄ and sample standard deviation s
- 3Calculate the standard error: SE = s / √n
- 4Compute t-statistic: t = (x̄ − μ₀) / SE
- 5Determine df = n − 1 and compute p-value from t-distribution
- 6Compare p to α = 0.05: if p < α, reject H₀
- 7Report effect size d = |x̄ − μ₀| / s and 95% CI for μ
Common Mistake: Confusing Statistical and Practical Significance
A very large sample (n = 10,000) may produce p < 0.001 for a difference of 0.01 units — statistically significant but completely meaningless in practice. Conversely, a small sample (n = 10) might give p = 0.08 for a genuinely important difference that lacks power to detect.
Always report: (1) the p-value, (2) Cohen's d effect size, and (3) the 95% confidence interval. These three together paint a complete picture of whether the result is statistically real AND practically important.
Related Calculators
Before/after or matched-pairs data
T-Test Calculator (two-sample)Compare two independent groups
Normality Test CalculatorCheck if data is normally distributed
Effect Size CalculatorCohen's d and other effect sizes
Sample Size CalculatorHow many observations needed
P-Value Calculatorp-value from any t or z statistic
Statistics HubAll statistics calculators
Disclaimer
For educational and exploratory use only. Statistical significance does not imply practical importance. Consult a qualified statistician before making decisions based on hypothesis tests.