How many visitors does your A/B test need? A sample-size check for small stores
The short answer
Usually tens of thousands of visitors on each version.
If 2% of your visitors buy, a test needs 80,683 visitors on each version to spot one that sells 10% better. To spot one that sells 50% better, it needs 3,827. The smaller the difference you want to see, the more visitors it takes.
For store owners who want to know whether a test can finish before they spend weeks on it.
Two numbers decide it
The fewer visitors who buy, the more visitors a test needs.
Halve it, and you need about four times the visitors.
An A/B test shows half your visitors one version of a page and half another, then compares how many buy. It only gives a clear answer once enough visitors have seen each version. This page shows how many that is, with every setting printed, so you can tell before you start whether a test on your store can finish.
The short version
- How many: at a 2% conversion rate, 80,683 visitors on each version to find a 10% difference, or 9,799 to find a 30% difference.
- How long: divide by the visitors who reach the page you're testing. At 10,000 a month, the 30% test takes about 9 weeks and the 10% test about 70.
- If it's too long: test only big changes, or choose changes with care and watch your orders. What a small store can do instead
01The settings
Every number on this page uses the same four settings.
Settings change the answer, so check a calculator's settings before you trust its number.
- Two-sided
- The test can tell you the new version is better, or that it's worse.
- 5% significance (95% confidence)
- If the two versions really sell the same, a test this size shows a "winner" by chance about 1 time in 20.
- 80% power
- If the new version really is better by the difference you chose, the test finds it about 4 times in 5, and misses it 1 time in 5.
- Visitors per version
- Each number is for one version. With two versions split 50/50, the whole test needs twice as many.
These are the usual choices in statistics teaching. Penn State's course notes on sample size give 0.05 as a usual significance level and 0.20 as a usual chance of missing a real difference, which is 80% power.
The sum behind every number
Visitors per version = 15.7 × p̄ × (1 − p̄) ÷ d²
- p̄ is the average of the two conversion rates, as a decimal. For 2% and 2.2%, it's 0.021.
- d is the gap between them: 0.022 − 0.020 = 0.002.
- 15.7 is 2 × (1.96 + 0.84)². The 1.96 comes from the 5% significance, the 0.84 from the 80% power.
- So 15.7 × 0.021 × 0.979 ÷ 0.002² comes to about 80,700. Without rounding 15.7, it's 80,683.
This is the standard formula for comparing two proportions, from Penn State's STAT 509 course notes, Lesson 8 (section 8.4), with the two versions the same size. Opened 24 Nov 2026.
02The table
Find your conversion rate, then read across.
A 10% difference means 2% becoming 2.2%, not 12%.
Use the conversion rate of the page you'd test: the share of its visitors who go on to buy, over a few normal weeks. Then pick the smallest difference you'd act on. A test set up to find a 20% difference can still find a bigger one, but it will often miss a smaller one.
Fig. 1
Visitors needed on each version
Two-sided, 5% significance, 80% power| Conversion rate | 5% | 10% | 20% | 30% | 50% |
|---|---|---|---|---|---|
| 0.5% | 1,280,6201.28m | 327,923328k | 85,86386k | 39,88640k | 15,60016k |
| 1% | 637,012637k | 163,096163k | 42,69443k | 19,82820k | 7,7517,751 |
| 2% | 315,208315k | 80,68381k | 21,11021k | 9,7999,799 | 3,8273,827 |
| 3% | 207,940208k | 53,21253k | 13,91514k | 6,4566,456 | 2,5192,519 |
| 4% | 154,306154k | 39,47639k | 10,31810k | 4,7844,784 | 1,8651,865 |
| 5% | 122,125122k | 31,23531k | 8,1598,159 | 3,7813,781 | 1,4721,472 |
Under 5,0005,000 to 20,00020,000 to 100,000100,000 to 500,000500,000 or more
How to read it: pick the row nearest your conversion rate and the column for the smallest difference you'd act on. The number is the visitors each version needs. Double it for the whole test. On mobile, k means thousands and m means millions.
03Small differences
Halve the difference, and you need about four times the visitors.
Big changes can be tested on a small store. Small ones usually can't.
Whether a visitor buys has a lot of chance in it. A big difference between two versions stands out from that chance quickly. A small one hides in it, and only shows once a great many visitors have been counted. In the sum, the gap is squared and divides everything else, which is why halving it multiplies the visitors by about four.
Fig. 2
Visitors needed on each version, at a 2% conversion rate
Same settings as Fig. 1How to read it: each bar is the visitors one version needs to find that difference. The bars share one scale, so the 50% bar is a sliver next to the 5% bar.
04How long it takes
Divide by the visitors who reach the page you're testing.
Only visitors who see the page being tested count, not your whole store's.
A test on one product page counts the visitors who open that product page. Take the visitors that page gets in a normal week, and see how many weeks it takes for both versions to reach the number in the table.
Here is a worked example on Atelier Vauclair, a candle store we built for demonstrations. Say it wants to test the change from our sample report: a solid Add to bag button instead of a pale one. Its traffic below is made up.
Fig. 3
One test on one product page
A sketch: made-up trafficVersion A · as it is, to half the visitors

The holiday collection
La Grande Bougie
$185.00
Quantity
Add to bag
Version B · the change, to the other half

The holiday collection
La Grande Bougie
$185.00
Quantity
Add to bag
To find a 30% difference
8 weeks
9,799 visitors on each version.
To find a 10% difference
59 weeks
80,683 visitors on each version. Longer than a year.
How to read it: the page gets 12,000 visitors a month in this sketch, and 2% of them buy. Each version gets half. The weeks are rounded up to whole weeks.
Fig. 4
Weeks for the whole test, at a 2% conversion rate
Same settings as Fig. 1| Visitors a month | 5% | 10% | 20% | 30% | 50% |
|---|---|---|---|---|---|
| 5,000 | 547547 | 140140 | 3737 | 1717 | 77 |
| 10,000 | 274274 | 7070 | 1919 | 99 | 44 |
| 20,000 | 137137 | 3535 | 1010 | 55 | 22 |
| 50,000 | 5555 | 1414 | 44 | 22 | 11 |
| 100,000 | 2828 | 77 | 22 | 11 | 11 |
4 weeks or less5 to 8 weeks9 to 26 weeks27 to 52 weeksOver a year
How to read it: find the row nearest your page's monthly visitors. Each number is the weeks both versions together need, split 50/50, rounded up to whole weeks. For another conversion rate, double the number from Fig. 1 and divide by your page's weekly visitors.
05Stopping early
Set the length before you start, and don't stop at the first good week.
Checking every day and stopping at the first "winner" finds winners that aren't there.
The settings only hold if you look once, at the end. Each extra look is another chance for luck to cross the line. To show how much that matters, we simulated 4,000 tests in which both versions were exactly the same, so any "winner" was luck.
Fig. 5
False winners among 100 tests of two identical versions
From our simulationChecked once, after 8 weeks
4 in 100
Close to the 5 in 100 the settings allow.
Checked every day, stopped at the first "winner"
32 in 100
The same tests, read differently.
How to read it: each dot is one test, and a filled dot showed a "winner" at 5% significance. The made-up store gets 10,000 visitors a month to the page, 2% buy on both versions, and each version gets 164 visitors a day for 8 weeks. Our run: 170 and 1,295 of 4,000 tests.
- Decide the visitors and the weeks first. Write them down with the date, and read the result once they're reached.
- Run whole weeks. Then both versions see the same weekdays and weekend.
- Leave the page alone while it runs. A price change, a sale or a new ad partway through mixes other changes into the result.
06What it can't tell you
It tells you whether a test can finish, not what will win.
A test that can't finish isn't worth starting. One that can still needs a good idea to test.
- It doesn't pick the change. It only tells you how many visitors a test of that change needs.
- It's for the share of visitors who buy. Order value and revenue per visitor need a different sum.
- It counts each visitor once, in one version. If the same person can see both versions, the test is weaker than the table says.
- It's a shortcut that needs enough orders. Penn State's notes say it is useful when each version expects more than 5 orders and more than 5 visitors who don't buy. Every number in these tables clears that.
- Other calculators may use other settings. A one-sided test only asks whether the new version is better, and needs fewer visitors: at 2% and a 10% difference, 63,554 on each version instead of 80,683.
07Too small to test?
If your numbers are in the dark cells, choose changes with care instead.
Most small stores can test only big changes. That's not a reason to change nothing.
A store that can't run a test can still make careful changes: one at a time, starting with the ones that are cheap to undo, while watching its orders before and after. Our guide on that: Not enough traffic to A/B test? What a small store can do instead.
Liftrail's reports say how sure we are about each change. A change that is promising but not proven is best tried as a test if your store has the orders for one, and cheap to undo if it doesn't help. This page is how to tell whether yours does. How we decide what to recommend
Questions owners ask
Quick answers
How long should an A/B test run? ShowHide+−
Until each version has the visitors the table gives for your settings, in whole weeks. Double the number, divide by the weekly visitors to the page you're testing, and decide that before you start.
What is a minimum detectable effect? ShowHide+−
The smallest difference a test is set up to find. On this page it's called the smallest difference worth finding. A 10% difference means 2% becoming 2.2%.
Is there a minimum amount of traffic for A/B testing on Shopify? ShowHide+−
There's no single number. It depends on your conversion rate and the difference you want to find. If Fig. 4 gives more weeks than you're willing to leave the page alone, the test can't answer your question.
Why do calculators give different numbers? ShowHide+−
Different settings give different answers. Some use a one-sided test, some 90% confidence, and some give the total for both versions instead of each one. Check the settings before you compare.
Can I test more than two versions at once? ShowHide+−
You can, but every version needs at least the number in the table, so each extra version adds at least that many visitors again. On a small store, two versions finish soonest.
How this page was made
Liftrail's AI drafted this page on 24 Nov 2026. Every number comes from a short script of ours that uses the formula in Penn State's STAT 509 course notes, Lesson 8, opened that day. We checked the numbers a second way, by simulating 4,000 made-up tests for each of six settings: about 80 in 100 found the difference, as the settings say they should. The early-stopping figures come from the same kind of simulation. Alex R'bibo read every line before it was published. The traffic on Atelier Vauclair is made up; it is a demo store we built, not a real shop.
Too small to test everything? Start with the changes most likely to matter.
How a Liftrail audit works How we choose what to recommend
The pages where shoppers decide, first on mobile, then on desktop.