A/B Test Sample Size Calculator
Find how many visitors per variant your test needs at 80% power and 95% confidence.
e.g. 15 means you want to detect a 4% → 4.6% change.
Target conversion rate
4.60%
Sample size per variant
17,941
Total sample (A + B)
35,882
Assumes 95% confidence and 80% power — the standard defaults for Product Page Optimization tests.
The most common A/B testing failure isn’t bad statistics at the end — it’s launching a test that never had enough traffic to detect the effect you cared about. This calculator answers the question up front: given your baseline conversion rate and the minimum detectable effect (MDE) you want to catch, how many visitors does each variant need? It uses the standard frame of 80% power and a 5% significance level (alpha).
Those defaults mean: a 5% chance of declaring a winner when there is none (alpha), and an 80% chance of detecting the effect if it truly exists (power). The punchline is how fast requirements grow as effects shrink — detecting a 20% relative lift on a 4% baseline takes roughly 9,000 visitors per arm, but a 5% lift takes about 150,000.
How to size an A/B test
- 1
Enter your baseline conversion rate — your current install rate from App Store Connect or your PPO control.
- 2
Enter the minimum detectable effect: the smallest relative lift worth shipping (10–20% relative is a common choice for store tests).
- 3
Keep power at 80% and alpha at 5% unless you have a reason to change them.
- 4
Read the required visitors per variant, then divide by your daily traffic per arm to get the test’s duration — and round up to whole weeks to average out day-of-week swings.
The formula and the intuition behind it
For comparing two proportions, the per-arm sample size is approximately n = (z₁₋α/2 + z₁₋β)² × [p₁(1−p₁) + p₂(1−p₂)] ÷ (p₂ − p₁)², where p₁ is the baseline rate and p₂ = p₁ × (1 + MDE). At 95% confidence and 80% power the z-values are 1.96 and 0.84, so the leading constant is about 7.85. The denominator is the squared absolute difference — which is why halving the effect you want to detect roughly quadruples the required sample.
Baseline rate matters too: lower conversion rates need more traffic for the same relative effect, because each conversion carries more of the signal. A 2% baseline needs roughly twice the visitors of a 4% baseline to detect the same relative lift. This is a quiet argument for testing on higher-converting surfaces and segments when you have the choice.
Choosing MDE, power, and duration in practice
The MDE is a business decision disguised as a statistics input: it should be the smallest lift that justifies the cost of running and shipping the change, not the lift you hope for. Setting MDE at an optimistic 25% makes tests short but blind to real 10% improvements — they’ll come back “not significant” and get wrongly discarded. For app store creative tests, 10–20% relative MDE is a pragmatic band; below 10% is usually only feasible for high-traffic apps.
Once the calculator gives visitors per arm, duration = required visitors ÷ daily traffic per arm — and you should run whole weeks even if you hit the number mid-week, because store traffic composition shifts across weekdays and weekends. If the implied duration exceeds 6–8 weeks, don’t start that test: raise the MDE, test a bolder change, or test on a higher-traffic surface. A test that drags for a quarter blocks the experiment slot and often outlives the seasonality that made its data comparable.
Frequently asked questions
How many visitors do I need for an A/B test?
It depends on baseline rate and effect size: n per arm ≈ 7.85 × [p₁(1−p₁) + p₂(1−p₂)] ÷ (p₂−p₁)² at 80% power and 5% alpha. On a 4% baseline, detecting a 20% relative lift needs roughly 9,000 visitors per variant; a 10% lift needs about 37,000.
What do 80% power and 5% alpha mean?
Alpha (5%) is your false-positive tolerance — the chance of calling a winner when variants are truly equal. Power (80%) is the chance of detecting the effect when it genuinely exists at your MDE. Together they’re the conventional standard for product experiments.
What minimum detectable effect should I choose?
The smallest lift that would still justify shipping the change — for app store creative tests, 10–20% relative is typical. Too small an MDE makes the test infeasibly long; too large means real, valuable improvements come back “not significant” and get discarded.
Is MDE relative or absolute?
Convention varies, so check the label. A 10% relative MDE on a 4% baseline means detecting 4% vs 4.4%; a 10% absolute MDE would mean 4% vs 14% — a wildly different test. This calculator takes relative MDE and derives the target rate as baseline × (1 + MDE).
Why do smaller effects need so much more traffic?
Sample size scales with the inverse square of the effect: half the effect, four times the traffic. Distinguishing 4.0% from 4.2% requires resolving a much finer signal against the same binomial noise than distinguishing 4.0% from 4.8%.
Can I stop early if the test looks significant?
Not with a fixed-horizon design — early stopping on a fluctuating p-value inflates false positives well beyond 5%. Run to the pre-computed sample size, then evaluate once with a significance test. If early stopping matters to you, use a sequential testing method designed for it.
Get more traffic into every test
Bigger organic reach means faster, sharper experiments. Appalize’s keyword optimization and rank tracking grow the impression volume your Product Page Optimization tests feed on.
Related free tools
A/B Test Significance Calculator
Run a two-proportion z-test on your A/B results to see if the winner is real.
App Store Conversion Rate Calculator
Turn impressions, page views, and installs into the funnel rates Apple grades you on.
App Retention Rate Calculator
Compute D1, D7, and D30 retention from your cohort numbers and compare to benchmarks.
ASO ROI Calculator
Translate an expected organic download uplift into incremental monthly revenue.