DATA
T-TEST CALCULATOR
T-TEST CALCULATOR
DATA
METHOD
t = (M₁ − M₂) ÷ √(s₁²/n₁ + s₂²/n₂), df = (s₁²/n₁ + s₂²/n₂)² ÷ [ (s₁²/n₁)²/(n₁−1) + (s₂²/n₂)²/(n₂−1) ]Welch's version does not assume equal variances. Delacre, Lakens and Leys (2017) recommend it as the default because it performs as well as Student's t-test when variances are equal and much better when they are not. That is why the df is often a decimal, such as t(18.30).
sp = √{ [(n₁−1)s₁² + (n₂−1)s₂²] ÷ (n₁+n₂−2) }, t = (M₁ − M₂) ÷ (sp·√(1/n₁ + 1/n₂)), df = n₁+n₂−2This is the classic version SPSS shows in the "Equal variances assumed" row. Switch off Welch above to use it. The calculator also runs Levene's test (Brown-Forsythe, median-centred) so you can see whether the equal-variance assumption looks reasonable.
t = M_d ÷ (s_d ÷ √n), df = n − 1For a paired test, M_d and s_d are the mean and SD of the differences (after − before). For a one-sample test, M_d is the sample mean minus the test value μ₀. Cohen's d is M_d ÷ s_d (often written d_z for paired data).
“Students who used practice quizzes (M = 84.20, SD = 4.94) scored higher than students who did not (M = 75.82, SD = 4.49), t(18.30) = 4.05, p < .001, 95% CI [4.04, 12.72], d = 1.78.” Report means and SDs, t with df, the exact p value (p < .001 when very small), the confidence interval, and an effect size.
ABOUT THIS TOOL
Paste raw scores and get a complete t-test: group means and SDs, t, degrees of freedom, exact p value, confidence interval, Cohen's d, Levene's test, and a ready APA sentence.
KEY FUNCTIONS
LEARN THE METHOD
Get the effect size for any common test in seconds, from raw summary statistics or from a reported t, F, or z value, with benchmarks and APA wording.
Run the non-parametric alternative to the independent t-test for Likert items or skewed data, with exact p values for small samples and a ready-to-use write-up.
Check the normality assumption before a t-test or ANOVA, see the histogram and Q-Q plot, and get advice on what to do if normality is violated.