Fallout comes in two varieties. The first is a small amount of carcinogenic material with a long half-life. The second, depending on the height of detonation, is a large quantity of radioactive dust and sand with a short half-life.
All nuclear explosions produce fission products, un-fissioned nuclear material, and weapon residues vaporized by the heat of the fireball. These materials are limited to the original mass of the device, but include radioisotopes with long lives.  When the nuclear fireball does not reach the ground, this is the only fallout produced. Its amount can be estimated from the fission-fusion design and yield of the weapon.