Menu
numiqo
Statistics made easy

Statistics made easy

8th revised edition (March 2026) - many illustrative examples - only €8.99

Free sample

Paired Samples t-test

Author: Dr. Hannah Volk-Jesussek
Updated:

What is the Paired Samples t-test?

A paired-samples t-test (also called a dependent t-test) examines whether the mean difference between paired measurements is zero. The pairs may be repeated measurements from the same people or objects, or measurements from matched individuals.

When do you use it?

Whenever the values belong together in pairs, e.g.:

  • Before and after: Measure the weight of a group before a diet and then again after the diet.
  • Two conditions: Test how quickly the same group of people responds to a stimulus with coffee and then without coffee.
  • Related pairs: Compare the opinions of husbands and wives (who are linked as a pair).

The central question of this test is: Is the mean difference we observe in our sample strong enough to suggest a difference in the "real world" (population), or is it simply the result of random fluctuation?

Paired t-test

In contrast to the independent-samples t-test, where you compare two separate groups (like men vs. women), the paired t-test focuses on differences within pairs.

Why do you need the dependent t-test?

You use the paired-samples t-test when observations belong together in pairs, for example, when the same people are measured before and after an intervention.

Dependent Samples t-test

For example, you might want to know whether a new medication lowers blood pressure. Since you can't measure everyone who takes the medication, you take a random sample. You can then use a paired t-test to assess whether mean blood pressure changed after the medication in the broader population. Whether the change can be attributed to the medication also depends on the study design.

The Key Advantage: Less Noise

A paired t-test accounts for the pairing by analyzing differences within pairs. When repeated measurements are positively correlated, this removes some variation between people and can make a mean change easier to detect.

What are dependent or paired samples?

In dependent samples, these measured values are available in pairs. The pairs result from repeated measurements or matching. This can be the case, for example, in longitudinal studies with several measurement points (time series analyses) or in intervention studies with experimental designs (before-after measurement).

An example of dependent sampling is when the weight of a group of people is measured at two points in time. A person can then be uniquely assigned a weight at the first and second measurement time points and the difference in the measured values can be calculated in each case. If more than two measurement times are available, a method such as repeated-measures ANOVA may be used instead.

What is the advantage of a dependent t-test over an independent t-test?

The question of whether to use a dependent t-test or an independent t-test is, of course, already determined as part of the study design, and it is not possible to arbitrarily use either one test or the other. Therefore, the question is rather which type of study makes more sense:

  • Conducting a study with one group of participants who are measured twice.
  • To conduct a study with two separate groups of participants, each measured once.

The major advantage of a repeated-measures design that then uses the paired t-test is that stable differences between participants can be controlled by comparing each person with themselves. When the paired measurements are positively correlated, this often gives the paired t-test greater statistical power than an independent t-test.

paired t-test vs independent t-test

Example of a paired sample t-test

The t-test for dependent samples has numerous applications, here are three examples.

Medical example:

You want to check whether a new drug increases memory performance. You test the memory performance of 40 people before and after they take the medicine.

Technical example:

A screw factory complains about very high downtimes at its 5 production plants. You are now to find out whether a newly introduced lubricant has an influence on the downtimes. For this you compare the downtimes of the 5 plants before and after the introduction of the new lubricant.

Social science example:

You want to find out if there is a change between 2010 and 2015 in terms of health consciousness of the German population. For example, you could do this relying on data from the Socio-Economic Panel (SOEP). The SOEP is a representative repeat survey of private households in Germany. The survey asks the same people regular intervals about the same topics. To answer your question, you compare the health consciousness of the persons in the year 2010 and 2015.

Medical example dataTest Score example data

Research Question and hypotheses

In order to be able to calculate a t-test for dependent samples, you first need to define a question and the hypotheses.

Research Question

In a t-test for dependent samples, the general question is: Is there a statistically significant mean difference between the paired measurements?

The questions for the above examples arise as follows:

  • Does the new drug help to increase memory performance?
  • Does the newly introduced lubricant have an influence on downtimes?
  • Has the health consciousness of the German population changed between 2010 and 2015?

Hypotheses

Now the hypothesis can be derived from the question. In the hypothesis, a preliminary, i.e. unsubstantiated, assumption is made which is to be tested. In the case of a t test for dependent samples, the hypotheses are:

  • Null hypothesis H0: The population mean of the paired differences is zero.
  • Alternative hypothesis H1: The population mean of the paired differences is not zero.

Assumptions paired t-Test

The assumptions should be checked before calculating the paired t-test. If the outcome is ordinal or the difference scores are strongly non-normal, the Wilcoxon signed-rank test may be suitable. It is a non-parametric counterpart of the paired t-test.

1. There are two dependent groups or samples

As the name "paired t-test" suggests, the groups must be dependent; that is, a value in one group must relate to a value in the other group. The pairs themselves must be independent of one another.

  • The weight of one and the same person is measured before and after a diet.
  • Researchers measure the weight of people who have been on a diet and people who have not.

2. The outcome is metric

In the t-test for dependent samples, the difference between the two dependent values is calculated and then the mean value. This only makes sense if the values are metric.

  • The salary of a person (in Euro)
  • The educational level of a person

3. The paired differences are approximately normally distributed

The normality assumption applies to the distribution of all paired differences, not to each measurement separately. The t-test is often robust to moderate departures from normality, but extreme outliers or strong skewness can be problematic, especially in small samples.

  • Check a histogram or Q-Q plot of all difference scores.
  • Do not judge normality from a single pair or from the variable type alone.

How does a paired t-test work?

In the paired t-test, the difference is calculated from each paired case. The mean value is then calculated from these differences. The test compares the mean difference with its standard error. A larger absolute t-value provides stronger evidence against a population mean difference of zero.

Note

The t-test for dependent samples is very similar to the t-test for one sample. We can also think of the t-test for dependent samples as having a sample that was measured at two different times. As shown in the following image, we then calculate the difference between the paired values and get a value for one sample.

t-test for one sample and t-test for dependent sample

Once we get -5, once +2, once -1 and so on. Now we want to check whether the mean of the just calculated differences deviates from a reference value. In this case, zero. And that is exactly what the t-test does for a sample.

Calculate t-test for paired samples

For the calculation of the t-test for dependent samples, the difference of each pair from the two groups is first formed. From the resulting differences, the mean value x̄diff is then calculated.

The calculation of the test statistic t is the same as for a one-sample t-test. If there is no difference between the two groups, the mean value of the difference x̄diff is zero. So the question is, is there a difference between x̄diff and zero. The test statistic t for the t-test for dependent samples is then calculated as:

t-test for dependent samples

where Standard error of the mean value is the standard error of the mean value

t-test for dependent samples
  • Difference between the groups = Difference between the groups
  • Mean value of the difference between the two groups = Mean value of the difference between the two groups
  • Sample size = Sample size
  • Standard deviation = Standard deviation
  • Standard error of the mean value = Estimated standard error of mean

The paired t-test has n - 1 degrees of freedom, where n is the number of pairs.

Calculate t-test for dependent samples

Effect size dependent t-test

An effect size helps describe the magnitude of the mean change. The following formula calculates Cohen's d for paired samples by dividing the mean difference by the standard deviation of the differences:

Effect size paired t-test

Common rough guidelines for interpreting the absolute value of this version of Cohen's d are:

  • Effect size d: 0.2 small effect
  • Effect size d: 0.5 medium effect
  • Effect size d: 0.8 large effect

Calculate with numiqo

In the paired t-test example it is examined whether the summer holidays have an effect on the physical fitness of statistics students.

So the question is: Do the summer holidays have an effect on the physical fitness of statistics students? For this purpose, a fitness test is carried out once before and once after the holidays for 10 statistics students (2 measurement points).

Null hypothesis H0

The population mean difference of the measured value pairs (before and after the holidays) is zero. There is no mean change in physical fitness across the semester break.

Since two test results always come from one student, there is a dependency between the two samples. Therefore the paired t-test is used.

Statistics student Points before holidays Points after holidays
1 60 61
2 70 71
3 40 38
4 41 39
5 40 38
6 40 33
7 45 55
8 48 56
9 30 38
10 50 68

After copying the upper table into the dependent t-test calculator you can calculate the t-test. The results are as follows:

Statistics
n Mean value Standard deviation Standard error of the mean
Points before holidays 10 46.4 11.452 3.622
Points after holidays 10 49.7 14.095 4.457
Correlation
n Correlation
before holidays - after holidays 10 0.847
Paired t-test
t df p
before holidays - after holidays -1.39 9 0.197
95% confidence interval of the difference
Mean Standard deviation Standard error of the mean Lower Upper
Points before holidays -
Points after holidays
-3.3 7.5 2.37 -8.66 2.06

Interpret t-test for dependent samples

If the calculated p-value is smaller than the specified significance level (usually 5%), the null hypothesis is rejected; otherwise, it is not rejected. For the example above, you can report the results as follows:

The score of the variable before the vacations had lower values (M = 46.4, SD = 11.452) than the score of the variable after the vacations (M = 49.7, SD = 14.095). A t-test for dependent samples showed that this difference was not statistically significant, t(9) = -1.392, p = .197, 95% confidence interval [-8.664, 2.064].

The p-value of 0.197 is above the defined significance level of 0.05. The result is therefore not statistically significant, and the null hypothesis is not rejected. The 95% confidence interval includes zero, so the data remain compatible with both a decrease and an increase in the population mean score.


Statistics made easy

  • many illustrative examples
  • ideal for exams and theses
  • statistics made easy on 464 pages
  • 8th revised edition (March 2026)

Only €8.99

Free sample
numiqo

"Super simple written"

"It could not be simpler"

"So many helpful examples"

Cite numiqo: numiqo Team (2026). numiqo: Online Statistics Calculator. numiqo e.U. Graz, Austria. URL https://numiqo.com