Calculate the minimum sample size needed for your A/B test to achieve statistical significance for a binary outcome like conversion rate.
Baseline proportion (p0): 0.05
MDE proportion (d): 0.02
Z-score for alpha: 0
Z-score for power: 0
Proportion for Control (p1): 0.05
Proportion for Variant (p2): 0.07
Pooled variance (v): 0.113
Sample size per group (rounded up):
0
Control group participants:
Variant group participants:
Total sample size:
Estimated days to complete experiment:
You need 0 participants per variant to detect a 2 percentage point lift with power at 5 significance.
This formula calculates the minimum participants per group needed to detect a statistically significant difference in an A/B test.
The main formula for sample size per group is:
n_per_group = ((z_alpha + z_beta)^2 * (p1(1-p1) + p2(1-p2))) / (d^2)
Consider an example: baseline conversion 5%, MDE 2 percentage points, 80% power, and 5% significance (alpha).
The calculated sample size aids in planning your A/B test for reliable results.
The MDE should be the smallest practical difference meaningful for your business goals.
If traffic is low, consider running the test longer, increasing MDE, or adjusting power/alpha.
For A/B/n tests (multiple variants), you need larger sample sizes and must adjust the significance level for multiple comparisons.