Welch's T-Test

Calculate Welch's T-Test instantly with the exact formula and a worked example.

Welch's T-Test

Group 1 mean
Group 1 SD
Group 1 size
Group 2 mean
Group 2 SD
Group 2 size
Welch t
1.629
Calculate Welch's T-Test instantly with the exact formula and a worked example.
At α = 0.05
Not significant
p-value (two-tailed)
0.1115
Degrees of freedom (Welch)
38.8
Standard error of the difference
1.84

Compare the means of two independent samples without assuming equal variances. Enter summary statistics and get Welch’s t, the Welch–Satterthwaite degrees of freedom and a two-tailed p-value.

How the calculation works

For each group you need the sample mean, the sample standard deviation (computed with n − 1) and the sample size n (at least 2). The calculator first finds the standard error of the difference, SE = √(s₁²/n₁ + s₂²/n₂), and then the test statistic t = (x̄₁ − x̄₂) / SE.

Degrees of freedom use the Welch–Satterthwaite equation: df = (s₁²/n₁ + s₂²/n₂)² / [(s₁²/n₁)²/(n₁ − 1) + (s₂²/n₂)²/(n₂ − 1)]. The result is usually fractional and smaller than n₁ + n₂ − 2. The two-tailed p-value comes from Student’s t distribution with that df, and the calculator flags whether the difference is significant at α = 0.05.

The test was introduced by B. L. Welch in 1947. Because it stays accurate when variances and group sizes differ, many statisticians recommend it as the default two-sample t-test. A positive t means group 1 has the larger mean.

Worked example

Group 1: mean 20, SD 5, n = 30; group 2: mean 17, SD 8, n = 25 (the defaults). SE = √(25/30 + 64/25) = √3.393 ≈ 1.842; t = 3 / 1.842 ≈ 1.629; df ≈ 38.8; p ≈ 0.111, so the difference is not significant at α = 0.05. The matching 95% confidence interval for the difference is 3 ± 2.023 × 1.842, roughly −0.7 to 6.7, which includes zero.

Things to keep in mind

  • Enter standard deviations, not standard errors. If a paper reports SEM, multiply it by √n first.
  • This test is for independent groups. Before/after measurements on the same people need a paired t-test.
  • With small samples (n below about 15–20) and strongly skewed data, consider a Mann–Whitney test or a bootstrap instead.
  • A non-significant result does not prove the means are equal — the sample may simply be too small to detect a real difference.
  • Report the effect size too: the mean difference with its confidence interval is more informative than p alone.

More about: Welch's T-Test

What it calculates

The “Welch's T-Test” calculator computes Welch t from 6 parameters: group 1 mean, group 1 sd, group 1 size, group 2 mean, group 2 sd, group 2 size.

A core calculation for studying, engineering tasks, and checking solutions.

Example calculation

With parameters Group 1 mean = 20, Group 1 SD = 5, Group 1 size = 30, Group 2 mean = 17, Group 2 SD = 8, Group 2 size = 25 the result is 1.63.

How to use

  1. Enter group 1 mean, group 1 sd, group 1 size, group 2 mean, group 2 sd and group 2 size — each field above is adjustable with a slider.
  2. Welch t is calculated automatically as you type.
  3. Check the worked example below to see the formula applied to real numbers.
  4. Copy the result or bookmark this calculator.

Related calculators

FAQ

How is Welch’s test different from Student’s t-test?
Student’s test pools the variances and assumes they are equal. Welch estimates them separately and adjusts the degrees of freedom. With the default data, Student’s test would give t ≈ 1.70, df = 53 and p ≈ 0.096 — the gap grows when both variances and group sizes differ.
Why are the degrees of freedom not a whole number?
The Welch–Satterthwaite formula is an approximation and almost never produces an integer. That is expected.
Should I run Levene’s test first?
Current advice is to skip the two-step procedure and use Welch directly; when variances really are equal it loses very little power.
How do I get a one-tailed p-value?
If the direction was specified in advance and t has the matching sign, halve the two-tailed p-value.

More calculators in this category

Explore related free tools

One-Sample z-TestTwo-Proportion z-TestBayes' TheoremDivisibility RulesDecimal to FractionDirect & Inverse ProportionExponential EquationSolutionRight Triangle SolverSlope from Two PointsAngle: Radians ↔ DegreesTrapezoidal Rule