An A/B test should run long enough to collect the planned sample, observe the outcomes that matter, and represent the business conditions the decision needs to cover. There is no universal seven-day or two-week answer. Start with the sample requirement and eligible traffic, then turn that estimate into a stopping rule before launch.
The useful distinction is between collection time and decision time. Collection time is how long it takes to enroll enough eligible users. Decision time can be later because purchases, renewals, refunds, or other outcomes have not yet matured. A dashboard showing enough visitors does not necessarily mean the experiment is ready to decide.
Calculate collection time from eligible traffic
For a two-variant experiment with stable traffic, use this planning formula:
Collection days = required users per variant ÷ (new eligible users per day × allocation to that variant)
The traffic number must match the experiment's assignment unit. If people are assigned once, count newly eligible people rather than sessions or page views. If whole accounts are assigned, an individual-user calculation is inappropriate without accounting for that design. Exclude people who cannot reach the intervention or whose outcomes cannot be measured consistently.
Here is a hypothetical scheduling example. A separate power analysis has established a target of 6,000 users per variant. The experiment receives 600 newly eligible users per day, and traffic is split 50/50.
| Planning input | Value |
|---|---|
| Required sample | 6,000 users in each variant |
| Newly eligible traffic | 600 users per day across both variants |
| Traffic reaching each variant | 600 × 50% = 300 users per day |
| Estimated collection time | 6,000 ÷ 300 = 20 days |
Twenty days is the enrollment estimate. It does not, by itself, establish a safe stopping date. If enrollment varies substantially by weekday, forecast using daily counts instead of one average. If the first days use a cautious ramp, include the lower allocation in the forecast. For unequal allocation or different arm targets, calculate each arm separately; the slowest arm determines when the targets can all be reached.
When I assess a proposed end date, I want the sample target, eligible traffic, and allocation written together. That makes the assumption inspectable. “We get plenty of traffic” is difficult to challenge; “300 newly eligible users per arm per day” can be compared with actual enrollment.
Establish the sample requirement before choosing the date
The 6,000-user target above is an input, not a universal recommendation. Sample requirements depend on the metric, its baseline or variability, the effect you want to detect, the analysis method, allocation, and the acceptable error rates. Statsig's power-analysis documentation shows why these inputs must match the intended experiment population and design.
For a conversion metric, distinguish a relative improvement from a percentage-point change. Moving from 5% to 5.5% is a 10% relative improvement and a 0.5 percentage-point increase. Entering the wrong version into a calculator can produce a very different plan.
Also distinguish the smallest commercially worthwhile effect from the effect the experiment is designed to detect reliably. Limited traffic might make a worthwhile improvement difficult to detect. Choosing a larger minimum detectable effect shortens the required sample, but changes the question: the experiment may now miss improvements the business still values.
Power is the probability of rejecting the null under a specified alternative effect and set of assumptions. A significance threshold describes the procedure's false-positive control under its null; it is not the probability that an observed winner is false. These definitions matter when a stakeholder asks whether the proposed test can answer the commercial question.
Use the worked sample-size guide for the calculation, the MDE guide to choose the effect, and the sample-size calculator for a planning estimate. Check the calculator's assumptions against the platform and metric you will actually use.
Add business cycles and outcome delays
A sample can accumulate quickly while representing only a narrow slice of behavior. A weekday-heavy subscription business may behave differently over a weekend. A novelty-driven interface change may produce an early response that does not persist. Experimentation researchers discuss these temporal effects alongside sample size in their overview of A/B testing.
Choose the relevant observation period before seeing the result. A full weekly cycle may be sensible for a business with a weekly pattern; it is not a guarantee that every important pattern has been covered. Annual renewals, seasonal shopping, and repeat use require different reasoning. State the population and period to which the decision is intended to apply.
Outcome delay creates a separate issue. Suppose the primary metric is purchase within seven days of assignment. A person enrolled on the final collection day still needs that seven-day window. Decide whether the analysis waits for complete windows or uses a method explicitly designed for incomplete follow-up. Do not compare mature control outcomes with immature treatment outcomes.
Log major promotions, outages, and acquisition changes. A new campaign does not automatically invalidate a concurrently randomized experiment: both arms may receive the change. It can still alter the population, precision, or effect over time. Investigate whether allocation and measurement remain sound and whether the result answers the intended question.
Decide what monitoring and early stopping mean
Checking instrumentation, errors, enrollment, and customer safety during a test is necessary. The statistical problem is repeatedly looking for a favorable result and stopping an ordinary fixed-horizon test when it happens to cross the threshold. The stopping behavior then differs from the procedure used to calculate the result.
For a fixed-horizon design, predefine the sample, observation window, analysis, and operational stop conditions. Inspect data quality along the way, but do not convert an attractive interim result into the planned final analysis. An experiment stopped because of a production failure should be recorded as such, even if its conversion chart looked encouraging.
Sequential methods can support valid interim decisions when their rules are followed. They are not equivalent to refreshing an ordinary significance calculator. Statsig describes adjusted sequential p-values and confidence intervals; Optimizely documents fixed-horizon, sequential, and Bayesian analysis choices. The applicable method depends on the product and configuration, so verify the actual experiment settings.
An early primary-metric decision also does not establish adequate information about every guardrail. Revenue may respond immediately while complaints or cancellations arrive later. Include these outcomes in the stopping plan. Bayesian analysis likewise needs explicit assumptions and decision criteria; its label alone does not settle when to stop.
Interpret a shrinking early lift carefully
An early 20% lift that later becomes 4% is not proof that the experiment failed. Early estimates can be highly variable. Selecting an especially impressive interim estimate can make later estimates look disappointing even when nothing about the intervention changed.
Other explanations remain possible: novelty, delayed outcomes, a changing customer mix, implementation problems, or an actual effect that varies over time. The chart alone cannot identify which explanation is correct. Inspect uncertainty, assignment quality, exposure logging, and preplanned time or cohort analyses before telling a causal story.
Do not keep extending a test simply because significance is close, or stop because the point estimate has “settled.” Both choices can become outcome-dependent rules. If the planned analysis is inconclusive, report what the interval still permits and decide whether another experiment is worth its cost.
Make a low-traffic test worth running
If the forecast is impractical, revisit the decision before launch. You can test a more substantial intervention, narrow the question, improve measurement, or use qualitative research to remove obvious usability problems before an expensive experiment. Combining traffic across pages is defensible only when the intervention, eligible population, assignment, and analysis support that combined question.
Variance reduction may improve sensitivity when suitable pre-experiment information is available. It is not a guaranteed percentage reduction in runtime. Statsig's CUPED methodology explains how pre-experiment data and covariance enter the adjustment. Ask whether those inputs exist for your population instead of assuming every test receives the same benefit.
Before launch, record the metric window, sample target, traffic estimate, allocation, analysis method, guardrails, and stop conditions in the experiment brief. Apply the free behavioral economics course when you need to turn a proposed intervention into a defensible hypothesis. A calendar estimate becomes useful when someone else can see what would make it wrong.
FAQ
Is two weeks enough for an A/B test?
Sometimes. Two weeks may cover relevant weekly patterns, but it cannot compensate for inadequate information or outcomes that take longer to appear. Calculate the sample requirement and observation window first. A universal minimum is a poor substitute for a plan tied to the metric and population.
Can I stop as soon as the result is significant?
Only if the chosen procedure and predeclared decision rules support that stop, and other requirements such as outcome maturity and guardrails are satisfied. A significant interim result from an ordinary fixed-horizon analysis is not automatically a valid final decision.
What if I reach the sample target but the result is inconclusive?
Report the uncertainty and compare the plausible effects with the business decision. Do not treat “not significant” as proof of no effect. Decide whether another planned test, a different intervention, or a conservative rollout is justified; do not extend the current test until a preferred answer appears.