A/B Test Sample Size Calculator

Calculate the required sample size per variant for an A/B test from baseline conversion rate, minimum detectable effect, significance level, and power.

Frequently Asked Questions

What is the minimum detectable effect?

The MDE is the smallest difference in conversion rates that your test is designed to detect with the specified power. It is expressed in absolute percentage points: an MDE of 2 pp means you want to detect a move from, say, 10% to 12%.

Should I use one-tailed or two-tailed significance?

Use a two-tailed test unless you have a strong, pre-registered reason to care only about one direction. Two-tailed tests are the default because a new variant can hurt conversion just as easily as it can help.

What happens if I stop the test early?

Stopping as soon as significance is reached inflates the actual false-positive rate above α. With α = 5% and a 50% early-stop rule, the true false-positive rate can exceed 25%. Always commit to the planned sample before launching.

Why does the calculator return per-variant and total sample?

Standard A/B tests split traffic 50/50, so each variant receives n visitors and the experiment requires 2n in total. If you run more than two variants, multiply the per-variant n by the number of arms.

Important Disclaimer: Estimates for informational purposes only.

This calculator provides estimates for informational purposes only. Results are based on assumptions and may not reflect actual outcomes. Consult qualified professionals in relevant fields before making important decisions based on these results.