T-Test Calculator
Free t-test calculator. Run one-sample, two-sample (Student or Welch's), and paired t-tests. Get t-statistic, p-value, degrees of freedom, critical values, confidence interval, and Cohen's d effect size.
t = 1.9297
Test Statistics
H₀: μ₁ = μ₂ · H₁: μ₁ ≠ μ₂
Confidence Interval & Effect Size
95% CI for the mean difference
Critical t-Values (Two-Tailed)
Reference table for common df and α levels
| df | α = 0.10 | α = 0.05 | α = 0.02 | α = 0.01 |
|---|---|---|---|---|
| 5 | ±2.015 | ±2.571 | ±3.365 | ±4.032 |
| 10 | ±1.812 | ±2.228 | ±2.764 | ±3.169 |
| 15 | ±1.753 | ±2.131 | ±2.602 | ±2.947 |
| 20 | ±1.725 | ±2.086 | ±2.528 | ±2.845 |
| 25 | ±1.708 | ±2.060 | ±2.485 | ±2.787 |
| 30 | ±1.697 | ±2.042 | ±2.457 | ±2.750 |
| 40 | ±1.684 | ±2.021 | ±2.423 | ±2.704 |
| 60 | ±1.671 | ±2.000 | ±2.390 | ±2.660 |
| 120 | ±1.658 | ±1.980 | ±2.358 | ±2.617 |
| ∞ | ±1.645 | ±1.960 | ±2.326 | ±2.576 |
What Is a T-Test?
The Student's t-test for comparing means
A t-test is a statistical hypothesis test that compares means when the population standard deviation is unknown and must be estimated from the sample. It was developed by William Sealy Gosset (under the pen name “Student”) in 1908 while working at the Guinness Brewery, and is one of the most widely used tools in applied statistics.
The t-test tells you whether an observed difference between means is statistically significant — meaning it's unlikely to have arisen by random chance alone — or whether it's small enough that you should withhold judgment.
T-Test Formulas
One-sample, two-sample (Student & Welch's), and paired
A coffee roaster claims each bag weighs 340 g. A sample of n = 25 bags gives x̄ = 336 g with s = 6 g.
p < 0.05, so you'd reject H₀ and conclude the mean weight differs from 340 g.
How to Interpret the Results
t, p-value, critical value, confidence interval, and effect size
Statistical significance answers “is there a difference?” — effect size answers “how big is it?”. Cohen's d standardizes the mean difference by the standard deviation.
Assumptions & When to Use a T-Test
Conditions that must hold for results to be reliable
T-Test vs. Z-Test: When to Use Which
Choosing the right test for your data
| Criterion | T-Test | Z-Test |
|---|---|---|
| Population σ | Unknown — estimated from sample (s) | Known |
| Sample size | Any — especially n < 30 | Usually n ≥ 30 |
| Distribution | Student's t (heavier tails, df-dependent) | Standard normal |
| Critical value (95%, two-tailed) | 2.045 (df = 29) | 1.960 |
| Best default | Almost always the safer choice | Only when σ is truly known |
As n grows, the t-distribution converges to the standard normal: by df = 120 the 95% critical value is 1.980 vs 1.960. In practice, default to the t-test unless you have compelling reason to use a z-test.
Common Mistakes to Avoid
Pitfalls that invalidate your t-test results
Frequently Asked Questions
Common questions and detailed answers
Embed T-Test Calculator
Add this calculator to your website or blog for free.
You Might Also Like
Related calculators from other categories
Last updated Apr 15, 2026