GOJI
All terms
MeasurementReviewed by Joe S.

What is A/B testing?

A/B testing is a way of comparing two versions of a web page, email or ad by showing each to a random half of your audience and measuring which one gets better results. It replaces opinion with evidence, as long as the test runs long enough to reach statistical significance.

Every A/B test starts with one change and one measure of success. Version A is usually what you have now and version B changes one thing, such as a headline, a button or the layout of a form. Visitors are split at random, and the test tracks a metric chosen in advance, usually conversion rate or another KPI tied to revenue. The discipline is in the setup: decide the metric and the sample size before you start, and don't stop the moment one version pulls ahead.

Statistical significance is the check that tells you whether a difference is likely to be real or just chance. Small samples throw up dramatic swings all the time, so a result that looks like a 30% lift after two days often disappears by week three. Most teams use a 95% confidence level, which means accepting about a 5% chance of calling a winner that isn't one. Our article on A/B tests that lie covers the common traps, and testing is built into our website design and development work for sites with enough traffic to support it.

For example, an online homewares store in Adelaide tests two versions of its product page: one with free shipping shown above the price, one with it below. After four weeks and around 20,000 visitors, the version with free shipping up top converts at 3.1% against 2.7%, and the testing tool reports the difference as significant. The owner rolls it out across the site and has a number to show for it.

What is A/B split testing?

A/B split testing is another name for A/B testing: your traffic is split between two versions of something so you can compare their results. The term is sometimes used more specifically for split URL testing, where each version lives at a different web address. Either way, visitors are assigned at random and the version with the better result on your chosen metric wins.

What is the difference between A/B testing and multivariate testing?

An A/B test compares two versions that differ in one way, while a multivariate test changes several elements at once and measures every combination to see which elements matter most. Multivariate tests need far more traffic, because each combination needs its own sample. For most small and medium businesses, a series of simple A/B tests is more practical.

How does A/B testing work?

You pick one change to test, choose the metric that will decide the winner, and work out how many visitors you need. A testing tool then randomly shows each visitor version A or B and records what they do. Once the planned sample is reached, you compare the results and check whether the difference is statistically significant before acting on it.

What is A/B testing on social media?

On social media, A/B testing usually means running two versions of an ad or post with different images, headlines or audiences to see which performs better. Platforms like Meta's Ads Manager have built-in tools that split the audience and report the winner. Organic posts are harder to test fairly, because timing and the algorithm affect who sees each one.

What tools are used for A/B testing?

Common website testing tools include Optimizely, VWO, AB Tasty and Convert, and many email and ad platforms have A/B testing built in. Google Optimize, once a popular free option, was shut down in 2023. Some teams also run tests through their own code or CMS, which can keep pages faster than a third-party script.

Is it a B testing or A/B testing?

The correct name is A/B testing, written with a slash and pronounced A-B testing. The letters stand for the two versions being compared, A and B. You'll also see it called split testing or bucket testing.

How do you calculate statistical significance?

For an A/B test, you compare the conversion rates of the two versions and calculate a p-value, which is the probability of seeing a difference at least that large if there were really no difference at all. The usual method for conversion rates is a two-proportion z-test or a chi-squared test. In practice, most people use the calculator built into their testing tool or a free online significance calculator, after entering visitors and conversions for each version.

Is 0.05 statistically significant?

A p-value of 0.05 or lower is the most common threshold for statistical significance, so a result at or below it is usually called significant. It means there's about a 5% chance you'd see a difference this large from random variation alone. The threshold is a convention, so for high-stakes decisions some teams use a stricter cut-off such as 0.01.

What is a statistically significant sample?

A statistically significant sample is one large enough to detect a real difference of the size you care about with reasonable confidence. The size you need depends on your current conversion rate, the smallest improvement worth detecting and your chosen confidence level. Low-traffic sites often need weeks or months to reach it, which is why it's worth calculating before the test starts.

Related termsConversion rateKPI