When the vacuum like energy of the Higgs potential within the standard model undergoes electroweak phase transition, an influx of entropy into the primordial plasma can lead to a significant dilution of frozen out dark matter density that was already present before the onset of the phase transition. The same effect can take place, if the early Universe was dominated by primordial black holes of small mass, evaporating before the period of Big Bang Nucleosynthesis. In this paper we calculate the dilution factor for the above mentioned scenarios.