Statistics

Wilcoxon Signed-Rank Test Calculator: Paired and One-Sample, with Exact p

Compare two related measurements, such as before and after a treatment, or test whether the median of one sample differs from a value, without assuming normality. Get V and T, z, the exact or normal p-value, the effect size r, the Hodges–Lehmann pseudo-median with its confidence interval, a paired plot and an APA sentence.

✅ No login needed100% freeRuns in your browserYour data stays on your device
Wilcoxon Signed-Rank Test Calculator✅ Free · no login📚 Cite this tool
Your data never leaves your PC. Your data is analysed on your own computer or phone, even when you upload a CSV or Excel file. Nothing is uploaded, stored or seen by Codanics, and no login is needed.

Each row is one subject: the first value in each box belongs to the same person, plant or sample.

  • PriceFree, no login or sign-up needed
  • Your dataProcessed in your browser, never uploaded
  • Works onPhone, tablet or computer, any modern browser
  • Made byDr. Muhammad Aammar Tufail, Codanics
  • Published16 November 2026
  • Last updated16 November 2026

📚 How to cite this tool

This tool is free. If it helped your thesis, paper, report or assignment, please cite it. It keeps the tools free and helps other students find them.

Citation · APA 7th edition

Tufail, M. A. (2026). Wilcoxon signed-rank test calculator [Online tool]. Codanics. Retrieved 16 November 2026, from https://codanics.com/tools/wilcoxon-signed-rank-test-calculator/

In-text citation: (Tufail, 2026) · Narrative: Tufail (2026)

The access date is today’s date, filled in automatically. Author: Muhammad Aammar Tufail. Published 16 November 2026.

🚀 Follow Codanics channel on WhatsApp for more updatesNew free tools, scholarships, PhD positions and research tips, straight to your phone. Free lessons on YouTube too.

How to use the Wilcoxon Signed-Rank Test Calculator

  1. Choose Paired samples for two measurements on the same subjects (before and after, left and right, two raters) or One sample to compare a median with a fixed value.
  2. Type or paste the values, one subject per row, or use Paste from Excel or Upload CSV / Excel. For a one-sample test, type the hypothesised median m₀.
  3. Keep the automatic p-value method. Choose how to handle zero differences: drop them (the classic Wilcoxon method, as SPSS does) or keep them in the ranking (Pratt).
  4. Click Run Wilcoxon test, copy the APA sentence and download the paired plot.

When should I use the Wilcoxon signed-rank test?

The Wilcoxon signed-rank test is the non-parametric alternative to the paired t-test and the one-sample t-test. It ranks the absolute differences and compares the ranks of positive and negative differences, so it does not need normally distributed differences. Use it when:

  • you measured the same subjects twice (before and after, two time points, two conditions) and the differences are skewed or have outliers;
  • the outcome is ordinal, such as a Likert score or a symptom rating;
  • you want to test whether the median of one sample differs from a fixed value.

For two independent groups use the Mann–Whitney U test; for three or more groups use the Kruskal–Wallis test. Check the shape of your differences first with the normality test calculator.

How the test works

dᵢ = xᵢ − yᵢ (paired) or dᵢ = xᵢ − m₀ (one sample) Rank |dᵢ| (ties get the average rank); zero differences are dropped (Wilcoxon) or ranked and then ignored (Pratt) V = T⁺ = sum of ranks of positive dᵢ T⁻ = sum of ranks of negative dᵢ E(V) = Σrᵢ / 2 Var(V) = Σrᵢ² / 4 (= n(n+1)(2n+1)/24 − Σ(t³ − t)/48 without zeros) z = (V − E(V) − c) / √Var(V) c = 0.5 continuity correction (optional) r = |z| / √N rank-biserial = (T⁺ − T⁻) / (T⁺ + T⁻) Pseudo-median (Hodges–Lehmann) = median of all Walsh averages (dᵢ + dⱼ)/2, i ≤ j

For fewer than 50 pairs the tool computes the exact p-value. With ties or zeros, the exact distribution is computed given the observed ranks, as R 4.4 and later do. Results match R’s wilcox.test(x, y, paired = TRUE, conf.int = TRUE); the Pratt option with the normal approximation matches coin::wilcoxsign_test(zero.method = "Pratt").

Assumptions

  • The pairs are independent of each other.
  • The differences can be ranked (at least ordinal data).
  • For a test about the median, the differences should be roughly symmetric around their median. If they are very skewed, consider the sign test.

How to report a Wilcoxon signed-rank test (APA)

A Wilcoxon signed-rank test showed that anxiety scores after the programme (Mdn = 67.50) were significantly lower than before (Mdn = 71.00), T = 3, p = .002, r = .82.

Report the medians, T (or V, saying which), z when you used the normal approximation, the p-value and the effect size r. New to statistics? Start with the free ABC of statistics series, or run the test in R with the R with Aammar course.

Learn the statistics behind these numbers. Codanics has free statistics, R and Python lessons on YouTube and full courses for researchers.

Frequently asked questions

What is the difference between the Wilcoxon signed-rank test and the Mann–Whitney test?

The Wilcoxon signed-rank test is for paired or related data (the same subjects measured twice) or a single sample. The Mann–Whitney U test (Wilcoxon rank-sum test) is for two independent groups. Using the wrong one gives wrong p-values.

What happens to zero differences?

With the classic Wilcoxon method (the default, also used by SPSS), pairs with no difference are dropped before ranking. With the Pratt method they are ranked together with the other differences and then given no sign, which keeps more information. Choose the method before looking at the result. Note: R 4.4 and later rank zeros in its exact test (the Pratt approach), so choose Pratt to reproduce R’s exact p-value when your data contain zeros.

What are V and T?

V (reported by R) is the sum of the ranks of the positive differences, T⁺. T is the smaller of T⁺ and T⁻, which SPSS and many textbooks report. Both are shown, so you can report either; just say which one.

When is the exact p-value used?

With fewer than 50 pairs, as in R. If there are ties or zero differences, the exact distribution is computed conditionally on the observed ranks (R 4.4 and later do the same). Older software uses the normal approximation in those cases; pick Normal approximation to reproduce it.

How do I calculate the effect size for a Wilcoxon signed-rank test?

Use r = |z| / √N, where N is the number of pairs. About .10 is small, .30 medium and .50 large. The matched-pairs rank-biserial correlation, also shown, is an alternative that ranges from −1 to 1.

Can I use it for Likert-scale data?

Yes. It is a standard choice for comparing two related ratings, such as a Likert item before and after training. Expect ties and zeros; the tool handles both.

Is my data uploaded?

No. The test runs entirely in your browser. Your data never leaves your device.

Do I need to log in or create an account to use the Wilcoxon Signed-Rank Test Calculator?

No. There is no login, no sign-up and no email required. Open the page and start using it straight away, for free, on any device.

How do I cite this tool in my thesis or paper?

Use the citation box on this page. In APA 7th edition: Tufail, M. A. (2026). Wilcoxon signed-rank test calculator [Online tool]. Codanics. Retrieved [date you used it], from https://codanics.com/tools/wilcoxon-signed-rank-test-calculator/. BibTeX, RIS (EndNote, Mendeley, Zotero), MLA, Harvard, Chicago and Vancouver formats are also available.

Free guides and courses from Codanics

More free tools

See all free Codanics tools → · Codanics on YouTube · WhatsApp channel

Made by Dr. Muhammad Aammar Tufail, Codanics. First published 16 November 2026, last updated 16 November 2026. Found a bug or have an idea for a new tool? Tell us on the WhatsApp channel or in the comments on YouTube. Results are for learning and planning; check important analyses with a statistician or your supervisor.