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.
Sample Size (n)
—
Sample Mean
—
Std Deviation (s)
—
Std Error (SE)
—
Degrees of Freedom
—
T-Statistic
—
P-Value
—
Significance Level (α)
—
Interpretation
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
- 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-06-09 ·
Reviewed by Nham Vu