A/B test sample size calculator
Work out how many visitors a test needs before it can detect the lift you care about.
Relative. 10% means moving a 3% rate to 3.3%, not to 13%.
Optional. Turns the sample into a number of days.
Results
- Total visitors
- 106,416
- Conversions per variant
- 1,597
- Rate you are testing for
- 3.3%
- 3.00% plus 10% relative
What this means
- Note: Decide this number before the test starts. Choosing when to stop after you have seen the data is what turns a 5% false positive rate into something closer to 30%.
How to use it
- Enter your current conversion rate.
- Enter the smallest relative lift worth acting on. 10% means moving 3% to 3.3%.
- Leave confidence at 95% and power at 80% unless you have a reason to change them.
- Add daily visitors per variant to turn the sample into a number of days.
Sample size scales with the square of the effect
Halving the lift you want to detect roughly quadruples the traffic required. That single relationship explains why detecting small improvements is so expensive and why testing button colours on modest traffic is futile.
It also suggests the way out. If the sample is unaffordable, the productive response is to test a bolder change rather than to run the small one for longer.
Decide the number before you start
The figure here is not a guideline, it is the condition under which the significance test afterwards is valid. Choosing when to stop after seeing the data is what inflates false positives to around a third.
Write the number down, run to it, then evaluate once. The discipline is what converts a test from a decoration into evidence.
Time matters as much as volume
Even a high-traffic test should usually run for whole weeks. Tuesday buyers differ from Sunday buyers, and a test finished in three days has measured a specific three days.
At the other end, past six to eight weeks, cookie churn and seasonal drift start to contaminate the comparison. A test that needs six months is a test you should not run.
A/B test sample size calculator FAQ
How many visitors does an A/B test need?
Far more than most teams assume. Detecting a 10% relative lift on a 3% baseline takes roughly 56,000 visitors per variant at 95% confidence and 80% power. Low-traffic sites should test bigger changes rather than smaller samples.
What is minimum detectable effect?
The smallest difference the test is designed to find. It is a decision, not a prediction: a test sized for a 20% lift simply cannot resolve a 5% one, however long it runs afterwards.
What is statistical power?
The chance of detecting a real effect of the size you specified. At the conventional 80%, one real winner in five goes unnoticed — which is why underpowered tests produce so many inconclusive results.
Is the sample size per variant or for the whole test?
Per variant. A straight A/B needs double the figure shown in total, and a third variant needs triple — plus a correction for the fact that testing three things at once raises the odds that one of them looks like a winner by chance.
What conversion rate should I enter as the baseline?
The rate the control actually achieved over a recent period covering at least one full week, not the rate you are hoping for. Entering a target rate rather than the real one quietly understates the sample you need, because higher baselines are cheaper to test.
What do I do when the test needs more traffic than I have?
Test a bigger change, or test somewhere with more volume. A redesign of the whole page can move conversion by 20% where a button colour cannot, and a step higher in the funnel has more visitors passing through it. Stretching a small sample over six months is the one option that does not work, because the audience changes underneath you.
Can I lower the confidence level to make the test affordable?
You can, and 90% confidence cuts the sample by roughly a fifth. It is a real trade rather than a free one: at 90% you ship one neutral change in ten believing it worked. For a low-risk change that is often an acceptable price, and it is a more honest trade than stopping a 95% test early.
Why does a higher conversion rate need fewer visitors?
Because the noise in a proportion is largest near the extremes relative to the signal. Detecting a 10% relative lift on a 1% baseline takes roughly ten times the traffic of the same relative lift on a 10% baseline, which is why checkout tests resolve and homepage-to-sale tests do not.
Should traffic be split evenly between the variants?
Yes, 50/50 needs the least total traffic. The power of a test is limited by its smaller arm, so a 90/10 split has to run far longer to learn the same thing. Uneven splits make sense when a variant is risky, not when you are trying to get an answer quickly.
The sample arrives in four days. Can I stop then?
Run at least one full business cycle anyway, which for most sites means two weeks. Tuesday traffic does not behave like Saturday traffic, and a test that only saw one of them has measured a day of the week as much as a change to the page.