One-sample t-test calculator
Tests whether the mean of one sample differs from a known or hypothesized value μ. Returns t, df, the two-sided p-value and Cohen’s d.
Or skip the manual work
In the app, you chat with your data — the AI runs the analysis and writes it up.
Free accounts include AI chat, data analysis, and every tool on this site.
When to use this
Use a one-sample t-test when you have one group of measurements and want to know whether its mean differs from a fixed reference value: a published norm (do our patients sleep less than the recommended 7 hours?), a scale midpoint (is average agreement above the neutral point of 3?), or a target value in quality control. It is the simplest member of the t-test family — one sample, one comparison value, one p-value.
Key assumptions
- Observations are independent of each other (one measurement per participant).
- The variable is approximately normally distributed — or the sample is large enough (n ≳ 30) for the central limit theorem to make the test robust.
- The data are interval or ratio scaled.
- The test value μ is chosen before looking at the data.
Common mistakes
- Choosing μ after inspecting the sample mean — that invalidates the p-value.
- Using it for paired before/after data; that calls for a paired-samples t-test on the differences.
- Reporting significance without an effect size — always include Cohen’s d so readers can judge whether the difference matters.
Frequently asked questions
What does the test value μ mean?
How large should Cohen’s d be?
Is the p-value one-sided or two-sided?
Related free tools
Stop copying numbers between tools
Inside Kahubi, the AI agent runs this analysis directly on your uploaded dataset — then writes the results section in your own writing style, with the statistics reported correctly.