Skip to content
Free tool

A/B test sample size calculator

Work out how many visitors each variant needs before you start, so the test can actually detect the lift you care about.

Test parameters

%

Your current conversion rate for the page or flow you're testing.

%

The smallest relative lift you want to be able to detect (10% means 3% → 3.3%).

Visitors needed per variant

50,757

Enough to detect a move from 3% to 3.3% at 95% confidence and 80% power.

Total (2 variants)

101,514

Target conversion rate

3.3%

How the sample size is calculated

Sample size is the number of visitors each variant needs before an A/B test can tell a real lift apart from random noise. It grows when your baseline conversion rate is low, when the lift you want to detect is small, and when you demand higher confidence or power. This calculator uses the standard two-proportion approximation with variance taken at the baseline rate:

n = 2 × (zα + zβ)² × p(1 − p) / (p × MDE)²

Here p is the baseline conversion rate, MDE is the relative lift you want to detect, and zα and zβ come from your chosen confidence level and statistical power. The result is per variant, so a two-variant test needs about twice that many visitors in total.

Choosing your inputs

Use your real baseline conversion rate from analytics rather than an industry average. Set the minimum detectable effect to the smallest lift that would actually change a business decision: chasing a 1% lift on low traffic can demand millions of visitors, so most stores target larger, more meaningful swings. Keep confidence at 95% and power at 80% unless you have a specific reason to change them, since those are the conventional defaults for commercial A/B testing.

FAQ

Frequently asked questions

Stop guessing what to test

A calculator tells you whether a test is worth running. Spar finds the tests worth running: it audits your storefront, ranks the gaps by revenue impact, and drafts the variations. Start a 14-day free trial.