A/B test sample size and significance, explained
An A/B test compares two versions of a page, email or ad. Two questions decide whether the result means anything: did enough people see each version, and is the difference bigger than luck? Both examples below come from the Kitwise A/B tools.
Free tools for this
- A/B Test Sample Size PlannerHow many visitors does each version need before you can trust the result? Enter your current conversion rate and the smallest lift you care about.
- A/B Test Significance CalculatorDid version B really beat version A? Enter visitors and conversions to get the lift, the p-value and a plain-English verdict.
- Survey Sample Size CalculatorHow many people must answer your survey? Enter your population, confidence level and margin of error.
1. Plan the sample size first
With a 3% conversion rate, catching a 20% relative lift (3.00% โ 3.60%) at 95% confidence and 80% power needs about 13,914 visitors per version (27,828 in total). To catch a 10% lift (3.00% โ 3.30%) you need about 53,211 per version: halving the lift roughly quadruples the traffic.
Tip: Small sites cannot detect small lifts. Test bold changes (a new headline or offer) rather than button colours.
2. Read the result
| Version | Visitors | Conversions | Rate |
|---|---|---|---|
| Version A | 5,000 | 200 | 4.00% |
| Version B | 5,000 | 245 | 4.90% |
Here the difference is 0.90 points (a 22.5% lift), z = 2.18 and the p-value is 0.029, below 0.05, so it is likely a real difference. With 215 conversions for B instead of 245, the p-value is 0.45: no clear winner yet.
3. Mistakes that create false winners
- Stopping when it looks good. Checking every day and stopping at the first significant result inflates false wins. Decide the sample size before you start.
- Running too short. Include at least one full week so weekdays and weekends are both in the data.
- Testing many things at once. Ten variations at 95% confidence will often produce one false winner by chance.
- Changing the test midway. A new design or traffic source resets the comparison.
Questions
What is a good p-value for an A/B test?
Below 0.05 is the usual standard for 95% confidence. It is not proof; it means the result would be unusual if there were no real difference.
How long should an A/B test run?
Until each version reaches the planned sample size, and at least one full week.
Can I use the survey sample size formula for A/B tests?
No. Surveys estimate one share; A/B tests compare two, which needs the A/B planner.