A low baseline costs traffic
The rarer the conversion, the more visitors it takes to separate a real change from noise. Roughly speaking, halving your baseline conversion rate doubles the traffic each variant needs.
Free tool
Before you launch an experiment, find out how many visitors each variant needs so the result is actually trustworthy. Enter your numbers and the calculator updates instantly, all in your browser.
What drives the number
The rarer the conversion, the more visitors it takes to separate a real change from noise. Roughly speaking, halving your baseline conversion rate doubles the traffic each variant needs.
Minimum detectable effect enters the formula squared, so it dominates everything else. Asking to detect a 5% lift instead of a 10% one costs about four times the traffic — decide what size of win would actually change your decision, and test for that.
Convert the number above into whole weeks of traffic, then run for that long. Stopping the moment a result turns significant is the most common way teams ship changes that do not hold up.
The formula
The calculator uses the standard sample size formula for comparing two conversion rates. For each variant:
n = (zα/2 + zβ)² × [p₁(1 − p₁) + p₂(1 − p₂)] ÷ (p₂ − p₁)²
p₂ = p₁ × (1 + MDE).A 5% baseline, a 10% relative lift, 95% confidence and 80% power:
Two variants need 62,464 visitors in total. That is the figure the calculator shows before you change anything.
At a glance
Visitors needed per variant at 95% confidence and 80% power. Read across for the relative lift you want to detect.
| Baseline rate | 5% lift | 10% lift | 20% lift | 30% lift |
|---|---|---|---|---|
| 1% | 637,014 | 163,094 | 42,691 | 19,824 |
| 2% | 315,207 | 80,680 | 21,106 | 9,795 |
| 5% | 122,123 | 31,232 | 8,156 | 3,778 |
| 10% | 57,761 | 14,749 | 3,839 | 1,772 |
| 20% | 25,580 | 6,507 | 1,680 | 769 |
Two patterns stand out. Halving the lift you want to detect roughly quadruples the sample. And a low-converting step, such as a 1% purchase rate, needs several times the traffic of a 10% step, such as a click through to pricing.
Test duration
Turn the sample size into a duration before you launch:
days = visitors per variant × number of variants ÷ daily visitors who enter the test
Then round up to whole weeks. Weekday and weekend visitors behave differently, so a test that ends mid-week over-weights some days.
Count only visitors who actually reach the page or step being tested, not total site traffic. A checkout test only enrolls people who reach checkout.
Even with a lot of traffic, run for at least one full week. Decide the end date up front and do not stop early because the result looks significant on day three. Checking repeatedly and stopping at the first significant reading inflates the false-positive rate well above the confidence level you chose.
Confidence and power
Confidence protects against false positives: calling a winner when there is no real difference. At 95%, a test of two identical variants shows a “significant” result about 5% of the time.
Power protects against false negatives: missing a real effect. At 80% power, if the true lift is exactly your minimum detectable effect, the test detects it 8 times out of 10.
Raising either one costs traffic. With a 5% baseline and a 10% lift:
| Confidence | Power | Per variant | vs. default |
|---|---|---|---|
| 90% | 80% | 24,601 | −21% |
| 95% | 80% | 31,232 | default |
| 95% | 90% | 41,812 | +34% |
| 99% | 80% | 46,470 | +49% |
The confidence level here is two-sided: the test can find the variant better or worse than control. A one-sided test at 95% uses z = 1.645, the same value as two-sided 90%, so it needs the same 24,601 visitors per variant. That saving is only honest if you would treat “worse” and “no different” the same way. If a losing variant would change what you do, keep the test two-sided.
Common mistakes
Low traffic
When the test has run its full length, check the result with the A/B test significance calculator.
FAQ
This tool uses the standard two-proportion formula based on your baseline conversion rate, the minimum detectable effect, your chosen confidence level, and statistical power to estimate the visitors needed per variant.
The minimum detectable effect is the smallest relative change in conversion rate you want the test to be able to detect reliably. Smaller effects require larger samples.
Lower baseline rates, smaller effects, higher confidence, and higher power all increase the sample size required to avoid false positives and false negatives.
Per variant, n = (z for confidence + z for power)² × [p₁(1 − p₁) + p₂(1 − p₂)] ÷ (p₂ − p₁)², where p₁ is the baseline rate and p₂ is the baseline raised by the minimum detectable effect. At 95% confidence and 80% power the z values are 1.96 and 0.842; a 5% baseline and a 10% lift give 31,232 visitors per variant.
Power is the probability that the test detects an effect when one really exists at the size you specified. 80% power is the usual default: if the true lift equals your minimum detectable effect, the test finds it 8 times out of 10 and misses it 2 times. Raising power to 90% reduces misses but needs about 34% more visitors.
Divide the total sample (visitors per variant times the number of variants) by the daily visitors who enter the test, then round up to whole weeks. Run at least one full week so every weekday is represented, and fix the end date before you start instead of stopping when the result first looks significant.
Relative. A 10% effect on a 5% baseline means detecting a move from 5% to 5.5%. To detect 5% to 6%, enter 20.
Yes. The result is per variant, so multiply it by the number of variants including control. Comparing several variants against control raises the chance of a false winner, so consider a stricter confidence level for each comparison.
Related
PulsePanda pairs your experiments with session replay, heatmaps, funnels, and feedback so you understand the why behind the win.
Start for free