Last Updated on November 25, 2026
A/B Test Sample Size for Ecommerce: The Math, the Ladder, and the Tests You Can't Afford
Four inputs decide everything, and the arithmetic is harsher than the vendor decks admit: a 2% store needs roughly 81,000 visitors per variant to reliably catch a 10% lift. The full sample-size ladder, the three published numbers that mislead operators, the levers that shrink an unaffordable test, and the stopping rules that keep a valid one valid.
On this page
The calculator takes ten seconds; the budget conversation is the real work
Every A/B test sample size comes from the same four inputs: your baseline conversion rate, the minimum detectable effect (MDE) you want the test to catch, your significance level (the convention is 95%), and your statistical power (the convention is 80%). Feed them into any standard calculator (Evan Miller's long-standing tool is the community reference) and you get the visitors needed per variant. The formula is settled statistics, a two-proportion z-test, and nothing about it is controversial.
What's controversial is what it returns. At a 2% baseline, a normal number for a DTC store per the conversion benchmarks — detecting a 10% relative lift (2.0% → 2.2%) requires roughly 81,000 visitors per variant, about 162,000 to the tested page. On 3,000 daily visitors split 50/50, that's a 54-day test, before any peeking, holiday, or traffic dip. The published shorthand numbers circulating around this topic range from 8,000 to 80,000 per variant for "a typical ecommerce test" because they quietly assume different baselines and MDEs, and at least one widely cited figure is off by an order of magnitude through a relative-versus-absolute mix-up.
So this guide does three jobs: it lays out the full ladder (computed from the standard formula, cross-checkable against any calculator) so you can find your own store's line; it names the three published numbers that mislead operators into underpowered tests; and it covers the levers that turn an unaffordable test into an affordable one, because the right response to brutal arithmetic is usually a different test, not a worse one. The program-level gating (the ~1,000 monthly conversions readiness line) comes from the ECM CRO agency guide; this piece is the math underneath it.
The four inputs, and what each one costs
Sample size is a trade between these four numbers. Understanding the price of each is what separates planning a test from wishing for one.
-
01Baseline conversion rate: the input you don't choose. Lower baselines need dramatically more traffic because the signal is smaller relative to noise: a 1% store needs roughly double the sample of a 2% store for the same relative lift, and a 0.5% purchase-rate test chasing a 20% lift needs on the order of 86,000 per variant. This is why the same test is routine for a high-converting page and impossible for a low-converting one.
-
02Minimum detectable effect: the input that dominates everything. The MDE is the smallest lift that would change your decision, and halving it roughly quadruples the sample. For most ecommerce pages a 10–20% relative MDE is the practical band; pricing tests are the exception, needing MDEs of 5% or less (price touches every order's revenue) and therefore the largest samples in the program.
-
03Significance at 95% (alpha 0.05): your false-positive insurance. It means a 5% chance of 'detecting' a lift that isn't real. Loosening it to 90% shrinks the sample but doubles the false-alarm rate, and in a program shipping 'winners' to production, false positives are the expensive kind of wrong.
-
04Power at 80%: the input everyone forgets they set. Power is the probability of catching a real effect when one exists: 80% means one in five real winners still slips through undetected. Raising power to 90% costs roughly 35% more sample; dropping to 70% saves 20% but means missing almost a third of real wins. For high-stakes tests (checkout, pricing), 90% is worth the traffic.
-
05Relative versus absolute MDE is where plans silently break. 'Detect a 10% lift' on a 2% baseline means 2.0% → 2.2%, a 0.2 percentage-point absolute change, which is a whisper statistically. One 2026 guide's cited example puts that detection at 3,500–4,200 per variant; the standard formula puts it near 81,000. The 20x gap is the relative/absolute confusion in the wild, published and circulating. Always write the MDE both ways before trusting any number.
The sample-size ladder: find your row
Computed from the standard two-proportion formula at 95% significance and 80% power, visitors per variant. Cross-check any cell against Evan Miller's calculator; the point of showing the whole grid is that your line in it, not 'the average,' sets your testing reality.
Visitors per variant, by baseline and relative MDE
-
→1% baseline: 10% MDE → ~163,000 · 20% MDE → ~43,000 · 30% MDE → still five figures. Low-baseline pages (cold traffic landers, high-ticket PDPs) are effectively untestable for subtle effects.
-
→2% baseline: 10% MDE → ~81,000 · 20% MDE → ~21,000 · 30% MDE → ~9,800 · 50% MDE → ~3,800. The typical DTC store's line, and the reason 'test everything' advice fails at typical DTC traffic.
-
→3% baseline: 10% MDE → ~53,000 · 15% MDE → ~24,000 · 20% MDE → ~14,000. A strong store buys itself cheaper tests just by converting better; sample cost falls as the baseline rises.
-
→5% baseline: 10% MDE → ~31,000 · 20% MDE → ~8,200. This is where published 'typical test' figures like ~31,000–35,000 per variant come from: they assume a 3–5% baseline most stores don't have.
-
→7% baseline (an add-to-cart rate, not a purchase rate): 10% MDE → ~22,000 · 20% MDE → ~5,700. Keep this line in mind for the micro-conversion move in the next section.
The three published numbers that mislead
-
→'385 per variant': a survey statistic, not an A/B threshold. It's the classic sample size for estimating a proportion to ±5% at 95% confidence, and it appears in testing guides as if it validated conversion experiments. Detecting a 0.2-point difference between two 2% rates is a different problem by two orders of magnitude.
-
→'3,500–4,200 per variant for a 10% lift on 2%': the relative/absolute mix-up in print. Cited in a current guide; the standard formula says ~81,000. A test planned on the small number runs at a few percent power and reports noise with confidence.
-
→'8,000–30,000 for a typical ecommerce test': true only of its hidden assumptions. Ranges like this assume a ~2.5% baseline and a generous MDE at the low end, a 10% MDE at the high end. None of the shorthand replaces your own numbers: baseline from your analytics, MDE from your economics.
What would a real lift be worth to you?
Run your traffic, baseline conversion rate, and AOV through the ECM Platform Calculator — the dollar value of your target MDE decides whether the test is worth its traffic bill.
Making an unaffordable test affordable
When the math says 81,000 and your page gets 1,500 visitors a day, the answer isn't abandoning rigor; it's changing what you test, where you measure it, or how big you swing.
-
01Lever one: raise the MDE by testing bigger changes. The sample for a 30% lift on a 2% baseline is ~9,800 per variant, twelve times cheaper than the 10% hunt. Low-traffic stores should test redesigned templates, reordered pages, and new offers (changes capable of 30%+ effects), not button shades. The checkout guide's field-reduction work and the PDP guide's review and media moves are exactly this class of swing.
-
02Lever two: measure a higher-baseline metric. Add-to-cart runs 6–8% where purchase runs 2%, so the same 10% MDE needs ~22,000 per variant instead of ~81,000: nearly a 4x discount. Test PDP changes on add-to-cart, cart and checkout changes on checkout completion, and reserve purchase-rate tests for the few changes that could plausibly move the whole funnel. The funnel metrics and their healthy bands are in your core KPI set.
-
03Lever three: concentrate the traffic. Two variants, not five; each added variant divides the traffic and multiplies the comparisons. Run the test on your highest-traffic template sitewide rather than one URL, and give the test 100% of eligible traffic unless there's a real reason to hold some back.
-
04Lever four: accept the duration, scheduled honestly. Duration = sample per variant ÷ daily visitors per variant. The ~21,000-per-variant test (2% baseline, 20% MDE) takes about 15 days at 3,000 daily visitors split two ways: entirely runnable. Write the end date before launch, and never schedule a test across Black Friday or a promo that changes who's visiting.
-
05Lever five below the line: don't test — ship and measure. Under roughly 1,000 monthly conversions, significance-grade testing isn't available at sane durations, which is the basis of the readiness gate in the CRO agency guide. Ship the fixes with published evidence behind them, measure before/after per template with a stable definition, and spend the testing budget when the traffic arrives. A 'test' that can't reach power is a coin flip with a dashboard.
The rules that keep a valid test valid
Sample size is a promise you make before launch. These are the ways programs break the promise, and the checks that catch it.
-
01Reaching 95% significance is not a stopping condition. Significance fluctuates while a test runs; stopping the moment it flashes green is the peeking problem, and it manufactures false winners at several times the promised 5% rate. The test ends when it reaches the pre-planned sample AND has run its full window — both, not either.
-
02Two full business cycles, 14 days, is the floor regardless of traffic. Weekday and weekend shoppers are different populations with different conversion rates; a huge-traffic store that reaches its sample in four days still hasn't sampled a representative week twice. (The ceiling matters too: past 4–6 weeks, cookie churn and external changes start polluting the comparison.)
-
03Check the split before reading the result. Sample Ratio Mismatch (an observed 48/52 where you configured 50/50) means randomization or tracking is broken, and no conclusion survives it. It's a thirty-second check that invalidates more real-world tests than any statistics error.
-
04Pre-register the test in one paragraph: metric, MDE, sample, duration, and the decision each outcome triggers. Written before launch, it makes 'the secondary metric moved though' visible as the rationalization it usually is, and it's the artifact that separates a testing program from a sequence of justified opinions.
-
05Expect losers and count them: the industry-average win rate is 20–30% of tests. At proper power, most tests will say 'no detectable difference,' and that's the system working. The losing-test learning discipline, and the vetting questions that check whether an agency actually has one, are in the CRO agency guide; the velocity math of what a win rate compounds into is tracked in weekly Insights.
Want the testing run by specialists?
The ECM directory's CRO category lists experimentation specialists with published budgets and verified client reviews — vetted against the statistical standards this guide describes.
The planning routine, start to finish
The whole discipline compresses into a repeatable five-step routine that takes fifteen minutes per test and prevents the two expensive failure modes: underpowered tests and peeked ones.
-
011. Pull the real baseline for the exact metric and page you're testing — last 60–90 days, same definition you'll measure with, by device if the change is device-specific. A sitewide 2.4% means nothing if the tested PDP template converts at 1.6%.
-
022. Set the MDE from economics, not ambition: the smallest lift that pays for the work. At $8M revenue and a 2% baseline, a 10% lift is worth real money and justifies a long test; for a two-day template tweak, a test that can only detect 10% is overkill; either swing bigger or ship it measured.
-
033. Compute the sample, then the duration, then decide if the test exists. Sample per variant from the four inputs; duration from your daily traffic to the page. If the duration exceeds ~6 weeks, the test doesn't exist at that MDE — use one of the moves from the section above instead of launching it anyway.
-
044. Pre-register, launch to a verified 50/50, and don't look with intent to stop. Monitoring for breakage is fine; evaluating the winner mid-run is the peek. Calendar the end date on day one.
-
055. Read the result against the plan, log it either way, and feed the next hypothesis. A program's asset is the results database, winners and losers alike: the exit-clause item worth writing into any agency engagement, and the thing that makes test twenty cheaper than test two. Price what the program is worth against your own traffic in the ECM platform calculator before scaling it.
What a smart operator does with this
Find your line in the ladder before planning anything. Four inputs set every sample size, and the ladder is unforgiving at typical DTC baselines: ~81,000 visitors per variant to catch a 10% lift at 2%, falling to ~21,000 at a 20% MDE and ~9,800 at 30%. Distrust the shorthand: the 385-per-variant survey figure doesn't apply to A/B tests, at least one circulating example is off 20x on a relative/absolute mix-up, and every 'typical test' range hides a baseline assumption that probably isn't yours.
When your line is unaffordable, change the test, not the standards: swing bigger (30%+ MDE changes cost a twelfth of the subtle hunt), measure higher-baseline metrics (add-to-cart at 6–8% is a near-4x sample discount over purchase rate), run two variants on your highest-traffic template, and below ~1,000 monthly conversions, ship the published fixes and measure before/after instead of running coin flips with dashboards.
Then protect the tests you do run: pre-register metric, MDE, sample, and end date; verify the 50/50 split; run two full business cycles minimum and stop at the planned sample, not at the first flash of significance; and log every result; at a proper 20–30% win rate, the losers are most of your output and half of your learning. The arithmetic is harsh so the decisions don't have to be.
Frequently asked questions
How many visitors do I need for an ecommerce A/B test?
It depends on four inputs: your baseline conversion rate, the minimum detectable effect (MDE), significance level (standard: 95%), and statistical power (standard: 80%). At a 2% baseline (typical for DTC) detecting a 10% relative lift requires roughly 81,000 visitors per variant (~162,000 total); a 20% MDE needs about 21,000 per variant, and a 30% MDE about 9,800. Higher baselines are cheaper: a 5% page needs ~31,000 per variant for the same 10% lift. Compute your own figure with a standard calculator (Evan Miller's is the community reference) using your real page-level baseline, and as a floor, plan on 1,000+ sessions and 30+ conversions per variant per month before testing at all.
What is a minimum detectable effect (MDE)?
The smallest lift your test can reliably catch, and the input that dominates sample size, since halving the MDE roughly quadruples the visitors required. It's usually written as a relative percentage: a 10% MDE on a 2% baseline means detecting 2.0% → 2.2%, a 0.2 percentage-point absolute change. That relative/absolute distinction matters: confusing them produces order-of-magnitude planning errors, including at least one published example off by roughly 20x. For most ecommerce pages, a 10–20% relative MDE is the practical band; pricing tests need 5% or less and correspondingly huge samples. Set the MDE from economics — the smallest lift that would pay for the change — not from ambition.
How long should an A/B test run?
Duration = required sample per variant ÷ daily visitors per variant, with two hard rules on top: a minimum of two full business cycles (14 days) regardless of traffic, because weekday and weekend shoppers convert differently, and a practical ceiling around 4–6 weeks, past which cookie churn and external changes pollute the comparison. Example: a 2%-baseline store testing a 20% MDE needs ~21,000 per variant; at 3,000 daily visitors split 50/50, that's about 15 days — runnable. If the math says more than six weeks, the test doesn't exist at that MDE: raise the MDE, measure a higher-baseline metric, or ship the change without a test. Never stop early just because significance appears.
Why can't I stop my test when it hits 95% significance?
Because significance fluctuates while a test runs, and stopping at the first green flash (peeking) inflates the false-positive rate far beyond the promised 5%. A test that will eventually read 'no difference' often passes through moments of apparent significance on the way. A valid test ends when it reaches the pre-planned sample size AND completes its scheduled window (minimum two business cycles), both conditions, decided before launch. Monitoring for breakage mid-run is fine; evaluating the winner mid-run is the peek. Pre-registering the metric, MDE, sample, end date, and the decision each outcome triggers is the one-paragraph habit that keeps the promise enforceable.
What if my store doesn't have enough traffic to A/B test?
Change the test before lowering the standards. Four moves: test bigger swings (a 30% MDE at a 2% baseline needs ~9,800 per variant versus ~81,000 for 10%, so redesigns and offer changes are testable where button tweaks aren't); measure higher-baseline metrics (add-to-cart runs 6–8%, cutting the same test's sample nearly 4x versus purchase rate); concentrate traffic (two variants, highest-traffic template, 100% of eligible visitors); and below roughly 1,000 monthly conversions, skip formal testing: ship fixes with published evidence behind them and measure before/after per template with a stable definition. An underpowered test isn't a scrappier version of a real one; it's noise with a progress bar.
The playbook top eComm operators actually read
One weekly brief. Five stories that matter. Zero fluff. Written for managers at $5M–$50M DTC brands who want to sound sharper than everyone else in the meeting.
References
- 01 Sample Size Calculator — evanmiller.org
- 02 Shopify A/B Test Sample Size: Formula and Worked Example — fudge.ai
- 03 A/B Test Sample Size Calculator — Power, MDE, Duration — miniwebtool.com
- 04 A/B Test Sample Size Calculator — statistics.tools
- 05 A/B Test Sample Size Calculator — Free CRO Tool — ecomcalculators.io
- 06 How to Calculate Sample Size: A 2026 Guide for A/B Testing — otterab.com
- 07 How Long to Run an A/B Test: Duration Guide (2026) — grow-conversions.com
- 08 Sample Size in A/B Testing: Formula & Benchmarks — metricuno.com
- 09 A/B Test Calculator: Statistical Significance & Lift — statisticsfundamentals.com
- 10 A/B Test Sample Size Calculator: Find Your Required Sample — calculatorhub.com
Make your testing program data-backed
Join 12,000+ ecommerce managers reading the ECM newsletter every Wednesday — or browse the directory to find vetted CRO, migration, and platform specialists.


