Home · Statistics · Inference & Tests · t-statistic Calculator
t-statistic Calculator
The one-sample t-statistic: how many standard errors the sample mean sits from the hypothesised population mean.
What this calculator does
The one-sample t-statistic: how many standard errors the sample mean sits from the hypothesised population mean. Every figure on this page is computed from the standard definition stated below — the same definition used in textbooks and reference tables — with no hidden rounding steps, and the method notes name the exact convention where more than one exists.
The formula and method
The denominator is the standard error of the mean, s/√n, estimated from the sample because σ is unknown.
The statistic follows a t distribution with n − 1 degrees of freedom under the null hypothesis.
The sign shows the direction: positive when the sample mean exceeds μ.
Worked example
With the example inputs this page opens with (sample mean 52.5, hypothesised mean μ 50, sample standard deviation 10, sample size n 25), the result is 1.2500 — t-statistic. Change any figure and the result updates with the same formula.
Quick reference
| Sample mean | t-statistic |
|---|---|
| 26.25 | -11.8750 |
| 42 | -4.0000 |
| 52.5 | 1.2500 |
| 65.625 | 7.8125 |
| 78.75 | 14.3750 |
| 105 | 27.5000 |
Computed with the same formulas as the calculator above — enter any values there for figures beyond this table.
Common questions
When do I use a t-statistic instead of a z-statistic?
When the population standard deviation is unknown and estimated from the sample — the usual case. The t distribution's heavier tails price in that extra uncertainty; with large n the two distributions nearly coincide.
What does t = 1.25 mean here?
The sample mean is 1.25 standard errors above the hypothesised mean. On 24 degrees of freedom that is not unusual under the null (two-sided p ≈ 0.22), so it would not reject at the 5% level.
How does the t-statistic Calculator work?
The one-sample t-statistic: how many standard errors the sample mean sits from the hypothesised population mean. Sample mean · Hypothesised mean μ · SD · n → t-statistic. The result updates as you type, and the formula and method on this page state the exact definitions used, so you can reproduce the calculation by hand.
What inputs does the t-statistic Calculator need?
Sample mean · Hypothesised mean μ · SD · n → t-statistic. Invalid entries — such as a zero denominator, an out-of-range value or a malformed list — produce a plain-language message instead of a misleading number.