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
- Paste your p-values, one per line or separated by commas.
- Set the significance level (α for Bonferroni and Holm, the FDR q for Benjamini-Hochberg).
- Read how many tests survive each correction and copy the adjusted p-value table.
What you enter
- List of p-values
- Significance level α or FDR q
What you get
- Bonferroni, Holm, Benjamini-Hochberg and Benjamini-Yekutieli adjusted p-values
- Number of significant tests under each
- Bonferroni per-test threshold
- Copyable table
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
- Assumes the p-values are valid for their own tests.
- BH assumes independent or positively dependent tests; use BY if that is in doubt.
References
- Benjamini Y, Hochberg Y (1995) Journal of the Royal Statistical Society Series B 57:289-300.
- Holm S (1979) Scandinavian Journal of Statistics 6:65-70.
- Benjamini Y, Yekutieli D (2001) Annals of Statistics 29:1165-1188.
Related reading
- Bonferroni vs. Benjamini-Hochberg FDR
- Bonferroni Correction for Multiple Comparisons: When and How to Use It
- Multiple Comparisons: Controlling the Family-Wise Error Rate
- Pathway Enrichment Multiple Testing: A Practical Guide
- Multiple Testing Correction in Proteomics
More Statistics
- Standard Deviation Calculator
- Mean, Median & Mode Calculator
- Variance Calculator
- Z-Score Calculator
- P-Value Calculator
- Confidence Interval Calculator
- T-Test Calculator
- Chi-Square Test Calculator
- Correlation Coefficient Calculator
- Linear Regression Calculator
- Normal Distribution Calculator
- Probability Calculator
All free tools · By Dr. Zubair Khalid, DVM, MS, PhD.