While CO2 gas can escape from the solution from anywhere, small imperfections on the sides of the glass form what are called nucleation points – places where it is easier for the gas to leave solution and form larger bubbles. As gas escapes, more gas uses the nucleation point to escape afterwards.
That is one of the reasons behind the Mentos-Diet Coke fountains that were all the rage years ago. The Mentos candy is covered in nucleation points, allowing the gas to rapidly escape once submerged.
Latest Answers