Calcoid

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.

Pick a test

Enter 2 to 10,000 values, up to 100,000 characters.

One-tailed alternative

t statistic

0.7276

df = 9

Selected one-tailed test is not significant at alpha = 0.05

P-value (two-tailed)

0.485351

P-value (one-tailed: greater)

0.242676

Mean 1

5.05

Std. dev. 1

0.2173

n1

10

Hypothesized mean

5

One-Tailed t Critical Values at 5%

Degrees of FreedomApprox. Critical tFor GreaterFor Less
16.314t > 6.314t < -6.314
52.015t > 2.015t < -2.015
101.812t > 1.812t < -1.812
201.725t > 1.725t < -1.725
301.697t > 1.697t < -1.697
601.671t > 1.671t < -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.

Related Calculators

More calculators in "Math"

See all 202 calculators in "Math"