t-test calculator

Check whether the average of a metric differs between two independent groups. The calculator uses Welch's t-test, which does not assume equal variances.

Welch's t-test — a statistical test for comparing the means of two independent groups whose variances may differ.

Calculation FAQ

Group values

Numbers separated by commas or new lines

Numbers separated by commas or new lines

t-statistic
—
Result
Welch's t-test

Interpretation

Change the inputs to recalculate.

In SurveyNinja, NPS, CSAT and more are calculated automatically. Create a survey in 5 minutes and get real-time analytics.

Start free

Data is not stored — calculation runs in your browser.

How Welch's t-test is calculated

Formula

t = (meanA − meanB) / sqrt(sdA²/nA + sdB²/nB). Degrees of freedom follow the Welch–Satterthwaite formula.

Means

The test compares the difference in means with the spread inside the groups.

Welch

Works when group sizes and variances differ. It is the safer default.

p-value

Shows how compatible the observed difference is with the hypothesis that the means are equal.

Calculation examples

1 Interface A/B rating

A: 7, 8, 8, 6, 9
B: 8, 9, 9, 7, 10
If the p-value is below 0.05, the difference in means can be considered statistically significant.

2 Task completion time

Old version: 55, 60, 52
New version: 43, 47, 41
The test shows whether there is enough data to conclude that the new version is faster.

What to avoid

  1. Using it for paired measurements If the same people went through both conditions, you need a paired t-test, not an independent Welch's t-test.
  2. Ignoring the shape of the distribution With very small samples and strong outliers, the result can be unstable.
  3. Confusing significance with effect The p-value does not show how much the difference matters for the business. Look at the effect size too.

Frequently asked questions

Automate your metrics

In SurveyNinja, NPS, CSAT and more are calculated automatically. Create a survey in 5 minutes and get real-time analytics.

Start free