Skip to main content
Calkulon

How to Calculate Two-Sample t-Test

What is Two-Sample t-Test?

The t-test determines whether the means of two groups are statistically different. The independent (two-sample) t-test compares two separate groups; the paired t-test compares the same subjects under two conditions. Developed by William Gosset ('Student') at Guinness Brewery.

Step-by-Step Guide

  1. 1t = (x̄₁ − x̄₂) / √(s₁²/n₁ + s₂²/n₂)
  2. 2x̄ = group mean · s² = variance · n = sample size
  3. 3df calculated by Welch-Satterthwaite equation
  4. 4Compare t-statistic to t-distribution at given df and α

Worked Examples

Input
Group 1: mean=10, SD=2, n=20 · Group 2: mean=8, SD=2.5, n=20
Result
t = 2.94 · p ≈ 0.005 → significant
Reject null hypothesis at p<0.05

Ready to calculate? Try the free Two-Sample t-Test Calculator

Try it yourself →

Settings

PrivacyTermsAbout© 2026 Calkulon