{"id":2003,"date":"2026-10-15T11:00:00","date_gmt":"2026-10-15T11:00:00","guid":{"rendered":"https:\/\/freestatisticaltools.com\/blog\/?p=2003"},"modified":"2026-10-15T11:00:00","modified_gmt":"2026-10-15T11:00:00","slug":"one-sample-t-test","status":"publish","type":"post","link":"https:\/\/freestatisticaltools.com\/blog\/one-sample-t-test\/","title":{"rendered":"One-Sample T-Test: Compare a Mean With a Known Value (With Example)"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">A <strong>one-sample t-test<\/strong> checks whether the mean of a single sample differs from a specific value. That value comes from outside the data: a national norm, a manufacturer&#39;s specification, a recommended target or the midpoint of a rating scale.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Typical questions: Do our students sleep less than the recommended 8 hours? Is the average fill weight of a bottle different from the 500 ml on the label? Is mean satisfaction on a 1\u20135 scale above the neutral point of 3?<\/p>\n\n\n<div class=\"fst-tool\"><span class=\"ico\"><svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M4 20V10M10 20V4M16 20v-7M22 20H2\"\/><\/svg><\/span><span><span class=\"t-eyebrow\">Free tool \u00b7 runs in your browser<\/span><a class=\"t-name\" href=\"https:\/\/freestatisticaltools.com\/one-sample-t-test-calculator\/\" style=\"text-decoration:none;color:inherit\">One-Sample T-Test Calculator<\/a><span class=\"t-desc\">Free one-sample t-test calculator: compare a sample mean with a test value and get t, df, p, the 95% CI and Cohen\u2019s d in an APA table.<\/span><\/span><a class=\"btn accent\" href=\"https:\/\/freestatisticaltools.com\/one-sample-t-test-calculator\/\" data-tool=\"one-sample-t-test-calculator\">Run a one-sample t-test \u2192<\/a><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">When to use it<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>You have <strong>one continuous variable<\/strong> from one group.<\/li>\n\n<li>You want to compare its mean with a <strong>fixed test value<\/strong> (\u03bc\u2080) that you chose before looking at the data.<\/li>\n\n<li>The population standard deviation is unknown, which is almost always the case. If it were known, a z-test would apply.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">The formula<\/h2>\n\n\n\n<div class=\"fst-report\"><b>Formula<button type=\"button\" data-copy-report>Copy<\/button><\/b><div><p><i>t<\/i> = (<i>M<\/i> \u2212 \u03bc\u2080) \/ (<i>SD<\/i> \/ \u221a<i>n<\/i>), with <i>df<\/i> = <i>n<\/i> \u2212 1<\/p><\/div><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">The numerator is how far the sample mean is from the test value. The denominator, the standard error, is how much sample means typically vary by chance. A large ratio means the gap is unlikely to be sampling noise.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Assumptions<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Independent observations<\/strong>, for example one value per person.<\/li>\n\n<li><strong>Continuous outcome<\/strong> (interval or ratio). Scale totals built from several Likert items are usually acceptable.<\/li>\n\n<li><strong>Approximate normality<\/strong> of the variable, or a sample of about 30 or more, in which case the central limit theorem makes the test robust.<\/li>\n\n<li><strong>No extreme outliers<\/strong>, which can pull the mean far from most of the data.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">For a small, clearly skewed sample, the one-sample Wilcoxon signed-rank test compares the median with the test value instead.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Worked example<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A health researcher asks whether university students sleep less than the recommended 8 hours. She records average nightly sleep for 36 students: <i>M<\/i> = 7.4 hours, <i>SD<\/i> = 1.2.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Standard error = 1.2 \/ \u221a36 = 0.20<\/li>\n\n<li><i>t<\/i>(35) = (7.4 \u2212 8) \/ 0.20 = <strong>\u22123.00<\/strong><\/li>\n\n<li>Two-tailed <i>p<\/i> = <strong>.005<\/strong><\/li>\n\n<li>95% CI for the mean = [6.99, 7.81] hours; for the difference from 8 hours = [\u22121.01, \u22120.19]<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Students slept significantly less than 8 hours, by about 36 minutes on average. The confidence interval for the shortfall runs from about 11 minutes to an hour.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Effect size<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Cohen&#39;s <i>d<\/i> for a one-sample test is (<i>M<\/i> \u2212 \u03bc\u2080) \/ <i>SD<\/i> = (7.4 \u2212 8) \/ 1.2 = <strong>\u22120.50<\/strong>, a medium effect. The sign shows the direction: negative means the sample mean is below the test value.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to report a one-sample t-test in APA 7<\/h2>\n\n\n\n<div class=\"fst-report\"><b>How to report it (APA 7)<button type=\"button\" data-copy-report>Copy<\/button><\/b><div><p>A one-sample t-test showed that students slept significantly less (<i>M<\/i> = 7.4 hours, <i>SD<\/i> = 1.2) than the recommended 8 hours, <i>t<\/i>(35) = \u22123.00, <i>p<\/i> = .005, mean difference = \u22120.60, 95% CI [\u22121.01, \u22120.19], <i>d<\/i> = \u22120.50.<\/p><\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">One-tailed or two-tailed?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A one-tailed test is justified only if you stated the direction before collecting data <em>and<\/em> a result in the other direction would be treated the same as no effect. In most research, use the two-tailed test. The exact critical values for both are in the <a href=\"\/t-table\/\">t table<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Common mistakes<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Choosing the test value after seeing the data, for example testing against whatever value makes the result significant.<\/li>\n\n<li>Using the scale midpoint as a test value without asking whether it is meaningful. A mean above 3 on a 1\u20135 scale says little if most comparable samples score around 3.8.<\/li>\n\n<li>Reporting only &#8220;<i>p<\/i> &lt; .05&#8243; instead of the exact p-value, the confidence interval and the effect size.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Frequently asked questions<\/h2>\n\n\n\n<div class=\"fst-faq\"><details><summary>What is the test value in a one-sample t-test?<\/summary><div class=\"a\"><p>It is the population value you compare your sample mean with, such as a norm, a specification, a target or a scale midpoint. It must be fixed in advance, not estimated from the same data.<\/p><\/div><\/details><details><summary>What is the difference between a one-sample t-test and a z-test?<\/summary><div class=\"a\"><p>The z-test assumes the population standard deviation is known. The t-test estimates it from the sample, which is the realistic situation, and uses the t distribution with n \u2212 1 degrees of freedom.<\/p><\/div><\/details><details><summary>Can I use a one-sample t-test with a small sample?<\/summary><div class=\"a\"><p>Yes, if the data are roughly normal without outliers. With fewer than about 15 observations and visible skew, use the one-sample Wilcoxon test.<\/p><\/div><\/details><details><summary>How do I compare a mean with the scale midpoint?<\/summary><div class=\"a\"><p>Enter the midpoint (for example 3 on a 1\u20135 scale, or 4 on a 1\u20137 scale) as the test value in a one-sample t-test.<\/p><\/div><\/details><\/div>\n\n\n<div class=\"fst-report\"><b>Cite the tool (APA 7)<button type=\"button\" data-copy-report>Copy<\/button><\/b><div>Xavier, B. (2026). <i>One-Sample T-Test Calculator<\/i> [Web application]. FreeStatisticalTools.com. https:\/\/freestatisticaltools.com\/one-sample-t-test-calculator\/<\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Does your sample mean differ from a target, a norm or a scale midpoint? How the one-sample t-test works, with a worked example and an APA template.<\/p>\n","protected":false},"author":1,"featured_media":2004,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_fst_seo_title":"One-Sample T-Test: When to Use It, Example and APA Report","_fst_meta_desc":"Learn the one-sample t-test: when to use it, assumptions, a worked example comparing a sample mean with a target value, effect size and APA reporting.","_fst_primary_tool":"one-sample-t-test-calculator","_fst_canonical":"","_fst_noindex":false,"_fst_no_toc":false,"_fst_no_autolink":false,"footnotes":""},"categories":[3],"tags":[19,83,17],"class_list":["post-2003","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-compare-means","tag-apa-style","tag-one-sample-t-test","tag-t-test"],"_links":{"self":[{"href":"https:\/\/freestatisticaltools.com\/blog\/wp-json\/wp\/v2\/posts\/2003","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/freestatisticaltools.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/freestatisticaltools.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/freestatisticaltools.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/freestatisticaltools.com\/blog\/wp-json\/wp\/v2\/comments?post=2003"}],"version-history":[{"count":1,"href":"https:\/\/freestatisticaltools.com\/blog\/wp-json\/wp\/v2\/posts\/2003\/revisions"}],"predecessor-version":[{"id":2045,"href":"https:\/\/freestatisticaltools.com\/blog\/wp-json\/wp\/v2\/posts\/2003\/revisions\/2045"}],"wp:attachment":[{"href":"https:\/\/freestatisticaltools.com\/blog\/wp-json\/wp\/v2\/media?parent=2003"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/freestatisticaltools.com\/blog\/wp-json\/wp\/v2\/categories?post=2003"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/freestatisticaltools.com\/blog\/wp-json\/wp\/v2\/tags?post=2003"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}