Esc
  • Jump to
  • The board
  • All launchesSort and filter by week or category
  • Open statsEvery number, in public
  • Maker storiesApps that stopped hiding
  • Submit a launch
  • AICategory
  • AnalyticsCategory
  • API & BackendCategory
  • Audio & VoiceCategory
  • AutomationCategory
  • CommunityCategory
↑↓ to move↵ to openPress / anywhere
Sign in

A/B Test Sample Size Calculator

Calculate required visitors per variant and exact test duration using a two-proportion Z-test before launching a landing page, onboarding, or pricing experiment.

Free, no sign-up. Everything runs in your browser; nothing you type is sent to us.

Experiment parameters

50/50 split
%

Current control conversion rate (capped at 99%).

% rel.

Relative lift over control (e.g. +20% on 3% = 3.6%).

Statistical power (1 - beta)

Probability of detecting a real lift when it exists (80% is standard).

Significance level (alpha)
Test tails

Two-sided tests catch both wins and regressions.

/day

Visitors reaching the tested page each day across control and variant.

Required sample size & runtime

13,914

visitors per variant (27,828 total)

Testing 3.00% control vs. 3.60% target (+0.60 pp / +20.0% relative). At 250 visitors/day, this takes 112 days (16.0 weeks).

Control vs. Variant
3.00% -> 3.60%
Per variant (n)
13,914
Total visitors (2n)
27,828
Estimated runtime
112 days

Low-traffic warning: 112 days (over 60 days)

Waiting 4 months for a single split test slows down iteration and invites seasonality bias. Indie teams with modest traffic usually get clearer signal from bold directional changes (+50% to +100% impact), five user interviews, or session recordings before running subtle copy A/B tests.

How bolder MDE targets cut test duration

Sample size scales inversely with the square of the effect size. Doubling the lift you test for cuts the required traffic by roughly four times.

Target MDEVariant ratePer variantTotal (2n)Runtime
+10% relative3.30%53,211106,422426d
+20% relative3.60%13,91427,828112d
+30% relative3.90%6,45512,91052d
+50% relative4.50%2,5185,03621d

The Two-Proportion Z-Test Formula

To size a 50/50 split experiment before peeking at results, this calculator uses the standard pooled/unpooled two-proportion Z-test sample size formula with inverse standard normal quantiles computed via Peter Acklam's rational approximation:

  • Sample Size per Variant: n = [Z_(1-alpha/2) * sqrt(2 * pBar * (1 - pBar)) + Z_power * sqrt(p1 * (1 - p1) + p2 * (1 - p2))]^2 / (p2 - p1)^2, where p1 is the control conversion rate, p2 is the target variant rate, and pBar = (p1 + p2) / 2.
  • Two-Sided vs. One-Sided Critical Value: At 95% confidence (alpha = 0.05), a two-sided test uses Z_0.975 = 1.96 while a one-sided test uses Z_0.95 = 1.645. At 80% power, Z_0.80 = 0.8416.
  • Estimated Runtime: ceil((2 * n) / Daily Eligible Visitors), assuming a 50/50 traffic split.

What to Do When Your Traffic Is Too Low for Small A/B Tests

Early-stage products rarely have enough daily visitors to detect a +10% button-color change inside two months. Instead of running underpowered split tests, focus on higher-leverage qualitative and funnel work:

Common questions

Should I pick a two-sided or one-sided A/B test?
Use a two-sided test by default. It detects both positive lifts and unexpected drops in conversion, whereas a one-sided test ignores the risk that a new layout or pricing change actually hurts signups.
Why does the calculator warn when runtime exceeds 60 days?
Tests running longer than two months suffer from cookie expiration, returning visitors seeing both variants, and traffic mix shifts. At low daily traffic, testing small 10% or 20% lifts rarely reaches statistical significance in a useful timeframe.
What is the difference between relative and absolute MDE?
A +20% relative MDE on a 5% baseline tests for 6.0% (5% * 1.20). A +1pp absolute MDE on a 5% baseline tests for 6.0% (5% + 1%). Relative mode scales with your baseline; percentage-point mode keeps a fixed gap.
Can I stop an A/B test early if the variant is winning after three days?
No. Peeking and stopping early as soon as p < 0.05 inflates false positive rates substantially. Commit to your pre-computed sample size per variant before declaring a winner.
Are my conversion rates and traffic numbers stored anywhere?
No. All normal-distribution math and sample-size calculations run locally in your browser.

More free tools

All free tools →

Ready to launch? Put it on Hauntboard.

A person reviews every launch. It goes on the board, gets a permanent page Google and AI search can find, and a public count of every visit we send you.

Launch free →

On the board

All →

Still hiding your app?

Put it on the board. Reviewed by a person, free to launch.

Launch free
Submit a launch