A/B testing

A/B testing is a controlled experiment that shows two versions of something, such as a web page, a message or a process step, to randomly assigned groups and compares a chosen outcome. The random split lets the difference in outcome be attributed to the change.

Also called: A/B test · A/B tests · split test · split testing · controlled experiment

What it is

A/B testing (also called a split test or controlled experiment) compares two versions of one thing by showing each to a different, randomly chosen group of people and measuring the same outcome in both. Version A is usually the existing one, the control. Version B contains the single change under test.

GOV.UK guidance on comparative studies treats an A/B test as a randomised controlled trial for the purposes of design. The Cabinet Office paper on randomised controlled trials explains that a control group shows whether the intervention, rather than outside conditions, produced the effect.

The parts of a test are:

A test with more than two versions is a multi-arm test, built on the same logic with one control.

Why it matters

Before-and-after comparisons mix the effect of a change with everything else that moved in the same period, such as seasonality or a campaign. Running both versions at the same time on randomised groups removes that problem, because outside factors affect both groups alike.

Product, growth and analytics teams use the result to decide whether to adopt a change on evidence rather than preference.

Worked example

Illustrative numbers.

A statistical test then asks whether a gap of this size is likely to arise from chance alone with groups of this size. If it is unlikely, the difference is attributed to the message. The sample size and the threshold for that judgement are set before the test, not after seeing the data.

Who uses it

Common confusions

6Roles that need it

7Skills behind it

Sources behind this page (2) · Updated 5 Nov 2026

Concept