A/B Test Sample Size Calculator

Calculate visitors needed per variant for an A/B test from the baseline conversion rate, minimum detectable effect, significance and power.

Results

Enter your details and click Calculate to see your results.
About This Calculator

n = [z₁₋α/₂√(2p̄(1 − p̄)) + z_power√(p₁(1 − p₁) + p₂(1 − p₂))]²/(p₂ − p₁)², per variant.

Example

Example: 5% baseline, +20% relative lift → 8158 visitors per variant.

Assumptions

Two variants, equal split, two-sided test.

Frequently Asked Questions

Why so many visitors?

Small baseline rates and small lifts need large samples — doubling the detectable effect cuts the sample by about four.

Related Calculators

About the Author

Imran Hossain
Imran Hossain

Professional SEO, Digital Marketer Specialist

I am a Certified Google Ads Expert And Professional SEO, Digital Marketing Specialist

View full profile