Calculate a t statistic from summary figures (means, standard deviations and sample sizes) with every step shown, plus its degrees of freedom and p-value.
t = (x̄ − μ₀) ÷ (s ÷ √n)
Use the sample standard deviation (divide by n − 1).
A t-statistic measures how far an observed difference is from zero, in units of its standard error. A t of 2 means the difference is twice as big as the random wobble you'd expect in it.
It's the heart of every t-test, and of the coefficient tests in regression. Bigger t-values (positive or negative) mean stronger evidence of a real difference; values near zero mean the difference is about as big as chance would produce.
Working from summary figures is common: papers and reports usually give means, SDs and sample sizes rather than the raw data. This page turns those straight into t, its degrees of freedom and a p-value.
As given in OpenStax Introductory Statistics, sections 9 and 10. See Sources.
The critical value for 24 df is 2.064, so the sample is suggestive but not conclusive. With 100 people and the same mean and SD, t would double to 3.77.
The worked example's mean (52.3), SD (6.1) and target (50), with different sample sizes.
| n | t | p (two-tailed) |
|---|---|---|
| 10 | 1.192 | 0.2636 |
| 25 | 1.885 | 0.0716 |
| 50 | 2.666 | 0.0104 |
| 100 | 3.77 | 0.0003 |
| 400 | 7.541 | 3.175e-13 |
For a two-tailed test at 5% with a reasonable sample, |t| above about 2 is significant. The exact cut-off depends on the degrees of freedom.
Yes. The sign shows the direction: negative means the sample mean (or group 1) is below the comparison.
z uses a known population SD; t uses the sample SD and allows for the extra uncertainty with heavier tails.
The spread of a sample mean shrinks with the square root of the sample size, so the SE is s ÷ √n.
For a 95% CI from a large sample, SE ≈ (upper − lower) ÷ 3.92. Then t = estimate ÷ SE.
Use the t-test calculator, which works from raw values and also handles paired data.
Welch’s formula combines both groups’ variances and sizes, so the df usually isn’t a whole number.
Each coefficient’s t is the coefficient divided by its standard error. It tests whether that coefficient differs from zero.