What is A/B testing? How to experiment without statistical mistakes
A/B testing shows two versions to users at the same time to see which performs better. Learn experiment design, sample size, duration and the most common mistakes in plain language.
Is a green button better than a blue one? Is a short headline better than a long one? Instead of arguing in a meeting, you can run an experiment. That is A/B testing: half the users see version A, half see version B, and the results are compared.
The parts of a good experiment
- Hypothesis. "If we show shipping cost on the product page, cart abandonment will drop because the surprise is removed."
- One primary metric. For example, checkout completion rate.
- Random split. Each user is randomly assigned and keeps seeing the same version.
- Sample size and duration. Decide before you start.
- Decision. If B wins, roll it out; otherwise keep A.
How long to wait?
Two practical rules:
- At least one or two full weekly cycles, because weekend behaviour differs from weekdays.
- Enough sample size; use a sample-size calculator. A smaller effect needs a bigger sample.
Common mistakes
- Peeking and stopping early. Checking daily and declaring a "winner" on day one raises the error rate.
- Changing several things at once. You will not know which one worked.
- Too little traffic. With 200 visits a month A/B testing is pointless; use user interviews instead.
- Testing trivia. Button colour matters less than the message and the price.
- Ignoring guardrail metrics. Sign-ups rose but complaints rose too.
What is worth testing?
- The headline and value proposition (value proposition)
- Price and plans
- Number of form steps (multi-step forms)
- Email order and content
Summary
Every experiment, even a failed one, teaches something. Record results in a log so they are not forgotten or repeated. Experimentation is part of a data-driven decision culture.
Related service: MVP development for startups