Formula: Welch’s t-Test & Satterthwaite df Formula
- meanGroup1: Mean Group1 (x̄₁)
- sdGroup1: Sd Group1 (s₁)
- nGroup1: N Group1 (n₁)
- meanGroup2: Mean Group2 (x̄₂)
- sdGroup2: Sd Group2 (s₂)
- nGroup2: N Group2 (n₂)
Compute Welch’s t-statistic, Welch-Satterthwaite effective df, and 95% mean difference CI.
The Welch-Satterthwaite formula estimates an effective df from the two sample variances and sizes, and the result is rarely an integer. Here it is 51.239. Statistical software uses the fractional value directly in the t distribution. If you are using a printed table, rounding down is the conservative choice.
Many statisticians recommend it as the default. When variances and sizes are equal it gives the same result as the pooled test, as the equal-spread check on this page shows with 48 df. When they differ, it avoids the inflated false-positive rate a pooled test can have, especially if the smaller group is the noisier one.
Not directly. The formula divides each squared standard deviation by its n, so standard errors would be shrunk twice. Convert first by multiplying each standard error by the square root of its sample size. For example, a standard error of 1.7 with 25 observations corresponds to a standard deviation of 8.5.
Find the two-sided tail probability of the t distribution at 51.2 df for a value of 2.19, using a statistics package or spreadsheet function. The calculator does not report it. With df in that range, a t of about 2 corresponds to a p-value near 0.05, so this result sits just under that line.
Fewer observations make that group's variance estimate less reliable, and if its variance term then dominates the standard error, the whole comparison inherits that unreliability. Cutting Group 1 from 25 to 10 observations lowers df from 51.2 to 22.7 and raises the standard error from 2.831 to 3.514.
Only for the sign. Swapping the groups flips t from positive to negative and the mean difference from 6.2 to −6.2, while the standard error, df and interval width stay identical. Choose the order so a positive result reads naturally, such as treatment minus control.
It uses the exact two-sided t critical value at the Welch df, multiplied by the standard error. At the default 51 df that multiplier is about 2.01, giving a half-width of 5.683. At about 4 df it is roughly 2.77, so the interval widens sharply. The interval still relies on the usual t-test assumptions.
It assumes the sampling distribution of each mean is close to normal. With moderate sample sizes that usually holds even for somewhat skewed data. With very small samples and heavy skew or outliers, a rank-based test or a bootstrap interval may be a safer comparison than any t-test.
No. Welch's test is for two independent groups. Paired measurements on the same subjects should be analysed as differences within each pair, using a one-sample t-test on those differences. Treating paired data as independent usually overstates the standard error and hides real effects.
It means Group 1's mean is below Group 2's. Lowering Group 1's mean to 33 gives t = −5.298, a large difference in the other direction. For a two-sided test only the size of t matters for significance; the sign tells you which group is higher.
The formula divides by the variance terms, and a group with no spread at all would make the standard error collapse and t explode. Real data never have zero spread, so the calculator asks for standard deviations above zero and whole sample sizes of 2 or more. Check the entry for a typo or a missing value.
The standard error of the difference shrinks with the square root of the sample sizes, while the mean difference stays the same. Setting both groups to 100 observations with the default means and spreads raises t from 2.19 to 4.124. Bigger samples detect the same difference more confidently; they do not make the difference larger.
The default compares two independent groups. Group 1 has a mean of 54.2, a standard deviation of 8.5 and 25 observations. Group 2 has a mean of 48, a standard deviation of 12.4 and 30 observations. Nothing about the units is assumed, so these could be test scores, reaction times or weights.
The calculator reports Welch's t of 2.19, an effective degrees of freedom of 51.239, a standard error of the difference of 2.831, and a 95% confidence half-width of 5.683. The mean difference itself, 6.2, appears in the interpretation sentence.
Read together, those say the groups differ by 6.2 units, the uncertainty on that difference is about 2.8 units, and the difference is a little over two standard errors away from zero. An interval for the true difference is 6.2 plus or minus 5.683, which runs from about 0.5 to about 11.9. That interval excludes zero, but only just.
Welch's t is the difference in means divided by the square root of s₁²/n₁ + s₂²/n₂. Each of those two terms is the squared standard error of one group's mean, and they are added rather than pooled.
For Group 1, 8.5 squared is 72.25, and divided by 25 that gives 2.89. For Group 2, 12.4 squared divided by 30 gives about 5.125. The sum is about 8.015, and its square root is 2.831, which matches the standard error line. Dividing the mean difference of 6.2 by 2.831 gives 2.19.
Notice how lopsided the two contributions are. Group 2 supplies almost two thirds of the variance of the difference, even though it has more observations, because its spread is so much larger. Collecting more data from Group 2 would shrink the standard error faster than collecting more from Group 1. That is a practical use of these intermediate terms when planning a follow-up study.
The pooled t-test uses n₁ + n₂ − 2 degrees of freedom, which here would be 53. Welch's test instead estimates an effective df from the data, using the Welch-Satterthwaite formula: the squared sum of the two variance terms, divided by the sum of each term squared over its own n − 1.
With the defaults the numerator is 8.015 squared, about 64.25. The denominator is 2.89 squared over 24, about 0.348, plus 5.125 squared over 29, about 0.906. That adds to about 1.254, and 64.25 divided by 1.254 is 51.24. The calculator shows 51.239.
The effective df always lies between the smaller group's n − 1 and the pooled n₁ + n₂ − 2. It reaches the pooled value when the two variance terms are equal, and it sinks toward the smaller bound when one group dominates the uncertainty. A fractional df is normal. Statistical software uses it directly with the t distribution rather than rounding.
A good sanity check is to give both groups the same spread and size. Set Group 2 to a standard deviation of 8.5 and 25 observations. The calculator then reports df = 48, exactly 25 + 25 − 2, a standard error of 2.404 and t = 2.579.
When variances and sample sizes are equal, Welch's test and the pooled Student's test give the same t and the same df. That is the main reason many statisticians recommend using Welch by default. It costs almost nothing when the equal-variance assumption holds, and it protects you when it does not.
Compare that with the default, where the spreads differ. The pooled test would use 53 df and a pooled variance that leans toward Group 2, while Welch uses 51.2 df. The gap here is small. It becomes large when the smaller group has the larger variance.
Welch's correction matters most when the group with fewer observations also has the larger standard deviation. Try Group 1 with a standard deviation of 20 and only 5 observations, against Group 2 with a standard deviation of 2 and 50 observations. The effective df collapses to 4.008, close to the smaller group's n − 1 of 4. The standard error is 8.949 and t is 0.693.
Now swap the situation: Group 1 with a standard deviation of 2 and 5 observations, Group 2 with 20 and 50. The df comes out at 52.8, near the pooled 53, because the large group now carries the uncertainty and is well estimated.
This is the case where a pooled test can mislead badly. With 53 df it would treat the noisy five-observation group as though its variance were as well known as the big group's. Welch's df honestly reports that the comparison rests mostly on five data points.
The confidence half-width is labelled t* × SE at Welch df. The calculator looks up the two-sided 95% critical value of the t distribution at the effective df it has just computed, then multiplies the standard error by it. That is the standard Welch interval, not a rule-of-thumb multiplier.
At the default df of about 51 the critical value is close to 2.01, so the half-width is 5.683 on a standard error of 2.831. At small df it is much larger. In the five-observation example above, with about 4 df, the half-width is 24.763 on a standard error of 8.949, a multiplier of roughly 2.77. Cutting Group 1 to 10 observations gives 22.7 df and a half-width of 7.274 on a standard error of 3.514, a multiplier near 2.07.
This is the second place the Welch df earns its keep. A smaller df not only describes a less reliable comparison; it also widens the interval. A rough doubling of the standard error is close enough only when the df is comfortably above 30.
The calculator stops at the t-statistic and df. It does not convert them into a p-value. To get one, look up the two-sided tail area of the t distribution at the reported df in a statistics package or table.
As a rough guide for moderate df, a t near 2 corresponds to a two-sided p-value near 0.05, which is why the default t of 2.19 on 51 df sits just inside conventional significance. Larger t values move further. With Group 1's mean lowered to 33, t is −5.298, and raised to 81 it is 11.656, both well beyond any usual threshold. The sign only tells you which group is higher.
Change only the means and the standard error and df stay exactly where they were, at 2.831 and 51.239. That is a useful reminder that df and standard error describe the spread and size of the samples, while the means determine how far apart they are.
A t-statistic mixes two things: how big the difference is and how much data you have. Double both sample sizes and t grows even if the groups are no further apart. Setting both groups to 100 observations with the default means and spreads, for instance, raises t to 4.124 while the mean difference stays at 6.2.
To describe the size of the difference independently of sample size, divide it by a typical standard deviation. With unequal variances a common choice is the square root of the average of the two variances. Here that is the square root of the average of 72.25 and the square of 12.4, roughly 10.6, so the difference is about 0.58 standard deviations. The calculator does not report this; it is a quick hand calculation from the inputs you already typed.
Reporting both numbers is good practice. The t and df tell a reader whether the difference is distinguishable from noise in this sample. The effect size tells them whether it is large enough to care about. A tiny effect can produce a large t with enough data, and a meaningful effect can produce a small t in a small pilot study.
If one group is a control, some analysts prefer to divide by the control group's standard deviation alone, which gives a different but equally valid figure. Say which one you used.
The engine checks inputs before it computes anything. Each standard deviation must be above zero and each group needs a whole sample size of 2 or more, because n − 1 appears in the df denominator. A zero spread, a negative typo, a fractional n or a group of one returns an error message instead of a result.
What it cannot catch is a plausible number of the wrong kind. Make sure you enter sample standard deviations, computed with n − 1, not standard errors. If a paper reports mean plus or minus SE, multiply each SE by the square root of its n first. Entering SEs directly would shrink the standard error of the difference dramatically and inflate t.
Also confirm the two groups really are independent. The arithmetic runs on any six numbers, so it is up to you to make sure no subject appears in both groups.