Statistics

Friedman Test Calculator with Nemenyi Post-Hoc Test and Kendall's W

The Friedman test compares three or more related conditions when the data are ranks, scores or clearly non-normal: the same panellists tasting several products, the same patients under several treatments, or treatments within blocks. Paste one row per subject (or block) and one column per condition to get the Friedman χ², Kendall’s W, Nemenyi and Conover post-hoc tests with compact letters, and box plots.

✅ No login needed100% freeRuns in your browserYour data stays on your device
Friedman 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.
  • 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
  • Published17 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). Friedman test calculator [Online tool]. Codanics. Retrieved 16 November 2026, from https://codanics.com/tools/friedman-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 17 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 Friedman Test Calculator

  1. Paste your data with one row per subject (panellist, patient or block) and one column per condition, with the condition names in the first row. Long format (subject, condition, value) is converted automatically.
  2. Choose the post-hoc test. Nemenyi is the classic choice and controls the error rate over all pairs; Conover is more powerful and lets you pick the p-value adjustment.
  3. Click Run Friedman test. Read χ², the p-value and Kendall’s W, then the post-hoc table and the letters.
  4. Copy the APA sentence and tables, and download the box plot with letters for your thesis.

When to use the Friedman test

The Friedman test is the non-parametric alternative to the one-way repeated-measures ANOVA (and to a randomised complete block design analysed by ANOVA). It ranks the values within each subject or block and tests whether some conditions tend to get higher ranks than others. Use it when:

  • the same subjects are measured under three or more conditions, or treatments are applied within blocks;
  • the outcome is ordinal (taste scores, Likert ratings, disease severity) or clearly non-normal with a small sample.
DesignParametricNon-parametric
2 related conditionsPaired t-testWilcoxon signed-rank
3+ related conditionsRepeated-measures ANOVAFriedman
3+ independent groupsOne-way ANOVAKruskal–Wallis
Yes/no outcome, 3+ related conditionsCochran’s Q

Formulas

Rank the k values within each of the n blocks (ties get average ranks); Rⱼ = rank sum of condition j χ²_F = 12 · Σ (Rⱼ − n(k + 1)/2)² / [ n·k·(k + 1) − Σ(t³ − t)/(k − 1) ], df = k − 1 Kendall’s W = χ²_F / (n(k − 1)) Iman–Davenport F = (n − 1)·χ²_F / (n(k − 1) − χ²_F), df = k − 1 and (n − 1)(k − 1) Nemenyi: q = |R̄ᵢ − R̄ⱼ| / √(k(k + 1)/(6n)), p from the studentised range with k groups and df = ∞ (q·√2) Conover: t = |Rᵢ − Rⱼ| / √(2(n·A − ΣRⱼ²) / ((n − 1)(k − 1))), A = Σ (all ranks)², df = (n − 1)(k − 1)

The Friedman χ² matches R’s friedman.test (with tie correction), and the Nemenyi and Conover post-hoc tests match frdAllPairsNemenyiTest and frdAllPairsConoverTest from the PMCMRplus package.

Worked example

Twelve panellists scored four recipes on a 1–9 scale. The Friedman test gives χ²(3, N = 12) = 27.00, p < .001, with Kendall’s W = .75, a strong and consistent preference. The Nemenyi test shows that recipe A (highest mean rank, letter a) was ranked higher than recipes B and D, and recipe C higher than recipe D.

Assumptions

  • The blocks (subjects) are independent of each other and every block has a value for every condition.
  • Values can be ranked within each block. No normality or equal-variance assumption is needed.
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 post-hoc test should I use after a Friedman test?

The Nemenyi test is the classic choice; it compares all pairs and controls the family-wise error rate, but it is conservative. The Conover test is more powerful and lets you choose an adjustment such as Holm. Pairwise Wilcoxon signed-rank tests with a Holm correction are another common option.

How do I report the effect size for a Friedman test?

Report Kendall’s W = χ² / (n(k − 1)). It ranges from 0 (no agreement among subjects on the order of conditions) to 1 (complete agreement). Rough guidelines: .1 small, .3 moderate, .5 large.

What is the Iman–Davenport correction?

Iman and Davenport (1980) showed that the Friedman χ² is conservative and proposed an F version of it. It gives smaller p-values and is often reported in machine-learning comparisons of algorithms. The tool shows both.

Can I use the Friedman test with missing values?

The standard test needs complete blocks, so rows with a missing value are left out and the number left out is reported. If many values are missing, consider a mixed-effects model instead.

Is the Friedman test the same as a two-way ANOVA on ranks?

Not exactly, but it is closely related: it is equivalent to ranking within blocks and testing the treatment effect. That is why it is used for randomised complete block designs with non-normal or ordinal data.

Is my data uploaded?

No. Everything runs in your browser.

Do I need to log in or create an account to use the Friedman 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). Friedman test calculator [Online tool]. Codanics. Retrieved [date you used it], from https://codanics.com/tools/friedman-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 17 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.