Skip to main content
Stats for Scholars
Concepts Decision Tree Reporting Calculators Blog Software Cheat Sheets
Concepts Decision Tree Reporting Calculators Blog Software Cheat Sheets
Home Concepts Independent Samples t-Test

Descriptive Statistics

  • Descriptive Statistics

Inferential Statistics

  • Chi-Square Test of Independence
  • Independent Samples t-Test
  • One-Way ANOVA
  • Paired Samples t-Test
  • Pearson Correlation
  • Simple Linear Regression

Effect Size & Power

  • Effect Size
  • Sample Size Determination
  • Statistical Power & Power Analysis

Reliability & Validity

  • Cronbach's Alpha
  • Inter-Rater Reliability

Independent Samples t-Test

beginner Inferential Statistics

Independent Samples t-Test

Purpose
Compares the means of two independent (unrelated) groups to determine if there is a statistically significant difference between them.
When to Use
When you have one continuous dependent variable and one categorical independent variable with exactly two independent groups.
Data Type
Continuous (interval or ratio) dependent variable; binary categorical independent variable
Key Assumptions
Independence of observations, approximately normal distribution in each group (or large samples), homogeneity of variances (equal variances across groups).
Tools
Effect Size Calculator on Subthesis →

What Is the Independent Samples t-Test?

The independent samples t-test (also called the two-sample t-test or Student's t-test) compares the means of two separate groups to determine whether the difference between them is statistically significant. The groups must be independent — meaning the participants in one group are completely different people from those in the other group.

This is one of the most commonly used statistical tests in the social and behavioral sciences. Any time you randomly assign participants to two conditions (treatment vs. control, method A vs. method B), the independent t-test is your go-to analysis.

When to Use It

Use an independent samples t-test when:

  • You have one continuous dependent variable (e.g., test scores, reaction time, blood pressure)
  • You have one categorical independent variable with exactly two groups (e.g., treatment vs. control)
  • The two groups contain different participants (not the same people measured twice — that's a paired t-test)

Examples:

  • Comparing exam scores between students who used a study app vs. those who didn't
  • Comparing anxiety levels between a therapy group and a waitlist control group
  • Comparing salary between two departments

If you have three or more groups, use a one-way ANOVA instead.

Assumptions

The independent samples t-test requires four assumptions:

  1. Independence of observations. Each participant's score is unrelated to every other participant's score. Violated if participants are clustered (e.g., students within classrooms).

  2. Continuous dependent variable. The outcome must be measured on an interval or ratio scale.

  3. Approximate normality. The dependent variable should be approximately normally distributed within each group. With sample sizes above 30 per group, the t-test is robust to moderate violations due to the Central Limit Theorem.

  4. Homogeneity of variances. The variability in each group should be roughly equal. Test this with Levene's test. If variances are unequal, use Welch's t-test instead (most software offers this as an option).

Formula

Student's t-test (equal variances assumed)

t=Xˉ1−Xˉ2sp2n1+sp2n2t = \frac{\bar{X}_1 - \bar{X}_2}{\sqrt{\frac{s_p^2}{n_1} + \frac{s_p^2}{n_2}}} t=n1​sp2​​+n2​sp2​​​Xˉ1​−Xˉ2​​

Where the pooled variance is:

sp2=(n1−1)s12+(n2−1)s22n1+n2−2s_p^2 = \frac{(n_1 - 1)s_1^2 + (n_2 - 1)s_2^2}{n_1 + n_2 - 2} sp2​=n1​+n2​−2(n1​−1)s12​+(n2​−1)s22​​

Degrees of freedom:

df=n1+n2−2df = n_1 + n_2 - 2 df=n1​+n2​−2

Welch's t-test (equal variances NOT assumed)

t=Xˉ1−Xˉ2s12n1+s22n2t = \frac{\bar{X}_1 - \bar{X}_2}{\sqrt{\frac{s_1^2}{n_1} + \frac{s_2^2}{n_2}}} t=n1​s12​​+n2​s22​​​Xˉ1​−Xˉ2​​

Degrees of freedom (Welch-Satterthwaite approximation):

df=(s12n1+s22n2)2(s12n1)2n1−1+(s22n2)2n2−1df = \frac{\left(\frac{s_1^2}{n_1} + \frac{s_2^2}{n_2}\right)^2}{\frac{\left(\frac{s_1^2}{n_1}\right)^2}{n_1 - 1} + \frac{\left(\frac{s_2^2}{n_2}\right)^2}{n_2 - 1}} df=n1​−1(n1​s12​​)2​+n2​−1(n2​s22​​)2​(n1​s12​​+n2​s22​​)2​

Tip: Many statisticians recommend always using Welch's t-test. It performs as well as Student's t when variances are equal, and much better when they are not.

Worked Example

Scenario: A sports psychologist investigates whether visualization training improves free-throw accuracy in basketball players. She randomly assigns 20 players to a visualization group and 20 to a control group. After 4 weeks, she measures their free-throw accuracy (percentage made out of 50 attempts).

Visualization Group Control Group
nnn 20 20
Xˉ\bar{X}Xˉ 74.5 68.0
sss 8.2 9.1

Step 1: State the hypotheses.

  • H0H_0H0​: μ1=μ2\mu_1 = \mu_2μ1​=μ2​ (no difference in free-throw accuracy)
  • H1H_1H1​: μ1≠μ2\mu_1 \neq \mu_2μ1​=μ2​ (there is a difference)

Step 2: Calculate the pooled variance.

sp2=(20−1)(8.2)2+(20−1)(9.1)220+20−2=19(67.24)+19(82.81)38s_p^2 = \frac{(20 - 1)(8.2)^2 + (20 - 1)(9.1)^2}{20 + 20 - 2} = \frac{19(67.24) + 19(82.81)}{38} sp2​=20+20−2(20−1)(8.2)2+(20−1)(9.1)2​=3819(67.24)+19(82.81)​

sp2=1277.56+1573.3938=2850.9538=75.03s_p^2 = \frac{1277.56 + 1573.39}{38} = \frac{2850.95}{38} = 75.03 sp2​=381277.56+1573.39​=382850.95​=75.03

Step 3: Calculate the t-statistic.

t=74.5−68.075.0320+75.0320=6.53.75+3.75=6.57.50=6.52.74=2.37t = \frac{74.5 - 68.0}{\sqrt{\frac{75.03}{20} + \frac{75.03}{20}}} = \frac{6.5}{\sqrt{3.75 + 3.75}} = \frac{6.5}{\sqrt{7.50}} = \frac{6.5}{2.74} = 2.37 t=2075.03​+2075.03​​74.5−68.0​=3.75+3.75​6.5​=7.50​6.5​=2.746.5​=2.37

Step 4: Determine degrees of freedom and find the p-value.

df=20+20−2=38df = 20 + 20 - 2 = 38 df=20+20−2=38

Looking up t=2.37t = 2.37t=2.37 with df=38df = 38df=38 in a t-table (two-tailed): p≈.023p \approx .023p≈.023.

Step 5: Calculate the effect size (Cohen's d).

d=Xˉ1−Xˉ2sp=74.5−68.075.03=6.58.66=0.75d = \frac{\bar{X}_1 - \bar{X}_2}{s_p} = \frac{74.5 - 68.0}{\sqrt{75.03}} = \frac{6.5}{8.66} = 0.75 d=sp​Xˉ1​−Xˉ2​​=75.03​74.5−68.0​=8.666.5​=0.75

Interpretation

Since p=.023<.05p = .023 < .05p=.023<.05, we reject the null hypothesis. There is a statistically significant difference in free-throw accuracy between the visualization group (M=74.5M = 74.5M=74.5, SD=8.2SD = 8.2SD=8.2) and the control group (M=68.0M = 68.0M=68.0, SD=9.1SD = 9.1SD=9.1).

The effect size of d=0.75d = 0.75d=0.75 indicates a medium-to-large effect. Players who practiced visualization scored about three-quarters of a standard deviation higher in free-throw accuracy than those who did not.

What to consider:

  • A significant result means the difference is unlikely due to chance alone — it does not tell you the difference is large or practically important. That's what the effect size is for.
  • Always examine the confidence interval for the mean difference to understand the plausible range: 6.5±2.02×2.74=[0.97,12.03]6.5 \pm 2.02 \times 2.74 = [0.97, 12.03]6.5±2.02×2.74=[0.97,12.03].
  • The 95% CI does not include zero, consistent with the significant p-value.

Common Mistakes

  1. Using an independent t-test when the data are paired. If the same participants are measured before and after an intervention, use a paired t-test. Using the wrong test inflates the standard error and reduces power.

  2. Ignoring the equal variances assumption. If Levene's test is significant (p<.05p < .05p<.05), the variances are unequal. Report Welch's t-test instead of Student's t-test.

  3. Not checking normality. Examine histograms or Q-Q plots for each group. With n<30n < 30n<30 per group, severe skewness or outliers can invalidate results. Consider the Mann-Whitney U test as a non-parametric alternative.

  4. Reporting only the p-value. Always report the means, standard deviations, t-statistic, degrees of freedom, p-value, and effect size. A complete result tells the whole story.

  5. Conducting multiple t-tests instead of ANOVA. If you have three or more groups, do not run all pairwise t-tests — this inflates the family-wise error rate. Use a one-way ANOVA with post-hoc tests.

  6. Confusing statistical significance with practical significance. With a large sample, even tiny differences can be statistically significant. Always evaluate the effect size and confidence interval.

How to Report in APA Format

An independent samples t-test was conducted to compare free-throw accuracy between the visualization training group and the control group. There was a significant difference in scores for the visualization group (MMM = 74.5, SDSDSD = 8.2) and the control group (MMM = 68.0, SDSDSD = 9.1), ttt(38) = 2.37, ppp = .023, ddd = 0.75, 95% CI [0.97, 12.03]. These results suggest that visualization training has a meaningful positive effect on free-throw performance.

If Welch's correction was used:

A Welch's independent samples t-test indicated that the visualization group (MMM = 74.5, SDSDSD = 8.2) scored significantly higher than the control group (MMM = 68.0, SDSDSD = 9.1), ttt(37.46) = 2.37, ppp = .023, ddd = 0.75.

Ready to calculate?

Now that you understand the concept, use the free Effect Size Calculator on Subthesis to run your own analysis.

Calculate Effect Size for Your t-Test on Subthesis

Related Concepts

Paired Samples t-Test

Learn how to conduct a paired samples t-test for pre/post designs and repeated measures, with formulas, worked examples, and APA reporting format.

Effect Size

Learn what effect size is, why it matters more than p-values alone, and how to calculate and interpret Cohen's d, Hedges' g, and eta-squared for your research.

One-Way ANOVA

Learn how to conduct a one-way ANOVA to compare three or more group means, including F-ratio formulas, post-hoc tests, and effect size with eta-squared.

Statistical Power & Power Analysis

Learn what statistical power is, why 80% is the standard threshold, and how to conduct a power analysis to determine if your study can detect real effects.

Stats for Scholars

Statistics for Researchers, Not Statisticians

A Subthesis Resource

Learn

  • Statistical Concepts
  • Choose a Test
  • APA Reporting
  • Blog

Resources

  • Calculators
  • Cheat Sheets
  • About
  • FAQ
  • Privacy
  • Terms

© 2026 Angel Reyes / Subthesis. All rights reserved.

Privacy Policy Terms of Use