
You launched on Monday. By Thursday the variant is up 14% and the dashboard is green. You ship it, and three weeks later revenue hasn't moved at all. Nothing was wrong with the change. The number that told you it won came from roughly 900 visitors per arm, and 900 visitors can't tell a real lift from a lucky Tuesday.
A/B test sample size is the part of experimentation people skip, because it feels like the calculator's job. It isn't. The number you need depends on your baseline rate, the smallest lift you'd act on, your traffic, and what a wrong call costs you. Work it out first and every later decision gets easier. Skip it and a confidence interval becomes a very confident way of being wrong.
Here's the answer many readers came for. The table gives visitors per variant at 95% significance and 80% power, for a two-sided test with one control, one variant, and an even 50/50 split.
| Baseline conversion rate | Relative lift | Visitors per variant | Total visitors (two arms) |
|---|---|---|---|
| 2% | 10% (2.0% to 2.2%) | about 77,000 | about 154,000 |
| 2% | 20% (2.0% to 2.4%) | about 19,500 | about 39,000 |
| 5% | 10% (5.0% to 5.5%) | about 30,000 | about 60,000 |
| 5% | 20% (5.0% to 6.0%) | about 7,500 | about 15,000 |
| 10% | 10% (10% to 11%) | about 14,000 | about 28,000 |
| 10% | 20% (10% to 12%) | about 3,500 | about 7,000 |
Every cell comes from one approximation: n ≈ 16 × p(1−p) ÷ d², where p is the baseline rate written as a decimal and d is the absolute change you want to detect. On a 2% baseline, a 10% relative lift means moving from 2.0% to 2.2%, so d is 0.002.
Practical rule: write down the total for your row, then compare it with the number of eligible visitors you get in a month. If the total is bigger, you don't have a sample size problem. You have a design problem.
Your baseline is the one number you can't borrow from this table. Measure it on the exact funnel step you're testing, over a full month of normal traffic, with the same eligibility rules in both arms. Category benchmarks are useful as a sanity check: ECORN's ecommerce conversion rate benchmarks show how wide the spread is between store types, so a 2% row is entirely normal in some categories and far too low in others.
Find your row, note the total, and answer one question: Can you fill that number in the next six weeks? If yes, you have a test. If not, you have a business decision to make.
Every calculator asks for the same handful of numbers. Knowing what each one does to the result is what turns a tool into a plan.
| Input | What it means | Effect of demanding more | Usual setting |
|---|---|---|---|
| Baseline conversion rate | Current rate of the control | A higher baseline needs fewer visitors | Measured over the last 2-4 weeks |
| Minimum detectable effect | Smallest lift worth acting on | A larger lift needs fewer visitors | 10-20% relative |
| Significance level | Accepted risk of a false winner | A stricter risk, such as 1% instead of 5%, needs more visitors | 5% (95% confidence) |
| Statistical power | Chance of catching a real lift | 90% power needs about a third more visitors than 80% | 80% |
| Number of variants | Each extra arm splits the traffic | More arms need more total visitors | 2 for a simple test |
The baseline deserves the most care because everything downstream inherits its noise. Pull it from two to four weeks of ordinary trading on the step you're testing, not from a sitewide average that blends homepage browsers with checkout completers. A baseline measured over a flash sale week will plan you a test that never finishes.
Nothing in the statistics knows what a 6% lift is worth to your store. The formula will happily plan a test for any lift you name. The judgment is yours: which improvement would pay for the build, the wait, and the traffic you're holding back from other work?
Most established stores land between 10% and 20% relative, which is large enough to be worth shipping and small enough to be reachable.
Significance and power are the two risks you're accepting rather than decisions about your business. A 5% significance level means one false winner in twenty tests when nothing is really happening. Power is the mirror image: at 80%, you have a one in five chance of missing a lift that exists.
The number of variants is structural. A third arm splits the same traffic three ways, and comparing several treatments against one control also invites more false positives, so the total rises twice over. Stay at two arms until the first question is answered.
Sanity check before you build: if the lift you chose wouldn't cover the cost of shipping the change, the test is too sensitive. Raise the lift, shorten the run, and accept that you'll only catch bigger swings.
The last step is the one people skip. Take the lift you selected, convert it to money at your current revenue, and ask whether that sum justifies the weeks the test will take. If it doesn't, the sample size is technically correct and practically pointless.
Say you're testing a checkout layout, and 5% of sessions reaching checkout complete a purchase. Walk those numbers through six steps and you'll be able to check any calculator against your own arithmetic.
The flow below maps the same sequence, from pulling the baseline to reading the required sessions per variant.

Two settings cause most wrong answers. One is a calculator expecting an absolute lift when you've entered a relative one, which plans a test hundreds of times too small. The other is an output labelled per variant that gets copied into a plan as the total. Check both labels before you trust the number.
The arithmetic above also lets you audit a tool. Enter your baseline and lift into any calculator, compare its output with the 30,000 you just derived, and if the two disagree by more than rounding, one of you has a wrong input.
A sample size tells you how many visitors you need. Traffic tells you how long you will be waiting for them, and two stores running the identical test can face waits that differ by months.
Take the 2% baseline and 10% relative lift example, which needs about 154,000 visitors across both arms. A high-traffic store pulling 20,000 eligible visitors a day recruits them in about eight days. A smaller store at 2,000 a day waits about 77 days for the same answer.
Eligible visitors means only the people who reach the page or step under test. A store with 10,000 daily sessions recruits far fewer if the test lives on the checkout page, so measure traffic where the test lives, not at the front door.
| Daily eligible visitors | Days to reach 154,000 visitors | Practical test length |
|---|---|---|
| 2,000 | 77 | 11 weeks |
| 5,000 | 31 | 4-5 weeks |
| 10,000 | 16 | 2-3 weeks |
| 20,000 | 8 | 2 weeks |
The same experiment is a two-week project for one store and a quarter-long commitment for another. Before launch, weigh the question against tying up that page for the duration.
The arithmetic can finish mid-week. The calendar should not. Weekday and weekend buying behaviour differ, so a test that runs Monday to Monday captures a full cycle while one that ends Wednesday captures a mood.
The Nielsen Norman Group's guide to A/B testing recommends running a test for at least one to two weeks to account for fluctuations in user behavior. Treat that as a floor. If your sample size arrives in eight days, run the two full weeks anyway. If it needs eleven weeks, the one-to-two-week minimum was never in the running.
Round every duration up to complete weeks, then add a small buffer for the traffic dip you will probably hit when a campaign ends or a sale runs out. A four-week plan that meets a quiet fortnight becomes a six-week test, and six weeks is a long time to watch a flat line without calling it early.
Set the end date before launch, from the visitor count, not from the moment the dashboard turns green.
That single habit removes the stop decision from the person watching the graph, which is where most early calls come from.
Here's the uncomfortable part. A store converting at around 1.4% and shopping for a 10% relative lift needs a six-figure audience in each arm. Most emerging Shopify brands have a fraction of that.

One ecommerce conversion rate optimization guide sets out the arithmetic plainly: at a 1.4% baseline, detecting a 10% relative improvement takes about 112,686 sessions per variant, and detecting a 5% lift takes about 450,743 sessions per variant (blkdg.com's CRO guide). The same guide notes the consequence most dashboards hide, which is that for many smaller stores conventional A/B testing is statistically underpowered even when the dashboard reports a positive result.
A positive reading on 3,000 visitors per arm isn't evidence. It's the variance of a small sample wearing a green badge.
Then there's the economic question, which matters more than any of these. Compare the traffic and time a test consumes with what detecting that lift is worth. A 2% lift on a store earning 20,000 a month is worth about 400 a month. If proving that lift takes nine weeks of split traffic, the maths has already answered, and the answer isn't the experiment you were planning.
A correctly sized test still fails if the test around it moves. These six mistakes account for most of the wreckage.
Most of these are process failures rather than statistical ones, which is why ECORN's A/B testing best practices puts stopping rules and traffic control ahead of test ideas. A modest test with a locked rule beats an ambitious test with a movable one every time.
A store with 10,000 eligible visitors a day finishes a 60,000-visitor test in six days. A store with 1,000 a day needs about nine weeks. The calculator returns the same number for both, and the decision is not the same: for one store the test is a routine launch call, for the other it ties up a full quarter of traffic chasing a result that may not move monthly revenue.

Step 3 is the revenue half of the decision and step 4 is the traffic half. A test earns its launch only when both halves clear at once, which is why a result that looks clean on paper can still be a bad trade for a small store and a good one for a large store.
If you'd rather hear the reasoning than read it, this walkthrough covers the same ground in conversation.
An hour of review before you commit is usually the difference between a test that answers a question and a test you abandon.
ECORN's Shopify conversion rate optimization work includes a CRO audit with recommendations and bug fixing, A/B testing, and scaling hypotheses. If you'd like a second pair of eyes on whether your next test can ever reach significance, ECORN will walk the numbers with you before you spend a month of traffic on them.