One Sample T-Test Calculator

Enter your sample data and a hypothesized mean to compute the t-statistic, degrees of freedom, p-value, and hypothesis test decision.

Sample Data & Parameters

Separate values with commas, spaces, or new lines.

Enter data and click Run T-Test to see results.

Summary

Enter your sample data and a hypothesized mean to compute the t-statistic, degrees of freedom, p-value, and hypothesis test decision.

How it works

  1. Enter your data values separated by commas, spaces, or line breaks.
  2. Set the hypothesized population mean (null hypothesis H0: mu = value).
  3. Choose a significance level (alpha) and whether the test is two-tailed, left-tailed, or right-tailed.
  4. The calculator computes the sample mean, standard deviation, and standard error.
  5. The t-statistic is calculated as (sample mean - hypothesized mean) / standard error.
  6. The p-value is derived from the t-distribution with n-1 degrees of freedom, and the result tells you whether to reject H0.

Use cases

  • Test whether a new drug changes a measurable biomarker from a known baseline.
  • Verify whether a manufacturing process produces parts at the specified target dimension.
  • Check if average student exam scores differ from a national standard.
  • Evaluate whether website load times meet a defined performance target.
  • Validate survey responses against a hypothesized population mean.
  • Quality control: determine if a batch mean is within tolerance.

Frequently Asked Questions

Last updated: 2026-06-09 · Reviewed by Nham Vu