Business

A/B Testing: What It Is, How It Works, and How to Run a Valid Test

Alphabet dice spelling A, B, and C on a reflective surface.

A/B testing (also called split testing) is a controlled experiment. You show one version of a page, email, or ad to half your audience and a changed version to the other half. Then you measure which one gets more of the action you care about, such as purchases, sign-ups, or clicks.

Most guides stop there. The harder part is running a test you can trust, because a badly run test can “prove” something that isn’t true. This guide covers the basics and the parts that usually get skipped: a worked example with real numbers, how much traffic you need, and what to do when the result is unclear.

What A/B Testing Is (and What It Isn’t)

Every A/B test has the same moving parts:

  • Control (A): the current version.
  • Variant (B): the version with one deliberate change.
  • Random split: visitors are assigned to A or B by chance, at the same time.
  • Primary metric: the one number that decides the winner, such as conversion rate.

Random, simultaneous assignment is what makes the result meaningful. If you run version A this week and version B next week, you can’t tell whether the change or the calendar made the difference. A holiday, an ad campaign, or a slow news day can move your numbers on its own.

A/B testing doesn’t tell you why a version won. It tells you which one performed better with your audience. Pairing tests with qualitative research (session recordings, surveys, customer emails) helps explain the “why.”

How an A/B Test Works, Step by Step

  1. Find a problem. Look for a page where people drop off or don’t act. Analytics, heatmaps, and customer feedback are good starting points.
  2. Write a hypothesis. A short statement of what you’ll change and what you expect to happen (more on this below).
  3. Build one variant. Change one meaningful thing so you know what caused any difference.
  4. Split traffic and measure. A testing tool assigns visitors randomly and tracks your primary metric for each group.
  5. Run it to a planned end, then decide. Decide the sample size and duration before launch, and don’t stop early because the numbers look exciting.

A Worked Example: Testing a Checkout Headline

Here is a hypothetical online store (the numbers are illustrative, not from a real case).

Problem: The cart page converts 4% of visitors into buyers. Analytics show many visitors leave without clicking checkout.
Control: “Your Cart.”
Variant: “Your cart is ready: free returns on every order.”
Primary metric: Purchase conversion rate per visitor.
Smallest lift worth detecting: 4% to 5% (a 25% relative increase).

A standard sample-size calculation (95% confidence, 80% power) says this test needs about 6,700 visitors per version, or roughly 13,500 in total. Different calculators land within a few percent of each other, and Umbraco’s testing guide, for example, cites about 6,500 per variant for the same inputs.

If the cart page gets 1,000 visitors a day, each version sees about 500 a day. That’s roughly two weeks, which also covers two full weekday/weekend cycles.

Suppose the test ends with 4.0% for the control and 4.9% for the variant. That’s a 0.9-point gap, a bit short of your 1-point target. The right next step is to check the confidence interval. If it excludes zero, the headline probably helps, though maybe less than you hoped. If it includes zero, the result is inconclusive. Either way, you’ve learned something you didn’t know before.

How Much Traffic and Time You Need

Three inputs drive the answer:

  • Baseline conversion rate: your current rate.
  • Minimum detectable effect (MDE): the smallest improvement worth acting on.
  • Confidence and power: the standard settings are 95% confidence and 80% power.

Lower baselines and smaller effects need far more visitors. Per version, with standard settings:

Baseline rate Lift you want to detect Approx. visitors per version
2% +20% relative (to 2.4%) 21,000
2% +10% relative (to 2.2%) 81,000
4% +25% relative (to 5%) 6,700
4% +10% relative (to 4.4%) 39,500
5% +10% relative (to 5.5%) 31,000
10% +15% relative (to 11.5%) 6,700

These figures are rounded and use a standard two-proportion calculation. Evan Miller’s published example for 5% to 5.5% is about 30,200 per version. Always run your own numbers in a calculator before launch.

Note that these counts are visitors, not purchases. A common mistake is confusing the two.

If your traffic is low, you have options:

  • Test a bigger change, since larger effects need fewer visitors.
  • Use a metric earlier in the funnel (clicks to the next step instead of purchases).
  • Test on your highest-traffic page.
  • Treat the result as directional evidence, not proof.

Writing a Hypothesis You Can Test

A useful template:

Because we observed [evidence], changing [element] to [change] will [expected behavior], which will improve [primary metric] for [audience].

Example: Because analytics show 60% of cart visitors never click checkout, adding a free-returns line to the cart headline will reduce hesitation and raise purchase conversion for all visitors.

Writing it down first stops you from explaining away a loss later.

What to Test First (and How to Prioritize)

Start where traffic and money meet. Common starting points:

Area Examples to test Typical primary metric
Websites and landing pages Headlines, calls to action, layout, form length Sign-ups, lead submissions
Ecommerce Product page copy, shipping messaging, checkout steps, trust badges Purchase rate, revenue per visitor
Email Subject lines, send time, call-to-action wording Click rate or conversions
Ads and campaigns Creative, headline, audience message Cost per conversion

For email, clicks or conversions are safer primary metrics than opens, since privacy features in some email apps can distort open rates.

When you have more ideas than traffic, rank them with a simple score such as ICE (Impact, Confidence, Ease) or PIE (Potential, Importance, Ease). The exact scoring system matters less than being consistent.

A/B Testing vs. A/B/n vs. Multivariate vs. Split URL

Method What it compares Traffic needed Best for
A/B test Two versions with one change Moderate Most business tests
A/B/n test Three or more versions of one element Higher Several headline or offer options
Multivariate test Combinations of changes (e.g., 2 headlines × 2 images = 4 versions) Much higher High-traffic pages needing to see how elements interact
Split URL test Two separate pages, each at its own address Moderate Full redesigns or different page templates

A/B testing vs. multivariate testing mostly comes down to traffic. Every added combination splits your visitors into smaller groups, so most small and mid-size sites do better running a sequence of simple A/B tests.

Reading Results Without Fooling Yourself

Statistical significance answers one question: if the change actually did nothing, how often would random chance produce a gap this large? At the usual 95% threshold, you accept roughly a 1-in-20 risk of calling a winner when there isn’t one.

Two companion ideas help:

  • Confidence interval: the range of plausible true lifts, for example “+0.2 to +1.6 points.” If it includes zero, you can’t rule out no effect.
  • Practical significance: a result can be real but too small to matter. Decide up front what lift justifies the work of rolling out the change.

Peeking is the biggest trap. Checking results daily and stopping the moment they look significant makes false positives far more common than the 5% you planned for. Some testing platforms use statistical methods designed for continuous monitoring, so follow the rules documented by your tool. If yours doesn’t, wait for the planned sample.

What to do with each outcome:

Result What it means Next step
Clear winner Variant beat control, interval above zero Roll it out; check secondary metrics first
Clear loser Control beat the variant Keep the control; note what you learned
Inconclusive No detectable difference Test a bolder change, or move on to a higher-impact idea

Also watch guardrail metrics such as refunds, bounce rate, or support tickets. A change that lifts sign-ups but doubles refunds isn’t a win.

Common A/B Testing Mistakes

  • Stopping early. Early swings are mostly noise.
  • Changing several things at once. You won’t know which change worked.
  • No hypothesis. Random tests teach little.
  • Too little traffic. Calculate sample size first.
  • Judging by the wrong metric. More clicks don’t help if purchases fall.
  • Testing many metrics and picking the winner. Each extra metric raises the odds of a false positive.
  • Overlapping tests on the same page. Tests can interfere with each other.
  • Not recording results. Keep a log (hypothesis, dates, result, decision) so you don’t repeat old tests.

A/B Testing and SEO

Done properly, testing is safe for search. Google’s guidance says a few things:

  • Don’t show Googlebot a different version than you show people. Google calls this cloaking, and it breaks its spam policies whether or not you are running a test.
  • For tests using separate URLs, use rel=”canonical” on the variation URLs and 302 (temporary) redirects rather than 301s.
  • Don’t leave tests running forever. Running a test longer than necessary can be treated as deceptive. Remove test scripts and alternate URLs once you’re done.
  • Small changes like button color or call-to-action text usually have little or no effect on how a page appears or ranks in search.

Choosing A/B Testing Tools

Rather than rank products, here is what to look for:

  • Ease of use: can marketers launch a test without a developer?
  • Reliable randomization and reporting: confidence intervals, not just “winner” labels.
  • Goal tracking that matches your real business metric.
  • Integration with your analytics, CMS, or email platform.
  • Statistical method: fixed-sample or sequential, and whether it’s documented.
  • Server-side options if you’ll test pricing or logic, not just page copy.

Your options include dedicated experimentation platforms, A/B features built into email and ad platforms, CMS add-ons, and developer-led feature-flag tools. One note: Google Optimize, once a popular free choice, is gone. Google Optimize and Optimize 360 were no longer available as of September 30, 2023. At that time, Google said it was working on Google Analytics integrations with AB Tasty, Optimizely, and VWO. Check current features and pricing directly with any vendor before choosing.

Pre-Launch Checklist

  • One page, one primary metric, one change
  • A written hypothesis and minimum worthwhile lift
  • Sample size and end date set in advance
  • Tracking verified on both versions
  • Variant checked on mobile and desktop
  • Internal traffic and bots excluded
  • Plan for logging the outcome

Frequently Asked Questions

What is A/B testing in simple terms?

It’s a fair comparison of two versions of something, such as a web page, to see which gets more of a desired action.

How long should an A/B test run?

Until you reach the pre-planned sample size, usually at least one to two full weeks so weekdays and weekends are both included.

How much traffic do I need?

It depends on your baseline rate and the lift you want to detect. A site converting at 4% that wants to detect a 25% lift needs about 6,700 visitors per version, as shown above.

Can small businesses use A/B testing?

Yes. Focus on high-traffic pages, bolder changes, and earlier-funnel metrics, and treat low-power results as hints.

Is A/B testing the same as split testing?

In everyday use, yes. Some people reserve “split testing” for tests of separate URLs.

Does A/B testing hurt SEO?

Not when you follow Google’s guidance: no cloaking, proper canonicals and temporary redirects for URL tests, and prompt cleanup.

Conclusion

A/B testing works best as a habit, not a one-off project. Pick one important page, write a clear hypothesis, calculate your sample size, and let the test finish. Even tests that don’t produce a winner remove guesswork and sharpen your next idea.

If you only do one thing after reading this, run your own baseline and target lift through a free sample-size calculator before you build anything. It will tell you right away whether your traffic can support the test.

Most discussed

  1. Best Business Bank Account for Freelancers in 2026
  2. How to Save Money on a Low Income in 2026
  3. How to Send Money Abroad Online in 2026: A Practical Guide

Leave a Reply

Your email address will not be published. Required fields are marked *