Workbench

A/B sample size calculator

How many visitors per variant you need, and how many weeks that takes at your traffic.

Test design

%
Current rate for the primary metric.
%
A 10% lift on 3% means 3.0% to 3.3%.
visitors
Only people who can enter the test.
More variants need more visitors and raise the chance of a false positive; correct for it if you act on several.

What you need

Per variant-
Total visitors-
Absolute change-
Estimated duration-

Two-sided test for two proportions with the normal approximation. It assumes a fixed sample read once at the end. For tiny baselines or very small samples, use a method designed for them.

How to use the result

Treat the sample size as a price list. If the visitors per variant are more than you can collect in a reasonable time, increase the lift you are testing for, test a metric earlier in the funnel, or decide without a test and record a baseline. Decide the end date now; do not stop early because a chart looks good.

Formula: n per variant = (zα/2·√(2·p̄·q̄) + zβ·√(p₁q₁ + p₂q₂))² ÷ (p₂ − p₁)², where p̄ is the average of the two rates.