>>10760680Convection. Hot air is less dense so it rises up through the center of the mushroom, forming the stem. As it cools it starts to settle and gets pushed to the outside, forming the cap. Same process drives plate tectonics, formation of hurricanes, etc. The classic mushroom shape requires all the heat to be in a small area, so it's usually something exploding. Interesting stuff.