The math behind Candies in Container calculators is pretty straight forward. We use basic Euclidean (3D) geometry to compute the volume of the containers based on their shapes. Once we know the volume, we are able to make reasonable estimates based on an average number of candies in a known volume. We (Issac and Poppy) bought large bags of the different types of candies and our candy expert (see picture) measured them in kitchen measuring bowls. Then we counted the number of candies and did the math to get the estimated number of candies in a gallon container. Here the results.
The Candies in a Container calculator uses the following densities of candies:
These are only an estimates, because the candy manufactures may vary the sizes of the candies, but this is a decent estimate of the average size of the different candies and your guess, using these calculators, will be much less of a guess.