Skip to content

Free tool

A/B test sample size calculator

Find out how many visitors a test needs before its result means anything, and how many weeks that takes at your traffic.

Your test

How the page converts today.

10 means 3% becoming 3.3%.

Split evenly across both versions.

What the test needs

53,211Visitors per versionThe rule of 16 from our article gives about 51,734: same math, rounded constants.
106,422Visitors in total, two versions
54 weeksHow long to run itWhole weeks, two at least, so every weekday counts the same on both sides.

That's over three months. Test a bigger change, move the goal up the funnel, or pool several pages into one test.

How the calculator works

It uses the standard formula for comparing two conversion rates at the confidence and power you choose, the same one most sample size calculators run. At 95% confidence and 80% power, a 3% baseline and a 10% relative lift need about 53,200 visitors per version.

The rule of thumb in our article, 16 times p times (1 − p) divided by the absolute lift squared, is the same math with the constants rounded, so it lands a few percent lower: about 51,700. Either way the lesson holds. Halve the lift you want to catch and the sample roughly quadruples.

Fix the sample before you launch, run whole weeks, and resist stopping the moment the result looks good. Why, and what to do when the traffic isn't there, is below.

How much traffic you need for an A/B test

At a 3% conversion rate, catching a 10% lift needs roughly 51,700 visitors per version. Two versions, so about 103,000 visitors before the test can tell you anything. If the page you want to test gets 8,000 visitors a month, the answer is more than you have, and you should test a bigger change instead.

Four inputs decide the number: your baseline conversion rate, the smallest lift worth catching (the minimum detectable effect), your confidence and your power. Hold confidence at 95% and power at 80%, as almost everyone does, and the rest is one line of arithmetic: visitors per version equals 16 × p × (1 − p) divided by the absolute lift squared, where p is the baseline rate. With a 3% baseline and a 10% relative lift, the absolute lift is 0.3 points and the answer is about 51,700.

Small wins cost a lot to measure

Keep the 3% baseline and change only the lift you want to detect. A 20% relative lift needs about 12,900 visitors per version, a 10% lift about 51,700, a 5% lift about 207,000. Halve the effect and the sample roughly quadruples.

That one relationship should shape the whole test roadmap. Button colour and headline tweaks move conversion by a few percent at best, which puts them out of reach for most B2B sites. Rewriting the offer, cutting three form fields, changing what the page asks for: those move numbers far enough for a normal traffic budget to see. The baseline hurts too: at a 1% conversion rate the same 10% lift needs about 158,400 visitors per version.

Lock the sample size before you launch

Write the number down, then stop looking until you hit it. Checking results as they come in and stopping when the line goes green is the fastest way to ship a win that was never there. Evan Miller's walkthrough of repeated significance testing(opens in a new tab) puts a figure on it: peek continuously and the real false positive rate lands around 26.1%, five times the 5% you thought you were running.

CXL ran the demonstration that makes it concrete: a thousand A/A tests, identical pages on both sides, nothing to find. 771 of them crossed 90% significance at some point during the run, and 531 crossed 95%. If you want to look early, the honest versions are sequential testing or a Bayesian setup, both of which price the peeking into the math.

Run it in whole weeks

Sample size tells you how many; duration tells you who. Tuesday traffic and Saturday traffic are different people with different intent, and a test that ends mid-week has quietly overweighted one of them. Two full weeks is the usual floor, and if your buying cycle runs monthly, use two of those instead. Payday weeks, quarter ends, a competitor's launch, a public holiday: whole cycles average them out across both versions.

What to do when the traffic isn't there

Most B2B and SaaS sites don't have testing traffic on their money pages, and that's fine. Test bigger changes: if you can only detect a 20% lift, only run tests that could plausibly produce one. Move the metric up the funnel: 40 demo requests a month may sit behind 4,000 clicks into the pricing table, and testing the earlier step answers in weeks, as long as you check afterward that the later step moved too. Pool the surface: one test across every pricing page gathers the sample several times faster than one page on its own.

Or buy the sample: paid traffic to a test page turns a twelve-month experiment into a three-week one, and the target CPA calculator tells you what that traffic can cost. When none of those apply, decide with judgement and qualitative evidence, and see A/B testing with low traffic for the four ways to get a real answer.

Questions people ask

How many visitors do I need for an A/B test?

It depends on your baseline conversion rate and the smallest lift you want to catch. At 95% confidence and 80% power, a 3% baseline and a 10% relative lift need about 53,200 visitors per version by the exact formula, or about 51,700 by the rule of 16.

What is the minimum detectable effect?

The smallest lift your test is built to catch, written relative to the baseline: 10% means a 3% conversion rate becoming 3.3%. Halve it and the sample you need roughly quadruples.

How long should an A/B test run?

Until it reaches the sample you fixed before launch, in whole weeks, two at least, so every weekday counts the same on both sides. The calculator gives the weeks at your traffic.

Can I stop an A/B test as soon as it is significant?

No. Checking as results come in and stopping at the first significant reading pushes the real false positive rate to around 26% instead of 5%. Fix the sample first, or use a sequential or Bayesian method built for looking early.

What if my site doesn't have enough traffic to A/B test?

Test bigger changes, measure a step higher in the funnel, pool several pages into one test, or buy the sample with paid traffic. When none of those apply, decide with qualitative evidence rather than an underpowered test.

Let us find your next growth channel.

Tell us where you want to grow. We will tell you, honestly, whether search is the fastest way to get there.