{"id":2015,"date":"2026-10-15T23:00:00","date_gmt":"2026-10-15T23:00:00","guid":{"rendered":"https:\/\/freestatisticaltools.com\/blog\/?p=2015"},"modified":"2026-10-15T23:00:00","modified_gmt":"2026-10-15T23:00:00","slug":"wilcoxon-signed-rank-test","status":"publish","type":"post","link":"https:\/\/freestatisticaltools.com\/blog\/wilcoxon-signed-rank-test\/","title":{"rendered":"Wilcoxon Signed-Rank Test: The Nonparametric Paired T-Test"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">The <strong>Wilcoxon signed-rank test<\/strong> compares two related measurements, such as before and after scores from the same people, without assuming the differences are normally distributed. It is the nonparametric alternative to the <a href=\"\/blog\/paired-samples-t-test\/\">paired samples t-test<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">It is not the same as the Wilcoxon rank-sum test, which is another name for the Mann-Whitney U test for <em>independent<\/em> groups. The names cause endless confusion, so check which design you have.<\/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=\"M3 17h4l3-10 4 14 3-8h4\"\/><\/svg><\/span><span><span class=\"t-eyebrow\">Free tool \u00b7 runs in your browser<\/span><a class=\"t-name\" href=\"https:\/\/freestatisticaltools.com\/wilcoxon-signed-rank-test-calculator\/\" style=\"text-decoration:none;color:inherit\">Wilcoxon Signed-Rank Test Calculator<\/a><span class=\"t-desc\">Free Wilcoxon signed-rank test calculator for paired data: W, z, exact p-value for small samples and effect size r. The nonparametric paired t-test.<\/span><\/span><a class=\"btn accent\" href=\"https:\/\/freestatisticaltools.com\/wilcoxon-signed-rank-test-calculator\/\" data-tool=\"wilcoxon-signed-rank-test-calculator\">Run a Wilcoxon signed-rank 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>Two measurements from the <strong>same participants<\/strong> or matched pairs.<\/li>\n\n<li>The outcome is <strong>ordinal<\/strong> (a single Likert item, a pain rating) or the paired differences are clearly <strong>skewed or contain outliers<\/strong>, especially with fewer than about 30 pairs.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">How it works<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Compute the difference for each pair and drop pairs with a difference of zero.<\/li>\n\n<li>Rank the absolute differences from smallest to largest, averaging ranks for ties.<\/li>\n\n<li>Give each rank the sign of its difference, then add the positive ranks and the negative ranks separately.<\/li>\n\n<li>The test statistic (<i>T<\/i>, or <i>W<\/i> in some software) is compared with what would be expected if positive and negative changes were equally likely. For larger samples it is converted to a z score.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Assumptions<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Paired observations, with independent pairs.<\/li>\n\n<li>An outcome that is at least ordinal, so differences can be ranked.<\/li>\n\n<li>For interpreting the result as a shift in the median, the distribution of differences should be roughly symmetric. If it is very asymmetric, the simpler sign test is an alternative.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Worked example<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Twenty patients rate their pain (0\u201310) before and after a physiotherapy course. The differences are skewed: most improve by 1\u20133 points, a few by 6\u20137.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Median before = 6, median after = 4<\/li>\n\n<li>Sum of ranks for patients whose pain increased: <i>T<\/i> = 32<\/li>\n\n<li>Expected value of <i>T<\/i> under the null: 20 \u00d7 21 \/ 4 = 105, with a standard deviation of 26.8<\/li>\n\n<li><i>z<\/i> = (32 \u2212 105) \/ 26.8 = <strong>\u22122.73<\/strong>, <i>p<\/i> = <strong>.006<\/strong><\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Pain decreased significantly after the course.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Effect size r<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The usual effect size is <i>r<\/i> = |<i>z<\/i>| \/ \u221a<i>N<\/i>, where <i>N<\/i> is the number of pairs: 2.73 \/ \u221a20 = <strong>0.61<\/strong>, a large effect (benchmarks: .10 small, .30 medium, .50 large). The matched-pairs rank-biserial correlation is an alternative that many statisticians now prefer.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to report it 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 Wilcoxon signed-rank test showed that pain ratings were significantly lower after the physiotherapy course (<i>Mdn<\/i> = 4) than before it (<i>Mdn<\/i> = 6), <i>z<\/i> = \u22122.73, <i>p<\/i> = .006, <i>r<\/i> = .61.<\/p><\/div><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Report medians (and ideally IQRs) rather than means, the z or T statistic, the exact p-value and the effect size. If you used an exact test (common with small samples), report T and the exact p-value.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Wilcoxon or paired t-test?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">If the differences are roughly normal, the paired t-test is slightly more powerful and its effect size is easier to compare across studies. With ordinal outcomes, strong skew or outliers in a small sample, Wilcoxon is the safer choice. With large samples both usually agree.<\/p>\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 difference between Wilcoxon signed-rank and Mann-Whitney U?<\/summary><div class=\"a\"><p>The signed-rank test is for two related measurements (paired data). The Mann-Whitney U test, also called the Wilcoxon rank-sum test, is for two independent groups.<\/p><\/div><\/details><details><summary>What happens to zero differences?<\/summary><div class=\"a\"><p>In the standard procedure, pairs with a difference of zero are dropped before ranking, which reduces the sample size. Report how many pairs had no change.<\/p><\/div><\/details><details><summary>How many pairs do I need?<\/summary><div class=\"a\"><p>The test can run with as few as 6 pairs, but power is low. For a moderate effect, aim for 20 or more pairs.<\/p><\/div><\/details><details><summary>Can I use Wilcoxon for Likert scale data?<\/summary><div class=\"a\"><p>Yes. For a single Likert item measured twice, the Wilcoxon signed-rank test is the standard choice.<\/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>Wilcoxon Signed-Rank Test Calculator<\/i> [Web application]. FreeStatisticalTools.com. https:\/\/freestatisticaltools.com\/wilcoxon-signed-rank-test-calculator\/<\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>When paired differences are skewed or ordinal, the Wilcoxon signed-rank test replaces the paired t-test. How it works, a worked example, effect size and APA template.<\/p>\n","protected":false},"author":1,"featured_media":2016,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_fst_seo_title":"Wilcoxon Signed-Rank Test: Example, Effect Size and APA","_fst_meta_desc":"Use the Wilcoxon signed-rank test for paired or before-after data that are not normal. Assumptions, a worked example, effect size r and APA reporting.","_fst_primary_tool":"wilcoxon-signed-rank-test-calculator","_fst_canonical":"","_fst_noindex":false,"_fst_no_toc":false,"_fst_no_autolink":false,"footnotes":""},"categories":[4],"tags":[19,22,85,96],"class_list":["post-2015","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-nonparametric-tests","tag-apa-style","tag-nonparametric","tag-paired-t-test","tag-wilcoxon"],"_links":{"self":[{"href":"https:\/\/freestatisticaltools.com\/blog\/wp-json\/wp\/v2\/posts\/2015","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=2015"}],"version-history":[{"count":1,"href":"https:\/\/freestatisticaltools.com\/blog\/wp-json\/wp\/v2\/posts\/2015\/revisions"}],"predecessor-version":[{"id":2051,"href":"https:\/\/freestatisticaltools.com\/blog\/wp-json\/wp\/v2\/posts\/2015\/revisions\/2051"}],"wp:attachment":[{"href":"https:\/\/freestatisticaltools.com\/blog\/wp-json\/wp\/v2\/media?parent=2015"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/freestatisticaltools.com\/blog\/wp-json\/wp\/v2\/categories?post=2015"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/freestatisticaltools.com\/blog\/wp-json\/wp\/v2\/tags?post=2015"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}