What is A/B testing?
A/B testing (also called split testing) compares two versions of the same thing to see which one performs better. Version A is the current version, called the control. Version B is the changed version, called the variant.
Visitors are split randomly between the two, both versions run at the same time, and you measure which one gets more of the action you care about: purchases, sign-ups, clicks or replies. Because the only difference between the groups is your change, the result tells you whether that change caused the difference.
How A/B testing works
- Pick one change, such as a new headline or a shorter form.
- Split traffic randomly, usually 50/50, so both groups are alike.
- Run both versions at the same time, so seasons, weekdays and campaigns affect both equally.
- Measure one primary metric decided before the test starts.
- Wait for statistical confidence, typically 95%, before calling a winner. This makes it unlikely that the difference is just luck.
A/B testing examples in digital marketing
A/B testing works in almost every digital marketing channel. Some examples of what to test (illustrative):
| Channel | What you can test | Main metric |
|---|---|---|
| Landing pages | Headline, hero image, offer, form length, call to action | Conversion rate |
| Email marketing | Subject line, sender name, send time, layout | Click rate, revenue per email |
| Paid ads | Ad copy, creative, audience, landing page | Cost per acquisition |
| Product pages | Images, reviews placement, delivery promise, price display | Add-to-cart rate, revenue per visitor |
| Checkout | Guest checkout, payment options, trust messages | Checkout completion |
| SaaS sign-up and pricing | Plan names, recommended plan, form fields | Trial sign-ups, trial-to-paid |
Landing page example
Hypothesis: "Visitors from our Google Ads don't see the offer they clicked on. If we repeat the ad's offer in the headline, more of them will request a quote." Variant B changes only the headline.
Email example
Send subject line A to half of a test segment and subject line B to the other half, then send the winner to the rest of the list. Judge it on clicks or revenue, not opens alone.
Paid ads example
Google Ads has a built-in experiments feature, and Meta Ads Manager has an A/B test option. Both split your audience so each person sees only one version, which keeps the comparison fair.
For real results from tests like these, see our A/B testing case studies.
How to run an A/B test in 7 steps
- Research first. Use analytics, heatmaps, session recordings and customer surveys to find where people drop off and why.
- Write a hypothesis: "If we change X for these visitors, then this metric will improve, because evidence."
- Choose one primary metric, such as purchases or sign-ups, before the test starts.
- Work out sample size and duration with a sample size calculator. Plan for at least two full weeks so every weekday is covered.
- Build and check the variant on every device and browser. A broken variant ruins the test.
- Run the test without peeking. Stopping as soon as one version looks ahead is the most common way to get a false winner.
- Analyze, ship and document. Roll out winners, write down what every test taught you, including the losers, and use it to plan the next test.
A/B testing vs split URL testing vs multivariate testing
| Method | What changes | Best for |
|---|---|---|
| A/B testing | One change, two versions of the same page | Most tests, any traffic level |
| Split URL testing | Two different pages on different URLs | Full redesigns or new page templates |
| Multivariate testing | Several elements at once, in every combination | High-traffic pages, to see how elements interact |
People often say "split testing" when they mean A/B testing; in everyday use the two terms mean the same thing.
How much traffic do you need for A/B testing?
What matters is the number of conversions, not just visitors. As a rule of thumb, each version needs a few hundred conversions before the result is reliable, and smaller expected lifts need more.
With low traffic, test bigger, bolder changes, test on your highest-traffic pages first, or choose a metric higher up the funnel, such as add-to-cart instead of purchase.
Common A/B testing mistakes
- Stopping a test early because one version looks like it is winning.
- Testing without research, such as button colors chosen at random.
- Changing several things at once in an A/B test, so you can't tell what made the difference.
- Measuring the wrong metric, such as clicks when revenue is what matters.
- Ignoring mobile, where most traffic usually is.
- Not writing up losing tests. A loss still tells you what your customers don't want.
A/B testing tools
- Websites: VWO, Optimizely, Convert and AB Tasty.
- Shopify stores: apps such as Intelligems and Shoplift.
- Ads: Google Ads experiments and Meta Ads Manager's A/B test.
- Email: most email platforms, including Mailchimp and Klaviyo, have A/B testing built in.
Google Optimize, once a popular free option, was shut down by Google in September 2023, so older guides that recommend it are out of date.
Want to know what to test first on your site? Our free CRO audit finds your three biggest conversion leaks and the first A/B test we'd run.
