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)

sample mean
μ₀
hypothesised population mean
s
sample standard deviation
n
sample size
df
degrees of freedom = n − 1

Enter Data

Interpretation Guide

p-valueInterpretationDecision (α = 0.05)
p < 0.001Very strong evidence against H₀Reject H₀
0.001 ≤ p < 0.01Strong evidence against H₀Reject H₀
0.01 ≤ p < 0.05Moderate evidence against H₀Reject H₀
0.05 ≤ p < 0.10Weak evidence against H₀Fail to reject H₀
p ≥ 0.10Little to no evidence against H₀Fail to reject H₀

Effect Size (Cohen's d) Reference

d valueEffect sizePractical meaning
< 0.2NegligibleDifference too small to be practically meaningful
0.2–0.5SmallNoticeable but modest effect
0.5–0.8MediumVisible effect in most contexts
> 0.8LargeSubstantial, clearly perceptible difference

One-Sample t-Test Step by Step

  1. 1State hypotheses: H₀: μ = μ₀ vs H₁: μ ≠ μ₀ (or directional alternative)
  2. 2Compute the sample mean x̄ and sample standard deviation s
  3. 3Calculate the standard error: SE = s / √n
  4. 4Compute t-statistic: t = (x̄ − μ₀) / SE
  5. 5Determine df = n − 1 and compute p-value from t-distribution
  6. 6Compare p to α = 0.05: if p < α, reject H₀
  7. 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.

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.

Frequently Asked Questions