One-Sample T-Test calculator

Compare your sample mean to a known population mean. Enter your data to calculate t-value, p-value, and confidence intervals online.

What it does

Tests whether the mean of a single sample differs from a reference value you specify — a published norm, a target, or a clinically meaningful threshold.

When to use it

You have one group of measurements and a number you want to compare them against, rather than a second group.

Cautions

Alternatives

How to read the output

Mean, SD and the test value μ₀
The sample mean against the value you nominated. The distance between them, in the outcome's units, is the finding. μ₀ must come from outside this dataset. Choosing it after looking at the mean guarantees the answer you were hoping for.
t-statistic and df
How many standard errors the sample mean sits from μ₀; df is n − 1.
p-value
How surprising a difference at least this large would be IF the groups really were identical on this measure. A small p means the data would be surprising under that assumption. It is not the probability that the result is due to chance, and not the probability that the groups are the same — those read the conditional backwards. It also answers 'would this be surprising?', never 'is this big enough to matter?': with a large sample a trivial difference returns a small p, and the result looks identical to an important one.

How this calculator is validated · Which statistical test should I use?