Skip to content

A/B Testing

Comparing two versions of a design by showing each to a slice of live traffic and measuring which drives the target metric better.

Process & Methods

An A/B test splits live users between a control (A) and one or more variants (B), then measures which produces more of the behavior you care about: signups, activations, upgrades. Because both versions run on real traffic at the same time, the comparison isolates the effect of the change from seasonality, campaigns, and the general noise of a week.

A/B testing is the engine of conversion rate optimization and growth design. It is also the stage of the process where teams most often fool themselves, because a test produces a number whether or not the test was capable of producing an answer.

What a test needs before it starts

Four things, all decided in advance:

  • One hypothesis. The change, who it affects, the effect expected, and the threshold that would confirm it. See the hypothesis shape under UX design.
  • One primary metric. Pick it before launch. A test with five metrics will find something significant in one of them by chance.
  • A sample size. Calculated from the current baseline and the smallest effect worth acting on.
  • A stopping rule. The date or the sample size at which you decide, written down before the first user sees the variant.

Skip the last two and the test becomes an opinion with a percentage attached.

The traffic question, with real numbers

This is where most B2B SaaS teams discover the method does not fit their product. The table assumes a 20% baseline conversion, the standard 95% confidence and 80% power, and one control against one variant:

Effect you want to detectUsers per variantTotal users
+5% relative (20% to 21%)25,60051,200
+10% relative (20% to 22%)6,50013,000
+20% relative (20% to 24%)1,7003,400
+50% relative (20% to 30%)300600

Two things follow. Small effects are expensive to prove, and the cost rises steeply as the effect shrinks: catching a 5% lift costs about fifteen times the traffic of catching a 20% one. And a product with a few hundred trial signups a month can only ever detect large effects, which is a real constraint rather than a reason to run the test anyway with fewer users.

If the numbers do not work, that is information. Test qualitatively, ship the change to one segment, and compare that segment against its own prior weeks. A directional read that everyone knows is directional beats a significance figure that nobody should trust.

What A/B testing cannot tell you

  • Why. A test reports which version won, never the reason. Pair it with usability testing if you want to know what happened.
  • Long-term effects. A variant that raises signups can raise churn two months later, and the test ended long before that showed up.
  • Anything about the people who never arrived. A funnel test optimizes the traffic you have.
  • Whether the idea was any good. Testing two mediocre options finds the better mediocre option. The ceiling is set before the test starts, by whoever chose what to test.

Reading the result honestly

A test returns a difference and a p-value, and both get over-read.

Significance is not size. A statistically significant result means the difference is unlikely to be chance. It says nothing about whether the difference is worth shipping. On a large sample, a lift of half a percent can be significant and still not repay the engineering.

Look at the interval, not the point estimate. "A 12% lift" is a headline. "Somewhere between 2% and 23%, most likely around 12%" is the actual finding, and it is the version that tells you whether the decision is safe.

A failed test is a result. The variant did not beat the control, so you keep the control and you have learned that the thing you believed was the obstacle was not. Record it. Teams that only write up wins end up retesting the same losing idea every eighteen months, because nobody remembers.

One test is not a program. The value compounds across a series, where each result narrows what the next one should try. A single test run once a year is a coin toss with a report attached.

Alternatives when a split test does not fit

MethodGood forNeedsWeakness
A/B testIsolating one change on live trafficEnough conversions per armBlind to why, and to slow effects
Before and afterLow-traffic products, big changesA stable period either sideSeasonality and campaigns contaminate it
Segment holdoutB2B, where you can withhold from one groupA comparable group to withhold fromSlower, and groups are rarely identical
Usability testingFinding out why something failsFive to eight participantsSays nothing about how often it fails
Painted doorTesting demand before buildingA place to put the doorMeasures intent, not use
Preference testDirection and first impressions20–30 participantsMeasures opinion, not behaviour

Most B2B SaaS teams should run fewer split tests and more of the other four. The methods are not ranked by rigor; they are ranked by what question you have, and "why are people leaving here" is answered by watching eight people, not by splitting traffic no product of that size has.

In practice

In a B2B SaaS product, a team wants to defer email verification until after the first project is created, on the theory that verification interrupts people before they have any reason to care.

They write it as a hypothesis: moving verification after first-project creation should raise completed onboarding for self-serve signups, and they will act on it if completed onboarding rises by at least a fifth. Current onboarding completion is around 20%, so the table above says roughly 1,700 users per variant. At their signup volume that is a six-week test, which they agree to before starting rather than discovering in week three.

They also name a guardrail metric: spam accounts. A change that raises onboarding completion while filling the database with junk is not a win, and without naming it in advance nobody would have looked.

The discipline is in what does not happen. Nobody argues from taste, nobody calls the result in week two when the variant is briefly ahead, and the decision rests on the metric the change was designed to move.

Where teams get it wrong

  • Peeking. Checking daily and stopping when the variant is ahead turns a 5% false-positive rate into a much larger one. Early leads reverse.
  • Testing trivia. Button colors rarely move a metric enough to detect. Test changes big enough to matter.
  • Running until significant. Extending a test because it has not reached significance yet is peeking with extra steps.
  • No guardrail metric. The primary metric moves, something else quietly gets worse, and nobody finds out for a quarter.
  • Treating one win as a law. A result holds for that audience, that funnel, that season. It is evidence, not a principle.
  • Testing when the sample is hopeless. An underpowered test does not fail loudly. It returns a number, and the number gets quoted in a deck.

Frequently Asked Questions