T-Test Calculator
Run a one-sample or two-sample Student's t-test from raw data. Get the t statistic, degrees of freedom, two- and one-tailed p-values, and significance at p = 0.05 and p = 0.01.
One-Tailed t Critical Values at 5%
| Degrees of Freedom | Approx. Critical t | For Greater | For Less |
|---|---|---|---|
| 1 | 6.314 | t > 6.314 | t < -6.314 |
| 5 | 2.015 | t > 2.015 | t < -2.015 |
| 10 | 1.812 | t > 1.812 | t < -1.812 |
| 20 | 1.725 | t > 1.725 | t < -1.725 |
| 30 | 1.697 | t > 1.697 | t < -1.697 |
| 60 | 1.671 | t > 1.671 | t < -1.671 |
Frequently Asked Questions about the T-Test Calculator
What is the null hypothesis in a t-test?
The null hypothesis is the default claim that no real difference exists. In a one-sample test it states that the population mean equals your hypothesized value; in a two-sample test it states that the two population means are equal. The p-value measures how likely your data would be if that claim were true.
What does the p-value mean?
It is the probability of observing a t statistic at least as extreme as yours, assuming the null hypothesis is true. A p-value below 0.05 is conventionally considered significant; below 0.01 is stronger evidence. The p-value is not the probability that the null is true, and a small p-value does not measure the size of an effect.
When do I use one-tailed vs two-tailed?
Use a two-tailed test for a difference in either direction. Use one-tailed only when you specified a direction before collecting data. The calculator evaluates the selected direction: an observed t statistic in the opposite direction produces a one-tailed p-value above 0.5, not half the two-tailed value. The significance verdict follows that selected one-tailed test.
Equal variance or unequal variance (Welch)?
Use Welch's t (unequal variance) by default. It uses the Welch-Satterthwaite formula for degrees of freedom, which handles unequal sample sizes and unequal spreads without inflating your false-positive rate. Switch to pooled (Student's t) only when you have a strong prior reason to believe the population variances are the same.
Should I use a t-test or a z-test?
Use a t-test when you estimate the standard deviation from your data, which is almost always the case. A z-test requires knowing the true population standard deviation in advance. When your sample has more than about 30 observations, the t and z distributions converge and the choice makes little practical difference.
Changelog
Updates to T-Test Calculator, grouped by date.
T-Test Calculator added
- Run a one-sample or two-sample Student's t-test from raw data. Get the t statistic, degrees of freedom, two- and one-tailed p-values, and significance at p = 0.05 and p = 0.01.
Related Calculators
More calculators in "Math"
Arithmetic Sequence CalculatorGeometric Sequence CalculatorVector CalculatorComplex Number CalculatorTrapezoid CalculatorCylinder Calculator
See all 202 calculators in "Math"