Black FridayUp to 50% off--d--h--m--sSee prices →
tezkeys

Independent-Samples t Test Calculator

Calculate an independent-samples t test without raw data, from just the two groups’ mean, standard deviation and number of participants. The result comes in APA format, for both Student’s and Welch’s test.

  • Free · no sign-up
  • The calculation runs in your browser; the values you enter are not sent to the server.
Group 1
Group 2
Decimal separator

How is it calculated?

Student’s t test

When the two groups’ variances are assumed equal, the classic (Student’s) t test is used: t = (M₁ − M₂) / (sₚ · √(1/n₁ + 1/n₂)), where sₚ is the pooled standard deviation: sₚ² = ((n₁ − 1)s₁² + (n₂ − 1)s₂²) / (n₁ + n₂ − 2). The degrees of freedom are n₁ + n₂ − 2.

Example: with n = 10 and a standard deviation of 3 in both groups and means of 20 and 22, t = −2 / (3 · √0.2) = −1.49, with 18 degrees of freedom and p = .153.

Welch’s t test

If the variances are not equal, Welch’s test is used: t = (M₁ − M₂) / √(s₁²/n₁ + s₂²/n₂). The degrees of freedom come from the Welch-Satterthwaite formula and are usually fractional: df = (s₁²/n₁ + s₂²/n₂)² / ((s₁²/n₁)² / (n₁ − 1) + (s₂²/n₂)² / (n₂ − 1)).

In SPSS output the “Equal variances assumed” row is Student’s result and “Equal variances not assumed” is Welch’s. Which one to report is usually decided from Levene’s test; when group sizes and variances differ a lot, Welch is the safer choice.

Confidence interval and effect size

The 95% confidence interval of the difference is difference ± t(critical) · SE; if it does not include 0, the difference is significant at the .05 level. Cohen’s d is given as the effect size: d = (M₁ − M₂) / sₚ. By Cohen (1988), 0.20 is a small, 0.50 a medium and 0.80 a large effect. p-values are two-tailed.

How to report it

In APA format the t value is written with its degrees of freedom, the exact p and the effect size: t(18) = −1.49, p = .153, d = −0.67. Give the groups’ means and standard deviations in a table or in the text as well.

You can also use this calculator to check a result in a published table or to verify your own SPSS output: because values are entered rounded, small differences in the third decimal are normal.

Frequently asked questions

Should I report Student’s or Welch’s test?
Report Student’s result if Levene’s test is not significant (equal variances) and Welch’s if it is. Some authors recommend using Welch’s test directly without a preliminary test; follow your supervisor’s expectation and say which one you used.
Can I use it for the same people’s pre-test and post-test scores?
No. This calculation is for two independent groups. Two measurements of the same people need a paired-samples t test, which requires the standard deviation of the differences and cannot be calculated from two means and two standard deviations alone.
Why is the result slightly different from SPSS?
Because you entered rounded means and standard deviations. SPSS calculates from the raw data with unrounded values; the difference is usually in the second or third decimal.

Other free calculators