Skip to content

A/B Testing for Higher CTR: Sample Size, Significance and Fair Tests

Plan an A/B test's sample size, check whether a result is real with the pooled two-proportion z-test (arithmetic shown), and avoid the mistakes that create false winners.

Edited by Andrew Storz · Last reviewed December 3, 2026 · 10 min read · How we check our guides

You changed a button from "Submit" to "Get my quote," and after three days the new version has 9 clicks to the old version's 6. That's 50% more. Do you switch? Most people would, and most of the time they'd be acting on noise.

An A/B test lets your audience decide between two versions, but only if the test is big enough, runs long enough, and is read the right way. Small numbers, early peeks and changing several things at once can make random variation look like a breakthrough.

By the end of this guide you'll be able to work out how many views a test needs before you start, check whether a finished result is likely to be real using the same arithmetic the calculators use, and avoid the mistakes that produce false winners.

What an A/B test is

Nielsen Norman Group defines A/B testing as a quantitative method that tests two or more design variations with a live audience to see which performs best on a predetermined set of metrics. Traffic is split so that each visitor sees only one version. Ideally, the variant differs from the original in just one element, such as a button, an image or a description.

The split must be random. If people are assigned by chance, the two groups should be alike on average, so a difference in results is likely to come from your change rather than from who happened to see each version. That's also why you run both versions at the same time. Comparing this month's email with last month's isn't an A/B test, because the season, the news and your list all changed in between.

Things you can test for clicks include email subject lines and button wording, landing page headlines and calls to action, and ad headlines and descriptions.

Setting up a fair test

Google Ads' guidance on experiments applies well beyond ads: write a hypothesis that explains why you're running the test, test one variable at a time, and pick one or two success metrics before the test begins. Google's reason for one variable is simple: if you change the headline and the bidding strategy together, you won't know which one made the difference. It also advises against changing the base campaign during a test unless sync is on.

NN/g adds two useful ideas. First, track guardrail metrics alongside your main one. If you test a button's click rate, also track purchases and average order value, so a version that gets more clicks but fewer sales doesn't win. Second, even with enough traffic, NN/g recommends running a test for at least one to two weeks to account for normal fluctuations in user behavior.

A fair test, step by step:

  1. Write a hypothesis: "Adding the delivery date to the button will increase clicks, because customers want to know when the order arrives."
  2. Change one thing and keep everything else identical.
  3. Choose the main metric (such as click-through rate) and guardrail metrics (such as orders) in advance.
  4. Calculate the sample size you need, and how long that will take with your traffic.
  5. Run both versions at the same time, with random assignment.
  6. Don't stop early. Analyze once, when the planned sample is reached.
  7. Write down what you tested, the numbers and what you'll do next.

Sample size in plain English

Sample size is how many people need to see each version before the result means something. Two settings drive it:

  • Significance level (α): how often you're willing to see a "difference" when there truly is none. Evan Miller's calculator describes it as the percent of the time a difference will be detected assuming one does not exist. The common choice is 5%, which corresponds to 95% confidence.
  • Power (1 − β): the percent of the time the minimum effect you care about will be detected, assuming it exists. The common choice is 80%.

The smaller the change you want to detect, the more people you need. With 95% confidence and 80% power, the standard formula says that detecting a rise from 2% to 2.5% needs roughly 13,800 views per version, while detecting 2% to 3% needs roughly 3,800. Different calculators use slightly different formulas, so expect small differences between them.

The lesson: small audiences can only reliably detect big differences. If a page gets a few hundred visitors a month, a test hoping to find a small improvement may never finish, and testing a bolder change is usually more realistic. NN/g lists low-traffic pages as a poor fit for A/B testing for this reason.

Statistical significance in plain English

Even two identical versions rarely produce identical results, just as two runs of 100 coin flips rarely give the same number of heads. A significance test asks whether the gap you saw is bigger than chance would usually produce.

"Significant at the 95% level" means: if there were truly no difference, a gap at least this large would show up less than 5% of the time. It doesn't mean there's a 95% chance version B is better, and it doesn't tell you whether the difference is large enough to matter for your business.

For click and conversion rates, the usual check is the two-proportion z-test described in the NIST/SEMATECH e-Handbook of Statistical Methods. It pools both groups to estimate a shared rate, then measures how many standard errors apart the two observed rates are. For small samples, the same handbook points to Fisher's exact test instead.

Worked examples

All numbers here are hypothetical, chosen to show the method.

Example 1: how many views do you need? Your current button has a 2% click-through rate, and you want to be able to detect 2.5%. The standard formula for each version is n = (zα × √(2p̄(1 − p̄)) + zβ × √(p₁(1 − p₁) + p₂(1 − p₂)))² ÷ (p₂ − p₁)², where p₁ is the current rate, p₂ the rate to detect and p̄ their average. It's the formula behind R's power.prop.test function. For 95% confidence, zα = 1.959964; for 80% power, zβ = 0.841621.

  1. p₁ = 0.02, p₂ = 0.025, p̄ = 0.0225.
  2. First term: 2 × 0.0225 × 0.9775 = 0.0439875; √ = 0.209732; × 1.959964 = 0.411067.
  3. Second term: 0.02 × 0.98 + 0.025 × 0.975 = 0.0196 + 0.024375 = 0.043975; √ = 0.209702; × 0.841621 = 0.176490.
  4. Add them: 0.411067 + 0.176490 = 0.587557. Square it: 0.345223.
  5. Divide by the difference squared, 0.005² = 0.000025: 0.345223 ÷ 0.000025 = 13,808.9, rounded up to 13,809 per version.

Repeating the steps for 2% to 3% (p̄ = 0.025) gives 0.432748 + 0.185730 = 0.618478, squared 0.382515, divided by 0.0001 = 3,825.1, so 3,826 per version. That's where "roughly 13,800" and "roughly 3,800" come from.

Example 2: is a finished result real? Version A was shown 5,000 times and got 100 clicks; version B was shown 5,000 times and got 135 clicks.

  1. Rates: A = 100 ÷ 5,000 = 2.0%; B = 135 ÷ 5,000 = 2.7%.
  2. Pooled rate: (100 + 135) ÷ (5,000 + 5,000) = 235 ÷ 10,000 = 0.0235.
  3. Standard error: √(0.0235 × 0.9765 × (1/5,000 + 1/5,000)) = √(0.02294775 × 0.0004) = √0.0000091791 = 0.003030.
  4. z = (0.027 − 0.020) ÷ 0.003030 = 2.31.
  5. The two-sided p-value for z = 2.31 is about 0.021, below 0.05, so the difference is significant at the 95% level.

Now the same rates on a fifth of the traffic: 20 clicks from 1,000 views versus 27 from 1,000. The pooled rate is still 0.0235, but the standard error becomes √(0.02294775 × 0.002) = 0.006775, so z = 0.007 ÷ 0.006775 = 1.03 and p ≈ 0.30. Identical percentages, no reliable conclusion. And the opening example, 6 clicks versus 9, is far smaller still.

You can check finished results the same way with the A/B test significance calculator.

Running tests in Google Ads and email tools

In Google Ads, custom experiments live under Experiments in the Campaigns menu: select the plus button, then Custom. The experiment shares the original campaign's traffic and budget. For Search campaigns you can choose a cookie-based or search-based split, and in the auto-apply settings you can require statistical significance before the winning arm is applied. Google notes you can schedule up to five experiments but run only one at a time, and that with a cookie-based split using audience lists you should have at least 10,000 users in the list.

In Mailchimp, an email A/B test compares one variable, either subject line, From name, content or send time, with up to three variations, and contacts are assigned at random. The winner can be picked automatically by open rate, click rate or total revenue. Because Apple Mail Privacy Protection inflates opens, Mailchimp's own FAQ says open-rate-based results may not be accurate and suggests click rates instead. More on that in email click rates explained.

Try it: plan your next test on paper

You need your analytics or ad account and about 20 minutes.

  1. Pick one page, ad or email and the click you want more of.
  2. Pull the last four weeks of data: views (or impressions, or delivered emails) and clicks. Your baseline rate is clicks ÷ views.
  3. Decide the smallest improvement worth acting on. Be honest: a change from 2.0% to 2.1% may not be worth the effort.
  4. Calculate the sample size per version for that change at 95% confidence and 80% power.
  5. Divide the total (both versions) by your weekly views to get the number of weeks. If it's more than a few months, test a bolder change instead.
  6. Write the hypothesis, the main metric, the guardrail metric, the planned sample and the end date before you launch.

You can also do this on screen with the A/B test sample size calculator.

Common mistakes

  • Stopping as soon as the result looks significant. In Evan Miller's worked scenario (a 50% conversion rate, a significance check after every observation, up to 150 observations), stopping at the first significant result produced a false-positive rate of 26.1% instead of 5%; he calls that a worst case. He also shows that peeking ten times turns an apparent 1% significance level into an actual 5%. Fix the sample size in advance and analyze once.
  • Changing several things at once. If the headline, image and button all change, you can't tell which mattered. NN/g suggests multivariate testing for that, which needs even more data.
  • Slicing results into many segments afterward. The more comparisons you make, the more likely one looks like a winner by chance.
  • Editing a version mid-test. Google Ads warns that changes during an experiment make results harder to interpret.
  • Judging by clicks alone. Track a guardrail metric such as purchases or leads; see landing page conversion basics for what happens after the click.
  • Skipping a sanity check on new tools. NN/g suggests an A/A test, two identical versions, which should come out inconclusive.

Common questions

A test reached significance with fewer views than the calculator said. Is that fine?

The result can still be real, but be cautious. The calculator's number is what you need to reliably detect the smallest change you care about. In Example 2, detecting 2% versus 2.7% would call for about 7,351 views per version, so a 5,000-per-version test has only about 64% power and would miss a true difference of that size more than a third of the time. If you stopped early because it looked good, it's the peeking problem.

What if a test never reaches significance?

Then the honest conclusion is "no detectable difference at this sample size," not "the versions are the same." Keep the simpler version, and test a bigger change next time.

Can you test three or four versions at once?

Yes. NN/g's definition covers two or more variations, and Mailchimp's email tests allow up to three, but each extra version splits your traffic further and adds comparisons, so each needs a larger total sample.

Should you use 95% or 90% confidence?

95% is the common default. Lowering it shrinks the sample you need but raises how often you'll crown a winner that isn't real. Choose before the test, not after seeing the result.

Key takeaways

  • Randomly split your audience, run versions at the same time, change one thing, and set the main and guardrail metrics in advance.
  • Calculate sample size first: at 95% confidence and 80% power, 2% to 2.5% needs about 13,800 views per version and 2% to 3% about 3,800.
  • A pooled two-proportion z-test shows whether a gap is bigger than chance usually produces; the same rates can be significant on 5,000 views and meaningless on 1,000.
  • Don't stop early; peeking inflates false positives.
  • Significant isn't the same as important; judge winners by what happens after the click.

Sources

Spotted something out of date? Let us know.

More in Click-Through Rate