Skip to main content
Test Design

Designing A/B Tests That Actually Move Your Conversion Rate

Most A/B tests are doomed from the start. Here's how to set up tests that give you reliable answers—without the jargon.

Why Most A/B Tests Fail Before They Start

You know that feeling? You launch a test, check the results after a day, see a promising lift, get excited, and then watch it vanish by the end of the week. It's not your product or your users—it's the test design. Most A/B tests fail not because the variant was bad, but because the test was poorly planned. Let's walk through the key decisions you need to make before you ever hit "start," so your tests produce results you can actually trust.

Start with a Sharp Hypothesis, Not a Guess

A test without a hypothesis is just a shot in the dark. A good hypothesis includes three elements: the change you're making, the reason you think it will work, and the metric you expect to move. For example, instead of saying "Let's try a red button," say "We believe that changing the call-to-action button from blue to red will increase click-through rate by at least 10% because red creates a sense of urgency and stands out more against our white background."

This specificity forces you to think about the mechanism behind the change. If you can't articulate why a change might work, you're not ready to test it. Write down your hypothesis before you design the test, and refer to it when interpreting results.

Choose the Right Primary Metric

Your primary metric is the single number you'll use to decide whether the test is a winner. It should be a metric that directly reflects the business goal you're trying to achieve. For an e-commerce site, that might be conversion rate (purchases divided by sessions). For a content site, it might be click-through rate on a newsletter signup. Resist the urge to track ten metrics and declare victory if any one of them improves. That's a recipe for false positives.

Also, consider whether the metric is a leading indicator or a lagging indicator. A leading indicator, like click-through rate, can change quickly but may not reflect long-term value. A lagging indicator, like revenue per user, is more meaningful but takes longer to move. Ideally, your primary metric is a lagging indicator that aligns with your bottom line.

Determine Sample Size Before You Launch

Sample size is the number of users you need in each group to detect a meaningful difference. If your sample is too small, you won't be able to detect anything but huge changes. If it's too large, you waste time and traffic. Use a sample size calculator—many are free online—to estimate the required sample size based on three inputs: your baseline conversion rate, the minimum effect you want to detect (often called the minimum detectable effect, or MDE), and your desired statistical significance level (typically 5%) and power (typically 80%).

For example, if your baseline conversion rate is 5% and you want to detect a 10% relative improvement (from 5% to 5.5%), you'd need roughly 68,000 users per group. That's a lot. If you only have 10,000 users per day, you'll need to run the test for about 14 days. Knowing this upfront prevents you from launching a test that will never reach significance.

Run the Test Long Enough—and Avoid Peeking

One of the most common mistakes is peeking at results as they come in and stopping the test as soon as the p-value dips below 0.05. This practice inflates your false positive rate dramatically. The more often you peek, the more likely you are to see a significant result by chance. A 2014 study by Azevedo et al. found that peeking at data multiple times can increase the false positive rate to as high as 60%.

Instead, decide on a fixed duration before you start based on your sample size calculation. Let the test run to completion, then look at the results. If you must peek, use a sequential testing method or a tool that adjusts for multiple looks, like Optimizely's sequential testing feature.

Segment Your Results Only After You See the Overall Effect

It's tempting to slice your results by device, traffic source, or user type to find a winner. But if you segment too early or too aggressively, you're likely to find a pattern that isn't real. The rule of thumb is to first check whether the overall test reached significance. If it did, then you can explore segments as a secondary analysis, but treat those findings as hypotheses for future tests, not as definitive conclusions.

For example, suppose your overall test shows no significant difference, but you notice that mobile users seem to have a higher conversion rate with the variant. That's an interesting observation, but it could just be noise. To confirm, you'd need to run a dedicated test on mobile users alone.

Interpret Results with Confidence Intervals, Not Just p-Values

A p-value tells you whether the result is statistically significant, but it doesn't tell you the magnitude of the effect. Confidence intervals do. A 95% confidence interval of [1%, 5%] means you can be reasonably sure the true lift is between 1% and 5%. If the interval includes zero, the result isn't significant. If it's narrow and entirely above zero, you have a reliable positive effect.

When reporting results to stakeholders, always include the confidence interval. It gives a more complete picture than a single point estimate. For instance, saying "We saw a 3% lift, with a 95% CI of [1%, 5%]" is far more informative than "We saw a 3% lift."

Practical Example: A Test That Went Wrong

We once worked with a client who wanted to test a new checkout button color. They had a baseline conversion rate of 10% and wanted to detect a 5% relative improvement. They didn't calculate sample size, and they stopped the test after two days because the variant showed a 2% lift with a p-value of 0.04. They celebrated and rolled out the new button. Three weeks later, conversion dropped back to baseline. Why? They had only collected about 5,000 users per group, which gave them a power of about 15%—meaning they had only a 15% chance of detecting a real 5% change. The "significant" result was almost certainly a false positive.

Had they run the sample size calculation, they would have needed 63,000 users per group (based on a 10% baseline and a 5% relative MDE). They would have run the test for a full week, not two days, and they'd have had a much better chance of making a sound decision.

Numbered Steps: Launch a Reliable A/B Test

  1. Define your hypothesis: what change, why, and what metric.
  2. Pick a primary metric that aligns with a business goal.
  3. Use a sample size calculator to determine required users per group, given your baseline conversion rate and MDE.
  4. Calculate the test duration based on your daily traffic.
  5. Set a fixed test length and do not peek.
  6. Run the test to completion, then check significance with a confidence interval.
  7. If the result is significant, consider segmenting as a hypothesis for future tests.
  8. Document the result and decide whether to roll out, iterate, or abandon.

Common Pitfalls and How to Avoid Them

  • Testing too many changes at once: isolate one variable at a time.
  • Ignoring the novelty effect: users may behave differently just because something changed. Run tests long enough for the novelty to wear off.
  • Not accounting for seasonality: if you run a test during a holiday, results may not generalize.
  • Forgetting to check for interaction effects if you run multiple tests simultaneously.
  • Using a one-tailed test when you should use a two-tailed test (unless you have a strong prior that the change will only be positive or negative).

Takeaway: Design First, Test Later

Good A/B testing isn't about luck; it's about following a disciplined process. By writing a clear hypothesis, choosing the right metric, calculating sample size, avoiding peeking, and interpreting with confidence intervals, you'll dramatically reduce false positives and make decisions that actually improve your conversion rate. The next time you're tempted to launch a test on a whim, pause and go through these steps. Your future self—and your conversion rate—will thank you.

Share this article:

Comments (0)

No comments yet. Be the first to comment!