False Discovery Rate and Bonferroni Correction Calculator

Adjusted p-values by Benjamini-Hochberg, Benjamini-Yekutieli, Holm and Bonferroni, and which tests stay significant.

Bonferroni multiplies each p-value by the number of tests m (or compares p with α/m). Benjamini-Hochberg sorts the p-values, multiplies the p-value of rank i by m/i, and takes the running minimum from the largest rank down, giving adjusted p-values that control the false discovery rate. A test is significant at FDR q if its adjusted p-value is ≤ q.

Free, runs in your browser. Nothing you enter is uploaded.

How to use it

  1. Paste your p-values, one per line or separated by commas.
  2. Set the significance level (α for Bonferroni and Holm, the FDR q for Benjamini-Hochberg).
  3. Read how many tests survive each correction and copy the adjusted p-value table.

What you enter

What you get

Formula

Bonferroni: p × m | Holm: max over k ≤ rank of (m − k + 1) × p₍ₖ₎ | BH: min over k ≥ rank of p₍ₖ₎ × m / k | BY: BH × Σ₁ᵐ 1/i

All adjusted values are capped at 1. A test is called significant when its adjusted p-value is at or below the chosen level.

Worked example: 14 p-values

Input: 0.0001, 0.0008, 0.0021, 0.0094, 0.012, 0.019, 0.031, 0.042, 0.060, 0.074, 0.21, 0.45, 0.62, 0.89 at 0.05

Result: 8 unadjusted; 3 after Bonferroni and Holm; 6 after Benjamini-Hochberg; 3 after Benjamini-Yekutieli

FDR control keeps twice as many findings as Bonferroni, with the expectation that about 5% of them are false.

Questions

How do you calculate the Benjamini-Hochberg adjusted p-value?

Rank the m p-values from smallest (rank 1) to largest. For each, compute p × m / rank. Then, working from the largest rank down, replace each value with the smallest value seen so far, and cap at 1. These are the BH-adjusted p-values (often called q-values).

When should I use Bonferroni instead of FDR?

Use Bonferroni or Holm when even one false positive is costly and you run a handful of planned tests. Use Benjamini-Hochberg for screens with many tests (RNA-seq, proteomics, GWAS), where you accept that a set share of hits may be false in exchange for much more power.

Is Holm better than Bonferroni?

Holm controls the same family-wise error rate and is never less powerful, so there is little reason to use plain Bonferroni except simplicity.

Is the FDR-adjusted p-value the same as a q-value?

In practice, Benjamini-Hochberg adjusted p-values are often reported as q-values. Storey's q-value method also estimates the proportion of true null hypotheses and gives slightly smaller values.

What is Benjamini-Yekutieli?

A more conservative FDR procedure that stays valid under any dependence between tests, at the cost of power. It multiplies the BH adjustment by Σ(1/i) for i = 1 to m.

Limitations

References

Related reading

More Statistics

All free tools · By Dr. Zubair Khalid, DVM, MS, PhD.