How it works
If a drop has a 2% chance, each attempt has a 98% chance of missing. The chance of missing every time in 50 attempts is 0.98 multiplied by itself 50 times, about 36%. So the chance of at least one drop is about 64%.
For more than one copy the calculator adds up the chances of ending with too few, using the binomial distribution, and subtracts that from 100%.
It then searches for the smallest number of attempts that gets you to 50%, 90% and 99%.
Common questions
If the drop rate is 1%, am I guaranteed a drop in 100 runs?
No. After 100 runs at 1% your chance is about 63%. Roughly one player in three is still empty-handed at that point.
How many attempts for a 90% chance?
About 2.3 times the average. For a 1% drop that is 230 attempts, and for 5% it is 45.
Does this work for gacha pulls and rerolls?
Yes, as long as each attempt has the same chance. If the game has a pity counter or rising rates, your real odds are better than the calculator shows.