Almost every statistics package offers two versions of the independent two-sample t-test: Student's t-test, which assumes both groups have the same variance, and Welch's t-test, which does not. They often give nearly identical answers, which makes the choice look unimportant. But in one specific and very common situation they disagree sharply, and Student's version can then report "significant" differences far more often than it should. This guide explains the difference, shows a numerical example, and ends with a simple rule.
The one difference between them
Both tests compute the same kind of ratio: the difference between the two means divided by its standard error.
t = (mean1 − mean2) / SE of the difference
They differ only in how they estimate that standard error:
- Student's t-test assumes the two groups share one common variance. It pools the two sample variances into a single estimate, weighting each by its degrees of freedom: sp² = [(n1 − 1)s1² + (n2 − 1)s2²] / (n1 + n2 − 2). The degrees of freedom are n1 + n2 − 2.
- Welch's t-test keeps the two variances separate: SE = √(s1²/n1 + s2²/n2). Its degrees of freedom come from the Welch–Satterthwaite formula and are usually not a whole number, for example df = 37.4.
When the two groups have similar standard deviations, or the same sample size, the two standard errors come out almost the same and so do the p-values.
When the choice really matters
Trouble starts when the groups have both different sizes and different spreads. The pooled variance is dominated by the larger group. If the larger group is also the less variable one, the pooled estimate understates the noise in the smaller group, the standard error comes out too small, t comes out too large, and Student's test produces false positives.
Here is an example. Two groups differ in mean by 2 units:
| Group | n | Mean | SD |
|---|---|---|---|
| Treatment | 10 | 22 | 6 |
| Control | 30 | 20 | 2 |
| Student's t-test | Welch's t-test | |
|---|---|---|
| Standard error of the difference | 1.24 | 1.93 |
| t | 1.61 | 1.04 |
| Degrees of freedom | 38 | 9.7 |
| Two-sided p | ≈ 0.12 | ≈ 0.33 |
Neither result is significant here, but notice how much smaller Student's p-value is. Welch's test recognises that the treatment group, with only 10 noisy observations, carries most of the uncertainty, and its degrees of freedom drop to about 9.7 to reflect that. With a slightly larger difference in means, Student's test would cross p < 0.05 while Welch's would not, and Student's would be the one giving the wrong answer.
Simulation studies confirm this pattern: with unequal variances and unequal sample sizes, Student's test can have an actual false-positive rate of 10–20% or more when you think you are working at 5%. In the opposite arrangement (the larger group is more variable) Student's test becomes overly conservative and loses power. Welch's test keeps close to the nominal 5% in both cases.
"But shouldn't I test for equal variances first?"
A traditional recipe says: run Levene's test or an F-test for equal variances, then pick Student's test if it is not significant and Welch's test if it is. Statisticians now advise against this two-step procedure, for two reasons:
- Variance tests have low power in small samples, which is exactly when unequal variances do the most damage. A non-significant Levene's test does not show the variances are equal.
- Choosing the main test based on a preliminary test changes the error rates of the whole procedure in ways that are hard to predict.
The simpler and safer approach is to use Welch's test from the start.
What do you lose by always using Welch?
Very little. When the variances really are equal and the groups are the same size, Welch's test gives almost exactly the same result as Student's; the power loss is tiny. That asymmetry (a small cost when Student's assumption holds, a large protection when it does not) is why many statisticians and several software packages, including R's t.test(), now use Welch's test as the default.
Student's test is still fine when you have a good reason to expect equal variances, for example identical measurement procedures with equal group sizes, and a reviewer or established protocol asks for it.
What neither test fixes
- Strong skew or outliers. Both are tests of means and both are sensitive to extreme values. Use the Mann-Whitney U test instead.
- Paired data. Before/after measurements on the same subjects need a paired t-test. See paired vs independent data.
- More than two groups. Use one-way ANOVA (or Welch's ANOVA when variances differ), not a series of t-tests.
How to report it
"Mean scores did not differ significantly between treatment (22.0 ± 6.0, n = 10) and control (20.0 ± 2.0, n = 30; mean ± SD; Welch's t-test, t(9.7) = 1.04, p = 0.33)."
Naming the test matters: "t-test" alone leaves the reader unsure which variance assumption you made. Reporting the fractional degrees of freedom is normal for Welch's test and signals to the reader which version you used.
Running both in StatFlo
StatFlo offers both versions under Statistical Test. Upload two columns, run Welch's t-test, then switch to Student's t-test and Generate again to see how much the result depends on the equal-variance assumption for your data. If the two p-values are close, the assumption does not matter much; if they differ substantially, report Welch's. The t-test tutorial walks through every number in the output.