The simplest way to keep a shaken soda from exploding is to wait. Give it time to settle, and the dissolved gas reabsorbs into the liquid. A shaken can may need up to 30 minutes to fully stabilize, but there are faster techniques that work well when you don’t have that kind of patience.
Why Shaken Sodas Explode
Carbonated drinks are supersaturated with carbon dioxide, meaning the liquid holds more gas than it naturally wants to at normal atmospheric pressure. Inside a sealed can or bottle, high pressure keeps that CO2 dissolved. The moment you crack the seal, pressure drops and the gas starts escaping into the air.
Under calm conditions, this happens gradually as gentle fizz. But shaking changes everything. When you jostle a sealed container, tiny gas bubbles get knocked loose from the walls and distributed throughout the liquid. These micro-bubbles act as “nucleation sites,” which are essentially launching pads where dissolved CO2 can rapidly collect and expand into larger bubbles. The more nucleation sites floating in the liquid, the faster gas escapes when you open the container. That violent, simultaneous release of gas is what sends soda spraying everywhere.
This is the same principle behind the famous Diet Coke and Mentos fountain. A single Mentos candy is covered in thousands of tiny pits and pockets, each between 2 and 7 micrometers wide. Every one of those pits acts as a nucleation site, triggering an enormous eruption of CO2 all at once. A shaken soda has the same problem on a smaller scale: too many bubble seeds ready to grow the instant pressure is released.
Waiting Is the Most Reliable Fix
When you stop agitating the container, those tiny bubbles slowly float upward and collect at the top, or they dissolve back into the liquid as the CO2 re-equilibrates under the container’s internal pressure. For a can that’s been vigorously shaken, this process can take up to 30 minutes before it’s truly safe to open without any foam-over. A mildly jostled bottle might settle in five to ten minutes.
If you’re coming home from the store with a bag of warm, rattled sodas, putting them in the fridge and forgetting about them for a while is genuinely the best strategy. The cold temperature helps too, for reasons covered below.
The Slow-Vent Technique for Bottles
If you have a screw-top bottle and can’t wait, slow venting works well. Twist the cap just enough to hear gas start hissing out, then stop. Let it hiss for a second or two, then tighten the cap again. Repeat this several times, releasing pressure in short, controlled bursts. Each time you vent a little gas, you lower the internal pressure without creating the sudden pressure drop that causes an eruption. After four or five cycles, most of the excess pressure is gone and you can fully remove the cap.
This technique doesn’t work with cans, since pull-tabs don’t allow partial opening. With a can, your options are more limited: wait for it to settle, or keep it cold.
Cold Soda Holds Its Fizz Better
Temperature plays a major role in how much CO2 stays dissolved. Gas dissolves more readily in cold liquid than in warm liquid. According to solubility data from NIST, water at 0°C holds roughly twice as much dissolved CO2 as water at 25°C (about 77°F). At 5°C (41°F, typical fridge temperature), solubility is still about 70% higher than at room temperature.
This means a cold soda is far less likely to explode than a warm one, even if both have been shaken the same amount. The CO2 in a cold drink is more “comfortable” staying in solution, so it doesn’t rush out as aggressively when you open the container. If you’ve got a warm soda that’s been bouncing around, chilling it for 20 to 30 minutes in the fridge (or a few minutes in an ice bath) will both cool it down and give it time to settle.
Does Tapping the Can Actually Work?
The idea behind tapping is that it dislodges bubbles clinging to the inner walls of the can, allowing them to float to the top where they’ll escape as gas rather than pushing liquid out with them. It sounds reasonable, and nearly everyone has tried it. But a randomized controlled trial found that tapping a shaken can three times on its side produced no statistically significant reduction in the amount of liquid lost upon opening. The study, conducted with beer cans, compared tapped and untapped cans under both shaken and unshaken conditions, and tapping made no measurable difference in either case.
That doesn’t mean tapping is completely useless in theory. The few seconds you spend tapping are seconds the can is sitting still, which does allow some settling. But the tapping itself isn’t doing the work. If you’re going to tap, you might as well just set the can down and wait a minute instead.
Altitude Makes Things Worse
If you live at high elevation, you’ve probably noticed that sodas fizz more aggressively when opened. At sea level, atmospheric pressure is about 14.7 psi, which helps keep CO2 in solution even after you crack the seal. At 7,000 feet, atmospheric pressure is noticeably lower, meaning there’s less external force pushing against the gas trying to escape. The result: CO2 leaves the liquid faster, drinks foam over more easily, and carbonation goes flat quicker once the container is open.
At high altitude, every prevention method matters more. Keeping drinks cold, avoiding agitation, and using the slow-vent technique on bottles all become more important because you’re working against a bigger pressure differential.
Glass vs. Plastic vs. Cans
The container material affects how well your soda holds carbonation over time. Glass is nonporous and creates a tighter seal, so it retains CO2 the best. Plastic bottles are slightly permeable to gas, meaning CO2 can slowly seep through the container walls even when the bottle is sealed. This is why a plastic bottle of soda that’s been sitting in your pantry for months may already be partially flat before you open it.
Aluminum cans fall somewhere in between. They seal well, but the thin walls can flex when shaken, which may distribute more bubbles through the liquid compared to a rigid glass bottle. For practical purposes, glass bottles are the least likely to give you trouble, and they’re the easiest to slow-vent thanks to their screw or pry-off caps.
Quick Reference: What Actually Helps
- Wait 10 to 30 minutes. The single most effective method. Longer for heavily shaken containers.
- Chill it first. Cold liquid holds CO2 much better than warm liquid. Fridge temperature roughly doubles the gas’s willingness to stay dissolved compared to room temperature.
- Slow-vent a bottle. Crack the cap slightly, release a burst of gas, retighten, and repeat four or five times.
- Keep it still. After any agitation, set the container upright on a flat surface. Avoid further movement.
- Skip the tapping. Controlled studies show it doesn’t reduce foam-over. Use that time to just let the can sit.

