A/B Sample Size.
Two-tailed normal-approximation formula for two proportions, fixed-horizon test. Numbers assume independent observations and no peeking. If you run sequential or Bayesian tests, your effective n is different.
How it works
The calculator uses the standard two-proportion sample size formula for a fixed-horizon, two-tailed test:
n = (z(1-α/2) * sqrt(2 * p̄ * (1 - p̄)) + z(1-β) * sqrt(p1 * (1 - p1) + p2 * (1 - p2)))² / (p2 - p1)²
Here p1 is your baseline conversion rate, p2 is the rate you want to be able to detect, and p̄ is their average. Confidence sets α (95% means z = 1.96) and power sets β (80% means z = 0.84).
Relative or absolute effect
A 20% relative lift on a 5% baseline and a 1-point absolute lift describe the same target, 6%. Most testing tools quote relative lift, so that is the default. Switching modes converts your number so the target stays put.
Reading the result
The number is visitors per variant. Days to detect divides the total sample by daily traffic per variant. If that is longer than four to six weeks, test a bolder change or a higher-traffic page rather than running longer: seasonality and cookie churn creep in.
The maths assumes independent visits and no peeking. If you stop a test the first time it looks significant, your real false-positive rate is far higher than 5%.
The 7 most common A/B test failure modes.
A brief on why most CRO tests don't replicate, when sequential testing helps, why peeking wrecks your p-values, and how to set MDEs that aren't fantasy.
I run CRO sprints for DTC brands. Hypothesis stack, prioritization, build, readout. 4–8 clean tests per month.