InTrendz MediaSystem: nominal

Tool // Clinical trials / Proof that can’t be faked

A/B test sample size calculator: how many visitors do you need?

The sample size for an A/B test depends on your baseline conversion rate, the smallest lift you want to detect, your significance level and your statistical power. Smaller effects need far more visitors. This calculator returns the visitors needed per variant and the days the test should run.

Visitors per variant
13,915
Total visitors
27,830
Days to run
28

How does the a/b test planner work?

Borrowed from Clinical trials: Power analysis

n=2 (zα/2+zβ)2 pˉ(1−pˉ)(p2−p1)2n = \frac{2\,(z_{\alpha/2}+z_{\beta})^{2}\,\bar{p}(1-\bar{p})}{(p_2-p_1)^{2}}

Clinical trials use power analysis to decide how many patients are needed before a trial starts. The same math prevents the common mistake of stopping a web test as soon as one version looks ahead.

The tool uses a two-sided test on two proportions, with 95% confidence and 80% power by default.

Worked example

A US landing page converts at 3%. To detect a 20% relative lift (3% to 3.6%), each version needs about 13,900 visitors. At 1,000 visitors a day split across two versions, that is 28 days.

How should I read my result?

Test under 7 days

Run at least one full week to cover weekday effects, even if traffic is high.

7 to 42 days

A workable range. Run the test to its planned size and do not stop early.

Over 42 days

The test is too slow. Test a bolder change or a higher-traffic page.

Embed this calculator

Add this calculator to your own page. The snippet includes a link back to the source.

Questions about a/b test planner

Why not stop when it looks significant?

Checking repeatedly and stopping at the first good result inflates false positives.

What lift should I target?

Use the smallest lift that would be worth acting on.

Does this work for revenue per visitor?

No. It covers conversion rates. Revenue metrics need a different variance estimate.

More from the Growth Lab

Related tools

All tools