Share this free calculator
Send this tool to someone who needs the calculation.
How to use
This one-sample t-test compares a sample mean with a hypothesized mean when the population standard deviation is unknown and the sample standard deviation is used instead. It returns t, degrees of freedom, standard error and p-value.
- Enter the sample and hypothesized means.
- Enter a positive sample standard deviation and integer n≥2.
- Choose the alternative-hypothesis tail.
- Review t, df, standard error and p-value.
How it is calculated
Example
Example: sample mean 52, hypothesized mean 50, sample SD 8 and n=30 gives t≈1.369 with 29 degrees of freedom. The p-value depends on whether the pre-specified alternative is one- or two-tailed.
Important notes
The test assumes independent observations and an appropriate sampling design; for small samples, the shape of the underlying distribution matters more. The calculator cannot validate study design.
Worked examples and interpreting results
Sample mean 12 versus hypothesized mean 10, sample deviation 4 and size 16 give standard error 1 and t=2 with 15 degrees of freedom.
| Case | Calculation | Result |
|---|---|---|
| Standard error | 4 ÷ √16 | 1 |
| Test statistic | (12 − 10) ÷ 1 | 2 |
How to check the result
Enter the four values and choose tails according to a prespecified hypothesis. This tests one sample mean; it assumes independence and, for small samples, a suitable normality assumption.
Frequently asked questions
t versus z?
t is commonly used when population SD is unknown and estimated from the sample.
What are the degrees of freedom?
For this one-sample test, df=n−1.
Is this a two-sample calculator?
No. This page implements the one-sample t-test.
Does a small p-value prove the alternative?
No. It is evidence within a specified model and assumptions, not absolute proof.