The A/B Test Pre-Planning Calculator determines the required sample size and estimated test duration before running an experiment. It estimates the sample for detecting an effect of the planned size at the chosen power; a significant result is not guaranteed. The formula is an approximation based on the baseline rate, target rate, significance level and power. Common planning choices are 80% power and 95% confidence. PM Toolkit's free A/B test planning calculator helps product managers plan experiments with automatic duration estimation based on daily traffic and minimum detectable effect.
What is A/B Test Planning?
A/B test planning determines the sample size and duration needed before running an experiment. Planning shows the traffic needed for the effect size you want to detect.
Sample Size Formula
Approximation: n ≈ (Z_alpha + Z_beta)^2 x 2 x p(1-p) / MDE^2
Where: Z_alpha = z-score for two-sided significance level (1.96 for alpha = 0.05), Z_beta = z-score for statistical power (0.84 for 80%), p = baseline conversion rate, MDE = absolute minimum detectable effect expressed as a proportion; n is per group at equal allocation
Test Duration Formula
Duration (days) = total required sample / total eligible daily traffic (rounded up)
Illustrative planning settings
| Parameter | Standard | Conservative |
|---|---|---|
| Confidence Level | 95% (alpha=0.05) | 99% (alpha=0.01) |
| Statistical Power | 80% | 90% |
| Example duration to review | 1 week | 2 full business cycles |
Ask Claude, Cursor, or ChatGPT to run this calculator.
Install once. 24 web calculators · 17 in your AI · 12 PM workflows
A/B Test Sample Size Calculator
Plan sample size and duration for the improvement you want to detect. Compare the required traffic with what you can recruit.
Updated
Looking for: 5% → 5.75%
Not sure? These presets illustrate planning trade-offs. Choose the effect size, confidence and power for your question before launching.
Sample per group at 50/50 allocation
- Total
- 27,068
- Duration
- 28 days
- Target
- 5.75%
Estimated over 3 weeks
Why this matters
Control Group
13,534
Variant Group
13,534
= n: 13,534 per variant · p: 5% · MDE: 15%
Equal-allocation approximation. The calculator uses the Evan Miller sizing formula and adjusts group totals for allocation.
What is A/B Test Planning?
A/B test planning estimates the sample and duration needed for an experiment. Set the minimum detectable effect, power, significance level, and stopping rule before launch so a promising early result does not change the plan.
Test Duration Formula
Duration (days) = Required Sample per Variant ÷ Daily Traffic per Variant
Planning defaults
95% confidence and 80% power are common planning defaults; document your choices before launch.
Rate this calculator: