Skip to content
Koit Academy

A/B test sample size calculator

Your numbers

The numbers filled in are an example. Replace them with yours.

Sample size per variant

13,914 visitors per variant

To detect a move from 3% to 3.6% at 95% confidence and 80% power, the test needs 27,828 visitors across 2 variants: 19 days at 1,500 a day.

How it adds up

ItemPer variantTime
5% lift207,9389.1 months
10% lift53,2112.3 months
15% lift24,19333 days
20% lift13,91419 days
30% lift6,4559 days
50% lift2,5184 days

Decide the sample size before the test starts and stop only when it is reached; checking the result every day and stopping at the first good-looking number makes false winners far more likely. Run it for whole weeks so weekdays and weekends are both included.

Worked out from the numbers you enter. Calculated in this browser; nothing you enter is sent anywhere or stored.

How to use it · free, no signup

How to use the A/B Test Sample Size Calculator

Enter your conversion rate, the smallest lift worth detecting and your daily traffic to see how many visitors and days a test needs before it starts. Calculated in your browser.

  1. 01

    Enter the baseline

    Your current conversion rate for the page or step being tested.

  2. 02

    Choose the lift

    The smallest improvement worth acting on, as a percentage of the baseline.

  3. 03

    Enter the traffic

    Visitors a day across all variants, and how many variants there are.

Sizing a test before it starts

An A/B test needs enough visitors to tell a real difference from chance. How many depends on four choices: the current conversion rate, the smallest lift worth detecting, the confidence level and the power. The example uses the starting values: a 3% conversion rate, a 20% relative lift, 95% confidence and 80% power.

FigureValue
Baseline and target rates3% and 3.6%
Visitors per variant13,914
Visitors for two variants27,828
Days at 1,500 visitors a day19

The lift you look for decides the size

The sample size grows with the square of how small the effect is: looking for a 10% lift instead of 20% needs about four times the visitors, 53,211 per variant here, and over two months of traffic. That is why small sites do better testing bold changes, such as a new offer or page layout, than small ones such as a button colour. A test sized for a 20% lift that shows nothing has not proved there is no difference, only that there is no large one.

Running it properly

  • Fix the size first, and stop only when it is reached; stopping at the first good-looking result produces false winners.
  • Run whole weeks, so weekdays and weekends are both in the sample.
  • Split traffic evenly and keep everything else the same while the test runs.
  • More variants need more visitors, and each extra comparison raises the chance of a false positive.

When the test is done

Enter the visitors and conversions of each version in the A/B test calculator to see whether the difference is significant. To see what the lift would be worth, the conversion rate calculator turns a rate into conversions and the sales funnel calculator into revenue.

Published by Koit Academy. Who runs it, how it is paid and how its tools are checked.

Questions

What people ask about the A/B Test Sample Size Calculator

How do I calculate the sample size for an A/B test?
Start from the current conversion rate and the smallest lift worth detecting, then choose the confidence and power. To see a 20% lift on a 3% rate at 95% confidence and 80% power takes about 13,914 visitors per variant.
What is the minimum detectable effect?
The smallest change the test is designed to find reliably. Smaller effects need far more visitors: halving it roughly quadruples the sample.
What do confidence and power mean?
Confidence controls how often a test shows a difference that is not there; power controls how often it finds a difference that is. 95% and 80% are common choices.
Can I stop the test early if one version is winning?
Not safely. Checking repeatedly and stopping at the first good result makes false winners much more likely. Decide the size first and run to it.
How is this different from the A/B test calculator?
This one plans a test before it starts, from the lift you want to detect and your traffic. The A/B test calculator judges a test from its visitors and conversions.