All free tools

Free tool · no signup

A/B test sample size calculator

Before you start a test, find out how many visitors each variant needs to detect the change you care about — and how long that takes with your traffic.

Current rate of the page or flow you’re testing

5% → 6% (a 20% lift)

Significance

Statistical power

Visitors per variant

7,664

Total visitors

15,328

Estimated duration

—

How the calculation works

The calculator uses the standard formula for comparing two proportions with a two-sided test:

n = (z₁₋α/₂ · √(2·p₁(1−p₁)) + z₁₋β · √(p₁(1−p₁) + p₂(1−p₂)))² ÷ (p₂ − p₁)²

  • p₁ is the baseline rate and p₂ the rate you want to be able to detect (baseline + effect).
  • z₁₋α/₂ comes from the significance level: 1.645 for 90%, 1.960 for 95%, 2.576 for 99%.
  • z₁₋β comes from the power: 0.842 for 80%, 1.282 for 90%.

It is the same formula used by Evan Miller’s widely cited calculator; we round up to the next whole visitor. Example: a 20% baseline and a 5-point absolute effect at 95% significance and 80% power gives about 1,030.2, so 1,031 visitors per variant.

Choosing the inputs

  • Minimum detectable effect: the smallest lift that would change your decision. Halving it roughly quadruples the sample.
  • Significance (95% is standard): how sure you want to be that a “winner” isn’t a fluke.
  • Power (80% is standard): the chance of detecting the effect if it is really there.

Decide the sample size up front and don’t stop the test the moment it looks significant — “peeking” inflates false positives dramatically.

Low traffic? Test bigger changes

If the duration comes out in months, test bolder changes (a new offer, a shorter signup) instead of button colours, or test higher in the funnel where there is more traffic. Analisa’s funnels show where most visitors drop off, which is usually the best place to test. Get your baseline with the conversion rate calculator.

Frequently asked questions

What is a minimum detectable effect (MDE)?

The smallest difference between control and variant that the test is designed to detect reliably. A relative MDE of 10% on a 5% baseline means detecting a change from 5% to 5.5%.

Relative or absolute effect?

Relative is a percentage of the baseline (5% to 5.5% is +10% relative); absolute is in percentage points (5% to 6% is +1 point). Both give the same sample size for the same target rate.

Why is the sample size so large?

Small effects on low conversion rates are hard to tell apart from random noise. Sample size grows with the inverse square of the effect, so detecting half the effect needs about four times the visitors.

How long should an A/B test run?

Until each variant reaches the planned sample size, and for whole weeks — at least one, ideally two — so that weekday and weekend visitors are both represented.

Does this work for more than two variants?

Yes: the per-variant number is the same and the total multiplies by the number of variants. With many variants, consider correcting the significance level for multiple comparisons.

Run the test, then see who converts

Analisa tracks goals and funnels for every variant and channel — without cookies. Free up to 10K events a month.

Start free

More free tools

A/B test sample size calculator · Analisa