Paired t-Test Calculator

A paired t-test checks whether the average difference between two related measurements is meaningfully different from zero, which is exactly what you want when the same people or items are measured twice. This calculator takes a list of paired differences, for example each person's after value minus their before value, and works out the mean difference, the standard deviation of those differences, and the t statistic. The t statistic is the mean difference divided by the standard error, where the standard error is the standard deviation divided by the square root of the number of pairs. It also reports the degrees of freedom, which is the number of pairs minus one. New Zealand students, researchers, and quality and health analysts use the paired t-test for before and after studies, matched comparisons, and repeated measures, because pairing removes a lot of the noise that comes from differences between individuals. To use it, enter the differences separated by commas; if a person scored 70 then 72, enter 2. A positive mean difference suggests an increase and a negative one a decrease, while a t statistic far from zero, compared against a t table at your degrees of freedom, points to a real effect rather than chance. For trustworthy results, keep the pairs in a consistent order, make sure the differences are roughly symmetric without extreme outliers, and report the sample size alongside the t value. The paired test is more powerful than an unpaired test when a genuine pairing exists, so always pair your data when the design allows it. Pair only genuinely linked observations.

4.707
t statistic
Degrees of freedom4
Mean difference2.400

t = mean(diff) / (sd(diff) / sqrt(n)), with df = n - 1 and sd using n - 1.

How it works

The tool reads your comma separated differences and finds their mean. It then finds the sample standard deviation using n minus one in the denominator, divides that by the square root of the number of pairs to get the standard error, and divides the mean by the standard error to get t. Degrees of freedom are the number of pairs minus one.

Worked example

With differences 2, 3, 1, 4 and 2 the mean is 2.4 across five pairs. The sample standard deviation is about 1.140, so the standard error is 1.140 divided by the square root of 5, about 0.510. Dividing 2.4 by 0.510 gives a t statistic of 4.707 with four degrees of freedom.

Related calculators

If you've found a bug, or would like to contact us, or learn more about James Graham and Calculate.co.nz.

Calculate.co.nz is partnered with Interest.co.nz for New Zealand's highest quality calculators and financial analysis.

All calculators and tools are provided for educational and indicative purposes only and do not constitute financial advice.

Calculate.co.nz is proudly part of the Realtor.co.nz group, New Zealand's leading property transaction literacy platform, helping Kiwis understand the home buying and selling process from start to finish. Whether you're a first home buyer navigating your first property purchase, an investor evaluating your next acquisition, or a homeowner planning to sell, Realtor.co.nz provides clear, independent, and trustworthy guidance on every step of the New Zealand property transaction journey.

Calculate.co.nz is also partnered with Health Based Building and Premium Homes to promote informed choices that lead to better long-term outcomes for Kiwi households.

Calculate.co.nz is hosted in Auckland via SiteHost new Zealand.

All content on this website, including calculators, tools, source code, and design, is protected under the Copyright Act 1994 (New Zealand). No part of this site may be reproduced, copied, distributed, stored, or used in any form without prior written permission from the owner.

© 2019 to 2026 Calculate.co.nz. All rights reserved.