Sodas explode when shaken because the carbon dioxide dissolved in the liquid comes out of solution as thousands of tiny bubbles, and those bubbles expand rapidly when the pressure is released. Shaking does not create new gas; it gives the existing gas a way to gather into bubbles that grow explosively once the cap is opened.
The Background: Carbonation Is Dissolved Gas Under Pressure
Carbonated drinks are made by dissolving carbon dioxide gas into a flavored, sweetened water mixture under pressure. The gas does not simply float in the liquid; it dissolves into it, the same way sugar dissolves, but with a catch: how much gas stays dissolved depends on the pressure above the liquid and on temperature.
In a sealed bottle or can, the pressure of carbon dioxide above the drink is high, so the gas stays in solution. At room temperature, a typical soda is held at roughly two to four times normal atmospheric pressure, which is why the container feels firm and hisses when opened. When you open the container, the pressure above the liquid drops to normal atmospheric pressure. The liquid is now holding more dissolved gas than it can comfortably keep at that lower pressure, so the gas wants to escape.
This is the same principle behind a bottle of sparkling water going flat over time: as gas leaves the liquid and the headspace fills with carbon dioxide, the equilibrium shifts and the drink loses its fizz.
How Shaking Changes Things: Bubble Nucleation
If you open an undisturbed soda, the gas escapes slowly and quietly, mostly from the surface and from a few tiny bubbles that form on imperfections in the container. Shaking changes the picture in two ways.
First, shaking creates turbulence and mixes the liquid, which brings dissolved gas molecules together and encourages them to form bubbles. Second, and more importantly, shaking creates a large number of tiny bubbles throughout the liquid, and these bubbles act as seeds for further bubble growth. The bubbles are not just a side effect of shaking; they are the mechanism.
When the cap is still on, the pressure inside the bottle is high, so those shaken-up bubbles are small and the gas stays largely in solution. The moment the cap comes off, the pressure drops and the bubbles expand dramatically. Each bubble grows as gas diffuses into it from the surrounding liquid, and the expansion happens fast, often in a fraction of a second. The result is a foam that can push liquid out of the container with surprising force.
Why Some Sodas Explode More Than Others
Not every shaken drink behaves the same way. Several factors influence how violent the eruption is:
- Temperature: Warm soda holds less dissolved gas than cold soda, but the gas it does hold comes out more readily, and warm drinks tend to foam more aggressively when opened.
- Carbonation level: Drinks with higher carbonation, such as many colas and sparkling waters, have more gas available to release.
- Container type and shape: A narrow-necked bottle concentrates the foam as it rises, while a wide can may release pressure more gently.
- Surface texture: Rough or scratched plastic, or particles in the liquid, provide nucleation sites where bubbles form more easily.
- Headspace: The amount of gas-filled space above the liquid affects how the pressure changes when opened.
This is also why dropping a mint candy into a soda produces a dramatic fountain: the candy's porous surface offers countless nucleation sites, and the gas rushes out as foam. It is not a chemical reaction in the usual sense; it is a physical release of dissolved gas.
What Actually Happens When You Open a Shaken Bottle
The sequence is fairly predictable. While the bottle is sealed, shaking distributes small bubbles through the liquid. The pressure inside remains high, so the bubbles stay small. On opening, the pressure above the liquid falls to atmospheric pressure. The bubbles near the surface expand first, and the foam layer grows. As foam rises, it carries liquid with it. If the bottle is narrow and the foam expands quickly, the liquid can be pushed out through the opening.
The eruption is not an explosion in the sense of a chemical detonation; it is a rapid release of pressurized gas and foam. The force comes from the pressure difference between the sealed container and the outside air, not from any combustion or reaction.
Common Misconceptions
One common belief is that shaking adds gas to the soda. It does not; the gas was already there. Another is that the explosion is caused by the bubbles themselves being large. In fact, the bubbles start small and grow only when the pressure drops. A third misconception is that tapping the side of a can prevents an explosion. Tapping may dislodge some bubbles from the container walls, and it is a popular trick, but the evidence that it reliably prevents foaming is limited and inconsistent.
Another point worth clarifying: the foam that shoots out is mostly liquid, not gas. The gas expands and pushes the liquid out, which is why a shaken soda can leave a sticky mess rather than simply hissing.
How to Reduce the Risk
If a soda has been shaken, the safest approach is to let it settle before opening. Time allows the bubbles to rise and the gas to redistribute. A few practical steps:
- Wait several minutes after shaking before opening the container.
- Chill the drink if possible; cold liquid holds gas more stably and foams less violently.
- Open slowly and over a sink, keeping the container upright and pointed away from your face.
- Do not shake a container that is already warm or has been dropped.
None of these steps guarantees a perfectly calm opening, but they reduce the chance of a messy eruption.
Frequently Asked Questions
Does shaking a soda make it go flat faster?
Yes, in effect. Shaking releases gas from solution, and once the container is opened, that gas escapes. A shaken soda that is opened and left standing will lose carbonation more quickly than an undisturbed one.
Why does warm soda foam more than cold soda?
Gas is less soluble in warm liquid, so warm soda holds less dissolved carbon dioxide and releases it more readily. The bubbles also expand more easily, which can make the foam rise faster.
Can a shaken soda bottle actually burst before opening?
Sealed containers are designed to withstand normal internal pressure, and shaking alone does not usually raise pressure enough to burst a sound bottle. However, a damaged, weakened, or overpressurized container can fail, which is why dented or swollen containers should be handled carefully.
Is the explosion caused by a chemical reaction?
No. The eruption is a physical process: dissolved gas comes out of solution and expands as pressure drops. The mint-and-soda fountain is also physical, driven by bubble nucleation rather than a chemical reaction.
Does tapping the can really stop it from exploding?
It is a widely repeated trick, but the evidence is mixed. Tapping may help dislodge bubbles clinging to the container walls, but it is not a reliable guarantee. Waiting and opening slowly are more dependable.
Related Everyday Examples
The same physics appears in other familiar situations. A warm bottle of sparkling water left in a car can spray when opened. A shaken beer foams over for the same reason. Even a sealed container of fermenting liquid can build pressure as carbon dioxide is produced. Understanding that the gas is dissolved and that bubbles grow when pressure drops explains all of these cases.
In short, sodas explode when shaken because shaking creates bubbles and mixes the dissolved carbon dioxide, and opening the container drops the pressure, letting those bubbles expand rapidly and push liquid out. The gas was always there; shaking and opening simply give it a fast route out.