How much traffic do you need for an A/B test?
Estimate the sample size and duration you need before you launch an experiment.
“How long should we run this test?” is usually the first question people ask.
The better question is how many visitors do we need to make a useful decision? Two weeks might be plenty for a high-traffic site and nowhere near enough for a smaller one.
You can estimate the answer before launch. You just need four inputs: your current conversion rate, the smallest change worth detecting, your significance threshold, and statistical power.
Know your starting conversion rate
Say 500 out of 10,000 visitors complete a signup. Your baseline conversion rate is 5%.
That’s the rate your new version needs to beat. It also affects how much traffic you’ll need: small changes are harder to detect than large ones.
Decide what improvement is worth detecting
The minimum detectable effect (MDE) is the smallest change you want the experiment to have a good chance of picking up.
With a 5% baseline, a 10% relative lift means moving to 5.5% conversion.
- Current conversion rate: 5.0%
- Target conversion rate: 5.5%
- Relative lift: 10%
- Absolute difference: 0.5 percentage points
It’s an easy distinction to miss. A 10% relative lift is not the same as adding 10 percentage points.
The smaller the improvement you want to detect, the larger the sample you’ll need. Choose an MDE that would actually make a difference to the business.
Choose your confidence level and power
A common starting point for a fixed-horizon A/B test is a 5% significance level (often described as 95% confidence) and 80% power.
In plain English:
- The significance level sets the threshold for calling a difference statistically significant. With a 5% threshold, there’s a 5% chance of a false positive under the usual null-hypothesis assumptions.
- Power is the chance of detecting your chosen effect if it’s really there. At 80% power, the test has an 80% chance of detecting the MDE under the assumptions of the calculation.
Stricter thresholds generally mean more traffic.
Calculate the visitors you’ll need
With a 5% baseline, a 10% relative lift, a 5% significance level, and 80% power, you’re typically looking at tens of thousands of visitors per variation, depending on the method used.
Use the Experiment Sample Size Calculator to estimate a target for your own numbers.
Make sure you’re counting eligible visitors who can actually enter the experiment, not every visitor to the website.
Turn that sample into a timeline
Let’s say your calculation calls for 30,000 visitors in each of two groups. That’s 60,000 eligible visitors in total.
- At 5,000 eligible visitors per day: about 12 days.
- At 500 per day: about 120 days.
These are rough estimates. Traffic changes across weekdays, weekends, campaigns, and seasons.
The Experiment Duration Calculator can help you estimate the calendar time from your sample target and daily traffic.
If your test would take four months to detect a tiny improvement, that may be a reason to rethink the idea or test a more meaningful change.
Don’t stop at the first promising result
Checking the p-value every day and stopping the moment it crosses your threshold increases the chance of false positives with conventional fixed-horizon testing.
Set your sample target and stopping rule before launch, and stick to them. Also consider whether the test spans a representative mix of weekdays and weekends. Some testing methods support continuous monitoring, but they need to be designed for it.
Significant doesn’t always mean worthwhile
With enough traffic, even a tiny conversion-rate difference can become statistically significant. That doesn’t automatically make it valuable.
A lift from 5.00% to 5.03% might be real but too small to justify the cost or complexity of shipping it.
Before testing, ask: If we saw this result, would we actually make a different decision?
A quick checklist before launch
- Measure your baseline conversion rate.
- Decide the smallest lift worth detecting.
- Choose your significance level and power.
- Calculate the sample needed for each variation.
- Estimate the duration using eligible daily traffic.
- Set the stopping rule before the test begins.
- Evaluate the result for both statistical and business impact.
The point isn’t to make every experiment complicated. It’s to agree on what a convincing result looks like before you see the data.