Coupon collector calculator (collect them all)

Estimate how many random draws you need to collect all n types at least once (stickers, gacha, trading cards).

T = draws until completion. t90 means “90% of runs finish by t90”. Runs locally in your browser (no server upload).

Other languages: en | ja | es

How to use (3 steps)

  1. Choose uniform (equal chances) or weighted (rarities).
  2. Enter n and optional t/target; paste weights or probabilities if needed.
  3. Check the results, then run the simulation for intuition or verification.

Assumptions: independent draws with fixed probabilities. Pity/guarantee systems are out of scope.

Inputs

Mode
Presets:
Presets:
Shareable URLs store mode, n, t, target, and weights.

Simulation results are not stored in the URL—only settings and the seed are shared.

Results

Expected draws E[T]
t50 (50%)
t90 (90%)
t99 (99%)
Required t for target
P(T ≤ t)
Variance Var(T)
Std. deviation

Simulation (Monte Carlo)

Runs locally in your browser. Use a seed to reproduce the same run.

Examples

Uniform example (n=50)

With 50 equally likely types, the expected draws is 50·H_50 ≈ 224.96. The 90% completion point is much higher than the mean.

Rare item example (1%)

If one type has probability 0.01 and the others share the remaining 0.99, the rare item dominates the completion time. Use weighted mode to see how the expectation jumps.

FAQ

Why does the last item take so long?

Once most types are collected, each new draw is likely a duplicate. The waiting time for the last unseen type grows like 1/p_min.

Is the uniform formula exact?

Yes. For equal probabilities the expectation is n·H_n and the DP curve gives exact completion probabilities up to the computed t range.

What if probabilities are not uniform?

Use weighted mode with probabilities or weights. For more than 20 types, the exact expectation is expensive, so simulation is recommended.

Can I share a run with my class?

Yes. Copy the URL to share parameters; a fixed seed reproduces the same simulation.

Does this include pity or guarantees?

No. This tool assumes independent draws with fixed probabilities. Other mechanics need a different model.

Related calculators