FreeStatisticalTools.com

Friedman Test: When to Use It, Example, Post Hoc Tests and APA Report

The Friedman test is the nonparametric alternative to repeated measures ANOVA. This guide shows when to use it, how it works, a worked example with post hoc tests and Kendall's W, and how to report the result in APA style.

Bibin Xavier4 min readNonparametric tests
Free tool · runs in your browserFriedman Test CalculatorFree Friedman test calculator for three or more related measurements: chi-square, mean ranks, Kendall’s W and Bonferroni post-hoc Wilcoxon tests.Open the tool →

The Friedman test compares three or more related measurements, such as the same people tested under three conditions or at four time points, without assuming the data are normally distributed. It is the nonparametric alternative to repeated measures ANOVA, and it is the natural choice for ordinal outcomes such as Likert ratings or pain scores.

Key takeaways
  • Use it for one group measured three or more times (or matched sets of subjects).
  • It ranks the scores within each person, then checks whether the average ranks differ.
  • Report χ²F(df) = value, p, and Kendall’s W as the effect size.
  • If significant, follow up with pairwise Wilcoxon signed-rank tests and a Bonferroni or Holm correction.
In this guide
  1. When to use the Friedman test
  2. Hypotheses
  3. How the Friedman test works
  4. Assumptions
  5. Worked example
  6. Effect size: Kendall’s W
  7. Post hoc tests
  8. Friedman test vs repeated measures ANOVA
  9. How to report it in APA 7
    1. Run a Friedman test with post hoc tests

When to use the Friedman test

Choose the Friedman test when:

  • The same participants (or matched blocks) give a score under every condition.
  • You have three or more conditions or time points. With only two, use the Wilcoxon signed-rank test.
  • The outcome is ordinal (ratings, ranks) or continuous but clearly non-normal, or there are outliers that would distort a repeated measures ANOVA.

If your groups are independent (different people in each group), use the Kruskal-Wallis test instead. Not sure which test you need? See which statistical test to use.

Hypotheses

  • H₀: the distributions of scores are the same under every condition (the mean ranks are equal).
  • H₁: at least one condition tends to give higher or lower scores than the others.

How the Friedman test works

  1. For each participant, rank their scores across the conditions from 1 (lowest) to k (highest). Ties get the average rank.
  2. Add up the ranks for each condition (R₁, R₂, … Rk).
  3. Calculate the test statistic:

χ²F = [12 / (n k (k + 1))] × ΣRj² − 3 n (k + 1)

where n is the number of participants and k the number of conditions. It follows a chi-square distribution with k − 1 degrees of freedom (software applies a small correction for ties).

Because ranking happens within each person, stable differences between people (some always rate everything high) are removed automatically, just as in repeated measures ANOVA.

Assumptions

  • One group measured on three or more occasions, or matched blocks.
  • The participants are a random sample and independent of each other.
  • The outcome is at least ordinal.
  • No assumption of normality or sphericity.

Worked example

A clinic tests two pain-relief treatments against a placebo. Ten patients each try all three, in random order, and rate their pain from 0 to 10.

Patient Placebo Treatment A Treatment B
1 6 4 3
2 7 5 5
3 5 5 3
4 8 6 4
5 6 3 4
6 7 6 5
7 5 4 2
8 6 5 3
9 8 5 6
10 7 4 4
Median 6.5 5.0 4.0
Mean rank 2.95 1.75 1.30

The test gives χ²F(2) = 15.73, p < .001. Pain ratings differ across the three conditions; placebo has the highest mean rank (most pain).

Effect size: Kendall’s W

Kendall’s coefficient of concordance is the usual effect size for the Friedman test:

W = χ²F / (n (k − 1)) = 15.73 / (10 × 2) = 0.79

W runs from 0 (no consistent pattern across people) to 1 (everyone ranks the conditions in the same order). Common guidelines are .10 small, .30 moderate and .50 large, so W = .79 is a large effect: most patients ranked the conditions in the same way.

Post hoc tests

A significant Friedman test tells you that the conditions are not all the same, not which ones differ. Run pairwise Wilcoxon signed-rank tests and correct for multiple comparisons. With three conditions there are three comparisons, so the Bonferroni correction multiplies each p by 3.

Comparison p p (Bonferroni)
Placebo vs Treatment A .004 .012
Placebo vs Treatment B .002 .006
Treatment A vs Treatment B .086 .258

Both treatments reduced pain compared with placebo, but they did not differ significantly from each other. The Holm correction is a slightly more powerful alternative that leads to the same conclusion here. The Friedman calculator runs these comparisons for you with a Bonferroni correction.

Friedman is not a test of medians

Like other rank tests, the Friedman test compares the overall distribution of ranks. Report medians and IQRs to describe the data, but phrase the conclusion in terms of “higher” or “lower” scores rather than claiming the medians differ.

Friedman test vs repeated measures ANOVA

Repeated measures ANOVA Friedman test
Outcome Continuous, approx. normal Ordinal or non-normal
Compares Means Mean ranks
Extra assumption Sphericity None
Effect size Partial η² Kendall’s W
Post hoc Paired t-tests (corrected) Wilcoxon tests (corrected)

If your data meet the ANOVA assumptions, repeated measures ANOVA has more power. If they clearly do not, or your outcome is a single Likert item, the Friedman test is the safer choice. Check normality with the Shapiro-Wilk test on the differences.

How to report it in APA 7

How to report it (APA 7)
A Friedman test showed that pain ratings differed significantly across the three conditions, χ²F(2) = 15.73, p < .001, Kendall's W = .79. Post hoc Wilcoxon signed-rank tests with a Bonferroni correction showed lower pain with Treatment A (Mdn = 5.0, p = .012) and Treatment B (Mdn = 4.0, p = .006) than with placebo (Mdn = 6.5). Treatments A and B did not differ significantly (p = .258).[/fst_report] [fst_faq]
What is the Friedman test used for?

It compares three or more related measurements, such as the same people measured at several time points or under several conditions, when the data are ordinal or not normally distributed.


What is the difference between the Friedman test and Kruskal-Wallis?

Friedman is for related (repeated or matched) measurements; Kruskal-Wallis is for independent groups with different people in each group.


What post hoc test should I use after a Friedman test?

Pairwise Wilcoxon signed-rank tests with a Bonferroni or Holm correction are the most common choice. The Nemenyi and Conover tests are alternatives available in some software.


How many participants do I need?

There is no strict minimum, but with fewer than about 10 participants the test has little power. A power analysis for repeated measures ANOVA, with a 10 to 15% increase, gives a rough sample size.


Can I use the Friedman test for Likert scale data?

Yes. It is a good choice for a single Likert item measured several times. For multi-item scale scores that are roughly normal, repeated measures ANOVA is also acceptable. See our guide to analysing Likert scale data.


[/fst_faq]

Free tools used in this guide

Cite this article

If this guide helped your thesis, paper or class, please cite it. If you ran the analysis with one of our tools, cite the tool as well (each tool page has its own citation).

Xavier, B. (2026, November 8). Friedman Test: When to Use It, Example, Post Hoc Tests and APA Report. FreeStatisticalTools.com Blog. https://freestatisticaltools.com/blog/friedman-test/
Free eBooks · Newsletter

Get 3 free step-by-step eBooks

PLS-SEM, CB-SEM and bibliometric analysis, plus APA results templates, a thesis methods checklist and questionnaire templates. Then about two emails a month with tutorials, new tools, workshops and conferences.

  • Sent to your inbox instantly
  • Free, no spam
  • Unsubscribe anytime
See everything you get →
CB-SEM and CFA Step by Step (free eBook)PLS-SEM Step by Step (free eBook)Bibliometric Analysis Step by Step (free eBook)

Free statistics tutorials, tools, workshops and conferences

Free. About two emails a month. Unsubscribe anytime.

About Bibin Xavier

Bibin Xavier is a researcher, assistant professor, developer, digital marketer, trainer, entrepreneurship and incubation coordinator

Connect on LinkedIn →

Ask a question or leave a comment

Your email address will not be published. Required fields are marked *