Skip to content
Statculator
Hypothesis Tests

Welch’s t-Test Calculator

Free Welch’s t-test calculator for two means with unequal variances. Enter summary stats or raw data to get t, the Welch df, the p-value and every step.

Free, no sign-up Runs in your browserBy Hira Noor, BS MathematicsUpdated

Choose the direction your research question predicts. Use two-tailed if any difference matters.

Usually 0.05 or 0.01.

Data input
Sample 1
Sample 2

Welch’s test does not assume equal variances, so it is a safe default for comparing two independent means.

Results

t statistic
1.717
p-value
0.0971
Two-tailed, df = 27.9

Fail to reject H₀ at α = 0.05

p = 0.0971 > 0.05. At the 5% level there is not enough evidence that the two population means differ.

Mean difference, x̄₁ − x̄₂
4.3
Welch df
27.8975
Standard error
2.5044
Critical t (α = 0.05)
±2.0487
95% CI for μ₁ − μ₂
(-0.8309, 9.4309)
Cohen’s d (average-variance SD)
0.5703 (medium)
SD ratio, larger / smaller
2.3333
Pooled t-test p (for comparison)
0.1615
Sample 1: x̄₁, s₁, n₁
31.4, 4.2, 12
Sample 2: x̄₂, s₂, n₂
27.1, 9.8, 20

Interpretation: The sample means differ by 4.3, which is 1.717 standard errors from zero on 27.9 degrees of freedom. A difference this size could easily arise by chance if the population means were equal.

  • One group has fewer than 15 observations, so the test relies on both populations being roughly normal.
t distribution curve with the shaded probability region, markers at t = 1.717t = 1.717-4-3-2-101234t distribution, df = 27.9
Shaded area: rejection region at the chosen α. Dashed line: your test statistic.

Step-by-step solution

  1. 1

    State the hypotheses

    This is a two-tailed test.

    H₀: μ₁ − μ₂ = 0
    H₁: μ₁ − μ₂ ≠ 0
  2. 2

    Choose the significance level

    α = 0.05
  3. 3

    Find each sample’s variance of the mean

    Welch’s test keeps the two variances separate instead of pooling them.

    s₁² / n₁ = 4.2² / 12 = 1.47
    s₂² / n₂ = 9.8² / 20 = 4.802
  4. 4

    Find the standard error of the difference

    SE = √(s₁²/n₁ + s₂²/n₂) = √(1.47 + 4.802) = 2.5044
  5. 5

    Calculate the test statistic

    t = (x̄₁ − x̄₂) / SE = (31.4 − 27.1) / 2.5044 = 1.717
  6. 6

    Find the Welch–Satterthwaite degrees of freedom

    df = (s₁²/n₁ + s₂²/n₂)² / [ (s₁²/n₁)²/(n₁ − 1) + (s₂²/n₂)²/(n₂ − 1) ]
    df = (1.47 + 4.802)² / [ 1.47²/11 + 4.802²/19 ]
    df = 39.338 / 1.4101 = 27.8975
  7. 7

    Find the p-value

    Use the t distribution with the Welch–Satterthwaite df = 27.8975. The df need not be a whole number; rounding it down (to 27) gives a slightly more conservative test.

    p = 2 × P(t ≥ |1.717|) = 0.0971
  8. 8

    Find the critical value

    Critical value: ±2.0487
    Reject H₀ if |t| ≥ 2.0487
  9. 9

    Decision: fail to reject H₀

    At the 5% level there is not enough evidence that the two population means differ.

    p = 0.0971 > α = 0.05
  10. 10

    Effect size and confidence interval

    d = (x̄₁ − x̄₂) / √[(s₁² + s₂²)/2] = 4.3 / 7.5392 = 0.5703
    95% CI for μ₁ − μ₂ = 4.3 ± 2.0487 × 2.5044 = (-0.8309, 9.4309)

What is a Welch’s t-Test Calculator?

Welch’s t-test (also called the Welch test or the unequal-variances t-test) compares the means of two independent groups without assuming they share a variance. It divides x̄₁ − x̄₂ by √(s₁²/n₁ + s₂²/n₂) and judges the result against a t distribution whose degrees of freedom come from the Welch–Satterthwaite formula, usually a non-integer. If p ≤ α, the two population means differ.

What the Welch’s t-Test Calculator does

This Welch’s t-test calculator runs the test from summary statistics or raw data. It shows each group’s variance of the mean, the standard error, the t statistic, the Welch–Satterthwaite degrees of freedom with the full formula, the p-value, the critical value, a 95% confidence interval for μ₁ − μ₂ and Cohen’s d. It also reports the pooled t-test p-value so you can see whether the equal-variance assumption would have changed the answer.

Welch’s test is the default two-sample t-test in R, where the output is headed “Welch Two Sample t-test”, and it is recommended by many statisticians for routine use: when the variances really are equal it loses almost nothing, and when they are not it keeps the false-positive rate close to α. It matters most when the group sizes differ and the smaller group has the larger spread.

How to use the Welch’s t-Test Calculator

  1. Choose the alternative hypothesis for μ₁ − μ₂: two-tailed (≠) unless you predicted a direction before seeing the data, otherwise left (<) or right (>).
  2. Set the significance level α, usually 0.05.
  3. Enter each group’s mean, standard deviation and size under Summary statistics, or switch to Raw data and paste both samples (commas, spaces or one value per line). The groups can have different sizes.
  4. Read t, the Welch df and the p-value, then the decision. The step-by-step solution shows how the df formula combines the two variances, ready to copy into an assignment.

What is Welch’s t-test?

Welch’s t-test is a two-sample t-test for independent groups that drops the equal-variance assumption of Student’s pooled t-test. Instead of pooling the two sample variances into one estimate, it keeps s₁²/n₁ and s₂²/n₂ separate in the standard error, and it replaces the usual n₁ + n₂ − 2 degrees of freedom with an approximation that shrinks when one group is small and noisy.

The test is named after B. L. Welch, who published it in Biometrika in 1947; the degrees-of-freedom approximation it uses was set out by F. E. Satterthwaite in 1946, which is why it is called the Welch–Satterthwaite df. You will also see it written as the Welch t-test, Welch’s test, the Welch two sample t-test or, in SPSS output, the “equal variances not assumed” row (and occasionally misspelled as the Welsh or Welches t-test).

The null hypothesis is H₀: μ₁ = μ₂. The test needs two independent random samples from populations that are roughly normal; it does not need equal variances or equal sample sizes.

How to interpret Welch’s t-test results

To report it, give the test, t, the fractional df, p and the interval, for example: “Welch’s t-test, t(13.67) = 2.65, p = .019, mean difference 4.58, 95% CI [0.87, 8.30].”

  • p-value: if p ≤ α, reject H₀ and conclude the population means differ (or differ in the direction you chose). If p > α, the data do not show a difference; that is not proof the means are equal.
  • t statistic: the gap between the sample means in standard-error units. Its sign tells you which group is higher: positive means x̄₁ > x̄₂.
  • Welch df: always between min(n₁, n₂) − 1 and n₁ + n₂ − 2. A df close to the lower end means one group’s variance dominates the standard error, so that group’s size matters most.
  • 95% confidence interval for μ₁ − μ₂: the plausible size of the difference. If it excludes 0 the two-tailed test is significant at α = 0.05; its width shows how precise the estimate is.
  • Cohen’s d: the difference in standard-deviation units (about 0.2 small, 0.5 medium, 0.8 large). A significant p with a tiny d is a real but probably unimportant difference.
  • Pooled t-test p: shown for comparison. If the two p-values lead to different decisions, the unequal variances matter and Welch’s answer is the one to report.

How to calculate Welch’s t-test by hand

  1. Find each sample’s mean x̄, standard deviation s and size n.
  2. Divide each variance by its sample size: s₁²/n₁ and s₂²/n₂.
  3. Add the two and take the square root to get the standard error.
  4. Divide the difference in means, x̄₁ − x̄₂, by the standard error to get t.
  5. Plug the two variances of the mean into the Welch–Satterthwaite formula (shown in full below) to get df.
  6. Find the p-value from the t distribution with that df, using a P-Value from t Calculator because a printed t-table cannot handle fractional df, and compare it with α.

Welch’s t-test formula

Standard error
SE = √(s₁²/n₁ + s₂²/n₂)
Test statistic
t = (x̄₁ − x̄₂) / SE
Welch–Satterthwaite df
df = (s₁²/n₁ + s₂²/n₂)² / [ (s₁²/n₁)²/(n₁ − 1) + (s₂²/n₂)²/(n₂ − 1) ]
Confidence interval
(x̄₁ − x̄₂) ± t(α/2, df) · SE
Formula symbols
SymbolMeaning
x̄₁, x̄₂sample means
s₁, s₂sample standard deviations
n₁, n₂sample sizes
dfapproximate degrees of freedom, between min(n₁, n₂) − 1 and n₁ + n₂ − 2

This calculator uses the exact (fractional) df, as R and SciPy do. Some textbooks round df down to a whole number or use the conservative min(n₁ − 1, n₂ − 1); Excel’s Data Analysis ToolPak (“t-Test: Two-Sample Assuming Unequal Variances”) rounds it to a whole number. Those choices give slightly different p-values. You can check the df on its own with the Degrees of Freedom Calculator.

Worked example

Worked example: delivery times from two couriers

Problem. Courier A: n₁ = 12 deliveries, mean 31.4 min, s₁ = 4.2. Courier B: n₂ = 20, mean 27.1 min, s₂ = 9.8. Do the mean delivery times differ at α = 0.05?

  1. 01Variance of each mean: 4.2² / 12 = 1.47 and 9.8² / 20 = 4.802.
  2. 02SE = √(1.47 + 4.802) = √6.272 = 2.5044.
  3. 03t = (31.4 − 27.1) / 2.5044 = 1.7170.
  4. 04df = 6.272² / (1.47²/11 + 4.802²/19) = 39.3380 / 1.4101 = 27.8975.
  5. 05Two-tailed p-value = 2 · P(T ≥ 1.7170) ≈ 0.0971; critical value ±2.0487.

Answer. p ≈ 0.097 > 0.05, so fail to reject H₀. The 4.3-minute gap is not statistically significant; the 95% CI for the difference, (−0.8309, 9.4309), includes zero. The pooled t-test gives p ≈ 0.161 here: because the larger group has the larger spread, pooling overstates the standard error and makes the test too conservative.

Worked example 2: raw data with very different spreads

Two teaching methods are compared on a 40-point quiz. Method A (10 students): 34, 31, 33, 29, 32, 35, 30, 33, 31, 32. Method B (12 students): 22, 30, 27, 35, 19, 28, 25, 38, 24, 31, 21, 29. These are the calculator’s raw-data defaults, so switch to Raw data to follow along. Use α = 0.05, two-tailed.

  1. Summaries: x̄₁ = 32, s₁ = 1.8257, n₁ = 10; x̄₂ = 27.4167, s₂ = 5.6481, n₂ = 12. Method B’s SD is about three times Method A’s.
  2. Variance of each mean: 1.8257² / 10 = 0.3333 and 5.6481² / 12 = 2.6585.
  3. SE = √(0.3333 + 2.6585) = √2.9918 = 1.7297.
  4. t = (32 − 27.4167) / 1.7297 = 2.6498.
  5. df = 2.9918² / (0.3333²/9 + 2.6585²/11) = 13.6688, far below the pooled df of 20 because almost all the uncertainty comes from Method B.
  6. Two-tailed p = 0.0193 < 0.05, critical value ±2.1497, so reject H₀. 95% CI for μ₁ − μ₂: (0.8651, 8.3016); Cohen’s d ≈ 1.09.

Welch’s t-test vs Student’s t-test

Yes, Welch’s t-test is a two-sample t-test: both versions compare two independent means with a t statistic. They differ only in how they estimate the standard error and the degrees of freedom.

Welch’s and Student’s (pooled) two-sample t-tests compared
Welch’s t-testStudent’s pooled t-test
Equal variances assumed?NoYes
Standard error√(s₁²/n₁ + s₂²/n₂)sₚ·√(1/n₁ + 1/n₂)
Degrees of freedomWelch–Satterthwaite, usually fractionaln₁ + n₂ − 2
When variances and sizes are unequalError rate stays close to αToo many false positives if the smaller group has the larger variance; too few if it has the smaller
When variances are equalAlmost identical to pooledExact
Rt.test(x, y) (the default)t.test(x, y, var.equal = TRUE)
ExcelT.TEST(r1, r2, 2, 3)T.TEST(r1, r2, 2, 2)
Python (SciPy)ttest_ind(x, y, equal_var=False)ttest_ind(x, y)

Common use cases

  • Comparing two groups whose spreads clearly differ, such as a stable process versus an unstable one.
  • Experiments with unequal group sizes, where unequal variances distort the pooled test most.
  • A/B tests on continuous metrics (revenue per user, session length) where variances are rarely equal.
  • Clinical and psychology studies comparing a treatment group with a control group, where many journals now expect Welch’s test by default.
  • Any two-independent-sample comparison when you would rather not test variances first.

Assumptions and limitations

  • Independence: the two samples must contain different, unrelated subjects. Matched or repeated measurements need the Paired t-Test Calculator.
  • Normality: each population should be roughly normal for small samples; with 30+ per group the test tolerates moderate skew. For heavily skewed small samples consider a rank-based test such as Mann–Whitney, and check normality with the Shapiro–Wilk test.
  • Testing variances first with an F-test or Levene’s test and then choosing between pooled and Welch is not recommended; the two-stage procedure distorts error rates. Using Welch from the start avoids the problem.
  • With equal variances and equal sizes Welch and the pooled t-test give nearly identical answers, so little is lost by defaulting to Welch.
  • For three or more groups with unequal variances, use Welch’s ANOVA rather than running several Welch t-tests, which inflates the overall error rate. The ANOVA Calculator covers the standard one-way case.

Frequently asked questions

When should I use Welch’s t-test instead of Student’s t-test?

Use Welch’s t-test whenever you cannot be confident the two population variances are equal, especially when sample sizes differ. Many statisticians now use it by default, because it controls the error rate under unequal variances and performs almost identically to the pooled test when variances are equal.

Is Welch’s t-test a two-sample t-test?

Yes. Welch’s t-test is the unequal-variances version of the two-sample (independent samples) t-test. R labels it “Welch Two Sample t-test”, and SPSS reports it on the “equal variances not assumed” row of the independent-samples t-test output.

How do you calculate Welch’s t-test?

Compute the standard error SE = √(s₁²/n₁ + s₂²/n₂), then t = (x̄₁ − x̄₂) / SE. Find the degrees of freedom with the Welch–Satterthwaite formula, df = (s₁²/n₁ + s₂²/n₂)² / [(s₁²/n₁)²/(n₁ − 1) + (s₂²/n₂)²/(n₂ − 1)], and read the p-value from the t distribution with that df.

Why are the degrees of freedom not a whole number?

The Welch–Satterthwaite formula approximates the distribution of the t statistic by matching moments, which generally gives a fractional value. The t distribution is defined for any positive df, so software uses the decimal directly. Rounding down is an older hand-calculation convention that makes the test slightly conservative.

Is Welch’s t-test the same as an unpaired t-test?

Both are unpaired, meaning they compare independent groups. “Unpaired t-test” sometimes refers to the pooled Student version, so check which variance assumption a source means. Welch’s version is the unequal-variances unpaired test.

What effect size should I report with Welch’s t-test?

A common choice is Cohen’s d using the average of the two variances, d = (x̄₁ − x̄₂) / √[(s₁² + s₂²)/2], which this calculator reports. Alternatives include Glass’s Δ (divide by the control group’s SD) when one group is a natural reference. Always state which version you used.

Is it Welch ANOVA or Welch’s ANOVA?

Both names are used for the same test, named after B. L. Welch. Welch’s ANOVA extends Welch’s t-test to three or more groups with unequal variances; with exactly two groups it gives the same p-value as Welch’s t-test (F = t²).

How do I calculate Welch’s t-test in Excel or R?

In R, t.test(x, y) runs Welch’s test by default; add var.equal = TRUE only if you want the pooled version. In Excel, T.TEST(range1, range2, 2, 3) returns the two-tailed Welch p-value, where the final 3 selects the unequal-variance test. In Python, use scipy.stats.ttest_ind(x, y, equal_var=False).

Cite this page

Statculator. (2026, November 14). Welch’s t-Test Calculator. Retrieved November 14, 2026, from https://statculator.com/hypothesis-tests/welchs-t-test-calculator/