T Statistic Calculator

Calculate a one-sample t statistic, degrees of freedom, and standard error from summary statistics.

One-sample t statistic
Compare a sample mean with a hypothesized population mean when population variance is unknown.

About the t statistic

A t statistic standardizes the difference between a sample mean and a hypothesized population mean. It answers a practical question: how many estimated standard errors separate the observed mean from the value proposed by a null hypothesis? The one-sample formula is t = (x̄ − μ₀) / (s / √n), where x̄ is the sample mean, μ₀ is the hypothesized mean, s is the sample standard deviation, and n is the sample size. The numerator is the raw difference of interest. The denominator is the estimated standard error of the sample mean. Dividing by the standard error places the difference on a common scale, allowing results from measurements with different units or variability to be interpreted similarly. A t statistic of 2.5 means the sample mean lies 2.5 estimated standard errors above the hypothesized value. A value of −2 means it lies two standard errors below it. Sign and magnitude play different roles. The sign indicates direction relative to the hypothesized mean, while the absolute magnitude indicates how unusual the difference is under the null model. A value near zero shows close agreement. A large absolute value provides stronger evidence against the null hypothesis, but there is no universal cutoff because the corresponding probability depends on degrees of freedom and whether the test is one-sided or two-sided. For a one-sample t statistic, degrees of freedom equal n − 1. They account for the fact that the same sample is used to estimate its mean and standard deviation. With few degrees of freedom, the t distribution has heavier tails than a normal distribution, reflecting additional uncertainty in the estimated standard error. As sample size grows, the t distribution approaches the standard normal distribution. This calculator reports the statistic and its ingredients but deliberately does not choose a hypothesis direction or significance threshold. To complete a hypothesis test, compare the statistic with a t distribution using n − 1 degrees of freedom and calculate the appropriate one-tailed or two-tailed p-value. The direction and alpha level should be selected before examining results. A confidence interval for the mean can also be built as x̄ plus or minus a critical t value multiplied by the standard error. A valid one-sample t procedure assumes independent observations and a quantitative outcome. The source population should be reasonably normal for small samples, although larger samples are often robust to moderate non-normality. Strong outliers can distort both the mean and standard deviation and should be investigated. The sample should also arise from an appropriate random or representative process if conclusions will be generalized. Use the calculator to verify arithmetic, then interpret the result in light of design, assumptions, effect size, and subject-matter relevance.

T statistic examples

Summary statisticsResultInterpretation
x̄ = 105, μ₀ = 100, s = 10, n = 25t = 2.5; df = 24The standard error is 2, placing the sample mean 2.5 standard errors above the hypothesis.
x̄ = 48, μ₀ = 50, s = 4, n = 16t = −2; df = 15The negative sign shows that the sample mean is below the hypothesized mean.
x̄ = 20, μ₀ = 20, s = 3, n = 9t = 0; df = 8Identical sample and hypothesized means produce a zero statistic.

How to calculate a t statistic

  1. Enter the observed sample mean and the population mean stated by the null hypothesis.
  2. Enter the sample standard deviation and the number of independent observations.
  3. Click Calculate t statistic to obtain the standard error, t value, and degrees of freedom.
  4. Use the sign for direction and compare the statistic with the appropriate t distribution for inference.

T statistic FAQ

What does a negative t statistic mean?

It means the sample mean is below the hypothesized population mean. The strength of evidence depends on its absolute magnitude and degrees of freedom.

Why use a t statistic instead of a z statistic?

The t statistic uses the sample standard deviation when population variance is unknown. Its reference distribution accounts for the extra uncertainty in that estimate.

How are degrees of freedom calculated?

For a one-sample t statistic, degrees of freedom are n − 1. One degree is used when the sample mean is estimated from the data.

Is a t statistic of 2 significant?

Not always, because significance depends on degrees of freedom, tail choice, and alpha. Calculate a p-value or compare with a suitable critical value before deciding.

What assumptions does the calculation require?

Observations should be independent and the outcome quantitative. Small samples should come from a reasonably normal population without influential outliers.