FireCADCalc

Two-Sample t-Test (Welch) from Summary Statistics

Welch's t statistic, degrees of freedom and two-sided p-value for the difference between two means from their sample means, standard deviations and sizes.

Inputs

Examples: Illustrative two samplesLarge samples, small differenceUnequal variances, small n

Accepted: -1E+12 to 1E+12
Accepted: 1E-12 to 1E+12
Accepted: 2 to 10,000,000
Accepted: -1E+12 to 1E+12
Accepted: 1E-12 to 1E+12
Accepted: 2 to 10,000,000
Accepted: 0.1 to 50 %

Results

Welch's test does not assume equal variances: t = (x̄₁ − x̄₂)/√(s₁²/n₁ + s₂²/n₂) with ν = (s₁²/n₁ + s₂²/n₂)²/[(s₁²/n₁)²/(n₁ − 1) + (s₂²/n₂)²/(n₂ − 1)] degrees of freedom; p is two-sided from Student's t. A small p says the means very probably differ; it says nothing about whether the difference matters in practice, so report the difference too. Samples must be independent and roughly normal (or large).

Difference of means-1.9000
Welch t statistic-1.6479
Welch–Satterthwaite degrees of freedom7.2236
Two-sided p-value0.14204
Significant difference (1 = yes)0

Download PDF CSV Link to this result Compare another case

Log in to save calculations to your dashboard.

Worked example

Example: Illustrative two samples. The inputs, in the units selected above:

InputValue
Mean of sample 152.300 -
Standard deviation of sample 14.1000 -
Size of sample 112.000 -
Mean of sample 248.900 -
Standard deviation of sample 25.3000 -
Size of sample 215.000 -
Significance level5.0000 %

Applying the formula below gives:

ResultValue
Difference of means3.4000
Welch t statistic1.8792
Welch–Satterthwaite degrees of freedom24.985
Two-sided p-value0.071931
Significant difference (1 = yes)0

Open this example in the calculator and change any input.

Formula

\(t = \frac{\bar x_1 - \bar x_2}{\sqrt{s_1^2/n_1 + s_2^2/n_2}}, \quad \nu = \frac{(s_1^2/n_1 + s_2^2/n_2)^2}{\frac{(s_1^2/n_1)^2}{n_1 - 1} + \frac{(s_2^2/n_2)^2}{n_2 - 1}}\)

Variables

Symbol Meaning SI unit
\(\bar x_1\) Mean of sample 1 -
\(s_1\) Standard deviation of sample 1 -
\(n_1\) Size of sample 1 -
\(\bar x_2\) Mean of sample 2 -
\(s_2\) Standard deviation of sample 2 -
\(n_2\) Size of sample 2 -
\(\alpha\) Significance level -
\(\bar x_1 - \bar x_2\) Difference of means -
\(t\) Welch t statistic -
\(\nu\) Welch–Satterthwaite degrees of freedom -
\(p\) Two-sided p-value -
\(p < \alpha\) Significant difference (1 = yes) -

Method and standards

t-test.

Where it is used

  • Comparing process changes, suppliers or materials.
  • Laboratory and trial results.

Common mistakes

  • Paired data analysed as independent.
  • Equating significance with importance.

Assumptions and limits

  • Independent samples; approximately normal data.

References

  • Welch's unequal-variance t test

Questions and answers

Why Welch instead of the pooled t-test?

It stays valid when the two variances differ and loses little when they are equal.

Does significant mean important?

No: with large samples tiny, irrelevant differences become significant.

What do the defaults represent?

Two illustrative samples: 52.3 ± 4.1 (n = 12) and 48.9 ± 5.3 (n = 15), tested at 5 %.

Method and article reviewed by FireCAD engineering on 17 November 2026. Every result is checked against an independent calculation on each release: how we verify our calculators.

Sources

Welch, The Generalization of Student's Problem when Several Different Population Variances are Involved, Biometrika 34 (1947), Montgomery and Runger, Applied Statistics and Probability for Engineers, 6th ed. (Wiley, 2014)

Related calculators

Free engineering calculators: every page computes in SI and converts to your units. Results are for engineering estimation; verify critical designs against the referenced standards.

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.