Sub topic 7
How many users and how long: sample size and time box
This chapter assumes you know what an MVP is and can read percentages and ratios. It also assumes you have a primary metric and thresholds in mind, such as the 30% and 10% activation targets from the earlier chapters. Here you will decide two more numbers before launch: how many users you need before you look at the result, and how long you will let the experiment run.
Why a threshold is not enough
A target like "30% activation" says what you want to see. It does not say how much evidence you need before you believe it. If 3 of 10 sign-ups activate, you have 30%, but you also have almost no information.
Two numbers close the gap:
- Minimum sample is the number of users who must have completed the measurement window before you make any decision.
- Time box is the fixed calendar period after which you decide, whatever the numbers look like.
They pull in opposite directions. A bigger sample gives a more trustworthy rate but takes longer. A short time box protects you from drifting, but may not reach the sample. You choose both together and check that they fit.
Why small samples mislead
A conversion rate measured on a few users has a wide range of plausible true values. A confidence interval is that range. The Wilson score interval is a good choice for rates because it behaves sensibly with small samples and with rates near 0% or 100%.
import math
def wilson_interval(successes, n, z=1.96):
"""95% Wilson score interval for a proportion."""
if n == 0:
return (0.0, 1.0)
p = successes / n
denom = 1 + z**2 / n
centre = p + z**2 / (2 * n)
margin = z * math.sqrt((p * (1 - p) + z**2 / (4 * n)) / n)
return ((centre - margin) / denom, (centre + margin) / denom)
for n in (40, 100, 400):
successes = round(0.30 * n)
low, high = wilson_interval(successes, n)
print(f"n={n:>3 plausible range {low:.0%} to {high:.0%}")The output is:
n= 40: observed 30%, plausible range 18%: observed 30%, plausible range 22% to 40%
n=400: observed 30%, plausible range 26% to 35%With 40 users, a measured 30% is consistent with a true rate of 18% or 45%. Those two values would lead to opposite decisions. At 100 users the range narrows to 22% to 40%, which is still wide. Quadrupling the sample to 400 roughly halves the width of the range.
This is why the example criteria document sets minimum_sample: 100. It is a deliberate compromise for an early product, not a guarantee of precision.
Choosing a minimum sample
There is no single correct number. Pick one with this reasoning:
- Decide how wide a range you can tolerate. Ask what margin would still let you choose correctly.
- Look at your thresholds. If persevere is 30% and stop is 10%, the gap is 20 points. A margin of about 10 points is enough to tell those outcomes apart. The middle zone covers the cases in between.
- Compute the sample that gives that margin, then check that you can reach it in the time box.
A standard approximation for the sample size needed to estimate a rate within a margin of error m is n = z² · p · (1 − p) / m².
import math
def sample_for_margin(expected_rate, margin, z=1.96):
"""Approximate users needed to estimate a rate within +/- margin."""
return math.ceil(z**2 * expected_rate * (1 - expected_rate) / margin**2)
print(sample_for_margin(0.30, 0.10)) # 81
print(sample_for_margin(0.30, 0.05)) # 323Plus or minus 10 points needs about 81 users. Plus or minus 5 points needs about 323. Halving the margin quadruples the sample, so precision gets expensive fast.
Match the sample to the size of the gap
Wide gaps between your thresholds need fewer users. If you only need to know whether activation is closer to 30% or to 5%, about 100 users is often enough. If you need to tell 30% from 25%, you need several hundred. Early MVPs rarely need to separate close outcomes. They need to find out whether the idea is clearly alive or clearly dead.
| Situation | Reasonable minimum sample | Why |
|---|---|---|
| Consumer app, wide gap between thresholds | 100 to 300 users | Cheap to reach, and the gap makes small differences irrelevant |
| Self-serve B2B tool | 50 to 150 accounts | Sign-ups are slower, so accept a wider range |
| High-touch B2B or enterprise pilot | 5 to 15 accounts, judged by counts | Percentages are not meaningful. Use pass/fail counts per account |
| Payment or purchase conversion | Larger, often 300 or more | Rates are low, so you need more users to see enough events |
Low rates need more users. If you expect 3% of visitors to buy, 100 visitors give you about 3 purchases, and a count that small tells you almost nothing. Plan the sample around the number of expected events, not just users.
Choosing a time box
A time box is a fixed period that ends with a decision. Without one, a weak result always seems to need "a bit more time".
Set the time box from three constraints:
- Acquisition speed. How many users can you realistically bring in per day or week?
- Measurement window. How long after sign-up must a user be observed? A 7-day activation metric needs 7 days per user.
- Learning cost. How much runway and attention can you afford to spend on this question?
The measurement window cuts the usable period
This is the edge case teams forget. If your metric is "sends a reminder within 7 days of signing up", a user who signs up on the last day of the experiment has not finished the window. Only users who signed up at least 7 days before the end count in the denominator.
def required_signup_rate(min_sample, time_box_days, window_days):
"""Daily sign-ups needed so min_sample users finish their window in time."""
usable_days = time_box_days - window_days
if usable_days <= 0:
raise ValueError("measurement window must be shorter than the time box")
return min_sample / usable_days
per_day = required_signup_rate(min_sample=100, time_box_days=42, window_days=7)
print(f"need about {per_day:.1f} sign-ups per day, {per_day * 7:.0f} per week")The output is need about 2.9 sign-ups per day, 20 per week. In the example criteria, a 42-day time box with a 7-day window leaves 35 days of useful sign-ups. If you can only attract 10 sign-ups a week, you will reach about 50 users, not 100. Find this out before launch, not on day 40.
When you cannot reach the sample
Sometimes the honest answer is that you cannot reach 100 users in six weeks. You have four legitimate options, all chosen before launch:
- Spend more on acquisition. Outreach, a waitlist, or a partner channel. This is the best fix when the metric is right.
- Shorten the measurement window. Move from 7-day to 3-day activation if the shorter window still reflects the behavior you care about.
- Use a leading indicator. Measure a step earlier in the funnel that happens sooner and more often.
- Switch to counts and qualitative thresholds. For small pilots, write criteria such as "at least 5 of 8 pilot accounts send reminders weekly for 4 weeks".
Lowering the threshold to match the sample you happen to get is not an option. That is moving the goalposts, and a later chapter covers it.
Peeking and stopping early
Peeking means checking the result repeatedly and stopping the moment it looks good. Every look is another chance for random noise to cross your threshold. A rate that is truly 20% can show 30% at some point along the way if you watch long enough.
Rules that prevent this:
- Do not make a persevere or stop decision before the minimum sample and the full window.
- You may watch data for instrumentation problems, such as events not firing. That is quality control, not a decision.
- Write down any early-stop condition ahead of time, for example "stop immediately if a critical bug blocks sign-up".
The decision rule from the earlier chapter enforces this in its first line. Under the minimum sample, the answer is always "keep collecting".
def decide(activated, users, min_users=100, target=0.30, floor=0.10):
"""Apply pre-committed thresholds to an activation rate."""
if users < min_users:
return "keep collecting"
rate = activated / users
if rate >= target:
return "persevere"
if rate < floor:
return "stop or pivot"
return "iterate once, then re-evaluate"
print(decide(activated=12, users=80)) # keep collecting
print(decide(activated=45, users=120)) # persevereWhat happens at the time box if you are short
Decide the fallback rule now. A workable version has three parts:
- Sample reached: apply the decision rule as written.
- Sample not reached, one extension allowed: extend by a fixed number of days, once, with the new date written down.
- Still not reached: treat the experiment as inconclusive. Record that you could not measure it, and decide whether the cause was acquisition (a weak channel or weak interest) or bad planning.
An inconclusive result is still information. If you could not get 100 people to sign up in six weeks with real effort, that is evidence about demand, though weaker evidence than a clean measurement.
Recording the numbers
Put both values in the criteria document next to the thresholds:
minimum_sample: 100 # signed-up users who completed the 7-day window
time_box_days: 42 # sign-ups accepted for the first 35 days
decision_date: 2026-02-15
extension_allowed: one, 7 days, only if sample is shortNote what the comment on minimum_sample says. It counts users who finished the window, not everyone who signed up. Stating the unit prevents arguments later.
Common mistakes
- Choosing a sample because "100 feels like a lot" without checking the interval it gives you.
- Counting users still inside their measurement window.
- Setting a time box that the acquisition plan cannot fill.
- Planning around users when the metric depends on rare events.
- Treating an interval as a promise. Intervals assume representative users, and early adopters recruited from your network are rarely representative.
Exercise
Your criteria use 7-day activation, a 28-day time box, and a minimum sample of 60 completed users. About how many sign-ups per day do you need, and what happens to a user who signs up on day 25?
Show answer
Usable sign-up days are 28 - 7 = 21, so you need 60 / 21, about 2.9 sign-ups per day. A user who signs up on day 25 has only 3 days of the 7-day window before the time box ends, so they are excluded from the activation denominator (or you must extend the observation period, which should be written in the plan before launch).
Exercise
After 3 weeks you have 25 sign-ups and 9 have activated (36%). The persevere threshold is 30% with a minimum sample of 100. A teammate says to declare success. What should you do, and why?
Show answer
Keep collecting. The sample is below the pre-committed minimum of 100, so the decision rule returns "keep collecting". With 25 users, 9 activations give a plausible range of roughly 20% to 55%, which includes values below the 30% target. Deciding now would be peeking at an unreliable number.