Sample size for an A/B test
Most A/B tests fail before they start: too little traffic per variant, and the observed difference stays inside statistical noise. Before launching, size the order of magnitude: this calculator, preset to a fine ±2% margin, gives you the number of users needed to measure each variant precisely — count that volume IN EACH branch of the test.
Keep the difference of goals in mind: a survey estimates one proportion; an A/B test detects a gap between two proportions. The size below guarantees the measurement precision of each variant. To rigorously size the detection of a small uplift (e.g. +1 conversion point), complement it with a statistical power calculation that includes the minimum detectable effect and the β risk.