A/B Test Sample Size Calculator
Plan a test before you start: how many visitors each variant needs to detect the uplift you care about.
How to use the A/B Test Sample Size Calculator
- Enter baseline conversion rate, minimum detectable effect, relative, confidence level, statistical power, daily visitors in the test.
- Results update instantly as you type.
- Use “Copy link to these results” to share or save your numbers.
Formula
n = (z₁₋α/₂·√(2p̄(1−p̄)) + z₁₋β·√(p₁(1−p₁)+p₂(1−p₂)))² ÷ (p₂−p₁)²
Example
With baseline conversion rate of 3%, minimum detectable effect, relative of 15%, confidence level of 95%, statistical power of 80%, daily visitors in the test of 2,000: visitors per variant = 24,198; total visitors (2 variants) = 48,396; estimated duration = 25 days.
How to read the result
Smaller effects need far more traffic. If the duration is too long, test bolder changes or use a higher-traffic page.
Frequently asked questions
What is minimum detectable effect?
The smallest relative change you want the test to detect reliably, such as a 15% lift from 3% to 3.45%.
Why 80% power?
It is a common standard: an 80% chance of detecting the effect if it truly exists.
Last reviewed 2026-11-24 · How we build and check our tools