Advertising A/B test sample size depends on the outcome, baseline rate, minimum meaningful difference, significance level, statistical power and assignment unit. Set these before launch. A fixed number of impressions, clicks or days is not a universal requirement, and significance alone does not prove commercial value.
Define A Commercially Meaningful Hypothesis
An advertising experiment compares outcomes under different approved conditions. A business may want to learn whether a creative message increases qualified inquiries, whether a landing page improves completed purchases or whether a targeting policy produces additional contribution. These questions require different outcome definitions and sometimes different comparison designs.
Define the primary outcome before choosing the sample size. A click-through rate test may accumulate many observations quickly, but a higher click-through rate does not necessarily produce more qualified customers. If the decision concerns completed purchases, evaluate that outcome or describe the limitation of using an earlier diagnostic measure. Record the actual eligible population, baseline condition and proposed alternative.
The Penn State statistical power guidance explains the relationships among sample size, effect size, variability, significance and power. Advertising applications require those same statistical principles, together with a reliable commercial definition and an appropriate experiment.
Our creative testing framework explains the wider hypothesis and comparison process. Sample-size planning helps establish how much compatible evidence is required to make a meaningful decision. It does not guarantee that every experiment produces a winner or justify continuing to spend until a favorable result appears. Before launch, agree on what evidence would lead the business to adopt, reject or further investigate the alternative.
Identify The Independent Assignment Unit
The appropriate sample depends on what the experiment assigns to each condition. A website experiment might assign distinct eligible users to variants, while a geographic advertising experiment assigns markets. A campaign experiment can use other supported assignment mechanisms. An impression or click is not automatically an independent observation.
| Design | Possible Assignment Unit | Key Concern |
|---|---|---|
| Website variant | Distinct eligible user | Repeated visits and persistent assignment |
| Creative experiment | Supported user or auction assignment | Actual exposure overlap and platform design |
| Account-based test | Business organization | Shared purchasing groups and related accounts |
| Geographic lift test | Market or geographic cluster | Clustering, baseline differences and spillover |
A user who views five advertisements does not necessarily represent five independent customers. The same person may see both variants if assignment is not stable. A geographic test can include thousands of customers while having relatively few independently assigned markets. An independent-user sample-size formula cannot be applied indiscriminately.
Use the actual assignment unit and an appropriate analysis. Our incrementality guide and Google Ads experiments guide explain complementary comparison methods. Verify the specific platform design and statistical procedure before replacing its analysis with an unrelated manual calculation. When the assignment unit differs from the observed event, document the relationship and the treatment of repeated events.
Choose Baseline Rate And Minimum Detectable Effect
A baseline conversion rate is a planning assumption based on a compatible mature population. Estimate it from the existing policy, a pilot or another relevant source. The baseline should use the same outcome and observation unit as the planned experiment. A rate calculated per click may be unsuitable for an experiment measuring distinct eligible users.
The minimum detectable effect, or MDE, is a difference the experiment is planned to detect with the specified statistical power. Select a commercially meaningful difference rather than a convenient large percentage that makes the required sample appear smaller.
| Baseline | Alternative | Absolute Difference | Relative Difference |
|---|---|---|---|
| 5% | 6% | 1 percentage point | 20% |
| 5% | 7% | 2 percentage points | 40% |
| 2% | 2.4% | 0.4 percentage points | 20% |
A 20% relative improvement is not a 20 percentage-point improvement. At a 5% baseline, it leads to 6%; at a 2% baseline, it leads to 2.4%. The absolute differences and required sample sizes differ materially.
Review the minimum commercial benefit. A tiny conversion-rate increase may be statistically detectable with a huge sample but insufficient to justify implementation expenses. A commercially important effect may also be impossible to detect reliably with available traffic. See our conversion rate guide for the ratio definition and document the business threshold separately from the statistical hypothesis.
Interpret Significance And Power Correctly
A significance level describes the specified long-run false-positive error rate of a correctly applied procedure under its null hypothesis and assumptions. Statistical power describes the probability of detecting a specified effect under the corresponding alternative and design assumptions.
For example, a two-sided test with 5% significance and 80% power is designed to reject the null hypothesis with approximately 80% probability if the specified alternative is true and the assumptions hold. It does not mean there is an 80% probability that a particular observed winner is genuinely better.
The published power analysis primer explains why a smaller target effect or greater desired power generally requires more observations. A two-sided design can detect differences in either direction, while a one-sided design must be justified before looking at outcomes.
Do not switch the significance threshold or direction after seeing the data merely to obtain a favorable result. If several outcomes or variants are tested, predefine the primary outcome or use a suitable multiple-comparison procedure. A test of six creative variants may need different planning from a comparison of two.
A confidence interval provides a range of effects compatible with the data under the chosen method. Interpret it alongside the commercial threshold rather than reducing the decision to a significance label. An inconclusive test is not proof that both alternatives are identical.
Original Two-Proportion Sample Size Formula
For two equally sized groups of independent binary outcomes, a common normal approximation calculates the sample size per group using baseline rate p1, alternative rate p2, their average p-bar, significance and power. Let delta equal the absolute difference between the two rates.
Approximate n per group = [z-alpha × √(2 × p-bar × (1 minus p-bar)) + z-power × √(p1 × (1 minus p1) + p2 × (1 minus p2))]² ÷ delta².
For two-sided 5% significance, z-alpha is approximately 1.96. For 80% power, z-power is approximately 0.842. Round the result up. The following results use those normal quantiles and the stated independent Bernoulli model.
| Baseline | Alternative | Approximate Sample Per Group | Approximate Total |
|---|---|---|---|
| 5% | 6% | 8,158 | 16,316 |
| 5% | 7% | 2,213 | 4,426 |
| 2% | 2.4% | 21,109 | 42,218 |
A smaller absolute effect can require substantially more observations. The formula is a planning approximation, not a universal method for clustered, sequential, repeated-measures or revenue-based experiments. Exact methods, continuity corrections and different variance assumptions may produce other valid planning estimates.
If the outcome is contribution per user, purchase revenue or another continuous or highly skewed measure, use an appropriate variance-based or simulation-based planning method. Do not replace the actual outcome with a binary conversion solely because its formula is easier. Review historical variance, missingness and allocation before applying a calculation to the real business.
Translate The Sample Into Budget And Collection Time
Suppose a fictional experiment uses the first scenario in the preceding table. The required total is approximately 16,316 independent eligible users. Assume these observations can be acquired for an average media expense of $1.50 each, with equal assignment and complete outcome data.
| Planning Item | Illustrative Result |
|---|---|
| Total eligible observations | 16,316 |
| Media expense per eligible observation | $1.50 |
| Illustrative total media expense | $24,474 |
| Daily eligible observations | 500 |
| Approximate collection days | 33 |
The expense is an educational assumption, not a quote or a guaranteed cost. Actual billing may concern impressions or clicks rather than independent eligible users. Estimate the relationship between billed events and assigned observations using appropriate evidence. If one assigned user requires several billed events, the actual cost per independent observation may be higher.
Collection time does not include the additional time required for relevant outcomes to mature. If customers complete the measured outcome days after assignment, allow an appropriate observation window. Review seasonality and representative business conditions.
Our conversion delay guide and budget pacing guide explain those separate operational considerations. Do not approve spending merely because a formula produces a sample-size number. If the necessary budget exceeds the approved amount, reconsider the design, primary question or ability to obtain evidence rather than silently lowering the quality standard.
Protect The Test From Peeking And Measurement Changes
A fixed-horizon test plans to evaluate results after specified sample and maturity conditions are met. Repeatedly testing the same data and stopping when a result becomes favorable can invalidate intended error control. A properly designed sequential procedure is a distinct method that accounts for planned interim evaluations.
Review actual assignment distribution. If equal assignment produces a substantial unexplained imbalance, investigate the implementation and eligibility before interpreting results. A sample ratio mismatch may indicate a technical or selection problem, but it does not establish the exact cause.
Preserve the outcome definition throughout the comparison. A new conversion action, changed qualification rule or inconsistent transmission can make groups incomparable. If a genuine technical defect requires correction, document it and assess whether the experiment should be restarted or analyzed using an appropriate revised design.
Predefine exclusions and handle missing information according to the analysis plan. Do not remove legitimate observations simply because their results are inconvenient. An observed difference in completion rates may partly reflect the fact that one variant’s measurement failed.
Our conversion tracking checklist and Change History guide support these implementation checks. Correct a confirmed misleading offer or unauthorized spending condition promptly rather than preserving it solely for the sake of an experiment.
Original Observed Difference And Confidence Interval
Suppose a fictional experiment records 400 conversions among 8,000 eligible control users and 480 among 8,000 eligible variant users. The observed rates are 5% and 6%, an absolute difference of one percentage point and a 20% relative improvement.
Using a simple unpooled normal approximation for the difference in proportions, the standard error is about 0.00360. The approximate 95% confidence interval for the absolute difference is 0.29 to 1.71 percentage points. The calculation assumes independent observations, compatible measurement and appropriate fixed analysis. Other valid methods may produce slightly different intervals.
| Measure | Control | Variant |
|---|---|---|
| Eligible users | 8,000 | 8,000 |
| Conversions | 400 | 480 |
| Conversion rate | 5% | 6% |
The interval excludes zero under the stated approximation, but its lower bound is below a one-point commercial threshold. If the business requires evidence that the improvement exceeds one point, this result does not establish that requirement. Evidence of a nonzero effect differs from evidence of a sufficiently large effect.
These data are fictional, not an advertiser’s actual test result. For a real comparison, verify assignment, outcome definition, analysis method and uncertainty. Do not treat a confidence interval as a probability distribution over a fixed effect without an appropriate statistical framework. Report both the observed effect and the limitations of the evidence.
Evaluate The Financial Value Of The Result
Suppose the measured outcome is a verified completed customer and the variant can be deployed to 20,000 comparable future eligible users. A one-point estimated improvement implies 200 additional customers if the effect transfers to future traffic. At $60 contribution per additional customer before implementation costs, the estimated contribution is $12,000.
If the actual improvement is only 0.3 percentage points, the estimate becomes 60 additional customers and $3,600 contribution. A $5,000 implementation expense would make the lower scenario economically unattractive. The decision should reflect uncertainty, future applicability and relevant costs.
Do not multiply an observed effect by future audience volume without reviewing whether the audience, product, capacity and market conditions remain comparable. A larger deployment may encounter different demand or operational constraints. Testing an existing audience does not establish the result of scaling media expenditure.
Our ROI guide and CAC guide explain the financial definitions. Use the actual verified contribution per customer rather than the headline sale price. A statistically informative test should support an authorized commercial decision, not merely a favorable numerical label. Preserve the original cost and outcome assumptions for subsequent review.
Advertising Experiment Sample Size Audit Checklist
- Define the primary independently verified business outcome.
- Specify the actual assignment and analysis unit.
- Estimate a compatible mature baseline rate.
- Choose a commercially meaningful effect size.
- Predefine significance, power and test direction.
- Use an appropriate sample-size method for the design.
- Estimate eligible volume, budget and maturity window.
- Verify assignment, measurement and permissions.
- Use the planned stopping and analysis procedure.
- Review uncertainty and multiple comparisons.
- Evaluate the commercial threshold and future applicability.
- Document assumptions, limitations and the authorized decision.
Keep the hypothesis, sample-size assumptions, actual assignment, mature outcome evidence and financial evaluation in the campaign reporting dashboard. A sample-size calculation helps avoid an underpowered or wasteful comparison. It cannot replace sound experimental design, reliable measurement or an appropriate decision about the financial importance of the observed effect.
Frequently Asked Questions
What Is A/B Test Sample Size?
The number of eligible independent observations required under a specified design and assumptions.
What Is Minimum Detectable Effect?
The effect size the study is planned to detect with the chosen power.
What Is Statistical Power?
The probability of detecting a specified effect under the assumed design and alternative.
Does Every Ad Test Need The Same Number Of Clicks?
Required sample depends on the outcome, baseline, effect, assignment and analysis.
Can I Stop When A Test Becomes Significant?
Use the predefined fixed-horizon or appropriate sequential procedure.
Does Significance Mean A Result Is Profitable?
Evaluate effect size, uncertainty and commercial costs separately.
Can I Apply The Formula To A Geographic Test?
Clustered designs require a method accounting for market-level assignment.
What If The Required Sample Is Unaffordable?
Review the feasible design and uncertainty rather than claiming a definitive result from insufficient evidence.