This calculator performs a one-sample t-test, which checks whether the mean of your sample differs significantly from a specific value you have in mind. It answers a common question: is my data consistent with a particular target, standard or claim? You might test whether the average weight of a product matches its labelled value, whether students' average score differs from a national benchmark, or whether a process mean has drifted from its target. The test compares the gap between your sample mean and the hypothesized value against the variability in your data, producing a t statistic. A large t, far from zero, suggests the true mean really does differ from the test value; a small t suggests any difference could be chance. This calculator does the work. You paste your sample data and enter the hypothesized mean to test against, and it returns the t statistic, the sample mean, the degrees of freedom, and the value you tested. The results update as you type. Use it for statistics study, for quality control, or to test whether a measured average matches a claimed or target figure. The t statistic is the difference between the sample mean and the hypothesized value, divided by the standard error of the mean, which is the sample standard deviation over the square root of the sample size. The degrees of freedom are one less than the sample size. To complete the test, compare the magnitude of t against the critical value from the t distribution at your chosen significance level and degrees of freedom, or find the p-value; if the magnitude exceeds the critical value, the difference is statistically significant. The test assumes the sample is drawn from a roughly normal distribution, which matters most for small samples.
t = (sample mean - hypothesized mean) / (sample SD / sqrt n). Degrees of freedom = n - 1. Compare against a t table. Assumes a roughly normal sample.
The calculator finds the sample mean and sample standard deviation. The standard error of the mean is the standard deviation divided by the square root of the sample size. The t statistic is the difference between the sample mean and the hypothesized value, divided by that standard error. The degrees of freedom are the sample size minus one.
For the data 5, 7, 6, 8, 7, the sample mean is 6.6 and the sample standard deviation is about 1.14. Testing against a hypothesized mean of 5, the standard error is 1.14 over the square root of 5, about 0.51, so t is 1.6 divided by 0.51, about 3.14, with 4 degrees of freedom.
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.
About & trust: Why Calculate is NZ's most comprehensive · By the Numbers · How we compare · Editorial standards · How we keep data current · NZ finance glossary · Research & data · Financial literacy NZ · About · Privacy policy · Terms of use
Reviewed and maintained. Last reviewed 2026-06-07 and checked on a twice-monthly cycle against IRD, RBNZ and Stats NZ. How we keep data current.
© 2026 Calculate.co.nz. All rights reserved. Building free NZ calculators since 2011.