TL;DR: Use an independent t-test when you compare two separate groups — different people in each group. Use a paired t-test when the same people (or matched pairs) are measured twice, such as before and after a course. The paired test analyses the difference within each pair, which cancels out the variation between people. Try both with our free T-Test Calculator.
You want to know whether a new revision course improves test scores. You could teach one class with the new course and another class without it, then compare the two classes’ averages. Or you could test the same students before the course and again after it, then compare each student’s improvement. Both studies compare averages, both use a t-test — but they need different versions of it, and choosing the wrong one can cost you the answer.
The difference between the independent and paired t-tests is decided by the design of your study, not by the numbers themselves. This guide explains the difference in plain English, gives a worked example of each, and shows the mistake that catches out more beginners than any other. If you need the basics first, read our guide on what a t-test is.
The one question that decides it
There is a single question that settles which test to use: is there a natural link between the observations in the two groups? If each measurement in the first group has a specific partner in the second group — the same person, the same item, or a deliberately matched pair — the data are paired. If the two groups are made up of different people or items with no link between them, the data are independent.
That link is the whole story. In a paired design, each person serves as their own comparison: a strong student and a weak student both improve by a few marks, and the pairing lets you see the improvement clearly despite the large gap between the two students. In an independent design, there is no such link, so the natural variation between people sits inside the comparison and makes it noisier.
| Independent t-test | Paired t-test | |
|---|---|---|
| Groups | Two separate groups, different people or items | Same people or items measured twice, or matched pairs |
| Question | Is the average of group A different from group B? | Did the average change within each pair? |
| What is analysed | Two group means and their difference | The differences within each pair |
| Degrees of freedom | n₁ + n₂ − 2 | Number of pairs − 1 |
| Typical example | Two classes taught different ways | Same students before and after a course |
The independent t-test: two separate groups
An independent t-test — also called an unpaired or two-sample t-test — compares the means of two groups that have nothing to do with each other. A school tries two teaching methods: 20 students are taught with method A and a different 20 students with method B. At the end of term, method A’s class averages 78 marks and method B’s averages 72. The independent t-test asks whether that 6-mark gap is bigger than the gap you would expect by chance between two groups of 20 students. The degrees of freedom are roughly n₁ + n₂ − 2: with 20 students in each group, that is 20 + 20 − 2 = 38.
The independent test comes in two flavours. The classic version, Student’s t-test, assumes the two groups have roughly equal spread. Welch’s t-test drops that assumption and adjusts the degrees of freedom instead; it is the safer default when the groups’ spreads look different. Most modern calculators, including ours, use Welch’s version.
Other examples of independent designs are everywhere: patients given a new drug versus patients given a placebo, customers shown website version A versus version B, plants grown with one fertiliser versus another. In every case the key fact is the same — nobody appears in both groups, and there is no pairing between a person in one group and a person in the other.
The paired t-test: the same people, twice
A paired t-test — also called a dependent t-test — compares two measurements taken on the same people or items, or on matched pairs. Ten students take a test before a revision course and the same test after it. Their scores before average 65 and after average 71, a 6-mark improvement. The paired t-test asks whether that average improvement is bigger than chance would produce.
The trick is in what the test analyses. It does not compare the two group averages directly. Instead, it first calculates a difference for each student — after minus before — and then tests whether the average of those differences is different from zero. One student might go from 50 to 56, another from 80 to 86: both improved by 6, and the paired test sees two identical improvements, even though the students’ absolute scores are 30 marks apart.
That is why the paired test is usually more powerful. The differences between students — the fact that some are simply stronger than others — cancel out when you subtract each student’s before score from their after score. What is left is only the change, plus whatever random wobble each student’s two scores have. With that noise removed, a real change stands out more clearly, and the test can detect smaller effects with fewer people. The degrees of freedom are the number of pairs minus one: 10 pairs give 9 degrees of freedom.
An example of each, side by side
It helps to see the two designs answer the same question differently. Imagine a school wants to test a new maths workbook, and the workbook adds about 6 marks on average.
Independent design: 20 students use the new workbook and 20 different students use the old one. The new-workbook class averages 78, the old-workbook class averages 72. The gap is 6 marks, but the students in each class vary widely — scores spread from the 50s to the 90s — so the standard error of the difference is large, and the t-value is modest. With two groups of 20, the degrees of freedom are 38.
Paired design: the same 10 students are tested before using the workbook (average 65) and after (average 71). Again the gap is 6 marks. But now the test looks at the ten individual improvements: perhaps 4, 5, 6, 6, 7, 5, 8, 6, 7, 6 marks. Those improvements are all close together — the students differ hugely from each other, but each student improved by a similar amount — so the standard error of the differences is small, and the t-value is large. The degrees of freedom are only 9, yet the result is clearer.
The common mistake: using the independent test on paired data
The most common mistake with these two tests is running an independent t-test on data that are really paired. It is easy to do: you have two columns of numbers, “before” and “after”, and the independent test accepts two columns just as happily as the paired test does. But it treats the before-scores and after-scores as if they came from two different sets of people, and it throws away the pairing — the single most valuable piece of information in the data.
The cost is power. The independent test must fight through all the variation between people, which the paired test cancels out. A genuine improvement of 6 marks can come out non-significant under the independent test and clearly significant under the paired test, on the very same data. The study that “found nothing” may simply have used the wrong test. The reverse mistake — running a paired test on independent data — is rarer, because there is no sensible way to pair up unrelated people, and any pairing you invent would be arbitrary. If you find yourself inventing pairs, the data are independent.
How to decide: a quick checklist
Work through these questions in order before you calculate anything:
- Are the same people or items measured twice? If yes, it is a paired test. Stop here.
- Are the two groups deliberately matched — twins, matched patients, the same plots of land? If yes, it is a paired test.
- Are the two groups made of different people with no link between them? If yes, it is an independent test.
- Am I comparing one group with a fixed value, not with another group? Then it is neither — it is a one-sample t-test, covered in our guide on the one-sample t-test.
Finally, remember that choosing the right test is a design decision, not a data decision. You cannot decide after seeing the results which test gives the nicer p-value — that is choosing the test to fit the answer. Decide from the study design, before you calculate, and if the design is genuinely ambiguous, say so in your report and give both results.
Frequently Asked Questions
What is the difference between an independent and a paired t-test?
An independent t-test compares the means of two separate groups of people or items, such as two different classes. A paired t-test compares two measurements taken on the same people or items, such as scores before and after a course, and analyses the differences within each pair.
How do I know if my data are paired?
Your data are paired if each observation in one group has a natural partner in the other group — the same person measured twice, the same item tested under two conditions, or two people matched on purpose, such as twins. If the two groups are made up of different people with no link between them, the data are independent.
Can I use an independent t-test on paired data?
You can run the calculation, but you should not. Treating paired data as independent throws away the pairing information, so the test loses power and may miss a real difference. Worse, it answers a slightly different question from the one you actually asked.
Which t-test is more powerful, independent or paired?
A paired t-test is usually more powerful when the pairing is real, because each person acts as their own control: the differences between people cancel out, leaving only the change you care about. The advantage disappears if the pairs are not genuinely linked.
What are the degrees of freedom for each type of t-test?
For an independent t-test, the degrees of freedom are roughly n1 + n2 - 2, where n1 and n2 are the two group sizes. For a paired t-test, they are the number of pairs minus one. A paired test with 10 pairs has 9 degrees of freedom.