This work considers the study of the diffusion of carbon dioxide in polypropylene and amorphous polymers containing carbon nanoparticles, particularly carbon nanofibres and graphene, as well as nanoclays, to be used in microcellular foaming. The diffusion of CO2 out and into the nanocomposites was studied during high pressure CO2 dissolution, as the amount of CO2 dissolved into the nanocomposite and CO2 desorption rate are crucial in order to have a proper control of foaming. Comparatively, platelet-like nanoparticles slowed down the desorption of CO2 out of the nanocomposites by means of a physical barrier effect, enabling a higher concentration of CO2 to remain in the polymer and be used in foaming. As a consequence of the higher amount of CO2 retained in the polymer and the cell nucleation effect promoted by the nanoparticles, polymer nanocomposite foams presented finer microcellular structures, in the case of PMMA even sub-microcellular, and higher specific moduli and electrical conductivities when compared to their pure counterparts.