Home › Paid Ads & Analytics Tools › A/B Test Sample Size Calculator › A/B Test Sample Size Guide

A/B Test Sample Size Guide

What each input in the calculator means, how to choose sensible values, and how to turn a visitor count into a realistic test schedule before you launch.

Why Calculate Sample Size Before the Test

The most common A/B testing mistake is deciding when to stop by looking at the dashboard. If you stop the moment a variant looks like a winner, you will see far more false winners than the confidence level suggests. The fix is simple: work out how many visitors you need before you launch, commit to that number, and only judge the result once you have reached it. The A/B Test Sample Size Calculator does the math for you in a few seconds.

The Four Inputs That Drive the Answer

Baseline conversion rate. This is how the page converts today, measured over a normal period. Use the real rate for the exact audience and goal you will test (for example, checkout completions among visitors who reached the cart), not a sitewide average.

Minimum detectable effect (MDE). This is the smallest improvement worth detecting. It is a business decision, not a statistics one: ask what lift would change what you do. Enter it as a relative lift (a 10% lift on a 3% baseline means 3.00% to 3.30%) or as absolute percentage points. Halving the MDE roughly quadruples the visitors required, which is why small tweaks need large audiences.

Confidence level. 95% is the common default. It caps the false-positive rate at about 5% when you stick to your planned sample size. Choose 99% when a wrong call is expensive, and 90% only for low-stakes, easily reversed changes.

Statistical power. 80% is the usual default: if a real effect of the MDE size exists, you have an 80% chance of detecting it. Raising power to 90% costs more traffic but misses fewer real winners.

Turning Visitors Into Days

Enter your daily visitors to the tested page and the share of them entering the experiment. The calculator divides the total visitors needed by the visitors per day and rounds up to whole weeks. Run for at least one full week so weekday and weekend behavior are both included, and ideally two. If the answer is longer than about eight weeks, test a bolder change, a higher-traffic page, or a metric earlier in the funnel.

Testing More Than Two Variants

Every extra variant adds another comparison against the control, which raises the chance of a false winner. The calculator applies a Bonferroni correction and shows the larger traffic requirement. If your traffic is limited, fewer, stronger variants beat many timid ones.

After the Test

Once you reach the planned sample, enter the final numbers in the A/B Test Significance Calculator to get the p-value and confidence interval. For the full reasoning behind the formula, read A/B Test Sample Size Explained.

Related tools: A/B Test Significance Calculator · CPC, CPM & ROAS Calculator · Email Subject Line Tester