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.
Use the One Sample T-Test Calculator
Sample Data & Parameters
Separate values with commas, spaces, or new lines.
Enter data and click Run T-Test to see results.
Sample Size (n)
—
Sample Mean
—
Std Deviation (s)
—
Std Error (SE)
—
Degrees of Freedom
—
T-Statistic
—
P-Value
—
Significance Level (α)
—
Interpretation
Summary
The one-sample t-test checks whether the mean of a single sample is statistically different from a known or hypothesized value. It uses the sample mean, sample standard deviation, and sample size to compute a t-statistic, then compares it against critical values (or a p-value) at your chosen significance level. This calculator handles all arithmetic client-side — no data ever leaves your browser.
How it works
- Enter your data values separated by commas, spaces, or line breaks.
- Set the hypothesized population mean (null hypothesis H0: mu = value).
- Choose a significance level (alpha) and whether the test is two-tailed, left-tailed, or right-tailed.
- The calculator computes the sample mean, standard deviation, and standard error.
- The t-statistic is calculated as (sample mean - hypothesized mean) / standard error.
- 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-05-29 · Reviewed by Nham Vu