Skip to content
2x2xKit

T-Test Calculator

Run a two-sample t-test to compare the means of two groups.

How this is calculated
t = (mean1 − mean2) ÷ √(pooledVariance × (1/n1 + 1/n2))

Assumptions used in this calculation

  • Equal variance assumed: Uses pooled-variance Student's t-test; results may differ from Welch's t-test for groups with very different variances.

About this calculator

The t-test calculator runs a two-sample (independent, equal-variance) Student's t-test to compare the means of two groups, returning the t-statistic, degrees of freedom and p-value.

Worked example

mean1=50 vs mean2=45

Result: t=1.75, p=0.085 (not significant)

Was this helpful?

Frequently asked questions