All guides

T-Tests Explained: Comparing Means with Small Samples

Built for small samples

The z methods of large-sample statistics assume the standard deviation is known, which in real work it almost never is. William Gosset, publishing as Student, built the t-test for exactly this problem: small samples, spread estimated from the same data. The t distribution looks like the normal curve with heavier tails, the extra width paying for the uncertainty in the estimated spread. As the sample grows, the tails slim down and the t curve melts into the normal; the degrees of freedom, usually n minus 1, control how heavy the tails are. With 5 degrees of freedom the 95 percent critical value is 2.571; with 30 it is 2.042, already close to the famous 1.96.

The three common forms

The one-sample t-test asks whether a sample mean differs from a claimed value: are these fill weights really averaging 500 grams? The two-sample t-test compares two group means: did the trained group score higher than the untrained? The paired t-test works on differences within matched units, the same patients before and after, which removes person-to-person variation and is far more powerful when pairing is real. Each produces a t statistic, the observed difference divided by its standard error, and a p-value from the t curve. The arithmetic is easy; choosing the right form, and checking that pairing is genuine rather than convenient, is the actual skill.

Welch, and the assumptions that matter

The classic two-sample test assumes both groups share the same population variance, an assumption real data loves to break. Welch's version drops it, estimating each group's variance separately and adjusting the degrees of freedom downward, sometimes to a fraction. Modern guidance is blunt: use Welch by default, since it behaves well whether variances are equal or not, which is why the two-sample calculator on this site is Welch. The remaining assumptions are gentler than folklore suggests: independence matters most, approximate normality matters mainly for tiny samples, and outliers deserve a look because means are sensitive to them. A t-test with clean design and modest data beats a grand model built on a broken sample every time. A practical note on reporting: a t-test result is incomplete until it carries the group means, the difference between them, a confidence interval for that difference, and an effect size, alongside the t statistic, degrees of freedom and p-value. The p-value alone tells a reader that something was detected; the interval tells them what sizes of effect remain plausible, which is what decisions actually consume. Software prints most of this automatically, and our calculator follows the same standard, because a test reported as a lone p-value invites exactly the misreadings the rest of this guide warns against.

Try it with your own numbers

The free calculators that go with this guide:

Run a two-sample t-test