A/B test sample size calculator

A/B test sample size depends on the baseline conversion rate, the smallest lift you want to detect, the significance level and statistical power. At a 10% baseline and 20% relative lift (5% significance, 80% power) you need about 3,841 visitors per variant.

How to use the sample size calculator

  1. Enter your current conversion rate.
  2. Enter the smallest relative lift worth detecting.
  3. Keep 5% significance and 80% power unless you have a reason to change them.
  4. Run the test until each variant reaches the number shown.

Method

This uses the normal approximation for a two-sided test comparing two proportions. Halving the lift you want to detect roughly quadruples the sample you need.

Frequently asked questions

What is minimum detectable effect?

The smallest change the test is designed to detect reliably. Here it is relative to the baseline.

What is statistical power?

The probability of detecting the effect if it really exists. 80% is a common choice.

Can I stop a test early when it looks significant?

Not with this fixed-sample method. Repeatedly checking and stopping early raises the false positive rate.

Related tools