A/B Test Sample Size Calculator
Visitors needed per variant to detect a conversion lift.
Runs in your browser — nothing is uploaded—
Details
How to use A/B Test Sample Size Calculator
- Enter your values — the unit for each field is shown next to it.
- The result updates instantly as you type.
- Copy the results, or change inputs to compare scenarios.
Formula & assumptions
n = (z₁₋α/2·√(2p̄(1 − p̄)) + z₁₋β·√(p₁(1 − p₁) + p₂(1 − p₂)))² / (p₂ − p₁)²