A/B Test Sample Size Calculator

Enter your current conversion rate, the smallest lift worth finding and your daily traffic. See how many visitors each version needs and how long the test will take.

Runs in your browser. Nothing you type is uploaded.

Your numbers

Result

Days to run32 days

At 2,000 visitors a day split across 2 versions.

Visitors per version
31,234
Total visitors
62,468
2 versions
Target rate
5.50%
From 5%
Conversions per version
1,562
Expected in the control
How the lift you want to detect changes the test
LiftRatePer versionTotalDays
+5%5% → 5.25%122,124244,248123
+10%5% → 5.50%31,23462,46832
+15%5% → 5.75%14,19328,38615
+20%5% → 6%8,15816,3169
+30%5% → 6.50%3,7807,5604

How it works

Sample size
(z for confidence × √(2 × average rate × (1 − average rate)) + z for power × √(p1(1 − p1) + p2(1 − p2)))² ÷ (p2 − p1)², per version.
Days to run
Visitors per version × number of versions ÷ visitors per day, rounded up.
More than two versions
The allowed false-win rate is divided by the number of comparisons with the control (Bonferroni), which raises the sample size.

Questions

Why does a small lift need so many visitors?

The sample size grows with 1 ÷ (difference)². Halving the lift you want to detect roughly quadruples the visitors you need.

What lift should I pick?

The smallest change that would be worth acting on. Most small sites cannot detect lifts under 10% to 20% in a sensible time, so test bigger changes.

Can I stop early if it looks like a clear win?

Stopping early on a good-looking day inflates false winners. Run until you reach the sample size, and for at least one full week.

Get CapyLaunch Weekly

New indie launches and the week in AI tools and models, every Monday. Free, and you can unsubscribe anytime.

We send a confirm link first. Privacy

Your launch, this week. Free.

A reviewed listing, a permanent page with a link to your site, and feedback from makers who actually care.

Start my launch →or browse toolsFree to submit. Every listing is reviewed before it goes live.