Statistical analysis

T-test calculator

Paste the values of two independent groups. You get Welch's t-statistic, the degrees of freedom, the p-value and the mean of each group.

  • Checked against reference values
  • Free, no sign-up
  • Nothing leaves your browser

Group values

Numbers separated by commas or new lines

Numbers separated by commas or new lines

t-statistic
—
Result
Welch's t-test

Interpretation

Collect real answers in a SurveyNinja survey and see them in charts in the report.

Use this template See the questions first

Data is not stored — calculation runs in your browser.

Ready-made template

Do it with your own respondents

The “Likert scale survey” template already has the questions. Put in your company name, share the link and watch the answers come in.

  1. Copy the template: the questions are written
  2. Share it by link, QR code or a widget on your site
  3. Read the results in the report with charts

New accounts get 14 days of Premium features, no credit card.

What is Welch's t-test?

Welch's t-test checks whether the means of two independent groups differ more than chance would explain, without assuming equal variances. t = (meanA − meanB) / √(sA²/nA + sB²/nB), with degrees of freedom from the Welch–Satterthwaite formula, and the p-value comes from the t distribution. B. L. Welch published the method in 1947.

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

    Mean A 7.6, mean B 8.6: t = −1.387 with 8.0 degrees of freedom and p ≈ 0.203. With five answers per group, the one-point gap is not significant at 0.05.

  2. Task completion time

    • Old version: 55, 60, 52
    • New version: 43, 47, 41

    Means 55.67 and 43.67: t = 4.103, df ≈ 3.7, p ≈ 0.017. Significant at 0.05 even with three values per group, because the spread inside each group is small.

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.

The SurveyNinja ninja with survey templates

Next step

Collect the data for this analysis

Build the survey in SurveyNinja, share the link in your email or chat, or as a QR code, and export the answers to Excel, CSV or SPSS on every plan.

  • Ready questions or AI from a description
  • A link for your email or chat, a QR code or a widget on your site
  • Charts in the report, export to Excel, CSV and SPSS

Frequently asked questions

Why Welch's t-test?

It is more robust than the classic Student's t-test because it does not require equal variances or equal group sizes.

What does the p-value mean?

The probability of seeing a difference this large or larger if the means were actually equal.

Can I use it for a 1–5 scale?

In practice people do, when they treat the scale as interval. For rigorous analysis, add a non-parametric test.

How many observations do I need?

The smaller the effect and the larger the spread, the bigger the sample must be. With very small groups, draw conclusions carefully.

What if the p-value is above 0.05?

It does not prove there is no effect. The effect may be small or the sample too small; check the power and the effect size.

Learn the method

Read how the method works and where its numbers come from.

The SurveyNinja ninja takes off on a rocket

Turn the numbers into a survey

Start from the “Likert scale survey” template: the questions are ready.