Bonferroni & Šidák Multiple-Testing Correction Calculator (FWER, Adjusted p)

Control Family-Wise Error Rate (FWER) across m comparisons via Bonferroni and Šidák.

Bonferroni Per-Test Alpha Cutoff (α / m) 0.003 p-cutoff
Šidák Exact Per-Test Cutoff 0.003 p-cutoff
Unadjusted Family-Wise Error Rate 64.151 %
Bonferroni-Adjusted p-Value (m × p) 0.08 p_adj
Inputs
Try:
α
Target family-wise significance level α (typically 0.05).
m tests
Total number of independent hypothesis tests m.
raw p
Observed unadjusted p-value from an individual test.
Results & Graph
Bonferroni Per-Test Alpha Cutoff (α / m)
0.003 p-cutoff
Šidák Exact Per-Test Cutoff
0.003 p-cutoff
Unadjusted Family-Wise Error Rate
64.151 %
Bonferroni-Adjusted p-Value (m × p)
0.08 p_adj

Bonferroni Per-Test Alpha Cutoff (α / m)

Graph 1 • How the inputs feed Bonferroni & Šidák FWER
Bonferroni, Šidák & Holm-Bonferroni Multiple Hypothesis Testing FWER Correction Calculator • Custom Domain Schematic (Non-Parametric & Hypothesis Testing) nominalFnumberOfBonferroni & Šidák FWE Nominal Family Alpha: 0.0500 α • Number Of Comparisons M: 20 m tests BONFERRONI PER-TEST ALPHA 0.003 p-cutoff • Šidák Exact Per-Test C: 0.003 p-cutoff • Unadjusted Family-Wise: 64.151 % Eq: FWER_unadjusted = 1 − (1 − α)^m;
Graph 2 • Bonferroni Per-Test Alpha Cutoff (α / m) as Nominal Family Alpha changes (40% to 160% of current)
0 p-cuto 0.550 p-cuto 1.10 p-cuto 0.00100 0.0200α 0.00200 0.0300α 0.00200 0.0400α 0.00300 0.0500α 0.00300 0.0600α 0.00400 0.0700α 0.00400 0.0800α
Graph 3 • Nominal Family Alpha and Number Of Comparisons M together Compares Bonferroni Per-Test Alpha Cutoff (α / m) when Number Of Comparisons M is shifted +25% (solid) vs. −25% (dashed).
0 p-cuto 0.550 p-cuto 1.10 p-cuto --- Number Of Comparisons M @ 75% 0.00100 -30% 0.00200 -15% 0.00200 +0% 0.00200 +15% 0.00300 +30%
Summary: Across 20 tests at α=0.05, unadjusted FWER inflates to 64.2%; Bonferroni cutoff is 0.0025, Šidák cutoff is 0.00256, and raw p=0.004 adjusts to p_Bonf=0.08.
Summary: Across 20 tests at α=0.05, unadjusted FWER inflates to 64.2%; Bonferroni cutoff is 0.0025, Šidák cutoff is 0.00256, and raw p=0.004 adjusts to p_Bonf=0.08.
Interactive chart & math engine powered by CalculatorGraph

Formula: Bonferroni & Šidák FWER Formula

FWERunadjusted = 1 − (1 − α)m
αBonferroni = α / m
α_Šidák = 1 − (1 − α)1/m
FWER_unadjusted = 1 − (1 − α)^m; α_Bonferroni = α / m; α_Šidák = 1 − (1 − α)^(1/m)
  • nominalFamilyAlpha: Nominal Family Alpha (α)
  • numberOfComparisonsM: Number Of Comparisons M (m tests)
  • observedRawPValue: Observed Raw P Value (raw p)

Frequently Asked Questions

How does the Bonferroni, Šidák & Holm-Bonferroni Multiple Hypothesis Testing FWER Correction Calculator compute the solution?

It evaluates FWER_unadjusted = 1 − (1 − α)^m; α_Bonferroni = α / m; α_Šidák = 1 − (1 − α)^(1/m) directly in your browser and updates three custom SVG visualizations in real time.

Why do the Bonferroni and Šidák cutoffs both show 0.003 when the sentence gives different values?

The result card rounds to three decimal places. The true values at the default are 0.0025 for Bonferroni and 0.00256 for Šidák, as the sentence under the result says. Use the sentence values for any decision. A p-value of 0.0028, for example, looks as if it passes the rounded 0.003 but fails both real cutoffs.

Does changing alpha change the Bonferroni-adjusted p-value?

No. The adjusted p-value is simply raw p multiplied by m, capped at 1, so alpha plays no part. That is why the presets at alpha 0.03, 0.05 and 0.075 all show 0.08. What alpha changes is the yardstick you compare 0.08 against. At alpha 0.075, 0.08 still fails; at an alpha of 0.1 it would pass.

Should I use Bonferroni or Šidák?

If your tests are independent or positively related, Šidák is very slightly more powerful. If you are unsure how they relate, Bonferroni is the safer default because it needs no assumption. With twenty tests the cutoffs differ only between 0.0025 and 0.00256, so the choice rarely changes a conclusion. Holm, done by hand, beats both, and it keeps the same lack of assumptions as Bonferroni, so there is little reason not to use it when you have the full list of p-values.

How do I get Holm results from this calculator?

Run it once per position in your sorted list, entering a smaller m each time. For the smallest p-value use the full m, for the next use m minus 1, and so on. Compare each p with the Bonferroni cutoff shown, and stop at the first failure. The sentence under the result gives the unrounded cutoff for each step.

Is the 64.151% the chance that one of my significant results is false?

Not quite. It is the chance of at least one false positive across twenty tests when every null hypothesis is true and nothing is corrected. If some of your effects are real, the chance that a given significant result is false depends on how many real effects there are, which this calculator cannot know. Correcting brings that 64.151% back down to about 5%.

What happens if I enter a raw p-value larger than 1?

The calculator refuses it and asks you to enter a raw p-value from 0 to 1, along with an alpha between 0 and 1 and a whole number of tests. A p-value above 1 is always an input mistake, so check the number you copied from your software. Some packages print minus log10 p instead, which is easy to mistake for a p-value.

Can I correct p-values that came from different kinds of test?

Yes. Bonferroni and Holm only use the p-values themselves, so a family can mix t-tests, chi-square tests and correlations. What matters is that each p-value is valid on its own. The Šidák cutoff assumes the tests are independent or positively dependent, which is harder to judge when they come from different analyses on the same data. When in doubt, use Bonferroni or Holm.

Why does the family error at one test read as 5%?

With m of 1 there is nothing to correct. The formula gives 1 minus 0.95, which is 5%, both cutoffs equal alpha and the adjusted p equals the raw p. The sentence still says the error inflates to 5%, which is just fixed wording. It is a handy check that the fields are filled in as you meant before you enter your real number of tests.

Does a Bonferroni-corrected non-significant result mean there is no effect?

No. It means the evidence for that one test is not strong enough given how many tests you ran. The default raw p of 0.004 is fairly small, and the effect may well be real. Corrections cut false positives at the cost of more false negatives, so report the raw and adjusted values and the effect size together. A follow up study can then test that one hypothesis on its own.

Should I count tests I ran but did not report in m?

Yes, if they were part of the same search for an effect. The correction protects you against having looked at many results and picked the best one. Leaving out tests that came back dull understates m and makes your remaining results look stronger than they are. Prespecifying the family before analysis avoids the temptation and makes the correction easy to defend to a reviewer.

Twenty tests at 0.05: why the family error reaches 64.151%

Run one test at a significance level of 0.05 and you accept a 5% chance of a false positive when nothing is going on. Run twenty independent tests at that level and the chances stack. The probability that none of them fires by accident is 0.95 multiplied by itself twenty times, about 0.358. The probability that at least one fires is the rest, which is the 64.151% the calculator reports as the unadjusted family-wise error rate.

That number is the whole reason the page exists. If you screened twenty biomarkers, twenty survey questions or twenty A/B test metrics and reported any that came in under 0.05, you would have nearly a two in three chance of announcing at least one effect that is pure noise.

The figure climbs quickly with the number of tests. I ran the engine with the default alpha: five tests give 22.6%, ten give 40.1%, fifty give 92.3%, and a hundred give 99.4%. Past a few dozen comparisons, an uncorrected analysis is almost guaranteed to produce a false hit.

The formula, 1 minus (1 minus alpha) to the power m, assumes the tests are independent. Correlated tests, such as several measures of the same underlying outcome, inflate the error less than this. The calculator always uses the independent case, so treat 64.151% as the upper end of what twenty correlated tests would do.

Bonferroni and Šidák cutoffs side by side

The headline answer is the Bonferroni cutoff, alpha divided by m. With 0.05 and 20 tests that is 0.0025. The first supporting line is the Šidák cutoff, 1 minus (1 minus alpha) to the power 1/m, which works out to 0.00256.

Šidák is the exact answer to a precise question: what per test level, applied to m independent tests, gives a family error of exactly alpha? Bonferroni is a slightly conservative shortcut that holds whether or not the tests are independent. That is why the Šidák cutoff is always a touch larger. The gap is tiny in most real cases, 0.00256 against 0.0025 at the default.

If you apply the Bonferroni cutoff to twenty independent tests, the true family error is about 4.88%, a little under the 5% you were aiming for. Šidák spends the full 5%. In return, Šidák's guarantee leans on independence or on positive dependence; Bonferroni's does not need any assumption about how the tests relate.

In practice the two give the same decision unless a p-value falls in the thin sliver between them. At the default, a p-value of 0.00252 would pass Šidák and fail Bonferroni. Anything at 0.004, like the default raw p, fails both.

The rounded 0.003 on screen is really 0.0025

Look closely at the result card and both cutoffs read 0.003. That is display rounding to three decimal places, not the real threshold. The sentence underneath gives the true figures: 0.0025 for Bonferroni and 0.00256 for Šidák.

This matters more than it looks. A reader who sees 0.003 might decide that a p-value of 0.0028 passes, when it actually fails the real Bonferroni cutoff. With the higher preset, alpha of 0.075, the card shows a cutoff of 0.004, the same as the default raw p of 0.004. The real Bonferroni cutoff there is 0.00375, so p = 0.004 still fails.

The rounding gets worse with more tests. At a hundred tests the card shows 0.001 for both cutoffs, while the sentence correctly says 0.0005 and 0.00051. At alpha 0.01 with twenty tests the card also shows 0.001 where the true cutoff is 0.0005.

So always read the sentence under the result when you make a decision. The rounded card values are fine for a quick look but should never be compared directly with a p-value.

Reading the 0.08 Bonferroni-adjusted p-value

The last supporting line flips the comparison around. Instead of shrinking alpha, it inflates your p-value: raw p times m, capped at 1. The default raw p of 0.004 times 20 is 0.08, which you then compare with the ordinary 0.05. Because 0.08 is above 0.05, the result is not significant after correction.

This is the same decision as comparing 0.004 with the 0.0025 cutoff, just expressed on the familiar scale. Adjusted p-values are handy for tables, because readers can check every row against 0.05 without knowing m.

Two things about this line are easy to miss. First, alpha does not affect it at all; the low, default and high presets all show 0.08 because only p and m go into it. Second, it caps at 1. A raw p of 0.06 with twenty tests gives exactly 1, not 1.2, because a probability cannot exceed one.

The calculator only shows the Bonferroni version of the adjusted p. The Šidák adjusted value, 1 minus (1 minus p) to the power m, would be slightly smaller, about 0.077 at the default, and it gives the same verdict here.

Holm step-down thresholds worked by hand

The calculator works with one p-value at a time and so cannot run Holm's method, which needs the whole set. You can do it by hand in a few minutes using the same alpha and m.

Sort your p-values from smallest to largest. Compare the smallest with alpha divided by m, the next with alpha divided by m minus 1, the next with alpha divided by m minus 2, and so on, until the last is compared with alpha itself. Stop at the first p-value that fails. It and everything larger are not significant; everything before it is.

Here is a worked case with five tests at 0.05. Suppose the sorted p-values are 0.001, 0.008, 0.012, 0.03 and 0.2. The thresholds are 0.01, 0.0125, 0.0167, 0.025 and 0.05. The first three pass, 0.03 fails against 0.025, and testing stops. Holm rejects three hypotheses.

Plain Bonferroni would compare all five with 0.01 and reject only the first two. Holm controls the same family error, under the same lack of assumptions, but it is never less powerful and is often more. For twenty tests at 0.05, Holm's first threshold is the same 0.0025 the calculator gives, the second is 0.05 divided by 19, about 0.00263, and the last is 0.05.

Holm adjusted p-values follow the same pattern: multiply the smallest by m, the next by m minus 1, and so on, then carry the running maximum forward so the list never decreases. For the five example values that gives 0.005, 0.032, 0.036, 0.06 and 0.2.

Choosing m: what counts as the family

The m field asks for the number of tests. The hardest part of any correction is deciding which tests belong together. The usual rule is to count every test that could have led you to make the claim you are making. If you looked at twenty outcomes and would have reported whichever one came out significant, m is 20, even if you only mention one in the write up.

Tests you planned in advance as separate questions, for different audiences or decisions, are often corrected separately. A trial might treat its primary outcome on its own at 0.05 and correct only the secondary outcomes among themselves.

The m field takes a whole number of 1 or more; a fraction or zero brings up a request to check the inputs. With m of 1 the cutoffs are both 0.05 and the adjusted p equals the raw p, which is a useful sanity check that you have entered things correctly.

Underreporting m is the most common way these corrections get misused. Dropping tests from the count because they looked uninteresting, after you saw their results, defeats the point entirely. If you are unsure, report the result both ways: with m counting only your planned tests and with m counting everything you looked at. Readers can then judge for themselves.

When family-wise control is too strict

Bonferroni, Šidák and Holm all control the chance of even one false positive across the family. That is the right goal when a single false claim is costly, such as a confirmatory clinical trial or a safety signal. It is a harsh goal when you are screening many candidates and expect several to be real.

With hundreds or thousands of tests, as in genomics or large marketing experiments, a per test cutoff of alpha divided by m becomes so small that real effects are missed. In that setting many analysts switch to controlling the false discovery rate, the expected share of false positives among the results you call significant. This calculator does not compute that, and its cutoffs will look very strict in such work.

Alpha must lie strictly between 0 and 1. The engine will accept something as loose as 0.9, which gives a Bonferroni cutoff of 0.045 and a family error that rounds to 100%, but values that high are rarely sensible for a family error. Most work uses 0.05 or 0.01.

Whatever method you choose, decide it before you look at the p-values, and say in your report which correction you used and what m was. A reader can then redo the arithmetic with this calculator in seconds.