Skip to content
ToolMug

Use ↑ ↓ to move, Enter to open, Esc to close.

Friedman Test Calculator

When the same people are measured under three or more conditions or time points and the data aren't normal (or are ratings), use the Friedman test instead of a repeated-measures ANOVA. Paste one column per condition and one row per person to see whether the conditions differ and which pairs do.

Runs in your browser — nothing you enter is uploaded

One row per person, one column per condition or time point (3 or more). Rows with a blank are left out.

χ² = 14

p = 0.0009

Significant difference (p < 0.05).

Descriptive statistics

ConditionMedianMean rank
T14.51.15
T262.05
T372.8

Test statistics

StatisticValue
Complete rows10
χ²14
df2
p0.0009
Kendall’s W0.7

Pairwise Wilcoxon signed-rank tests

Pairpp (Bonferroni)
T1 – T20.01870.0561
T1 – T30.00520.0155
T2 – T30.02220.0665
Report asχ²(2) = 14.00, p < .001, W = .70

Same results as R’s wilcox.test(), kruskal.test() and friedman.test(): exact p-values when both samples are under 50 with no ties, otherwise the normal approximation. These tests compare ranks, not means.

Is this tool working for you?

How to use

  1. One row per person, one column per condition or time point (at least 3). A header row is optional.
  2. Read χ² and p. p < 0.05 means at least one condition differs.
  3. If it is significant, check the pairwise table; pairs with adjusted p < 0.05 differ.

Options explained

Mean rank
Each person's values are ranked within their own row, then the ranks are averaged per condition. A higher mean rank means higher values.
Kendall's W
χ² ÷ [n(k − 1)], between 0 and 1, used as the effect size. The closer to 1, the more consistently people rank the conditions the same way.
Pairwise comparisons
A Wilcoxon signed-rank test for every pair of conditions, with p multiplied by the number of comparisons (Bonferroni); three conditions mean three comparisons.

Worked example

The sample has 10 people rated at T1, T2 and T3:

Condition Median Mean rank
T1 4.5 1.15
T2 6 2.05
T3 7 2.80

χ²(2) = 14.0, p = 0.0009, Kendall’s W = 0.70, so the time points differ. After the Bonferroni adjustment T1 and T3 differ (p = 0.016), while T1 vs T2 (p = 0.056) and T2 vs T3 (p = 0.067) do not.

APA style: χ²(2) = 14.00, p < .001, W = .70.

Frequently asked questions

How is it different from Kruskal–Wallis?

Kruskal–Wallis compares separate groups of people. Friedman compares the same people across conditions, so the rows must be matched.

What about missing values?

A row with any blank is left out entirely.

Does it match SPSS?

χ², df and p match the Friedman test in SPSS (K related samples) and R's friedman.test(). Newer SPSS versions use Dunn's test for pairwise comparisons, so those p-values differ.

Privacy

This tool runs entirely in your browser. Your files and text are processed on your device and are never uploaded to our servers.

Related tools