A/B testing
A/B testing is an experiment that randomly splits an audience between two versions of a page, email or ad to measure which one produces a better result.
Also called: split testing, A/B test, bucket testing, AB testing
A/B testing is an experiment that randomly splits an audience between two versions of a page, email or ad, called A (the control) and B (the variant), to measure which one produces a better result. It matters because it replaces opinion with evidence, and it stops teams from shipping changes that feel better but quietly lower conversion.
How it works
- Hypothesis. State what you will change, for whom, and what you expect: "Adding customer logos above the form will raise demo requests on paid traffic."
- Primary metric. Pick one, set before the test starts: demo requests, purchases, trial starts.
- Sample size. Calculate how many visitors each version needs to detect the effect you care about.
- Random split. The testing tool assigns each visitor to A or B and keeps them there on return visits.
- Run to completion. Do not peek and stop early. Run the full sample and at least one or two full weekly cycles.
- Decide and log. Ship the winner, or keep the control if the result is flat, and record what you learned.
A widely used rule of thumb for sample size at 95% confidence and 80% power is:
n per variant ≈ 16 × p × (1 − p) / d²
where p is the baseline conversion rate and d is the absolute lift you want to detect.
Example
Say a landing page converts at 4% and you want to detect a lift to 5%, an absolute difference of 1 point.
p × (1 − p)= 0.04 × 0.96 = 0.0384d²= 0.01² = 0.0001- n ≈ 16 × 0.0384 / 0.0001 = 6,144 visitors per variant
That is about 12,300 visitors total. At 3,000 visitors a week, the test needs roughly four weeks. Now say you wanted to detect a lift from 4% to 4.2% instead. The required sample jumps to about 154,000 per variant, which most B2B sites will never reach. This is why small tweaks rarely produce clean results on modest traffic, and why bigger, research-backed changes are the better bet.
A/B testing vs multivariate testing
An A/B test compares whole versions, so it tells you which version won, not which element caused it unless you only changed one thing. Multivariate testing changes several elements at once and estimates each one's effect, but it needs far more traffic. For most teams, sequential A/B tests on one meaningful change at a time are faster and more reliable. For measuring whether a whole channel or program drives results, use a holdout test or incrementality testing instead.
Common mistakes
- Stopping the test the day a variant pulls ahead.
- Testing many metrics and declaring victory on whichever one moved.
- Running several overlapping tests on the same page and audience.
- Changing traffic sources mid-test, such as launching a new ad campaign that sends different visitors.
- Ignoring sample ratio mismatch: if the split is not close to 50/50, the setup is broken.
- Treating a flat result as failure. A clean "no difference" saves you from shipping a pointless change.
FAQ
How long should an A/B test run?
Until it reaches the sample size you calculated before starting, and for at least one to two full weeks so weekday and weekend behavior both show up. Stopping as soon as one version looks ahead is the most common way to get a false winner.
What is statistical significance in A/B testing?
It is a measure of how unlikely your observed difference would be if the two versions actually performed the same. Most teams use a 95% confidence threshold, meaning they accept about a 5% chance of calling a winner that is really just noise.
What should you A/B test first?
Test changes tied to a research finding on high-traffic, high-value pages: headlines, offers, pricing presentation, form length and proof placement. Button color tests rarely move results enough to detect on normal traffic.
Related
Used in these articles
- ArticleA/B Testing for Teams Without Huge Traffic: Sample Size, Significance and What to Test First
- ArticleAI Video Ads: The Disclosure Rules on Google, Meta and TikTok, and What the FTC Expects
- ArticleConversion Rate Optimization: How to Run a CRO Program Across Your Whole Site
- ArticleEcommerce Conversion Rate: How to Measure It, Diagnose It and Raise It
- ArticleGamification Marketing: The Mechanics That Change Behavior and the Ones That Don't
- ArticleEcommerce Shipping Strategy: Cut the Cost Per Order, Keep the Promise