One-Sample & Two-Sample t-Test Calculator

Run a one-sample t-test against a hypothesised mean, or Welch's two-sample t-test, with t statistic, degrees of freedom and p-value.

Results

t statisticβ€”
Degrees of freedomβ€”
p-value (two-tailed)β€”
p-value (one-tailed)β€”
Conclusion at Ξ± = 0.05β€”

How to use the One-Sample & Two-Sample t-Test Calculator

  1. Enter or select: Sample A, Hypothesised mean ΞΌβ‚€ (one-sample).
  2. Fill in what you know of: Sample B (leave empty for one-sample test) β€” leave the unknown empty.
  3. The results (t statistic, Degrees of freedom, p-value (two-tailed), p-value (one-tailed), Conclusion at Ξ± = 0.05) are calculated instantly as you type.
  4. Use β€œCopy link” to share the calculation with the same input values.

Formula

  • One-sample: t = (xΜ„ βˆ’ ΞΌβ‚€)/(s/√n)
  • Welch: t = (x̄₁ βˆ’ xΜ„β‚‚)/√(s₁²/n₁ + sβ‚‚Β²/nβ‚‚)