CalculatorVilla

Dunnett's Correction A/B/n Sample Size Estimator

Calculate the adjusted per-comparison alpha threshold and optimal traffic allocation when comparing k experimental treatments against a single baseline control using Dunnett’s procedure.

Adjusted Per-Comparison Alpha (α*): 0.01695

Count of test variants excluding the control (e.g. A/B/C/D is k = 3)

Maximum aggregate false positive risk across all variants

Planned sample size allocated to the control group

Adjusted Per-Comparison Alpha (α*)
0.01695

How to Use This Calculator

  1. Enter the number of treatment variants (k) tested against control.
  2. Select your target family-wise error rate (0.05 default).
  3. Enter the planned sample size for the control group.
  4. Review the adjusted p-value threshold and optimal variant sample allocation.

Formula & Calculation Methodology

α* ≈ 1 − (1 − α)^(1/k) | Optimal Allocation: N_control ÷ N_variant ≈ √k

Because all treatments are compared against the same shared control, test statistics are correlated. Dunnett’s correction accounts for this correlation, providing more power than independent Bonferroni tests.

kNumber of active treatment variants
αFamily-wise error rate (0.05)
α*Individual comparison threshold
√kSquare root optimal control sample ratio

Worked Example

A/B/C/D test with 3 variants (k = 3) at α = 0.05 and 5,000 control sample

numVariants: 3
familyAlpha: 0.05
controlSample: 5000
Result: α* = 0.01695 (Variant sample = 2,887, Total = 13,661)

Testing 2 variants against control at α = 0.05

numVariants: 2
familyAlpha: 0.05
controlSample: 10000
Result: α* = 0.02532 (Variant sample = 7,072, Total = 24,144)

Frequently Asked Questions

Why not use standard Bonferroni correction (α / k)?↓

Bonferroni assumes all tests are completely independent. In A/B/n testing, comparisons share the exact same control group and are positively correlated; Dunnett’s test accounts for this, preserving higher statistical power.

Why should the control group have more traffic than each variant (N_c / N_v = √k)?↓

According to Dunnett’s optimal allocation theorem, because the control participates in every comparison, allocating more sample to control minimizes overall variance across all comparisons.

Does Dunnett’s test allow comparing variants to each other (B vs C)?↓

No. Dunnett’s test is strictly designed for comparisons against the single control (B vs A, C vs A). If you need all pairwise comparisons (B vs C), use Tukey’s HSD instead.

What is a limitation of testing too many variants at once?↓

As k increases, the required alpha threshold becomes very strict, necessitating dramatically larger overall sample sizes to achieve statistical significance.

Related Calculators

Source Citation & Disclaimer

Informational tool only; not licensed tax, legal, or financial advice.