Run a T Test in Seconds
A t test checks whether the difference between averages is real or just random chance. Pick your test type, enter your numbers and get the t value, degrees of freedom and p value, plus a plain English answer.
What Is a T Test
A t test compares averages. For example, did students who used flashcards score higher than students who didn't? The t test looks at how big the difference is and how spread out the data is. If the difference is large compared to the spread, it's probably real.
Which T Test Should I Use
- One sample t test: compare one group's average to a known value. Example, is our class average different from 70?
- Two sample t test: compare the averages of two separate groups. Example, did class A score higher than class B?
- Paired t test: compare two measurements on the same people. Example, scores before and after a study program.
The two sample option uses Welch's t test, which doesn't assume both groups have the same spread. It's the safer default.
How to Use the T Test Calculator
- Pick your test type.
- Enter your data, or enter the mean, standard deviation and sample size for each group.
- Choose a significance level. 0.05 is the most common.
- Choose two tailed or one tailed.
- Read your t value, degrees of freedom, p value and result.
T Test Formulas
One sample: t = (sample mean minus test value) / (s / square root of n)
Paired: t = mean of the differences / (standard deviation of the differences / square root of n)
Two sample Welch: t = (mean 1 minus mean 2) / square root of (s1 squared / n1 + s2 squared / n2)
One Sample Example
A class of 16 students has an average of 52 on a quiz, with a standard deviation of 4. Is that different from 50?
- Standard error: 4 / square root of 16 = 4 / 4 = 1
- t = (52 minus 50) / 1 = 2.0
- Degrees of freedom: 16 minus 1 = 15
- Two tailed p value: about 0.064
Since 0.064 is bigger than 0.05, the difference isn't statistically significant at the 5 percent level.
How to Read the P Value
The p value is the chance of seeing a difference this big if there were really no difference. A small p value, usually below 0.05, means the result is statistically significant. It doesn't tell you the difference is large or important, just that it's unlikely to be random.
Frequently Asked Questions
What is a t test
A t test is a statistics test that checks whether the difference between averages is likely real or just due to chance.
When should I use a t test
Use it to compare averages when your data is roughly normal and you don't know the population standard deviation.
What is a paired t test
It compares two measurements on the same subjects, like test scores before and after tutoring.
What is the difference between a one tailed and two tailed t test
A two tailed test checks for a difference in either direction. A one tailed test only checks one direction, like higher.
What does a p value of 0.05 mean
It means there's a 5 percent chance of seeing a difference this big if there were no real difference.
What are degrees of freedom in a t test
They're based on sample size. For a one sample or paired test, it's the number of values minus 1.
What is the Welch t test
It's a two sample t test that doesn't assume both groups have equal variance. It's the safer choice in most cases.
What if my p value is greater than 0.05
Then the difference isn't statistically significant at the 5 percent level. It doesn't prove there's no difference.
How big does my sample need to be for a t test
There's no strict minimum, but small samples need data that's close to normal. Larger samples give more reliable results.
What is the difference between a t test and a z test
A z test uses a known population standard deviation. A t test uses the sample standard deviation and works better for small samples.
Is my data saved
No. Your data stays in your browser.