Friedman Test Calculator

Run a Friedman Test on repeated-measures data right in your browser. Enter your data matrix (subjects as rows, treatments as columns) and set the significance level (α) — the calculator returns the Friedman Q statistic, degrees of freedom, p-value, and a clear reject / fail-to-reject decision on the null hypothesis. No software needed for this non-parametric alternative to one-way repeated-measures ANOVA.

The probability threshold used to determine statistical significance.

How many conditions or treatments were measured (minimum 3).

Enter each subject's measurements as a row. Use commas, spaces, or tabs to separate values within a row. Each new line is a new subject.

Results

Friedman Q Statistic

--

P-Value

--

Degrees of Freedom (df)

--

Number of Subjects (n)

--

Chi-Square Critical Value

--

Decision

--

Mean Rank per Treatment

Results Table

Frequently Asked Questions

What is the Friedman test used for?

The Friedman test is a non-parametric statistical test used to detect differences across multiple related groups or repeated measurements. It is the non-parametric equivalent of the one-way repeated-measures ANOVA and is appropriate when the data does not meet normality assumptions, is ordinal, or contains outliers.

When should I use the Friedman test instead of repeated-measures ANOVA?

Use the Friedman test when your data violates the normality assumption required by repeated-measures ANOVA, when you have ordinal data, or when your sample size is small. It is also suitable if you have significant outliers that could distort the ANOVA results.

How do I use this Friedman test calculator?

Enter your data matrix in the text area with one subject per row and one treatment per column, separating values with commas or spaces. Set the number of treatments and your desired significance level (α), then click Calculate. The tool outputs the Q statistic, p-value, degrees of freedom, critical value, and the hypothesis decision.

What is the null hypothesis in the Friedman test?

The null hypothesis (H₀) states that all treatment conditions have the same distribution — in other words, there is no significant difference between the groups. If the p-value is less than your chosen α, you reject H₀ and conclude that at least one treatment differs significantly from the others.

How is the Friedman Q statistic calculated?

The Friedman test works by ranking the values within each subject (row) across all treatments. It then sums the ranks for each treatment across all subjects. The Q statistic is derived from these rank sums using the formula: Q = [12 / (n·k·(k+1))] · Σ(Rⱼ²) − 3n(k+1), where n is the number of subjects, k is the number of treatments, and Rⱼ is the rank sum for treatment j.

What does the p-value mean in the Friedman test?

The p-value represents the probability of observing a Q statistic as extreme as the calculated one, assuming the null hypothesis is true. A p-value below your significance level (e.g. 0.05) indicates statistically significant differences between at least two of the treatment conditions.

What should I do after a significant Friedman test result?

If the Friedman test is significant, you should perform post-hoc pairwise comparisons to determine which specific groups differ. Common post-hoc tests include the Nemenyi test and the Dunn-Bonferroni test, both of which control for multiple comparisons while preserving the overall Type I error rate.

What is the minimum data requirement for the Friedman test?

You need at least 3 treatment conditions (columns) and ideally at least 5 subjects (rows) for reliable results. The test requires that the same subjects are measured under each condition — this is the repeated-measures or within-subjects design requirement.

More Statistics Tools