Bonferroni Correction Calculator

Bonferroni Correction Calculator

Adjust a set of p-values for multiple testing with the Bonferroni or Holm method, and see which results still count as significant.

Significant if p ≤ α ÷ m

One p-value per test, from the same family of comparisons.

Enter at least 2 p-values

What is the Bonferroni Correction?

The Bonferroni correction raises the bar for significance when you run several tests at once, so the overall chance of any false positive stays at α. With m tests, each must reach p ≤ α ÷ m.

Without a correction, false positives pile up. Run 20 tests of things that have no effect at α = 0.05 and there's a 64% chance at least one comes out "significant" purely by luck.

Bonferroni is simple but strict. Holm's method controls the same overall error rate while rejecting at least as many hypotheses, usually more, which is why it's the default here.

Bonferroni and Holm Formulas

Holm's step-down procedure as published by Holm (1979). See Sources.

1. Bonferroni

adjusted p = min(1, m × p) · significant if adjusted p ≤ α

2. Holm step-down

Sort p-values: p₍₁₎ ≤ p₍₂₎ ≤ … ≤ p₍ₘ₎
Compare p₍ₖ₎ with α ÷ (m − k + 1); stop at the first that fails

3. Why correct at all

P(at least one false positive in m independent tests) = 1 − (1 − α)ᵐ

Worked Example: Five Outcomes in One Trial

Given:
A trial tests five outcomes, with p-values 0.005, 0.011, 0.016, 0.040, 0.20, at an overall α of 0.05.
Step 1:
Bonferroni, threshold 0.05 ÷ 5 = 0.01:
only 0.005 passes → 1 significant
Step 2:
Holm, smallest first:
0.005 ≤ 0.05/5 ✓ · 0.011 ≤ 0.05/4 ✓ · 0.016 ≤ 0.05/3 ✓ · 0.040 > 0.05/2 ✗ stop
Step 3:
Without any correction:
4 of 5 below 0.05, but a 22.6% chance of at least one false positive
Result:
Holm keeps 3 results; Bonferroni keeps 1

Both hold the overall false-positive risk at 5%, but Holm wastes less power. The 0.040 result, significant on its own, doesn't survive either correction.

How False Positives Pile Up

Independent tests of effects that don't exist, each at α = 0.05.

Family-wise error rate by number of tests
TestsChance of ≥ 1 false positiveBonferroni threshold
15%0.05
314.3%0.0167
522.6%0.01
1040.1%0.005
2064.2%0.0025
10099.4%0.0005

Common Multiple-Testing Mistakes

  • Correcting only the tests that looked promising. m is every test you ran, not just the ones you report.
  • Using Bonferroni when Holm would do. Holm is never worse and often better. There's rarely a reason to prefer plain Bonferroni.
  • Correcting across unrelated studies. Correction applies within a family of related comparisons, such as all outcomes in one trial.
  • Using it for thousands of tests. In genomics-scale testing, Bonferroni is so strict that almost nothing survives. False discovery rate methods suit that setting better.

Bonferroni Correction FAQs

What is the family-wise error rate?

The chance of at least one false positive across all the tests in a family. Bonferroni and Holm both keep it at or below α.

Why is Holm better than Bonferroni?

After rejecting the smallest p-value, Holm compares the next with a slightly easier threshold. It controls the same error rate but finds more real effects.

What does an adjusted p-value mean?

The smallest overall α at which that test would be declared significant after correction. Compare it directly with your chosen α.

Why can adjusted p-values be 1?

Multiplying by the number of tests can exceed 1, and probabilities are capped at 1.

Is Bonferroni too conservative?

It can be, especially with many correlated tests. That’s the price of strict control of false positives.

What is the false discovery rate?

The expected share of false positives among the results you call significant. The Benjamini–Hochberg method controls it and is less strict than Bonferroni.

Do I need to correct for post hoc ANOVA comparisons?

Yes. Pairwise comparisons after ANOVA are a family; Tukey’s HSD or a Holm correction are common choices.

How do I do this in R?

p.adjust(p, method = "holm") or method = "bonferroni".

Sources

Related Tools