Two Sample T Test Calculator
Use this two sample t test calculator to compare two independent population means under the equal-variance assumption and find the t statistic, p-value, and critical values.
Sample 1
Sample 2
How to Use the Two Sample T Test Calculator
The Two Sample T Test (also known as an independent samples t-test) is used to compare the means of two independent groups to determine if they are statistically significantly different from one another.
- Select the Alternative Hypothesis (H₁) based on the direction of your test (Two-tailed, Left-tailed, Right-tailed).
- Set your Significance Level (α) (usually 0.05).
- Enter the Hypothesized Difference (μ₁ - μ₂). This is almost always 0.
- Choose Summary Data or Raw Data. For summary data, enter the sample mean, standard deviation, and sample size for both groups.
- Click Calculate to compute the t-statistic, p-value, and see a step-by-step solution.
What is a Two Sample T Test?
A two-sample t-test is a statistical hypothesis test used to check whether the unknown population means of two groups are equal or not. It helps answer questions like "Do male and female students score differently on this exam?" or "Is the new drug more effective than the standard drug?"
Two Sample T-Test Formula (Equal Variances)
This calculator assumes that the two populations have equal variances (Homoscedasticity). Because of this assumption, it computes a "pooled standard deviation" that acts as a weighted average of the standard deviations from both samples.
Pooled Standard Deviation (sₚ)
Standard Error (SE)
Test Statistic (t)
Assumptions for the Two Sample T Test
- Independence: The two samples must be independent of each other (different subjects in each group).
- Normality: The data in both populations should be normally distributed. This is particularly important for small sample sizes.
- Equal Variances: The population variances of both groups must be equal. If they are unequal, you should use Welch's T-Test instead.