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.

Your figures

Example result — edit the figures to make it yours

1.25

t-statistic

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

t = (x̄ − μ) / (s / √n), with n − 1 degrees of freedom

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

Quick reference — varying sample mean
Sample meant-statistic
26.25-11.8750
42-4.0000
52.51.2500
65.6257.8125
78.7514.3750
10527.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.