T-Test Calculator
Calculate one-sample, two-sample, or paired t-test statistic and interpret results. Find t-statistic, degrees of freedom, and whether the difference is statistically significant.
Formula & Reference
| Variable | Symbol | Formula | Units |
|---|---|---|---|
| T-Test Calculator | — | t = (x̄ - μ) / (s / √n) | dimensionless |
Step-by-Step Examples
Class mean = 75, expected mean = 72, s = 12, n = 36. Is the class performing differently?
- SE = 12/sqrt(36) = 12/6 = 2.0
- t = (75-72)/2.0 = 1.5
- df = 36-1 = 35
- Critical t ≈ 2.03 (df=35, α=0.05, two-tailed)
- |t| = 1.5 < 2.03: not significant
Before: mean=120, After: mean=112, s(diff)=15, n=30 patients (paired test).
- Mean difference = 120-112 = 8
- t = 8/(15/sqrt(30)) = 8/2.739 = 2.92
- df = 29, critical t ≈ 2.045
- 2.92 > 2.045: significant at α=0.05
- Drug significantly reduced blood pressure
Machine A: mean=10.2, s=0.3. Machine B: mean=10.5, s=0.4. n=20 each. Are they different?
- SE_pooled = sqrt((0.09+0.16)/2) × sqrt(2/20) = 0.112
- t = (10.5-10.2)/0.112 = 2.68
- df = 38, critical t ≈ 2.024
- Significant difference between machines
Real-World Applications
Common Mistakes to Avoid
With n < 5, even the t-test is unreliable. Consider non-parametric tests like Wilcoxon signed-rank test.
Two-sample t-test assumes equal population variances (or use Welch's t-test correction). Test with Levene's or F-test first.
Paired t-test is more powerful for before/after designs. Using two-sample test when data is paired wastes statistical power.
Frequently Asked Questions
Related Math Calculators
Formula Explorer connections
Interpretation: This formula summarizes data, models uncertainty or supports inference about a population or random process. Assumption: The sampling design and distribution assumptions must match the data. Independence, sample size, outliers and measurement quality can materially affect interpretation.