Skip to content

A/B Test Sample Size Calculator

Find how many visitors each variant needs to detect a given lift with your chosen confidence and power.

  • Free, no sign-up
  • Runs in your browser
  • Reviewed Nov 6, 2026

How to use the A/B Test Sample Size Calculator

  1. Enter your current (baseline) conversion rate.
  2. Enter the smallest relative lift worth detecting.
  3. Choose confidence and power.
  4. Optionally add daily traffic to estimate duration.

How it works

Uses the standard two-sided test for two proportions: n = [z₁₋α/₂ × √(2p̄(1−p̄)) + z₁₋β × √(p₁(1−p₁) + p₂(1−p₂))]² ÷ (p₂ − p₁)², where p₁ is the baseline, p₂ = p₁ × (1 + lift) and p̄ is their average. z-values come from the inverse normal distribution.

Worked examples

Checkout test

A 10% baseline and a 20% relative lift (10% → 12%) at 95% confidence and 80% power needs about 3,840 visitors per variant.

Limitations and assumptions

  • Assumes a fixed-horizon test with two variants and independent visitors.
  • Peeking and stopping early inflates false positives.

Frequently asked questions

Why does a small lift need so many visitors?

Sample size grows with the inverse square of the difference: halving the detectable lift roughly quadruples the visitors needed.

G

Built and reviewed by Guru G

Calculation logic is covered by automated tests against known values. Last reviewed Nov 6, 2026. Found a problem? Let us know — see our editorial policy.